Hi Mattihas,

I have read that article before, thanks. But I'm not doing something so dared.
This is part of wht is inside the tagfile.
...
<c:if test="${laBean.nombre1 == 'elegir'}">                             
<h:selectOneMenu id="selectNombre1" value="#{laBean.nombre1}">
<f:selectItems value="#{laBean.selectitems1}"/>
</h:selectOneMenu> 
</c:if>
<c:if test="${laBean.nombre1 != 'elegir'}">
<h:inputText id="Calle1" value="#{laBean.nombre1}" required="true">
<f:validateLength minimum="2" maximum="30"/>
</h:inputText>
</c:if>
...

So the first time I see the InputText . But after submitting I see the
inputText with the value "elegir" . Which Is clearly an error.


This stuff works fine when the tag is called outside a panelgrid!!


Thanks.

Michael







On 9/4/05, Matthias Weßendorf (JIRA) <[email protected]> wrote:
>     [ 
> http://issues.apache.org/jira/browse/MYFACES-488?page=comments#action_12322615
>  ]
> 
> Matthias Weßendorf commented on MYFACES-488:
> --------------------------------------------
> 
> Michael,
> 
> have you tried rendered attribute of inputText or selectXXXX instead of using 
> <c:if ?
> 
> There are some issues w/ jstl and face. For more on that perhaps you are 
> interested to read
> this article:
> 
> http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
> 
> > Weird re-rendered in tagfiles tags inside subviews inside aliasbean inside 
> > panelgrid.
> > -------------------------------------------------------------------------------------
> >
> >          Key: MYFACES-488
> >          URL: http://issues.apache.org/jira/browse/MYFACES-488
> >      Project: MyFaces
> >         Type: Bug
> >   Components: Implementation
> >     Versions: 1.0.10m10
> >  Environment: Tomcat5.0 debian kernel 2.6.11
> >     Reporter: Michael Jenik
> 
> >
> >  I have a panelgrid inside form, inside tagfile.
> > the tag is called by my jsp insida a IDed subview inside an aliasbean 
> > declaration.
> > Everything works almost fine in this way.
> > But the problem happens when I use all the other (aliasbea, subview, tag) 
> > inside a panelgrid.
> > To understand the problem I have to say that the form evaluates <c:if 
> > ${myBean.somethig}> to decide if it has to use an inputText or a 
> > selectoneMenu.
> > The first time the page is showd it looks fine.
> > But after submit, when I have to see the selectonemenu, I still see the 
> > inputText.
> > It seams like it's not re-redered the stuff.
> > Any required info. please ask.
> > Thanks in advance.
> 
> --
> 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
> 
>

Reply via email to