myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Bohmann <bernd.bohm...@atanion.com>
Subject Re: [Tobago] Facelets <ui:repeat> doesnt work
Date Sat, 10 Mar 2007 08:17:20 GMT
Hello David,

unfortunately ui:repeat doesn't work with Tobago. I'm not sure how I get 
the layouting stuff working with ui:repeat. May be we provide a extended 
version of UIRepeat and RepeatRenderer that knows something about 
layouting in Tobago.

Can you add a feature request in Tobago, please.

http://myfaces.apache.org/tobago/issue-tracking.html

Regards

Bernd

David Steinkopff wrote:
> I used Tobago 1.0.11 with Facelets 1.1.11 and MyFaces 1.1.5
> 
> -- face.xhtml ---
> <f:view xmlns:f="http://java.sun.com/jsf/core"
>        xmlns:ui="http://java.sun.com/jsf/facelets"
>        xmlns:tc="http://myfaces.apache.org/tobago/component"
>        xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension">
> <tc:page>
> <ui:repeat value="#{testController.birds}" var="bird">
>                <tc:out value="#{bird}" />
> </ui:repeat>
> </tc:page>
> </f:view>
> --- end ---
> 
> give me following error message
> ---
> An Error Occurred:
> Don't find any RendererClass for facelets.ui.RepeatRenderer. Please check
> you configuration.
> +- Stack Trace
> 
> java.lang.RuntimeException: Don't find any RendererClass for
> facelets.ui.RepeatRenderer. Please check you configuration.
>    at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(
> ResourceManagerImpl.java:399)
>    at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(
> TobagoRenderKit.java:61)
>    at org.apache.myfaces.tobago.component.ComponentUtil.getRenderer(
> ComponentUtil.java:429)
>    at org.apache.myfaces.tobago.component.ComponentUtil.getRenderer(
> ComponentUtil.java:411)
>    at
> org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.createCssClass(
> HtmlRendererUtil.java:133)
>    at
> org.apache.myfaces.tobago.renderkit.html.HtmlRendererUtil.prepareRender(
> HtmlRendererUtil.java:109)
>    at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.prepareRender

> 
> (DefaultLayoutRenderer.java:40)
>    at org.apache.myfaces.tobago.renderkit.RenderUtil.encode(RenderUtil.java
> :73)
>    at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.DefaultLayoutRenderer.encodeChildrenOfComponent

> 
> (DefaultLayoutRenderer.java:47)
>    at
> org.apache.myfaces.tobago.component.UILayout.encodeChildrenOfComponent(
> UILayout.java:71)
>    at
> org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEnd

> 
> (PageRenderer.java:126)
>    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:580)
>    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
> RenderResponseExecutor.java:41)
>    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java
> :132)
>    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
> MonitorFilter.java:368)
>    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
> :869)
>    at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection

> 
> (Http11BaseProtocol.java:664)
>    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)
> 
> +- Component Tree
> 
> <UIViewRoot clientProperties="
> org.apache.myfaces.tobago.context.ClientProperties@34a1c8" locale="de"
> renderKitId="tobago" rendered="true" transient="false" 
> viewId="/face.xhtml">
> 
>    <UIPage height="768" id="_id0" rendered="true" submitted="false"
> transient="false" width="1024">
> 
>        <UIRepeat id="_id1" offset="0" rendered="true" size="-1"
> transient="false" var="bird">
> 
>            <UIOutput createSpan="true" escape="true" id="_id2" markup="[
> Ljava.lang.String;@1696e4c" rendered="true" transient="false"/>
> 
>        </UIRepeat>
> 
>    </UIPage>
> 
> </UIViewRoot>
> ---
> 
> I have no idea what I must change on my settings. I used the basic settings
> from the facelets example from svn, only modify prefix xml to xhtml.
> Please help me.
> 
> David
> 

Mime
View raw message