Pessoal alguem sabe se tem como fazer um modal sobre outro?? tipo eu quebro abrir um panel modal, e se licar em outro link dentro desse modal eu abro um modal dentro desse modal. .
valeus
Pessoal alguem sabe se tem como fazer um modal sobre outro?? tipo eu quebro abrir um panel modal, e se licar em outro link dentro desse modal eu abro um modal dentro desse modal. .
valeus
Tem sim. Pode fazer que funfa.
entao mas como… pq eu tentei fazer dando show no outro ele ficar por baixo. ja tentei mexer no zindex la e nada tbm
<rich:modalPanel id="mp" minHeight="143" minWidth="450" height="143" width="450" zindex="2000" styleClass="modal" resizeable="false">
<f:facet name="header">
<h:outputText value="#{contractMessages.action_title}" />
</f:facet>
<h:form id="form2">
<table width="100%" align="center" border="0">
<tr>
<td width="80">
<h:outputText value="#{contractMessages.action}:" />
</td>
<td colspan="3">
<h:selectOneMenu id="actionType" value="#{contractController.contractActionVO.actionTypeVO.id}" required="true" label="#{contractMessages.action}" style="width:92%;">
<f:selectItem itemLabel="" itemValue=""/>
<t:selectItems value="#{contractController.listActionTypeVO}" var="actionTypeVO" itemLabel="#{actionTypeVO.description}" itemValue="#{actionTypeVO.id}" />
</h:selectOneMenu>
<a href="#" onclick="Richfaces.showModalPanel('modalType',{width:450, top:250})">
<h:graphicImage value="/images/addsmall.gif" alt="#{contractMessages.newType}" />
</a>
</td>
</tr>
<tr>
<td width="80">
<h:outputText value="#{contractMessages.executed}:" />
</td>
<td width="20">
<h:selectBooleanCheckbox id="chkExec" value="#{contractController.contractActionVO.executed}" />
</td>
<td width="110" align="right">
<h:outputText value="#{contractMessages.execute}:" />
</td>
<td width="137">
<h:inputText id="dtExec" maxlength="10" style="width:100%;" onkeypress="return returnNumber(event);" onkeyup="format(this,'#{commonsMessages.date_pattern}');" value="#{contractController.contractActionVO.dtExecuted}" >
<f:convertDateTime pattern="#{commonsMessages.date_pattern}" timeZone="#{contractController.timeZone}"/>
</h:inputText>
</td>
</tr>
</table>
<rich:panel styleClass="mdbuttons">
<a4j:commandButton value="#{commonsMessages.button_add}" oncomplete="windowclose(2,'mp');" action="#{contractController.doSaveAction}" reRender="actionList,dtExec,chkExec,actionType,pag" image="/images/ok.gif" alt="#{commonsMessages.button_add}"/>
<rich:spacer width="20" />
<a4j:commandButton value="#{commonsMessages.button_cancel}" immediate="true" oncomplete="Richfaces.hideModalPanel('mp')" action="#{contractController.doCleanModal}" image="/images/cancel.gif" alt="#{commonsMessages.button_cancel}"/>
</rich:panel>
<rich:panel styleClass="messages_modal">
<a4j:outputPanel ajaxRendered="true">
<h:messages id="error2" layout="list" showDetail="true" showSummary="false" />
</a4j:outputPanel>
</rich:panel>
</h:form>
</rich:modalPanel>
Verifique que na linha 16 eu chamo outro modal.