This content has been marked as final.
Show 2 replies
-
1. Re: pages.xml redirect
asookazian Jul 15, 2009 12:23 AM (in response to sej67)The <action> element is disallowed as per the xsd/dtd for pages.xml to be nested in a <redirect> element.
from Eclipse:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'action'. One of '{"http:// jboss.com/products/seam/pages":message, "http://jboss.com/products/seam/pages":param}' is expected.
I tried to verify here: http://jboss.com/products/seam/pages-2.0.xsd but was unsuccessful...
You will need to re-write your pages.xml.
something like this (using a boolean context variable set in your JavaBean/SFSB):
<page view-id="/memberAdd.xhtml" login-required="true" > <action execute="#{memberAddAction.initialize()}"/> <navigation> <rule if-outcome="success"> <redirect view-id="/search.xhtml"/> </rule> <action execute="#{searchAction.searchIt()}" if="#{doSearch}"/> </navigation> </page>
-
2. Re: pages.xml redirect
sej67 Jul 15, 2009 3:23 AM (in response to sej67)Thank you. I will try that.