I have the following piece of code in my visualforce page
<apex:pageBlockTable value="{!AModel.RelFeedItems}" var="Feeds">
<apex:column >
<apex:facet name="header">Date</apex:facet>
<apex:outputField value="{!Feeds.CreatedDate}" />
</apex:column>
<apex:column >
<apex:facet name="header">Body</apex:facet>
<apex:outputText value="{!Feeds.Body}" />
</apex:column>
<apex:column >
<apex:facet name="header">ModStamp</apex:facet>
<apex:outputField value="{!Feeds.SystemModstamp}" rendered="insertedbyid!=createdbyid"/>**!--I want some thing like this--**
</apex:column>
<apex:column >
<apex:facet name="header">Inserted By Name</apex:facet>
<apex:outputField value="{!Feeds.InsertedBy.name}" />
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
What i want is that the modtamp
field to be displayed only when insertedbyid!=createdbyid
otherwise it should display a null value.
rendered="{! feeds.insertedbyid!=feeds.createdbyid}"
You can try this.