a4j:commandButton渲染不起作用的RichFaces 4

时间:2016-05-02 10:49:30

标签: jsf-2 richfaces ajax4jsf

请帮我看下面的代码,在a4j中:调用commandButton动作监听器方法,但它无法呈现输出。

<f:view>
<h:form id="leftContentForm" prependId="false">   
    <h5 align="center">Find a Cyclone</h5>
             <h:panelGrid columns="2">
                 <h:outputLabel> Start Latitude </h:outputLabel>
                 <h:selectOneMenu id="startLat" value="#{cycloneTrack.startLat}">
                     <f:selectItems value="#{dropDownValues.latValues}" />
                 </h:selectOneMenu>
                 <h:outputLabel> Stop Latitude </h:outputLabel>
                 <h:selectOneMenu id="stopLat" value="#{cycloneTrack.stopLat}">
                     <f:selectItems value="#{dropDownValues.latValues}" />
                 </h:selectOneMenu>
                 <h:outputLabel> Start Longitude </h:outputLabel>
                 <h:selectOneMenu id="startLon" value="#{cycloneTrack.startLon}">
                     <f:selectItems value="#{dropDownValues.lonValues}" />
                 </h:selectOneMenu>
                 <h:outputLabel> Stop Longitude </h:outputLabel>
                 <h:selectOneMenu id="stopLon" value="#{cycloneTrack.stopLon}">
                     <f:selectItems value="#{dropDownValues.lonValues}" />
                 </h:selectOneMenu>
                 <h:outputLabel> Start Date </h:outputLabel>
                 <rich:calendar inputSize="10%" />
                 <h:outputLabel> End Date </h:outputLabel>
                 <rich:calendar inputSize="10%" />
                 <a4j:commandButton type="submit" id="cyclonetrackButton" render="hiddenOutput" value="Cylone Track" onclick="cyclonetrackjs()" oncomplete="callImage()" actionListener="#{cycloneTrack.cycloneTrackPoints}">
                 </a4j:commandButton>
                 <h:inputText id="hiddenOutput" value="#{cycloneTrack.output}" ></h:inputText>
             </h:panelGrid>    
</h:form>
</f:view>  

0 个答案:

没有答案