Ah ok :-)
Its also in the api if one can read ^^
@Name(value="org.jboss.seam.core.pages")
Oh i got 1 final question, i can get access to the rule i need to know,
but i need to get the target viewId <redirect view-id="/welcome.xhtml"/>
How can i archieve this (i am stuck at this point)
<rule if-outcome="loginsuccess"> <redirect view-id="/welcome.xhtml"/> </rule>
Page page = pages.getPage("/index.xhtml"); Navigation nav = page.getDefaultNavigation(); for(Rule tmpRule: nav.getRules()) { log.info("tmp rule: "+tmpRule.getOutcomeValue()); for(Output tmpOutput: tmpRule.getOutputs()) { log.info(tmpOutput.getValue()); } }
Hello i noticed a nice feature in the rule element u can specify out tag, that would be just perfect!
I only got 1 problem how can i specify a constant string expression to be outjected: like
<rule if-outcome="loginsuccess"> <out name="detailViewId" value="/details.xhtml" /> <render view-id="/welcome.xhtml"/> </rule>