Hi

You should keep in mind that a disabled inputText won't send any value back.
You should use the disabledOnClientSide attribute instead.

On 2/27/07, Volker Weber <[EMAIL PROTECTED]> wrote:

Hi,

i think the problem is the direct controll to the nuevoPaciente
property by the selectBooleanCheckbox, in combination with the
component order in the uitree.

every update is skipped if the rendered evaluates to false. if the
nuevoPaciente property is updated by the selectBooleanCheckbox before
the inputTexts has updated the model, than the property has the wrong
state now.

You should change the rendered state by a action, not via updateModel
from selectBooleanCheckbox to ensure that the value did not change at
wrong time.

Regards,
  Volker

2007/2/27, anoe <[EMAIL PROTECTED]>:
>
> Hi all, I've got this two different inputTexts and a
selectBooleanCheckbox
> which controls which inputText is rendered, so in the rendered attribute
of
> the first inputText i've got this:
>
>        rendered="#{!addCitaHandler.nuevoPaciente}"
>
> and the same without the ! in the second inputText. Of course the
> nuevoPaciente property is controlled with the selectBooleanCheckbox. The
> rendering / not rendering stuff is working ok, but the second inputText
is
> not being updated when sending the form. In fact, it's not the second,
but
> the inputText which was not showing from the beginning. I've tried using
the
> disable attribute instead but it's not working either. If I don't use
> neither rendered nor disabled it works ok. Any idea what's up?
> --
> View this message in context:
http://www.nabble.com/rendered-and-disabled-attributes-not-setting-bean-properties-tf3300636.html#a9181393
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>




--
Best regards,
Laurentiu
www.codebeat.ro

Reply via email to