On 11/14/06, Bernd Bohmann <[EMAIL PROTECTED]> wrote:
looks like the scarborough jar is missing.

I added the scarborough jar.

I am using maven2 and put tobago-facelets in my pom.xml
      
http://www.ibiblio.org/maven2/org/apache/myfaces/tobago/tobago-facelets/1.0.8/

If scarborough is required, shouldn't it have been automatically downloaded ?

I'm not sure that tobago is working in a portlet enviroment, but if you
are interested I will try to help you with the errors.

Now I get this error:
  2006-11-15 14:50:26,413 WARN  [TobagoRenderKit:77] patching content
type from text/html to text/html'
2006-11-15 14:50:26,756 ERROR [RendererBase:112] catched
java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl
:com.liferay.portlet.RenderResponseImpl
java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl
       at 
org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.PageRenderer.encodeEndTobago(PageRenderer.java:145)
       at 
org.apache.myfaces.tobago.renderkit.RendererBase.encodeEnd(RendererBase.java:108)
       at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
       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.LifecycleImpl.render(LifecycleImpl.java:352)
       at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:323)
       at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:298)
       at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:380)
       at 
org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:266)
       at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
       at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)


Can you share the example with me?

Yes, I will put it on a web site shortly.


-Steve More

Stephen More wrote:
> I am trying to get a simple HelloWorld JSR 168 facelet tobago example
> working.
>
> In my logs I see the following:
>
> 2006-11-14 22:05:35,894 INFO  [ClientProperties:68] contentType='html'
> from header Accept='null'
> 2006-11-14 22:05:35,898 INFO  [ClientProperties:75] userAgent='null'
> from header User-Agent='null'
> 2006-11-14 22:05:35,902 INFO  [ClientProperties:86] debug-mode=false
> 2006-11-14 22:05:35,906 INFO  [ClientProperties:92] theme='speyside'
> from requestParameter tobago.theme='null'
> 2006-11-14 22:05:37,140 WARN  [TobagoRenderKit:77] patching content
> type from text/html to text/html'
> 2006-11-14 22:05:37,196 ERROR [ResourceManagerImpl:291] Path not
> found, and no fallback. Using empty string.
> resourceDirs = '[tobago-resource,
> org/apache/myfaces/tobago/renderkit]' contentType = 'html' theme =
> 'speyside' browser = 'null' subDir = 'tag' name = 'PageRenderer'
> suffix = '' key
> = 'null'
> 2006-11-14 22:05:37,205 ERROR [ResourceManagerImpl:397] name =
> 'PageRenderer' clientProperties = 'html/speyside/null'
> java.lang.NullPointerException
>        at
> 
org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:392)
>
>        at
> 
org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:60)
>
>        at
> javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:527)
>        at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:304)
>        at
> org.apache.myfaces.tobago.component.UIPage.encodeBegin(UIPage.java:94)
>        at
> 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
>
>        at
> 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
>
>
>
> Is there a problem with a config file that is leading up to this
> NullPointerException ?
>
> -Thanks
> Steve More
>

Reply via email to