h:表单动作第二个丰富:modalPanel无法正常工作可能出错?

时间:2015-02-23 05:06:59

标签: jsf richfaces jsf-1.2

我使用的是旧版本的JSF - (faces-config version =" 1.2")。所以我想很多很棒的东西都没有了。

我正在使用单个XHTML页面为我的小应用程序执行所有操作。我有两个丰富的:modalPanel。两者都有一个h:形式。我能够调用第一个Modal的表单动作(比如面板1),但是第二个模态(面板2)的类似外观似乎根本不起作用。它按预期弹出,但只是点击服务器端操作。

//This is the code that calls the modal window
<a:commandButton value="Add Code to Group" reRender="addActivityCodePanel"
    oncomplete="#{rich:component('addActivityCodePanel')}.show()"/>


(//This works )
    <rich:modalPanel id="addActivityCodePanel" autosized="true" resizeable="false" moveable="false" shadowDepth="0" domElementAttachment="parent">
            <f:facet name="header">Add a new Activity Code</f:facet>
            <h:form id="addActivityCodeForm">
                <table id="addActivityCodeTable" border="0" cellspacing="0" cellpadding="4">
                        <tr class="tableHeader">
                            <th align="left" width="50px">&nbsp;</th>
                            <th align="left" width="50px">Activity Code Group</th>
                            <th align="left" width="50px">Key</th>
                            <th align="left" width="100px">Name</th>
                            <th align="left" width="300px">Detailed Description </th>
                            <th align="left" width="600px">Are Days Required?</th>
                        </tr>
                        <tr>
                            <td align="left" valign="top" width="50px">&nbsp;</td>
                            <td align="left" valign="top" width="50px">#{activityStatusAdmin.strSelectedGroup}</td>
                            <td align="left" valign="top" width="50px"><h:inputText id="addActivityCodeKey" value="#{activityStatusAdmin.addBpmActivityCodes.bpmActivityCodeKey}"/></td>
                            <td align="left" valign="top" width="100px"><h:inputText id="addActivityCodeName" value="#{activityStatusAdmin.addBpmActivityCodes.bpmActivityCodeDesc}"/></td>
                            <td align="left" valign="top" width="300px"><h:inputText id="addActivityCodeDesc" value="#{activityStatusAdmin.addBpmActivityCodes.bpmActivityCodeDefinition}"/></td>
                            <td align="left" valign="top" width="600px"><h:selectBooleanCheckbox id="addActivityCodeDays" value="#{activityStatusAdmin.addBpmActivityCodes.isDaysRequired}"/></td>
                        </tr>                           
                        <tr>
                            <td colspan="6"><hr color="#003399" size="1px"/></td>
                        </tr>
                </table>
                <table align="center">
                    <tr>
                    <td><h:commandButton id="SaveCode" value="Save" action="#{activityStatusAdmin.saveNewActivityCode}" oncomplete="#{rich:component('addActivityCodePanel')}.hide()" reRender="paramsPanel" /></td>
                    <td><a:commandButton id="CancelCode" value="Cancel" type="reset" oncomplete="#{rich:component('addActivityCodePanel')}.hide()"/></td>
                    </tr>
                </table>
            </h:form>
        </rich:modalPanel>

0 个答案:

没有答案
相关问题