This content has been marked as final.
Show 2 replies
-
1. Re: Using page parameters instead of Seam remoting
asookazian Dec 11, 2007 1:07 PM (in response to asookazian)In the Yuan Seam book, it states on pg. 161 that "You can trigger any back-end bean method at page load time in the pages.xml file. That is called page action."
Also on page 159 he talks about invoking setter method(s) when the URL is loaded with an appended pid (parameter) value.
I'm not interested in doing anything at page load time, only when user submits the form to pass params.
In my case I have one xhtml and submitting to one SFSB. How do I code/configure to achieve passing params successfully from JSF to SFSB? And what is the difference b/n f:param and Seam params? -
2. Re: Using page parameters instead of Seam remoting
asookazian Dec 11, 2007 1:39 PM (in response to asookazian)Well I just did a simple POC using f:param.
<h:form> <h:commandLink actionListener="#{test.testParams}"> <h:outputText value="#{test.defaultText}" /> <f:param name="column" value="name" /> </h:commandLink> </h:form>
public void testParams() { // TODO Auto-generated method stub FacesContext facesContext = FacesContext.getCurrentInstance(); String columnName = (String)facesContext.getExternalContext().getRequestParameterMap().get("column"); log.info("columnName = " + columnName); }
Now the complication is that the f:param values need to be submitted from a rich:modalPanel component. So I may have to pass the param values from the launch code:Richfaces.showModalPanel('mpEmployeeSubmit',{width:450, top:200});