-
1. Re: Include URL link in Email to trigger Seam Action?
ginni Oct 20, 2010 3:22 PM (in response to ginni)A little more info:
I am looking at the Blog example. I can see how the bookmark concept is implemented here. How would I modify that approach to just enable the user to run a specific action from the URL link, whereas the same page will be accessed from other actions? I am referring to pages.xml.
I can add:
<rewrite pattern="/delegation/{authId}" /> <rewrite pattern="/delegation" /> <param name="authId" value="#{authorization.id}"/> <action execute="#{fromLinkAction.loadAuthorization(authorization.id)}"/>
to the node:
<page view-id="/pages/delegation/delegation.xhtml">
but won't that affect ANY interaction with the delegation.xhtml page?
We have other actions triggered from pages that also load these records into delegation.xhtml. Will this approach not break them if no authorization object is passed in?
Thanks,
Ginni -
2. Re: Include URL link in Email to trigger Seam Action?
ginni Oct 20, 2010 4:28 PM (in response to ginni)And a little more info. I added:
<rewrite pattern="/delegation/{authId}" /> <rewrite pattern="/delegation" /> <param name="authId" value="#{authorization.id}"/> <action execute="#{fromLinkAction.loadAuthorization(authorization.id)}" if="#{authId!=null}"/>
Which does allow me to open a delegation from my list page and to create a new one (both cases use the delegation.xhtml page for display).
But... if I just try the url:
http://server:port/icams-view/delegation/0The existing record should open, but instead I get an error (browser only, nothing in the console) that states
The requested resource (/icams-view/seam/pages/delegation/delegation.xhtml) is not available.
I cannot see what is going on otherwise. Is anything obvious here?
Thanks, Ginni
-
3. Re: Include URL link in Email to trigger Seam Action?
cash1981 Oct 22, 2010 4:20 AM (in response to ginni)Just a wild shot.
Have you tried .seam at the end instead of .xhtml?