Возможно ли каким-либо образом отобразить h: inputText между selectItems из p: selectManyCheckbox?h: inputText между p: selectManyCheckbox items
То, что я хотел бы иметь это:
- CheckBox1
- checkbox2
- inputTextIfCheckbox2IsMarked (отключена, если не отмечен ..)
- Флажок 3
- Флажок 4
Я знаю, как сделать включение/выключение и т. но за пределами selectItems. Я бы хотел сказать это между ними.
Возможно ли это на некотором пути?
Мое решение (с inputText не между selectItems):
<h:panelGrid columns="2">
<p:selectManyCheckbox converter="otherAdmissionReasonConverter"
id="otherAdmissionReasonCheckbox"
value="#{potentialDonorFileBackingBean.potentialDonorFile.generalPatientInformation.otherAdmissionReasons}"
layout="grid" columns="1">
<f:selectItems value="#{patientInformationBackingBean.otherAdmissionReasons}"
var="otherAdmissionReason"
itemValue="#{otherAdmissionReason}"
itemLabel="#{msgs['ar.'.concat(otherAdmissionReason)]}"/>
<p:ajax update="customAdmissionReasonGrid"/>
</p:selectManyCheckbox>
<h:panelGroup id="customAdmissionReasonGrid"
styleClass="customAdmissionReason">
<p:inputText id="customAdmissionReason"
disabled="#{!potentialDonorFileBackingBean.potentialDonorFile.generalPatientInformation.otherAdmissionReasonChecked()}"
value="#{potentialDonorFileBackingBean.potentialDonorFile.generalPatientInformation.customAdmissionReason}"/>
</h:panelGroup>
</h:panelGrid>
PrimeFaces: 5,2