Jill,

What you want is what I call "lifecycle events" and others call "page
actions". Essentially, you want to ensure that a particular action is
executed when the page is called. You can do this either with MyFaces
Orchestra, Apache Shale, or JBoss Seam (the first two are much easier to
just "add" to an existing application).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kito D. Mann - Author, JavaServer Faces in Action
http://www.virtua.com - JSF/Java EE consulting, training, and mentoring
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info

* Sign up for the JSF Central newsletter!
http://oi.vresp.com/?fid=ac048d0e17 *


> -----Original Message-----
> From: JillCompton [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 25, 2007 3:15 PM
> To: users@myfaces.apache.org
> Subject: deep linking and MyFaces
> 
> 
> Hi,
> 
> Searching through the archives, I found many posts about bookmarks. My
> question isn't about bookmarks but is related. I want to provide users
> with
> a URL which "deep links" into my application. Example:
> 
> http://mydomain.com/Results.faces?search=TIFF
> 
> Should display list of search results. I have a managed bean configured
> like
> this:
> 
> <managed-bean>
>   <managed-bean-name>myBean</managed-bean-name>
>   <managed-bean-class>com.foo.MyBean</managed-bean-class>
>   <managed-bean-scope>request</managed-bean-scope>
>   <managed-property>
>     <property-name>searchCriteria</property-name>
>     <value>#{requestScope.search}</value>
>   </managed-property>
> </managed-bean>
> 
> The bean gets populated successfully when the deeplink URL is visited,
> but
> how can an action method be called? The action method populates other
> beans
> required to display the page.
> 
> Thank you for any help!
> 
> Jill Compton
> [EMAIL PROTECTED]
> 
> --
> View this message in context: http://www.nabble.com/deep-linking-and-
> MyFaces-tf4517343.html#a12885691
> Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to