This content has been marked as final.
Show 2 replies
-
1. Re: Open a pop browser window from my Action Class
gonorrhea Jun 1, 2009 7:45 PM (in response to akabir77)You can use @DataModelSelection to inject the current entity of the dataTable when user clicks on the links in rich:dataTable.
Or when user clicks on the column with the hyper-links, you can pass the row number as a param to the action handler method to populate and outject via @DataModel for the dataTable of the popup window.
<a4j:commandLink value="View History" action="{#foo.processSelection(var.getRowIndex())}" oncomplete="Richfaces.showModalPanel('yourModalPanel');" reRender="yourModalPanel"/>
If you wish to not submit the form (HTTP GET instead) then you can replace a4j:commandLink with s:link.
-
2. Re: Open a pop browser window from my Action Class
gonorrhea Jun 1, 2009 7:47 PM (in response to akabir77)whoops. just noticed a typo in my code snippet.
should be:
action="#{foo.processSelection(var.getRowIndex())}"