myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 101questionjsf <innovest...@yahoo.com>
Subject Re: dataTable master/detail getRowData() - help needed
Date Fri, 21 Apr 2006 08:50:31 GMT

hi, not sure about your method.

But i use the following method in master detail:

I remove the datamodel, use arraylist so that it can be serializable. Use
savestate to store the arraylist. Then use updateactionlistener to fire the
current row to the bean.

<t:saveState value="#{processBean.processResults}" />
.......
<t:dataTable value="#{processBean.processResults}"  ......
.....
<h:commandLink value="#{result.process_id}" action="detail"
actionListener="#{processBean.detail}">
     <t:updateActionListener property="#{processBean.selectedProcessRecord}"
value="#{result}" />
</h:commandLink>
........

Works!
--
View this message in context: http://www.nabble.com/dataTable-master-detail-getRowData%28%29---help-needed-t1484744.html#a4022665
Sent from the MyFaces - Users forum at Nabble.com.


Mime
View raw message