[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean
Holger Prause
do-not-reply at jboss.com
Mon Jan 22 21:54:03 EST 2007
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>
|
java code
| 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());
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005118#4005118
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005118
More information about the jboss-user
mailing list