You may have a type problem. Maybe the itemValue allows only Strings.
When you don't set immediate=true you will see an error in that case.
You can also use tc:selectItems with a class model. With that integer value should work.

The value for tc:attribute is the clientId of the component: This is the chain of all naming containers. On a simple page, you have only tc:page as naming container. Put id="page" then you need value="page:panel".
You can check the clientId in the HTML Source Code.

Am 19.03.10 19:40, schrieb Fernando Augusto:
Well...

Getting deeper in the problem, I've seen that the problem is in the ajax return, for it does not change the content of the box (or panel). I guess it is something related with the value passed as tc:attribute value. I've seen in a few tutorials and codes around, that addressing nested containers, you should use a long value, full of ":", but I couldn't understand that part...

Can someone help me with that???

Fernando Augusto escreveu:
Hello,

I´ve seen that the AJAX part works and the value changes, but the tx:date keeps hidden even with the right value... Any other newbie mistake in the code?

Regards,

Fernando Augusto

Helmut Swaczinna escreveu:
I think, yes, this should work too.

Helmut

Am 19.03.2010 15:58, schrieb ferna...@osmanager.com.br:
Helmut,

Can I do it with the tc:box they are inside?

Regards,

Fernando Augusto

Hi Fernando,

add a command tag to the selectOneChoice and enclose the selectOneChoice
and
date within a panel:

<tc:panel id="panel">

<tx:selectOneChoice ...
<f:facet name="change">
<tc:command>
<tc:attribute name="renderedPartially"
                      value="panel"/>
</tc:command>
</f:facet>
</tx:selectOneChoice>
<tx:date ...

</tc:panel>

Now the panel gets reloaded by Ajax, when the selection changes.

Regards
Helmut







Reply via email to