Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Validation
Validation [message #474948] Thu, 26 July 2007 13:31 Go to next message
Evgeny Morozov is currently offline Evgeny MorozovFriend
Messages: 4
Registered: July 2009
Junior Member
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 08:36 Go to previous message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
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 08:36 Go to previous message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
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).
Previous Topic:Validation
Next Topic:Add Managed Bean From Config Editor
Goto Forum:
  


Current Time: Sat Apr 20 00:46:32 GMT 2024

Powered by FUDForum. Page generated in 0.03392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top