我有复选框数据表,第一列是复选框,第二列和其他输出文本,但最后一列是输入文本(密码)和此列disabled="false"
,现在我想如果单击复选框,此列更改disabled="true"
,我该如何解决?
<h:body>
<p:dataTable var="car" value="#{regularityController.stlist}" paginator="true" rows="10" rowKey="#{car.g_student_no}"
selection="#{regularityController.select}" >
<f:facet name="header">
Telebeleri secin
</f:facet>
<p:column selectionMode="multiple" style="width:18px" />
<p:column headerText="Name">
<h:outputText value="#{car.s_name}" />
</p:column>
<p:column headerText="Surname" >
<h:outputText value="#{car.s_surname} " />
</p:column>
<p:column headerText="Father Name">
<h:outputText value="#{car.s_fname} " />
</p:column>
<p:column headerText="Father Name">
<p:password disabled="#" value="#{car.s_pass }"/>
</p:column>
<f:facet name="footer">
<p:commandButton value="ddd" action="#{regularityController.saveStudent()}"/>
</f:facet>
</p:dataTable>
</h:body>