This content has been marked as final.
Show 3 replies
-
1. Re: Preprocessing constraints for pages
pmuir Nov 28, 2007 6:05 AM (in response to dmitriy.lapko)You should use restrict.
-
2. Re: Preprocessing constraints for pages
dmitriy.lapko Nov 28, 2007 9:50 AM (in response to dmitriy.lapko)But restrict will raise an exception? org.jboss.seam.security.AuthorizationException? But I don't need it.
-
3. Re: Preprocessing constraints for pages
dmitriy.lapko Dec 3, 2007 9:10 AM (in response to dmitriy.lapko)Pete, can you please explain me, how can I customize reaction on org.jboss.seam.security.AuthorizationException for different situations?
For example, for login.seam I need redirect to welcome.xhtml if user is already loginned, for item.seam I need redirect to list.seam if parameter itemId is absent in request and so on.
For now I see only one configuration without considering where this exception occured:<exception class="org.jboss.seam.security.AuthorizationException"> <redirect> <message severity="ERROR">You don't have permission to do this.</message> </redirect> </exception>
Did I understand you answer correctly? Or you meant something else?