myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: popup component
Date Wed, 08 Nov 2006 17:21:23 GMT
Hi,

there is also the t:popUp component in tomahawk.

See:

http://www.irian.at/myfaces/popup.jsf

cheers,

Gerald

On 11/8/06, Madhav Bhargava <Madhav_Bhargava@infosys.com> wrote:
> I have done all following:
>
> 1. Included jenia jar file in WEB-INF/lib
> 2. Made proper entries in web.xml file
>
> This is my popup.jsp
> ------------------------------
>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
> <%@ taglib uri="http://www.jenia.org/jsf/popup" prefix="jp" %>
>
> <html>
> <f:view>
> <head>
>         <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1" />
>         <title>Popup page</title>
> </head>
> <body onload="window.top.unregisterClickListener('hidePopupFrameEvent')">
>         <h:form id="popupForm">
>                 <t:panelGrid columns="1">
>                         <t:outputText value="Inside popup"/>
>                         <jp:closePopupFrame>
>                                 <h:outputText value="kill frame"/>
>                         </jp:closePopupFrame>
>                 </t:panelGrid>
>         </h:form>
> </body>
> </f:view>
> </html>
>
>
> This is where I am using it:
> ----------------------------------------
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
> <%@ page language="java" contentType="text/html;charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
> <%@ taglib uri="http://www.jenia.org/jsf/popup" prefix="jp" %>
>
> <f:view>
> <t:document>
> <t:documentHead>
>   <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1" />
>   <f:loadBundle basename="com.infosys.ehr.bundles.Messages" var="msg" />
>   <f:loadBundle basename="com.infosys.ehr.web.bundles.ValidatorMessages" var="errorMsg"/>
>   <html:javascript formName="frmLogin"/>
>   <title>EHR Home Page</title>
>   <t:stylesheet path="/css/default.css" />
> </t:documentHead>
> <t:documentBody>
> <h:form id="frmLogin">
>
> ...
> ...
> <h:panelGroup>
> <jp:popupFrame actionOpen="#{login.showModalDialog}" height="450px" width="550px"
scrolling="no" center="true">
> <h:outputText value="Popup frame"/>
> </jp:popupFrame>
> </h:panelGroup>
> ...
> ...
>
> ~madhav
>
> > -----Original Message-----
> > From: Madhav Bhargava
> > Sent: Wednesday, November 08, 2006 10:27 PM
> > To: 'MyFaces Discussion'; 'anil.kommareddi@effone.com'
> > Subject: RE: popup component
> >
> > I was unable to test this because jenia popup 1.2 does not seem to work
> > with myfaces 1.5.1. It gives the following exception:
> >
> > java.lang.NoClassDefFoundError: javax/faces/component/UIComponent
> >       at org.jenia.faces.util.Util.addHiddenFiled(Util.java:184)
> >       at
> > org.jenia.faces.popup.renderkit.html.PopupFrameRenderer.encodeBegin(PopupF
> > rameRenderer.java:118)
> >       at
> > javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512
> > )
> >       at
> > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(Rendere
> > rUtils.java:434)
> >       at
> > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(Rend
> > ererUtils.java:420)
> >       at
> > org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encode
> > End(HtmlGroupRendererBase.java:75)
> >       at
> > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> >       at
> > org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(Rendere
> > rUtils.java:443)
> >       at
> > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderC
> > hildren(HtmlGridRendererBase.java:216)
> >       at
> > org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeE
> > nd(HtmlGridRendererBase.java:98)
> >       at
> > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)
> >       at
> > javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:495)
> >       at
> > javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
> >       at
> > org.apache.myfaces.shared_impl.taglib.UIComponentBodyTagBase.doEndTag(UICo
> > mponentBodyTagBase.java:54)
> >       at
> > org.apache.jsp.index_jsp._jspx_meth_h_panelGrid_0(org.apache.jsp.index_jsp
> > :485)
> >       at
> > org.apache.jsp.index_jsp._jspx_meth_h_form_0(org.apache.jsp.index_jsp:354)
> >       at
> > org.apache.jsp.index_jsp._jspx_meth_t_documentBody_0(org.apache.jsp.index_
> > jsp:319)
> >       at
> > org.apache.jsp.index_jsp._jspx_meth_t_document_0(org.apache.jsp.index_jsp:
> > 193)
> >       at
> > org.apache.jsp.index_jsp._jspx_meth_f_view_0(org.apache.jsp.index_jsp:160)
> >       at
> > org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:126)
> >       at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >       at
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> > :322)
> >       at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> >       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> >       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:252)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatche
> > r.java:672)
> >       at
> > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationD
> > ispatcher.java:463)
> >       at
> > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispat
> > cher.java:398)
> >       at
> > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatch
> > er.java:301)
> >       at
> > org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(Ser
> > vletExternalContextImpl.java:416)
> >       at
> > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispat
> > ch(JspTilesViewHandlerImpl.java:233)
> >       at
> > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.render
> > View(JspTilesViewHandlerImpl.java:219)
> >       at
> > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> >       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:252)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFil
> > ter.java:67)
> >       at
> > org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:
> > 223)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:202)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilte
> > r.java:97)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:202)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilte
> > r.java:187)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:202)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.
> > java:81)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> > onFilterChain.java:202)
> >       at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> > Chain.java:173)
> >       at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> > java:213)
> >       at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> > java:178)
> >       at
> > org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalV
> > alve.java:39)
> >       at
> > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAsso
> > ciationValve.java:159)
> >       at
> > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.jav
> > a:59)
> >       at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> > 26)
> >       at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> > 05)
> >       at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> > va:107)
> >       at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148
> > )
> >       at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >       at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCon
> > nection(Http11Protocol.java:744)
> >       at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j
> > ava:527)
> >       at
> > org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerTh
> > read.java:112)
> >
> >
> > I am not sure what is going wrong Any help?
> >
> > ~madhav
> >
> > > -----Original Message-----
> > > From: Anil Kommareddi [mailto:anil.kommareddi@effone.com]
> > > Sent: Wednesday, November 08, 2006 7:04 PM
> > > To: 'MyFaces Discussion'
> > > Subject: RE: popup component
> > >
> > >
> > > I found this on the Jenia groups and it works fine...
> > >
> > > Add:
> > > onload="window.top.unregisterClickListener('hidePopupFrameEvent')"
> > >
> > > to your popup window.
> > >
> > > - Anil.
> > >
> > > > > Hi All,
> > > > >
> > > > >
> > > > >
> > > > > Is there a component for displaying a popup in Myfaces?
> > > > >
> > > > > I have tried using the popup component - http://www.jenia.org
> > > > > <http://www.jenia.org/>
> > > > >
> > > > >
> > > > >
> > > > > However I have encountered the following problems:
> > > > >
> > > > > 1.      The popup closes when clicked anywhere else on the screen.
> > > This
> > > > > does not serve my purpose as the user should respond to the popup
> > > > > before he/she does anything else.
> > > > > 2.      There are some problems when the popup needs to be populated
> > > > > with values fetched from a database.
> > > > > 3.      Not able to get back values to the parent form which are
> > > entered
> > > > > on the pop-up.
> > > > >
> > > > >
> > > > >
> > > > > Is there any other popup component which is available?
> > > > >
> > > > >
> > > > >
> > > > > Thanks
> > > > >
> > > > > ~madhav
> > > > >
> > > > >
> > > > >
> > > > > **************** CAUTION - Disclaimer ***************** This e-mail
> > > > > contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for
> > > > > the use of the addressee(s). If you are not the intended recipient,
> > > > > please notify the sender by e-mail and delete the original message.
> > > > > Further, you are not to copy, disclose, or distribute this e-
> > > > mail
> > > > > or its contents to any other person and any such actions are
> > unlawful.
> > > > This
> > > > > e-mail may contain viruses. Infosys has taken every reasonable
> > > > precaution
> > > > > to minimize this risk, but is not liable for any damage you may
> > > > > sustain
> > > > as
> > > > > a result of any virus in this e-mail. You should carry out your own
> > > > virus
> > > > > checks before opening the e-mail or attachment. Infosys reserves
the
> > > > right
> > > > > to monitor and review the content of all messages sent to or from
> > > > > this e-mail address. Messages sent to or from this e-mail address
> > > > > may be
> > > > stored
> > > > > on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer
> > > > > ********INFOSYS***
> > > >
> > > > --
> > > > Michael Meierhoff
> > > > ----------------------------------------------------------------------
> > > > ----
> > > > --
> > > > Software Architect
> > > >
> > > > ElitePartner
> > > > Mittelweg 22
> > > > 20148 Hamburg
> > > >
> > > > Tel:      +49 (0)40 - 60 00 95 - 15
> > > > Fax:     +49 (0)40 - 60 00 95 - 99
> > > > E-Mail: Michael.Meierhoff@ElitePartner.de
> > > >
> > > > ElitePartner.de - ElitePartner.at - ElitePartner.ch Die Adresse f�r
> > > > Singles mit Niveau
> > > >
> > > > ------------- Eine Beteiligung der Hubert Burda Media -------------
> > >
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces
Mime
View raw message