I need to redirect users to a specific page if an attribute in session is true. It does not matter what link the user clicks.. I wrote the following rule but it does not seem to work:
| <page view-id="*">
| <navigation>
| <rule if="#{identity.loggedIn and user.myattribute}">
| <begin-conversation join="true"/>
| <redirect view-id="/mypage.xhtml"/>
| </rule>
| </navigation>
| </page>
|
Can anyone suggest how this should be done?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082787#4082787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082787
Slotos had sent me his EAR, and I had this to comment, in case this might help future readers:
At quick glance, you should definitiely not have a persistence.xml in the META-INF of the EAR. If you'd like to keep a JAR of entities but not mark this JAR for its own persistence unit, skip the persistence.xml in that JAR, include it as a "java" module in application.xml of the EAR, and reference the classes from it that you need in the persistence.xml of the *other* JAR, which should be "ejb" in the EAR's application.xml.
...that's a long run-on sentence, but y'all should get the gist.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082779#4082779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082779