This content has been marked as final.
Show 6 replies
-
1. Re: url parameters
nickarls Oct 4, 2007 3:31 AM (in response to turkishpirate)try putting an f:param inside the commandlink
you should be able to get it from the request parameter map through the faces context. -
2. Re: url parameters
nickarls Oct 4, 2007 3:34 AM (in response to turkishpirate)you might also want to search for "page parameter" and @RequestParameter in the docs.
-
3. Re: url parameters
turkishpirate Oct 4, 2007 3:36 AM (in response to turkishpirate)Thanks a lot.
"nickarls" wrote:
Can you give me some links or small example code, how should i do this?
you should be able to get it from the request parameter map through the faces context. -
4. Re: url parameters
turkishpirate Oct 4, 2007 3:37 AM (in response to turkishpirate)"nickarls" wrote:
you might also want to search for "page parameter" and @RequestParameter in the docs.
Thanks again -
5. Re: url parameters
enrokuta Oct 4, 2007 3:50 AM (in response to turkishpirate)Use Seam Page Parameters and the s:link tag:
In pages.xml you define a param tag for your commodity page:<page view-id="/commodity.xhtml"> <param name="commodityid" value="#{commodity.id}" </page>
Now in your Commodity you need to define a public method to set the commodity idpublic void setCommodityId(String id){ this.id = id; }
According to Seam Documentation, any s:link transparently includes the request parameters so you might consider it. I didn't use the tag before so I cannot help you here. Or, you can use the standard outputLink tag of JSF:<h:outputLink value="/commodity.seam"> <f:param name="commodityid" value="#{commodity.id}"/> </h:commandLink>
-
6. Re: url parameters
turkishpirate Oct 4, 2007 3:55 AM (in response to turkishpirate)Great thanks to enrokuta