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"/>