Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javascript to popup the message box..in jsf  RSS feed

 
Laxmi Mashibinal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The javascript function should take dynamic values which it need to display with sme mesage..

how to send the dynamic values fro jsf ie jsp page..

ie i am selecting combination of two values on click of create button if the combination is selected for second time ie duplicate combination it should display the popup message box..

How to send the values to the javascript function??

please help me regarding this issue..
Filename: example.bmp
File size: 209 Kbytes
 
Samuel March
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not try putting the javascript into and hutput text wrapper on the page and use a render= attribute on it and
control that by the validation of that component and make a boolean property for re render if that occurs twice.



Aternately, you can bind a hutputMessage for="theSelectedComponent" and queue a message on the component at validation as would/should normally be done.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!