• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Capturing move from JSF page

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic