Validation [message #474948] |
Thu, 26 July 2007 09:31  |
Eclipse User |
|
|
|
Hi!
I have some problem and I hope somebody can help me. So...
I have a page with a great <h:form> like this:
<html>
<body>
<h:form>
<h:inputText ... name of my cat />
<h:inputText ... type of food />
<h:commandButton ... to select type of food from another page />
</h:form>
</body>
</html>.
So, on this page a have some fields and values for these fields I want to get
from list values. So I have a button near by my fields and want to go to new
page, that render the dynamic list of values for my fields.
But, on my fields I have a validators and when I press the buttons validation is
working and null values in my fields is not proper values, so my page just
reload and I can't to see dynamic list.
But there is more... if I use immediate attribute, I can't to save another field
value. For example, I wrote onto one field the name of my cat and want to select
type of food for my cat. So if I will use immediate attribut, the name of my cat
will be lose.
Is there any way to use validators and create dynamic lists of values?
Thanks for your attention.
|
|
|
Re: Validation [message #474949 is a reply to message #474948] |
Fri, 27 July 2007 04:36  |
Eclipse User |
|
|
|
if not going into excessive details, you have 2 options: either display
mentioned list in some popup window or use custom validation methods on
h:inputText (i.e. validate "required" constraint in custom method only
when you finally submit the form with values from that dynamic list).
|
|
|
Re: Validation [message #613251 is a reply to message #474948] |
Fri, 27 July 2007 04:36  |
Eclipse User |
|
|
|
if not going into excessive details, you have 2 options: either display
mentioned list in some popup window or use custom validation methods on
h:inputText (i.e. validate "required" constraint in custom method only
when you finally submit the form with values from that dynamic list).
|
|
|
Powered by
FUDForum. Page generated in 0.05532 seconds