File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Capturing move from JSF page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Capturing move from JSF page" Watch "Capturing move from JSF page" New topic
Author

Capturing move from JSF page

Richard Roszak
Greenhorn

Joined: Jan 06, 2009
Posts: 27
I would like to capture movement in my application as the user changes from web page to web page using a dropdown menu. The navigation is done with a <a4j:commandLink. Is there a method similar to ontableave used in <rich:tab to acomplish this?

Thanks
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
I don't understand your question completely, are you trying to call a javascript function after the user clicks on the link
or do you have an onchange event of the dropdown which will navigate the user to different pages?
Richard Roszak
Greenhorn

Joined: Jan 06, 2009
Posts: 27
What I want to do is when the user chooses a option in the <h:selectOneMenu currently it refreshes the page with new data but same jsp. The new data is of a different version. What I want to do is warn the user that he is going to a diffeerent version of the page and will loose any changes they made. I know how to trap whether a change was made but don't know how to pop up an alert befeore the version is changed.
I have a javascript that will pop an alert if the user is going to another page but need to implement it for new version same page.

If I call the javascript before the "a4j:support event="onchange" action="#{" nothing happens. So I need to know how to call the javascript before the action to load the version.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Capturing move from JSF page
 
Similar Threads
Applet in a browser
open a web page from midlet
Web page size calculation
reg connection to url
Long Tail treasure trove