Reputation: 10777
I have a form in my xhtml page, and I want one of the textboxes to be disabled. Here is my code:
<h:form>
<h:panelGrid columns="4" border="1">
<h:outputText value="User Name: "></h:outputText>
<h:inputText id="tUserName" disabled="disabled" value="#{user.customer.username}" />
</h:panelGrid>
</h:form>
But this texbox is not disabled. If I use normal html form instead of JSF form it works but I want to do it this way. How can I make it look disabled?
Upvotes: 0
Views: 405
Reputation: 6598
Change disabled="disabled"
to disabled="true"
Also you can use this tag reference when you're unsure
Upvotes: 4