myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shi nong (JIRA)" <>
Subject [jira] Created: (MYFACES-980) the implementation problem of validation
Date Mon, 26 Dec 2005 09:28:30 GMT
the implementation problem of  validation 

         Key: MYFACES-980
     Project: MyFaces
        Type: Bug
  Components: Implementation  
    Versions: 1.0.9m9, 1.1.1    
    Reporter: shi nong

Recently I compare the Sun's JSF RI and Myfaces,   I found one problem of myfaces.

If you page has many input tags with validation , just like below 
           <h:inputText id="qc_1" value="#{tyjqj.indexNumber}" required="true">
	<f:validateLength minimum="4" maximum="8"/>
          <h:inputText id="qc_2" value="#{tyjqj.indexName}" required="true">
	<f:validateLength minimum="1" maximum="20"/>

when submit page,   and not every validation is passed,  the pre-input value in the return
page will be clear,  but in Sun's JSF Ri, only invalidated input is clear, and others are
remained.  I think remaining the correct value is a better choice,  consider the scene , if
one user type 20 fields, only one error,  but you clear all 20 fields,   it would make the
user boring. 

so , can myfaces provide a  flag or attribute to configure the behaviour style,  remain the
correct value or clear all.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message