[richfaces-issues] [JBoss JIRA] Created: (RF-11245) Metamer: rich:autocomplete bean validation (jsr303) doesn't work correctly on ajax events/submit

Ján Jamrich (JIRA) jira-events at lists.jboss.org
Tue Aug 9 16:06:24 EDT 2011


Metamer: rich:autocomplete bean validation (jsr303) doesn't work correctly on ajax events/submit
------------------------------------------------------------------------------------------------

                 Key: RF-11245
                 URL: https://issues.jboss.org/browse/RF-11245
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.1.0.Milestone1
         Environment: RichFaces 4.1.0.20110805-M1 r.10246d45dddd1d2aa2034317d5a832394cc919f9
Metamer 4.1.0.20110805-M1 r.22604
Apache MyFaces JSF-2.1 Core Impl 2.1.1
JBoss AS 6.0.0.Final
Java(TM) SE Runtime Environment 1.6.0_26-b03 @Linux
Chrome 12.0.742.112 @ Linux i686
            Reporter: Ján Jamrich


Example for bean validation (according to JSR303) in Metamer doesn't work correctly.

Firstly, validation for inputs is fired on blur event, but no FacesMessage is displayed. Only in log appear following exception (full log will be attached):

2011-08-09 21:56:13,173 SEVERE [org.richfaces.log.Context] (http-127.0.0.1-8080-12) list: java.lang.NullPointerException: list
	at javax.faces.model.ListDataModel.<init>(ListDataModel.java:45) [:2.1.1]
	at org.richfaces.renderkit.AutocompleteRendererBase.getItems(AutocompleteRendererBase.java:136) [:4.1.0.20110805-M1]

Then, if a4j:commandButton used to submit form, no FacesMessage is displayed, but following records appears in AS log:


2011-08-09 22:03:58,260 WARNING [org.apache.myfaces.lifecycle.RenderResponseExecutor] (http-127.0.0.1-8080-11) There are some unhandled FacesMessages, this means not every FacesMessage had a chance to be rendered.
These unhandled FacesMessages are: 
- form:input1: may not be empty
- form:input2: must match "[a-z].*"
- form:input3: size must be between 3 and 6
- string is not "RichFaces"


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list