jquery - JSF pass Parameter to dataTable value -


my input datatable: list<selectiondto<personcontainer>>.

personcontainer contains: list<questioncontainer>

questioncontainer contains: date date1, date date2

in normal words: every person has list of questioncontainer (normally 1 container). 2 of questions in container dates. 1 of dates must filled. maybe both filled.

i have 3 datatables, first shows given input. in last column button executes javascript starts dialog contains second , third datatable. 2. datatable should display first date, if exists 3. datatable should display second date, if exists

thats table works fine:

<t:datatable id="tableid" value="#{value}" var="dto" rowindexvar="row">       <ui:insert />       <h:column>...</h:column>       ...       <h:column>         <h:outputtext value="#{dto.src.person.quesions[0].date1}" />         <h:commandlink value="extend" styleclass="button">           <f:ajax render=":messages" onevent="showdialog" />           <f:setpropertyacionlistener target="#{bean.currentrow}" value="#{row}" />         </h:commandlink> </t:datatable> 

here problem: [bean.currentrow] 0. debugged it, , in bean value passed right way, not in datatables

<h:panelgroup id="dialog" layout="block" styleclass="dn">   <h:datatable value="#{value[bean.currentrow].src.person.questions}" var="questions" rendered="#{not empty value[bean.currentrow].src.person.questions[0].date1}">   <h:column>     <h:outputtext value="#{questions.date1}" />   </h:column>   <h:column>     <h:inputtext value="#{questions.date1}" styleclass="datalizeme" />   </h:column>   </h:datatable>   <h:datatable>     //same date2   </h:datatable>  </h:panelgroup> 

so when click extend-button, window opens , displays date first person in list, instead of person on whick button clicked. how can pass row-index value[index] of second , third datatable ?

answers in german or english please :)


Comments