我想在JSF modalPanel中提供一个帮助。
这是我的modalPanel代码:
<rich:modalPanel id="createManagedObject" moveable="false" autosized="true" width="500" rendered="true" domElementAttachment="form">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Create Managed Object"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:outputLink onclick="#{rich:component('createManagedObject')}.hide(); return false;">
X
</h:outputLink>
</f:facet>
<br/>
<h:outputLabel style="color: #0033CC;" value="Total Child MOs supported : " />
<h:outputText style="color: #0033CC;" value="#{CMBrowserBean.totalNumberOfArrayChildObjects}" />
<br /><br />
[b]<h:selectOneMenu immediate="true" valueChangeListener="#{CMBrowserBean.valueChangedForMOC}" id="childObjectComboBox">
<f:selectItem itemLabel="Select..." noSelectionOption="true"/>
[color=red]<f:selectItems value="#{CMBrowserBean.containedMOCs}" />[/color]
</h:selectOneMenu>[/b]
<br /><br />
[b]<h:outputLabel value="Instance : " />
<h:inputText id="InstanceNameValue" value="#{CMBrowserBean.instanceId}" size="20" disabled="false" />[/b]
<rich:columnGroup id="CMColumnGroupForPopUP" >
<rich:column id="CMColumnGroupForPopUPColumn1" styleClass="parentBrowserColumn" render="true" >
<rich:spacer height="10" />
<div style="text-align: center;">
[b]<a4j:commandButton action="#{CMBrowserBean.createMOAction}" id="childObjectPopUpSave" [color=red]value="Save"[/color]
reRender="CMTreeBrowserForm,CMAttributeBrowserForm,CMAttributeBrowserDescriptionForm,messagePanel"
oncomplete="#{rich:component('createManagedObject')}.hide(); return false; " rendered="true"
type="submit">
</a4j:commandButton>[/b]
<rich:spacer width="10" />
<a4j:commandButton id="childObjectPopUpCancel" value="Cancel" oncomplete="#{rich:component('createManagedObject')}.hide();return false;" />
</div>
</rich:column>
</rich:columnGroup>
</rich:modalPanel>
如上面的代码所示:
我在ModalPanel中有以下组件:
1)ComboBox 2)实例 3)保存并取消
我想在这里进行一些验证:
例如:
请有人帮助我......
此致 Avinash Bhat