h:inputtext readonly returning null into the backing bean

View: New views
1 Messages — Rating Filter:   Alert me  

h:inputtext readonly returning null into the backing bean

by jjman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does anybody know an workaround for the issue I have:



jsf

<h:inputText id="username" value="#{userBean.user.username}" readonly="true" />



and when I submit the page, even if username property had a value it submits "null"



Is there an workaround?

All I need is to show the property but to prevent the user changing it



Thanks