inputText readonly field not updating backing bean

I'm using a readonly inputText in conjunction with a popup calendar and the setter in the backing bean for the inputText is not being called. I had thought that previously it was being called, but I'm not sure.

I updated my version of the 1.2 RI a couple months ago, so is this standard JSF behavior or is it implementation-specific? I mostly understand why logically, the property wouldn't be updated, but there are cases like this where you might update the readonly field programmatically.

I know that I can work around it by having a hidden field mapped to the same property.

Thanks.

Message was edited by:

steves8293

[663 byte] By [steves8293a] at [2007-10-3 11:22:35]
# 1

Hi,

This is the intended behaviour when working with read only text fields or disabled text fields. It's because of security issues so that a user shouldn't be able to submit the field value to the backing bean even if he makes "his own" http request with a new value for the input field. If he does the backing bean property isn't going to be updated.

/klejs

klejsa at 2007-7-15 13:47:56 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...