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
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.
Customer surveys are for companies who didn't pay proper attention to begin with.