关于commandButton的JSF 1.2问题

时间:2013-05-27 13:40:14

标签: jsf monitor managed

JSF 1.2 CommandButton无法正常工作

<h:dataTable first="0" rows ="#{aptMgmtUIHandler.usocsOnFirstPanel}"
value="#{aptMgmtUIHandler.appt.usocList}" cellspacing = "3" var="usoc">
<h:column>
<h:outputText value="#{usoc.displayName}"></h:outputText>
<h:outputLabel value=":"></h:outputLabel>
</h:column>                                 
<h:column rendered="#{usoc.displayName eq 'Ethernet Tech Install (1CRMM)'}">            
<h:selectOneMenu value="#{usoc.usocQuantity}" style="height:22px"
rendered="#{usoc.booleanType}">
<f:selectItem itemLabel="NO" itemValue="#{aptMgmtUIHandler.no}" />
<f:selectItem itemLabel="YES" itemValue="#{aptMgmtUIHandler.yes}" />
</h:selectOneMenu>

<h:inputText value="#{usoc.usocQuantity}" style="height:17px"
rendered="#{!usoc.booleanType}"
onchange="return isNumeric(this.value, '#{usoc.displayName}')">
</h:inputText>
</h:column>

<h:column rendered="#{usoc.displayName ne 'Ethernet Tech Install (1CRMM)'}">            
<h:selectOneMenu value="#{usoc.usocQuantity}" style="height:22px"
rendered="#{usoc.booleanType}" >
<f:selectItem itemLabel="NO" itemValue="#{aptMgmtUIHandler.no}" />
<f:selectItem itemLabel="YES" itemValue="#{aptMgmtUIHandler.yes}" />
</h:selectOneMenu>

<h:inputText value="#{usoc.usocQuantity}" style="height:17px"
rendered="#{!usoc.booleanType}"
onchange="return isNumeric(this.value, '#{usoc.displayName}')">
</h:inputText>
</h:column>

</h:dataTable>

<h:commandButton id="nextAdd" value="Next" styleClass="button" 
action="#{aptMgmtUIHandler.getCalendarFromCTS}"></h:commandButton>

xml中的My Bean Scope是会话。点击按钮后它没有调用backbean方法。 它没有显示任何错误消息。删除渲染后,调用方法。

0 个答案:

没有答案