aspose file tools
The moose likes JSF and the fly likes problems with validation with myfaces and jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "problems with validation with myfaces and jboss" Watch "problems with validation with myfaces and jboss" New topic
Author

problems with validation with myfaces and jboss

Karol Oslowski
Ranch Hand

Joined: Jul 22, 2005
Posts: 51
Dear All,

I'm developing an application using jboss, myfaces and ADF.

I'm trying to write a simple registration page. Two of the fields in the registration form are:

<af:panelLabelAndMessage for="passwdID" label="#{ msg.passwd}">
<h:inputSecret id="passwdID" value="#{reg.passwd}" rendered="true" maxlength="15" >
<x:validateEqual for="passwdVer"/>
</h:inputSecret>
</af:panelLabelAndMessage>

<af:panelLabelAndMessage label="#{msg.passwdVer}">
<h:inputSecret maxlength="15" id="passwdVer" />
</af:panelLabelAndMessage>

But the validateEqual doesn't work when you submit the form for the first time. The error message is:


The given value (leviaczek@gmail.com) is not equal with value of "emailVer".


When I submit the form for the second time it validates the input even if I input different values.

I would be grateful for any advice how to handle this problem..

It didn't work even when I was using only myfaces without ADF.

Kind Regards,
Karol Oslowski
Ranch Hand

Joined: Jul 22, 2005
Posts: 51
I allready solved this issue. The equalValidator had to be in the second input field not in the first - don't ask me why - but that's the advice I received at the myfaces mailing list and it's working..

Regards,

Karol Oslowski
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems with validation with myfaces and jboss
 
Similar Threads
login form on any page
Database connection with struts
javascript with JSF???
Can you post data from textfields to a URL without having a <form>
Auto Complete attribute in jsf ?