You need to sign in to do that
Don't have an account?
bujji
Regarding PageBlock table and Repeat
Hi,
I am using pageBlockTable to display some values and it is working fine. After that for look and feel i am using Repeat tag and i am calling same method to display the values but it is not working.
Is there any difference between PageBlockTable and Repeat. Please clarify me.
Thanks,
Bujji
Hi bujji,
Can you put the code please. might be you are putting <apex:repeat> outside <td> element, just put it outside <tr>.
Thanks.
Below is the code which is working fine for pagebloctable but not repeat.
I have check the debug log for <apex:repeat> , no results are not coming.
<apex:pageBlock title="Account Details">
<apex:pageBlockButtons >
<apex:commandButton value="SAVE" action="{!update1}" reRender="Results"/>
</apex:pageBlockButtons>
<table >
<!--
<apex:repeat value="{!newm}" var="o" id="Results">
<tr><td> </td></tr>
<tr>
<td width="11%" align="left" style="font-size:12px;font-weight:bold;">Account Name </td>
<td width="30%" align="left">
<apex:outputField value="{!o.Name}"> </apex:outputField>
</td>
</tr>
</apex:repeat>
-->
<apex:pageBlockTable value="{!newm}" var="o" id="Results" >
<apex:column headerValue="Phone" >
<apex:inputField value="{!o.Phone}" ></apex:inputField>
</apex:column>
<apex:column headerValue="Name" >
<apex:inputField value="{!o.Name}"></apex:inputField>
</apex:column>
</apex:pageBlockTable>
</table>
</apex:pageBlock>
funtion is
public list<Account> getNewm()
{
List<Account> con_dis = [select id,Name,phone from Account where id=:s];
return con_dis ;
}
Thanks,
Bujji
Hi bujji,
i checked the code but it's look fine. I have just made some small changes , can you check it once.
Thanks, for the help.
Thanks,
Bujji
Is there any way to do it.
Thanks,
Bujji
Hi bujji,
From my point of view we can have a bloack level elemnt like <apex:outputpanel> in this we can write a javaScript.
after calling the action method of controller we will reRender this element.
VF page
Controller
after calling upladData method we will reRender 'updateMessage' .
Might be this can help you for some extent.
thanks.