jsf - How to preselect a radio button in <af:tableSelectOne>? -


we using oracle adf/jsf 1.1 show search results in table starting radio button. our requirement show search result 1 of <af:tableselectone> radio buttons preselected depending on database value match. however, unable preselect radio button.

here code snippet:

<f:facet name="selection">    <af:tableselectone text="select" autosubmit="true" id="radiobtn" /> </f:facet> 

how can preselect it?

i believe should change selection strategy :) far know can't configure selection property of af:tableselectone. nested in facet of af:table component, component drives af:tableselectone behaviour. so, in order select row, should check property "selectionstate" on af:table (i suppose you're using adf 10.x version)

<af:table value="#{bindings.demoview1.collectionmodel}"                             var="row" rows="#{demoview1.demoview1.rangesize}"                             first="#{bindings.filterview1.rangestart}"                             emptytext="#{bindings.demoview1.viewable ? \'no rows yet.\' : \'access denied.\'}"                             selectionstate="#{bindings.demoview1.collectionmodel.selectedrow}"                             selectionlistener="#{bindings.demoview1.collectionmodel.makecurrent}"                             id="table1" 

i'm sure you'll find it. idea, drag'n'drop table object jsf page data control (i.e. view object if using adf business components based data controls ) , choose table wanted component, , last step , on table choose selection option (you should popup window after drag'n'drop).when configure af:table component way, can control selection changing view object's current row . (view object af:table attached)

regards


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -