[jboss-user] [JBoss Seam] - Question about usage of Page Actions

james_027 do-not-reply at jboss.com
Thu Jan 4 21:55:31 EST 2007

After reading the topic page action in seam reference. I wonder if I could do and if it is a good practice of doing a check whether a user is log in or not then perform a redirect if necessary.

I don't fully understand this piece of code. 

 <s:button view="/#{empty userFrom ? 'UserList' : userFrom}.xhtml"

I got this code from xhtml file generate from seam gen' seam generate-entities command. the userFrom is a parameter variable from page.xml file. when the userFrom is empty it will be evaluated to UserList.xhtml but if userFrom is not empty it will be evaluated to .xhtml? If it happens that the userFrom has a value this will produce an error right? Can I assume that userFrom will never have a value?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998139#3998139

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3998139

More information about the jboss-user mailing list