[jboss-user] [JBoss Seam] - Pages.xml navigation and actionListener problem
artur.chyzy
do-not-reply at jboss.com
Thu Mar 22 10:57:10 EDT 2007
I have following pages.xml definition
| <page>
| <navigation>
| <rule if-outcome="persisted">
| <end-conversation before-redirect="true"/>
| <redirect view-id="/list.jspx" />
| </rule>
| <rule if="#{someBean.booleanVariable}" >
| <end-conversation before-redirect="true"/>
| <redirect view-id="/index.jspx" />
| </rule>
| <rule if="#{!someBean.booleanVariable}">
| <end-conversation before-redirect="true"/>
| <redirect view-id="/list.jspx" />
| </rule>
| </navigation>
|
|
| </page>
I also have following button on form:
| <ice:commandButton value="..." immediate="true" actionListener="#{someBean.openPopup}" />
|
which should invoke a popup window (or better: invoke an actionListener)
But when i click on button the redirect is made according to pages.xml using this rule
| <rule if="#{!someBean.booleanVariable}">
| <end-conversation before-redirect="true"/>
| <redirect view-id="/list.jspx" />
| </rule>
|
bacause booleanVariable is false
Why pages.xml rules are invoked when i want to use actionListener?
ActionListener method always return void so there will be no outcome
Also when I remove rules with if it works ok because it checks only outcomes and they don't match when invoking actionListener
Am I doing something wrong?
Can someone tell me why this doesn't work ?
Artur
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030668#4030668
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030668
More information about the jboss-user
mailing list