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>
|
if i put that code in side i got the error message "Parsed Expression of unexpected type java.lang.String"
Thx,
Holger
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005123#4005123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005123
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