+ Start a Discussion
rajesh k 10rajesh k 10 

How to display repeat like pageblockTable?

Hi, 
<table>
                    <tr>
                        <td>Action</td>
                        <td>Name</td>
                        <td>Phone</td>
                    </tr>

                    <apex:repeat value="{!listOfAccountRelatedWrapper}" var="m">

                        <tr>
                            <td>
                                <apex:inputCheckbox value="{!m.isSelected}" id="InputId" />
                            </td>
                            <td>
                                <apex:outputField value="{!m.con.Name}" id="adonProductName" />
                            </td>
                            <td>
                                <apex:outputField value="{!m.con.Phone}" id="adonProductQuality">
                                    <apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton,cancelButton" hideOnEdit="editButton" />
                                </apex:outputField>
                            </td>
                        </tr>
                    </apex:repeat>

                    </table>

User-added image
I want to show
Action          Name       Phone
checkbox     www        12345(this is Editable field)

help me...
Best Answer chosen by rajesh k 10
BalajiRanganathanBalajiRanganathan
why dont you use apex:dataTable

http://www.salesforce.com/us/developer/docs/workbook/Content/visualforce_6.htm

 

All Answers

BalajiRanganathanBalajiRanganathan
instead of apex:outputField, just use the expression. ie {!m.con.Phone}
rajesh k 10rajesh k 10
Hi,
 I tried like that also but alignment is not currect and Pnone field not shoing like inline edit
 
<table >
                    <tr>
                        <td><strong>Action</strong></td>
                        <td><strong>Name</strong></td>
                        <td><strong>Phone</strong></td>
                    </tr>

                    <apex:repeat value="{!listOfAccountRelatedWrapper}" var="m">

                        <tr>
                            <td>
                                <apex:inputCheckbox value="{!m.isSelected}" id="InputId" />
                            </td>
                            <td >{!m.con.Name}
                              </td>
                            <td>{!m.con.Phone}
                              
                                    <apex:inlineEditSupport event="ondblClick" showOnEdit="saveButton,cancelButton" hideOnEdit="editButton" />
                               
                            </td>
                        </tr>
                    </apex:repeat>

                    </table>

User-added image

help meee
BalajiRanganathanBalajiRanganathan
hmm.

try setting empty string for label attribute in apex:outputField

<apex:outputField label="" value="{!m.con.Phone}"id="adonProductQuality">
rajesh k 10rajesh k 10
Hi ,
        After this this my screnshot

User-added image
BalajiRanganathanBalajiRanganathan
why dont you use apex:dataTable

http://www.salesforce.com/us/developer/docs/workbook/Content/visualforce_6.htm

 
This was selected as the best answer