myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-428) inputCalendar not working with facelets when renderAsPopup="true"
Date Tue, 16 May 2006 20:33:06 GMT
    [ http://issues.apache.org/jira/browse/TOMAHAWK-428?page=comments#action_12412049 ] 

Mike Kienenberger commented on TOMAHAWK-428:
--------------------------------------------

Well, my french is a little rusty, but the error says something about one or more parameters
not being null?

It's likely a problem with the JSF RI interaction.

I'm successfully using facelets 1.1.5 and the latest MyFaces with  <t:inputCalendar renderAsPopup="true">
</t:inputCalendar> 

It's also possible you've got the extensions filter misconfigured, I suppose

> inputCalendar not working with facelets when renderAsPopup="true"
> -----------------------------------------------------------------
>
>          Key: TOMAHAWK-428
>          URL: http://issues.apache.org/jira/browse/TOMAHAWK-428
>      Project: MyFaces Tomahawk
>         Type: Bug

>   Components: Calendar
>     Versions: 1.1.3-SNAPSHOT
>  Environment: JSF Sun RI, Tomahawk 1.1.3-snapshot, facelets-1.0.16.jar, Tomcat 5.5, JDK
1.5
>     Reporter: Vofeka
>     Priority: Blocker
>  Attachments: tomahawk.taglib.xml
>
> Getting an exception when trying to render an inputCalendar component with facelets (facelets
is installed correctly and works fine on other pages). 
> Here is the calendar.jsp page using facelets and the calendar:
> <code>
> <!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:t="http://myfaces.apache.org/tomahawk" >
> 	
> <ui:composition >
> 	<ui:define name="content">
> 		<h:form>
>             <t:inputCalendar renderAsPopup="true"> </t:inputCalendar>  
> 		</h:form>
> 	</ui:define>
> </ui:composition>
> </html>
> </code>
> I get the following exception:
> <code>
> SEVERE: Error Rendering View[/web/facelets/calendar.jsp]
> java.lang.NullPointerException: Erreur dans les arguments: Un ou plusieurs param├ętres
peuvent ''tre nuls.
> 	at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.writeAttribute(HtmlResponseWriter.java:240)
> 	at org.apache.myfaces.custom.inputTextHelp.HtmlTextHelpRenderer.renderInputTextHelp(HtmlTextHelpRenderer.java:93)
> 	at org.apache.myfaces.custom.inputTextHelp.HtmlTextHelpRenderer.renderNormal(HtmlTextHelpRenderer.java:48)
> 	at org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer.encodeEnd(HtmlTextRenderer.java:80)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
> 	at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:442)
> 	at org.apache.myfaces.custom.calendar.HtmlCalendarRenderer.encodeEnd(HtmlCalendarRenderer.java:160)
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
> 	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.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
> 	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:577)
> 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
> 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
> 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> </code>
> If i change the *renderAsPopup to false* then the calendar is rendered properly.... but
I need to get the popup version :-(
> Any help would be greatly appreciated. Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message