You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2006/02/06 14:17:05 UTC

[jira] Closed: (MYFACES-1091) Problem with validators and immediate

     [ http://issues.apache.org/jira/browse/MYFACES-1091?page=all ]
     
Martin Marinschek closed MYFACES-1091:
--------------------------------------

    Fix Version: Nightly
     Resolution: Invalid
      Assign To: Martin Marinschek

> Problem with validators and immediate
> -------------------------------------
>
>          Key: MYFACES-1091
>          URL: http://issues.apache.org/jira/browse/MYFACES-1091
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.1.1
>  Environment: Windows XP - P IV 3.0 HT with 1GB of ram running on JBoss 4.0.3SP1 inside eclipse 3.1.2
>     Reporter: Dyego Souza Dantas Leal
>     Assignee: Martin Marinschek
>     Priority: Critical
>      Fix For: Nightly

>
> The bug is very strange , i have a form to include a new user... but the form have a selectOneMenu with two options "1-Insdustry / 2 - Home" , if i select the Industry option , the form open two new inputTexts to addtional informations:
> 	       <h:selectOneMenu id="tipo" value="#{webeugUsuario.formbean.tipocadastro}" onchage="submit" immediate="true">
> 		          <f:selectItems value="#{webeugUsuario.tiposCadastro}" />
>                </h:selectOneMenu>
>                <h:outputText value="Industry Name" rendered="#{webeugUsuario.formbean.cadastroInstituicao}"/>
>  	       <h:inputText id="instituicao" rendered="#{webeugUsuario.formbean.cadastroInstituicao}" required="true" value="#{webeugUsuario.formbean.nomeInstituicao}"/>
> 		<h:message for="instituicao" rendered="#{webeugUsuario.formbean.cadastroInstituicao}" styleClass="error"/>
>             
>                <h:outputText value="Industry Id" rendered="#{webeugUsuario.formbean.cadastroInstituicaoId}"/>
>  	       <h:inputText id="instituicaoId" rendered="#{webeugUsuario.formbean.cadastroInstituicao}" required="true" value="#{webeugUsuario.formbean.nomeInstituicaoId}"/>
> 		<h:message for="instituicaoId" rendered="#{webeugUsuario.formbean.cadastroInstituicao}" styleClass="error"/>
>             <h:outputText value="Nome"/>
>  			   <h:inputText id="nome" required="true" value="#{webeugUsuario.formbean.nome}">
> 			       <f:validateLength minimum="5"/>
> 			   </h:inputText>	
> 			<h:message for="nome" styleClass="error"/>
> the field Name always rendered, of course , this field is mandatory , If the selectOneMenu has change , page change , but ,  the name field show a validator error:
> "field 'name' has no value"
> Of course... i'm not adding new user... just change type of user... i put the immediate option in selectOneMenu , but has no effect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira