Now it is starting to look like a bug to me. Here is a bit more info.

During the decode phase,
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils.isDisabledOrReadOnly()
method is used to determine if the component for the input field is
disabled. The check is done like this:
isTrue(component.getAttributes().get("disabled"))

However, during the encode stage, we never set setDisabled(true) on the
component! We simply rendered it as disabled in
HtmlRendererUtils.internalRenderSelect(). Therefore the decode phase doesn't
know that the component is disabled and thus sets the submittedValue to
null, which leads to erroneous validation and model update. 

I will enter this info into JIRA.
--
View this message in context: 
http://www.nabble.com/Problem-with-enabledOnUserRole-t1763951.html#a4801320
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to