modalPanel does not popup
chakri_jboss Sep 24, 2010 3:49 AMthe modal panel does not popup or it appears for a second and disappears. i uses oncomplete, onclick a4j:commandButton all possible options i known. pls some one known of this help me.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body>
<ui:composition template="/Pages/templates/template.xhtml">
<ui:define name="loginContent">
<!-- Modal Panel Wizard -->
<a4j:form id="wizardForm">
<rich:modalPanel id="wizard">
<f:facet name="header">New Picture</f:facet>
<f:facet name="controls">
<h:panelGrid>
<a4j:commandButton value="Close" action="closeWizard"
onclick="Richfaces.hideModalPanel('wizard');" />
</h:panelGrid>
</f:facet>
this is workspace
</rich:modalPanel>
</a4j:form>
<h:form>
<h:panelGrid columns="2">
<h:outputText value="Successfully Logged in!"></h:outputText>
<h:commandLink value="Proceed" action="continue"></h:commandLink>
<rich:tabPanel switchType="ajax" style="height:500px;width=700px">
<rich:tab label="Home">
Welcome User!
<br />
<h:outputLabel value="#{message}" />
</rich:tab>
<rich:tab label="Account">
<rich:panel header="Profile Picture">
<a4j:commandButton
onclick="Richfaces.showModalPanel('wizard',{width:300,height:200});"
action="startWizard" value="AddPicture" reRender="wizardForm" />
</rich:panel>
</rich:tab>
</rich:tabPanel>
</h:panelGrid>
</h:form>
</ui:define>
</ui:composition>
</body>
</html>
i dnt get where its going wrong and i am waiting for a solution since last 2 days.
THANK YOU.