-
1. Re: Request parameters with s:link
uke Aug 17, 2007 2:47 AM (in response to uke)Btw. I tried propagation="none", but that only stripped the conversation-related parameters from the url, leaving it with a clean viewObject.seam?id=1 as a result.
-
2. Re: Request parameters with s:link
sjmenden Aug 17, 2007 7:13 AM (in response to uke)The typical scenario for CRUD operations is to create an object by going to the viewObject.xhtml page without accessing another object first, or from a link which simply redirects you to viewObject.xhtml. You should not be trying to create an object if you are already on the page that views another object, that doesn't make sense. what is sticking that id there is probably your viewObject.page.xml or you may have that configured in pages.xml, depends on your setup.
Instead of pasting all of the code here my best advice would be to seam gen a project, do ./seam new-entity and seam will generate everything you need for basic CRUD for you.
-Samuel -
3. Re: Request parameters with s:link
damianharvey Aug 17, 2007 9:50 AM (in response to uke)If you want to axe the parameter try using an action on your link that sets it to null eg:
<s:link view="/somepage.xhtml" action="#{myBean.resetStuff()}" propagation="none" value="my link"/>
Cheers,
Damian.