• 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

How to reuse the (jsf) richfaces Modal panel dialog box?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my application i have implemented the employee search functionality using richfaces 3.3 modal panel using facelets. i am trying to make this reusable across to my application, so i have added the following code under facelet-taglib_1_0.xml

xhtml page contains below components 1. search input field 2. search button 3. result richfaces datatable and also i have mapped the backing bean.

my question is,
1. i am not able to get the value from the **search input field**
2. Above approach is correct or any other better approach for this

please suggest
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have named it correctly. It's a modal panel and not a modal dialog and that means that the panel variables aren't setup and used when the panel is displayed. they're set up when the page containing (or including) the panel is displayed.

That's probably the root of your problem. I'm not quite sure of the exact issue you're having, since you haven't provided enough details. But, going the other direction, a panel is (must be) in a form, and the form is in its containing view (which is why the panel definition has to be outside of any background forms, since forms can't be nested). To update the backing bean, that form has to be submitted, and the only way to submit without re-rendering the dialog's containing page is to do an AJAX submit of the panel's from.

A bit trickier than "real" dialog boxes, alas.
reply
    Bookmark Topic Watch Topic
  • New Topic