Hi all, I have a table with a button in each row to open the details.
| <t:dataTable value="#{listManager.dataModel}" var="item" rowIndexVar="idx"> | ... | <h:column> | <f:facet name="header"> | <h:outputText value="Details" /> | </f:facet> | <s:button action="#{itemManager.selectItem}" value="Details"> | <f:param name="listidx" value="#{idx}" /> | </s:button> | </h:column> | </t:dataTable> | When I click the button, I can get parameter listidx with: | @RequestParameter("listidx") | private String idx; | When I'm trying to do this with RichFaces or Trinidad this doesn't work. The injected RequestParameter always is null. Here the code for the tables: | <tr:table value="#{listManager.dataModel}" var="item" rows="5" rowIndexVar="idx"> | ... | <tr:column> | <f:facet name="header"> | Details | </f:facet> | <s:button action="#{itemManager.selectItem}" value="Details"> | <f:param name="listidx" value="#{idx}" /> | </s:button> | </tr:column> | </tr:table> | | | <rich:dataTable value="#{listManager.dataModel}" var="item" rowIndexVar="idx"> | ... | <rich:column> | <f:facet name="header"> | <h:outputText value="Details"></h:outputText> | </f:facet> | <s:button action="#{laufManager.selectItem}" value="Details"> | <f:param name="listidx" value="#{idx}" /> | </s:button> | </rich:column> | </rich:dataTable> | Is there something I'm doing wrong? Or are s:link and s:button simply not working with Richfaces and Trinidad? Thanks in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042049#4042049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042049 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user