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
  • 95,415
  • 23
  • 151
  • 231

1 Answers1

0

you should use below

readonly="true" required="true"

to

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

Reference

Ömer Faruk Kurt
  • 440
  • 3
  • 12