-
1. Re: feature request on navigation
deanhiller2000 Aug 14, 2009 11:48 PM (in response to deanhiller2000)hmmm, maybe add a reuse exit rules option on seamaction element as well like so(for those rare instances where I want the same rules on entry and exit to/from a page....
<page view-id="/web/zlogin/login.xhtml"> <seamaction reuseExitRules="true" execute="#{identity.isLoggedIn()}"/> <navigation> <rule if="#{s:hasRole('script_admin')}"> <redirect view-id="/secure/client/scripter/admin/scripts.xhtml"/> </rule> </navigation> </page>
At least then, I don't have to train people on the fact that adding an action to a page changes seam's behavior in that entry into the page will result in execution of the navigation rules...take the action away and the navigation rules stop executing on entry. ie. it makes it more obvious I think. well, that is my 2 cents at least.
-
2. Re: feature request on navigation
deanhiller2000 Aug 19, 2009 10:40 PM (in response to deanhiller2000)one more thing as I want to be very very clear on the user confusion that I have seen practically everyone have that has come onto our project......
1. add a page action and navigation rules
magically
start getting executed when you don't want them too. all they wanted was an init page action2. take away the page action and it fixes it(in fact, we usually embed the action at the top of the xhtml page to avoid navigation rules from accidentally going off).
Would much prefer a way to add actions in a page where navigation rules were not executed(or my own personal ones are executed instead of the ones used for exiting the page).