myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: Validation Messages despite immediate Attribute
Date Tue, 25 Oct 2005 21:08:02 GMT
Immediate=true doesn't skip validation for contacttype.   It merely
validates contacttype before it validates any other component (at the
end of the apply values phase instead of during the process validation
phase).

Also, did you also specify immediate=true for the UICommand component
that submits the form?

On 10/20/05, andreas.mitter@magnasteyr.com
<andreas.mitter@magnasteyr.com> wrote:
>
>
> I have a SelectOneRadio Button with a ValueChangeListener...
> Although I have an immediate=true Attribute, I get Validation messages for
> the Required Input Fields?
>
> How could this be? Have I done anything wrong?
>
> Here is my Code snippet:
> <table>
>         <tr>
>                 <td>
>                         <h:selectOneRadio id="contacttype"
> value="#{newPartnerDto.contacttype}"
> rendered="#{newPartnerDto.showContacttypes}" immediate="true"
> required="true" onchange="submit()"
> valueChangeListener="#{newPartnerDto.selectprimary}" >
>
>                                 <f:selectItems
> value="#{queryHelper.contacttypes}" />
>                         </h:selectOneRadio>
>                 </td>
>         </tr>
> </table>
> <br />
> <table class="smalltable">
>         <tr class="kopf">
>                 <td><h:outputText value="#{msg.tablename}" /></td>
>                 <td><h:outputText value="#{msg.tabletelefon}" /></td>
>                 <td><h:outputText value="#{msg.tablefax}" /></td>
>                 <td><h:outputText value="#{msg.tableemail}" /></td>
>         </tr>
>         <tr class="ungerade">
>
>                 <td><h:inputText id="name"
> value="#{newPartnerDto.contactname}"
>                                         styleClass="mustfield"
> required="true" />
>                 </td>
>                 .....
>                 <td><h:inputText id="email" value="#{newPartnerDto.email}"
>                                         styleClass="mustfield"
> required="true">
>                                         <t:validateEmail />
>
>                         </h:inputText>
>
>                 </td>
>         </tr>
>         <tr>
>                 <td class="errormessagewhite"><h:message for="name" /></td>
>                                 <td></td>
>                                 <td></td>
>                 <td class="errormessagewhite"><h:message for="email" /></td>
>         </tr>
> </table>
>
> THX FOR HELP
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify your system manager.
> This footnote also confirms that this email message has been swept for the
> presence of computer viruses.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

Mime
View raw message