We built our application using Seam (beta 1) as an integral part.  To that end, 
Seam participates fully in translating URLs into view selection / creation 
during GET requests.  

For example, translating the URL:

/articles/db-driven-title.html

To perform this URL to view translation / setup, we access Seam components 
(including a managed persistence context) to determine what view to display (if 
any), and what to display in it.  

Another example:

/action/do-something/

where "do-something" gets translated into a method call on a Seam component.  
This method call's outcome is then used to drive the view displayed for the GET 
request using regular NavigationHandler semantics.

There are really two points to perform this view selection in JSF.  
PhaseListeners as mentioned previously, OR more appropriate to the 
specification, a ViewHandler (createView).  

Either way, the latest version of Seam does not appear to be "ready" to 
participate in translating custom URLs into views.  For example, the 
conversation context is not setup until after createView is called.

In my previous post I hacked around SeamExtendedManagedPersistencePhaseListener 
to get it to startup a conversation before createView is called.  But, this 
lead to other problems.

Should it be reasonable to consider that Seam components can participate in 
view selection / setup (createView)?  We have some big decisions to make if 
not, because a great deal of our code is built around the Seam beta 1 notion of 
having components available earlier.

Ryan  




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

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


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to