[jboss-user] [JBoss Seam] - Re: Seam URLs and request processing
dpocock
do-not-reply at jboss.com
Wed Aug 9 18:07:36 EDT 2006
"gavin.king at jboss.com" wrote : yes, .elvis is supported
and could I define a `virtual' page in pages.xml, e.g. a page that doesn't actually exist, but where the action listener would decide the page to be rendered, e.g:
<page view-id="/virtual.xhtml" action="#{switchboard.chooseAPage}" />
virtual.xhtml being non-existant, and switchboard.chooseAPage being a stateless session bean method that returns the real view-id to display.
The user would possibly enter the URL ending in /myapp/virtual.elvis, and #{switchboard.chooseAPage} might return a value such as eminem.jsp or britney.xhtml
The result of all this is that the URLs no longer have a 1-1 mapping to actual files, much like in Struts.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964197#3964197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964197
More information about the jboss-user
mailing list