Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

get selected row from af:table in backing bean

in the line of fireMar 9 2011 — edited Mar 16 2011
Hi Experts,

I have an af:table and i have seelctBoolean check box in that. If the user select 'x' nos of check boxes i want to display the row data of those selected rows. Can somebody help me in getting the selected row data in backing bean?

I am using adf faces and backing bean.

JSF Code:

<af:table value="#{demo.partyList}" var="row"
rowBandingInterval="0" binding="#{demo.t1}" id="t21"
rowSelection="multiple">
<af:column>
<af:selectBooleanCheckbox text="#{row.person_first_name}"
label="Label 1" id="sbc1"
/>
</af:column>
<af:column>
<af:inputText value="#{row.emirate}"/>
</af:column>
</af:table>

<af:commandButton action="#{demo.print}" text="Print"/>

BB Code:

public void print(){
// what code to write here

}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2011
Added on Mar 9 2011
18 comments
3,527 views