I print out the value to the screen to make sure it is not empty. It
evaluates to true when I would expect it to and to false at other times. But
even when it is true it does not affect the inputText boxes. I also use jstl
tags throughout the page, so I am pretty sure the c taglib is defined.
Dennis Byrne wrote:
>
>>I am trying to use the disabled attribute on some inputText boxes in my
>>application. However, everytime I try to use a binding like this
>><h:inputText disabled="#{mybackingBean.disabled}" />
>
> In both JSP and JSF,
> #{backingBeanThatDoesNotExist.propertyThatDoesNotExist} will not throw an
> exception; it will default to 'false'. Whenever I find myself in your
> situation I double check expression path.
>
>>nothing happens. disabled is a Boolean field in the backing bean. I assume
>>it would auto translate to a string, but it doesnt appear to. I then tried
>>using JSTl to set a value a page scoped variable
>><c:set name="disabled" value="true"/>
>>This does not work either when I change my input box to this
>><h:inputText disabled="#{disabled}"/>
>
> Perhaps you have not included the c taglib header in the JSP file? The
> page will silently skip the c:set tag in this case.
>
> Dennis Byrne
>
>
>
>
--
View this message in context:
http://www.nabble.com/Disabled-with-value-binding-expression-tf2546998.html#a7098448
Sent from the MyFaces - Users mailing list archive at Nabble.com.