You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Boryana Chavkova (JIRA)" <de...@myfaces.apache.org> on 2009/05/19 15:57:45 UTC

[jira] Created: (TOMAHAWK-1423) title:validateRegExpr with a4j:support does not display Summary message

title:validateRegExpr with a4j:support does not display Summary message
-----------------------------------------------------------------------

                 Key: TOMAHAWK-1423
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1423
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Validators
    Affects Versions: 1.1.8
            Reporter: Boryana Chavkova


When I am using validateRegExpr from version 1.1.8 and a4j tag library, custom summary message and detail message don't display.
 I debuged ValidationBase.class and found that getStringValue(FacesContext context, ValueExpression vb) returns null when invoke "onblur", but when submit the form this returns correct value.

This is the code:

<t:panelGroup id="fullNamePanel">
      <t:inputText id="fullName" forceId="true" value="#{mAdultSignUpBean.adult.bcard.fullName}" required="true">
                   <t:validateRegExpr pattern="[a-zA-Z-\. ]{1,120}"  summaryMessage="#{error['format.fullname']}" "/>
                    <a4j:support event="onblur" reRender="fullNamePanel" ajaxSingle="true"/>
        </t:inputText>
        <t:message for="fullName" styleClass="errormsg" showDetail="true" />
</t:panelGroup>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-1423) title:validateRegExpr with a4j:support does not display Summary message

Posted by "Christian Kaltepoth (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712437#action_12712437 ] 

Christian Kaltepoth commented on TOMAHAWK-1423:
-----------------------------------------------

Which way do you use to declare you message bundle and which JSF version are you using?

If you are on JSF 1.1 you must use <a4j:loadBundle> instead of <f:loadBundle> to reference bundle messages during ajax re-rendering.

See:

http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/a4j_loadBundle.html


> title:validateRegExpr with a4j:support does not display Summary message
> -----------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1423
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1423
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Validators
>    Affects Versions: 1.1.8
>            Reporter: Boryana Chavkova
>
> When I am using validateRegExpr from version 1.1.8 and a4j tag library, custom summary message and detail message don't display.
>  I debuged ValidationBase.class and found that getStringValue(FacesContext context, ValueExpression vb) returns null when invoke "onblur", but when submit the form this returns correct value.
> This is the code:
> <t:panelGroup id="fullNamePanel">
>       <t:inputText id="fullName" forceId="true" value="#{mAdultSignUpBean.adult.bcard.fullName}" required="true">
>                    <t:validateRegExpr pattern="[a-zA-Z-\. ]{1,120}"  summaryMessage="#{error['format.fullname']}" "/>
>                     <a4j:support event="onblur" reRender="fullNamePanel" ajaxSingle="true"/>
>         </t:inputText>
>         <t:message for="fullName" styleClass="errormsg" showDetail="true" />
> </t:panelGroup>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.