Value not setting to bean....

Hi,

i am implementing employee search page. i have one textfield and a submit button, when i click on submit, my bean is searching for employee meeting the search criteria and returned to the same page. i am using datatable to display the list. when i gave a string and click on submit.it is working fine.

problem is ... when i enter nothing in the textfield and click on subit, it is still showing the old result, not going to the bean where i have the logic to display all employees details.

please suggest to do something.

Thanks in advannce.

[577 byte] By [narayanasgsa] at [2007-11-27 6:18:03]
# 1
So the bean is in the session scope and you have set the 'required' attribute of the input field to 'true' ?
BalusCa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi Balu Thanks for reply, Yes the bean is in session scope, but the textfield required property is not set. any idea on this ?
narayanasgsa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
If the 'required' attribute is not set, then this should just go to the backing bean action logic. But it apparently doesn't even?Add h:message to the h:form and check if you will get an validation error.
BalusCa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
i could solve this, Thank u balu.
narayanasgsa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Can you share the exact cause and solution?
BalusCa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
as you said, the required property is set to true. i did remove that and now it is working as per my requirement. Thanks for your help.
narayanasgsa at 2007-7-12 17:31:42 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...