Here is the third experiment.
In home.xhtml:
| <rich:panel>
| <p>You can:</p>
| <ul>
| <li><s:link action="#{userManager.startRegistration}"
value="Register as a new user" /></li>
| <li><s:link action="#{recipeManager.startNewRecipe}" value="Create
Recipe"/></li>
| </ul>
| </rich:panel>
|
In the pages.xml:
| <page view-id="/home.xhtml">
| <navigation from-action="#{userManager.startRegistration}">
| <redirect view-id="/register.xhtml" />
| </navigation>
| </page>
|
| <page view-id="/home.xhtml">
| <navigation from-action="#{recipeManager.startNewRecipe}">
| <rule if="#{recipeManager.recipe != null}">
| <redirect view-id="/new-recipe.xhtml" />
| </rule>
| </navigation>
| </page>
|
The first link does _not_ redirect but the second link redirects! In order to
make the first link actually takes me to the registration page, I would have to
say:
| <s:link action="#{userManager.startRegistration}" value="Register as a new
user" view="/register.xhtml"/>
|
in the home.xhtml.
Strange thing....
My development environment is: Seam 2.0 beta 1 the latest build from CVS, Java
1.6. Debian Lenny amd64 kennel or Windows XP 32bits.
Thanks in advance for any enlightenment!
Best Regards,
Ellen
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061052#4061052
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061052
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user