myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tushar <tanna_tus...@yahoo.co.in>
Subject Problem in using t:popup
Date Mon, 12 Jun 2006 22:58:52 GMT
I am trying to use t:popup tag for the first time. I wrote a simple jsp to check the functionality
but I am always getting NullPointer Exception.
 
 The  stack trace is like below.
 
 java.lang.NullPointerException
     at org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
     at org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(HtmlPopupRenderer.java:93)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
     at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
     at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
     at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:616)
     at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at com.amazon.http.MonitoringFilter.doFilter(MonitoringFilter.java:41)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at com.amazon.http.AuthenticationFilter.doFilter(AuthenticationFilter.java:152)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at com.amazon.http.SCAuthorizationFilter.doFilter(SCAuthorizationFilter.java:68)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Thread.java:595)
 
 
 My code is as below.
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <jsp 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:t="http://myfaces.apache.org/tomahawk">
     
 <div jsfc="ui:composition" >
 <f:view>
    <h:outputText value="foo" />
 <t:popup  closePopupOnExitingElement="true"
           closePopupOnExitingPopup="true"
           displayAtDistanceX="10"
           displayAtDistanceY="10">
     <h:outputText value="Tushar" />
     <f:facet name="String">
         <h:panelGroup>
             <h:panelGrid columns="1">
                 <h:outputText value="bar"/>
             </h:panelGrid>
         </h:panelGroup>
     </f:facet>
 </t:popup>
 </f:view>
 </div>
 </jsp>
 
 
 Did anybody else tried using this tag?
 
 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/
 
Mime
View raw message