incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romanowski, Tim" <tim.romanow...@lmco.com>
Subject RE: Problem combining trinidad and facelets
Date Fri, 10 Nov 2006 14:59:42 GMT
Sonja,
Thanks for the tip...I tried version 1.0.14 that I had been using many months ago, but I still
get the same issue.  I think it has something to do with the way I am using parameters to
pass values into injected components that I've defined using facelets...I will get some better
debugging information and post here.

Tim

-----Original Message-----
From: Sonja Löhr [mailto:sonjaloehr@arcor.de] 
Sent: Friday, November 10, 2006 3:13 AM
To: adffaces-user@incubator.apache.org
Subject: RE: Problem combining trinidad and facelets


Hi, Tim!

I suddenly faced these problems with some version of facelets I don't
remember where I copied it from (the demos?)
Switching back to the version I used before (of June 21), everything was ok
again.




> -----Original Message-----
> From: Romanowski, Tim [mailto:tim.romanowski@lmco.com] 
> Sent: Donnerstag, 9. November 2006 22:41
> To: adffaces-user@incubator.apache.org
> Subject: RE: Problem combining trinidad and facelets
> 
> Hi all,
> I've just added Trinidad to my SUN 
> RI/Tomahawk/Facelets/Ajax4JSF app and it plugged in without 
> much difficulty (pretty slick, actually).  However, when 
> trying to replace some core tags with the Trinidad ones 
> (e.g., dataTable), I'm getting an error on my jstl code.  I'm 
> wondering if this is a result of the whitespace issue that 
> was discussed (below) a couple months ago.  If so, is there a 
> new workaround?  Any suggestions would be greatly appreciated.
> 
> My browser throws an exception:
> **************************************
> java.lang.ClassCastException: com.sun.facelets.compiler.UIInstructions
> at 
> org.apache.myfaces.trinidadinternal.renderkit.core.desktop.Des
> ktopTableRenderer._renderRegularColumns(DesktopTableRenderer.java:976)
> 	at 
> org.apache.myfaces.trinidadinternal.renderkit.core.desktop.Des
> ktopTableRenderer.renderSingleRow(DesktopTableRenderer.java:107)
> 	at 
> 	[SNIP]
> **************************************
> 
> Here's a sample of the offending 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:c="http://java.sun.com/jstl/core"
>       xmlns:t="http://myfaces.apache.org/tomahawk"
>       xmlns:trh="http://myfaces.apache.org/trinidad/html" 
>       xmlns:tr="http://myfaces.apache.org/trinidad">
> 
> <ui:composition>
> 	 <!-- The label attribute is optional. Generate it if 
> it is missing. -->
> 	<c:if test="#{empty header}">
>             <c:set var="header" value="#{field}" />
>         </c:if>
>        
> 	<tr:column> 
>             <!--
>             Removed this section to verify root cause of problem.
>            -->
>         </tr:column>         
> </ui:composition>
> </html>
> **************************************
> 
> 
> 
> 
> -----Original Message-----
> From: Böhringer Jochen [mailto:Jochen.Boehringer@tcc-products.de]
> Sent: Friday, October 06, 2006 7:36 AM
> To: adffaces-user@incubator.apache.org
> Subject: RE: Problem combining trinidad and facelets
> 
> Hello Elias,
> 
> Thank you very much for that hint. It fixed it for me too! 
> Does anyone has an explanation why?
> 
> Regards
> Jochen
> 
> -----Original Message-----
> From: Elias Neri [mailto:elias.neri@custodix.com]
> Sent: Tuesday, October 03, 2006 10:35 AM
> To: adffaces-user@incubator.apache.org
> Subject: Re: Problem combining trinidad and facelets
> 
> Hi Jochen,
> 
> I had the same exception under the same condition when i used 
> <c:forEach> in a <tr:navigationPane>.
> 
> But when I switched the namespace of this tag from 
> "http://java.sun.com/jsp/jstl/core" into 
> "http://java.sun.com/jstl/core" 
> the exception did not occur anymore.
> 
> I don't know why, but this might fix it for you too.
> 
> Regards,
> 
> Elias
> 
> Böhringer Jochen schreef:
> > Hello,
> >
> >  
> >
> > If I setup Trinidad and Facelets and try to execute the 
> following xhtml file I get a ClassCastException (see below). 
> This is caused by the usage of the <c:forEach> Tag I think. 
> So I tried to switch to <ui:repeat> but with a similar 
> exception (see below). I am using jsf-facelets-1.1.11.jar, 
> myfaces-1.1.4 and Trinidad-m1-snapshot on JBoss 4.x.
> >
> >  
> >
> > Any help would be greatly appreciated.
> >
> >  
> >
> > Regards Jochen
> >
> >  
> >
> >  
> >
> > <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
> >
> > <tr:document 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:tr="http://myfaces.apache.org/trinidad"
> >
> >       xmlns:trh="http://myfaces.apache.org/trinidad/html"
> >
> >       xmlns:c="http://java.sun.com/jsp/jstl/core"
> >
> >       title="#{navigationControler.activePageTitle}">
> >
> >  
> >
> >       <tr:form>
> >
> >             <tr:panelPage>
> >
> >                   <f:facet name="navigation1">
> >
> >                         <tr:navigationPane hint="tabs" 
> > id="navigation1">
> >
> >                              <c:forEach var="menuItem"
> >
> >                                    
> > items="#{navigationControler.menuItemList}">
> >
> >                                    
> <tr:commandNavigationItem text="#{menuItem.label}"
> >
> >                                          
> shortDesc="#{menuItem.id}" selected="#{menuItem.selected}"
> >
> >                                          action="redirect.main" 
> > disabled="#{menuItem.disabled}">
> >
> >                                          <f:actionListener
> >
> >                                                
> > type="de.tccproducts.dprs.webapp.navigation.NavigationHandler" />
> >
> >                                    </tr:commandNavigationItem>
> >
> >                              </c:forEach>
> >
> >                         </tr:navigationPane>
> >
> >                   </f:facet>
> >
> >             </tr:panelPage>
> >
> >       </tr:form>
> >
> >       <ui:debug />
> >
> > </tr:document>
> >
> >  
> >
> >  
> >
> >  
> >
> > <c:forEach> Exception:
> >
> >  
> >
> > 16:41:38,557 INFO  [STDOUT] 29.09.2006 16:41:38 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer renderContent
> >
> > SCHWERWIEGEND: Warning: illegal component hierarchy 
> detected, expected UIXCommand but found another type of 
> component instead.
> >
> > java.lang.ClassCastException: 
> com.sun.facelets.compiler.UIInstructions
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer.renderContent(NavigationPaneRenderer.java:123)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer.encodeAll(NavigationPaneRenderer.java:86)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encode
> > End(CoreRenderer.java:181)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXCo
> > mponentBase.java:673)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXColle
> > ction.java:466)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode._renderCo
> > mponent(UIComponentUINode.java:329)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render(UI
> > ComponentUINode.java:273)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render(UI
> > ComponentUINode.java:250)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.composite.ContextPoppingUINode$
> > ContextPoppingRenderer.render(ContextPoppingUINode.java:234)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:356)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:311)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderChild(BaseRe
> > nderer.java:423)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderNamedChild(B
> > aseRenderer.java:395)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.PageHeaderLayo
> > utRenderer._renderTabBar(PageHeaderLayoutRenderer.java:580)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.laf.base.desktop.PageHeaderLayo
> > utRenderer.renderContent(PageHeaderLayoutRenderer.java:440)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.render(BaseRendere
> > r.java:91)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer
> > .render(XhtmlLafRenderer.java:81)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:356)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:311)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderChild(BaseRe
> > nderer.java:423)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderIndexedChild
> > (BaseRenderer.java:341)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderIndexedChild
> > (BaseRenderer.java:233)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.renderContent(Base
> > Renderer.java:140)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseRenderer.render(BaseRendere
> > r.java:91)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer
> > .render(XhtmlLafRenderer.java:81)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:356)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:311)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.composite.UINodeRenderer.render
> > WithNode(UINodeRenderer.java:100)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.composite.UINodeRenderer.render
> > (UINodeRenderer.java:46)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIXComponentUINode.renderIn
> > ternal(UIXComponentUINode.java:189)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UINodeRendererBase.encodeEn
> > d(UINodeRendererBase.java:66)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXCo
> > mponentBase.java:673)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.RenderUtils.encodeRecurs
> > ive(RenderUtils.java:66)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encode
> > Child(CoreRenderer.java:255)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encode
> > AllChildren(CoreRenderer.java:277)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialR
> > ootRenderer.renderContent(PanelPartialRootRenderer.java:74)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.
> > renderContent(BodyRenderer.java:134)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialR
> > ootRenderer.encodeAll(PanelPartialRootRenderer.java:154)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.
> > encodeAll(BodyRenderer.java:76)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.delega
> > teRenderer(CoreRenderer.java:294)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.DocumentRende
> > rer.encodeAll(DocumentRenderer.java:78)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encode
> > End(CoreRenderer.java:181)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXCo
> > mponentBase.java:673)
> >
> >       at 
> > 
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSup
> > port.java:242)
> >
> >       at 
> > 
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSup
> > port.java:239)
> >
> >       at 
> > 
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java
> > :580)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.render
> > View(ViewHandlerImpl.java:176)
> >
> >       at 
> > 
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:3
> > 84)
> >
> >       at 
> > javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:252)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:173)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeD
> > oFilter(TrinidadFilterImpl.java:327)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilte
> > rImpl(TrinidadFilterImpl.java:291)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter
> > (TrinidadFilterImpl.java:214)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFil
> > ter.java:90)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:202)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:173)
> >
> >       at 
> > 
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFil
> > ter.java:81)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> > cationFilterChain.java:202)
> >
> >       at 
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:173)
> >
> >       at 
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> > lve.java:213)
> >
> >       at 
> > 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> > lve.java:178)
> >
> >       at 
> > 
> org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinci
> > palValve.java:39)
> >
> >       at 
> > 
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Security
> > AssociationValve.java:159)
> >
> >       at 
> > 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
> > orBase.java:407)
> >
> >       at 
> > 
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve
> > .java:59)
> >
> >       at 
> > 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> > va:126)
> >
> >       at 
> > 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> > va:105)
> >
> >       at 
> > 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> > e.java: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.proces
> > sConnection(Http11Protocol.java:744)
> >
> >       at 
> > 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
> > nt.java:527)
> >
> >       at 
> > 
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWork
> > erThread.java:112)
> >
> >       at java.lang.Thread.run(Thread.java:595)
> >
> >  
> >
> >  
> >
> > <ui:repeat> Exception:
> >
> >  
> >
> > 16:44:16,434 INFO  [STDOUT] 29.09.2006 16:44:16 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer renderContent
> >
> > SCHWERWIEGEND: Warning: illegal component hierarchy 
> detected, expected UIXCommand but found another type of 
> component instead.
> >
> > java.lang.ClassCastException: com.sun.facelets.component.UIRepeat
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer.renderContent(NavigationPaneRenderer.java:123)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPan
> > eRenderer.encodeAll(NavigationPaneRenderer.java:86)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderer.encode
> > End(CoreRenderer.java:181)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXCo
> > mponentBase.java:673)
> >
> >       at 
> > 
> org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXColle
> > ction.java:466)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode._renderCo
> > mponent(UIComponentUINode.java:329)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render(UI
> > ComponentUINode.java:273)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.uinode.UIComponentUINode.render(UI
> > ComponentUINode.java:250)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.composite.ContextPoppingUINode$
> > ContextPoppingRenderer.render(ContextPoppingUINode.java:234)
> >
> >       at 
> > 
> org.apache.myfaces.trinidadinternal.ui.BaseUINode.render(BaseUINode.ja
> > va:356)
> >
> >  
> >
> >  
> >
> >
> >   
> 
> 



Mime
View raw message