• Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing move from JSF page

 
Richard Roszak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!