0

I want to use readonly and require=true in inputtext. However, require doesn't work with readonly. I tried some solution for example; readonly="#{facesContext.currentPhaseId.ordinal eq 6}" and readonly="#{not facesContext.postback or facesContext.renderResponse}". These work the first time and then they doesn't work. What do I do for this situation?

<p:inputText value="#{userFilterBean.selectedData.fullName}" id="txtUser" readonly="true" required="true" styleClass="Wid100"/>   
Mad Physicist
  • 107,652
  • 25
  • 181
  • 264

1 Answers1

1

you should use below

readonly="true" required="true"

to

readonly="#{facesContext.renderResponse}" required="true"

Reference

Ömer Faruk Kurt
  • 500
  • 3
  • 14