- This topic has 1 reply, 2 voices, and was last updated 16 years, 2 months ago by Loyal Water.
-
AuthorPosts
-
gilducretMemberHello,
I’m new with icefaces and started to use it recently. I need to have a modal popup dialog.
I used the advanced popup tutorial, with the exception that I used modal=”true”.
My problem is that the popup is displayed twice! Except that it is running ok. Could somebody help please?
Code follows
Cheers
Gilles
<?xml version=”1.0″ encoding=”ISO-8859-1″ ?>
<jsp:root version=”1.2″
xmlns:jsp=”http://java.sun.com/JSP/Page”
xmlns:f=”http://java.sun.com/jsf/core”
xmlns:h=”http://java.sun.com/jsf/html”
xmlns:ice=”http://www.icesoft.com/icefaces/component”>
<jsp:directive.page contentType=”text/html;charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″ />
<f:view>
<ice:outputDeclaration
doctypeRoot=”html”
doctypePublic=”-//W3C//DTD HTML 4.01 Transitional//EN”
doctypeSystem=”http://www.w3.org/TR/html4/loose.dtd” />
<html>
<head>
<title>ICEfaces, Ajax for Java EE</title>
<link rel=”stylesheet” type=”text/css” href=”./xmlhttp/css/xp/xp.css”/>
</head>
<body><ice:dataTable border=”1″ value=”#{bookMenuHandler.allBooks}” var=”book” width=”100%”>
<ice:column id=”column1″>
<f:facet name=”header”>
<ice:outputText value=”Titre”></ice:outputText>
</f:facet>
<ice:outputText value=”#{book.title}”></ice:outputText>
</ice:column>
<ice:column id=”column2″>
<f:facet name=”header”>
<ice:outputText value=”Auteur”></ice:outputText>
</f:facet>
<ice:outputText value=”#{book.authorName}”></ice:outputText><ice:outputText value=”#{book.authorArea.name}”></ice:outputText>
</ice:column>
<ice:column id=”column3″>
<f:facet name=”header”>
<ice:outputText value=”Editeur”></ice:outputText>
</f:facet>
<ice:outputText value=”#{book.editorName}”></ice:outputText>
<ice:outputText value=”#{book.editorArea.name}”></ice:outputText>
</ice:column>
<ice:column id=”column4″>
<f:facet name=”header”>
<ice:outputText value=”Actions”></ice:outputText>
</f:facet><ice:form id=”orderBook” style=”width: 45%;”>
<ice:commandButton value=”Commander” action=”#{bookMenuHandler.openPopup}” rendered=”#{not bookMenuHandler.visible}”/>
<ice:panelPopup visible=”#{bookMenuHandler.visible}” modal=”true” style=”z-index:1001; width: 200px;”>
<f:facet name=”header”>
<ice:panelGrid width=”100%” cellpadding=”0″ cellspacing=”0″ columns=”2″ style=”text-align: center;”>
<ice:outputText style=”color: #FFFFFF;” value=”Commande”/>
<ice:commandButton image=”images/close_3.gif” action=”#{bookMenuHandler.closePopup}” title=”Fermer”/>
</ice:panelGrid>
</f:facet><f:facet name=”body”>
<ice:panelGrid width=”100%” cellpadding=”0″ cellspacing=”0″ columns=”2″>
<ice:outputText value=”Livre:”/>
<ice:outputText value=”#{bookMenuHandler.selected.title}”/>
<ice:outputText value=”Quantité:”/>
<ice:inputText value=”#{bookMenuHandler.orderQuantity}”/>
<ice:commandButton action=”#{bookMenuHandler.orderBook}” value=”Commander”/>
<ice:commandButton action=”#{bookMenuHandler.closePopup}” value=”Annuler”/>
</ice:panelGrid>
</f:facet></ice:panelPopup>
</ice:form></ice:column>
</ice:dataTable></body>
</html>
</f:view>
</jsp:root>
Loyal WaterMemberWe are sorry for the confusion, but the ICEfaces Integration forum is really for issues with our ICEfaces integration and not general ICEfaces help (only because we aren’t ICEfaces gurus). This is the link to the main icefaces forums.
http://www.icefaces.org/JForum/forums/list.page -
AuthorPosts