Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to pass parameters as hidden, when doing popup window  RSS feed

 
viswanath balam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I'm trying to display the pop up window with the some table data. I tried but not able to get the things. ?How to make a popup by passing a hidden parameter and validate that parameter with some other bean and populate the validated data into the pop up window.. for this is there any scrap example to do this..i need help in this. Please as early as possible look into this issue.

Best Regards
 
A. Dusi
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, is that hidden parameter a user entered value or something that's already in your backing bean?
It's easier if it is already there; you can try to access your popup backing bean from teh current page bean and initialize the required table or properties even before your page is displayed. The popup can be a simple javascript window.open on onclick event.
If the popup table depends on what the user enters in the parent window, then you may have to first submit the parent page so the value will be posted to the parent backing bean and then follow the above procedure.
You can access one backing bean from another; for more information, check out the Myfaces Wiki page

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