You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Stephen More <st...@gmail.com> on 2006/11/14 23:19:31 UTC
Help getting started with tobago-facelets in a portlet
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
Re: Help getting started with tobago-facelets in a portlet
Posted by Stephen More <st...@gmail.com>.
On 11/15/06, Bernd Bohmann <be...@atanion.com> wrote:
> Hello,
>
> started to try your example.
> How can I deploy and invoke the example on a server?
You can download a working portal from:
http://www.liferay.com/web/guest/downloads
Once the portal is up and running, you configure a directory where
portlets are HotDeployed. Copy the war file into this deploy directory
then that portlet can be added to a page within the portal.
> See the other comments in the mail.
>
>
> Stephen More wrote:
> > On 11/14/06, Bernd Bohmann <be...@atanion.com> 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 ?
>
> The tobago-facelets.jar has only a dependency to tobago-core.
> You should include a dependency to a theme in you pom.
>
> >
> >> 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.
> >
>
> This error should be fixed in the current snapshot.
>
> Please follow the instructions in:
>
> http://myfaces.apache.org/tobago/getting-started.html
>
I have tried:
$ svn checkout http://svn.apache.org/repos/asf/myfaces/tobago/trunk/ tobago
svn: PROPFIND request failed on '/repos/asf/myfaces/tobago/trunk'
svn: PROPFIND of '/repos/asf/myfaces/tobago/trunk': 504 Proxy Timeout
( Connection timed out. For more information about this event, see ISA
Server Help. ) (http://svn.apache.org)
I will try again later.
-Thanks
> > 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.
> >
> >
> Regards
>
>
> Bernd
>
Re: Help getting started with tobago-facelets in a portlet
Posted by Bernd Bohmann <be...@atanion.com>.
Hello,
started to try your example.
How can I deploy and invoke the example on a server?
See the other comments in the mail.
Stephen More wrote:
> On 11/14/06, Bernd Bohmann <be...@atanion.com> 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 ?
The tobago-facelets.jar has only a dependency to tobago-core.
You should include a dependency to a theme in you pom.
>
>> 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.
>
This error should be fixed in the current snapshot.
Please follow the instructions in:
http://myfaces.apache.org/tobago/getting-started.html
> 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.
>
>
Regards
Bernd
Re: Help getting started with tobago-facelets in a portlet
Posted by Stephen More <st...@gmail.com>.
> On 11/14/06, Bernd Bohmann <be...@atanion.com> wrote:
> > Can you share the example with me?
The example can be found at:
http://www.geocities.com/mores/portal-facelets.jar
-Thanks
Steve More
Re: Help getting started with tobago-facelets in a portlet
Posted by Stephen More <st...@gmail.com>.
On 11/14/06, Bernd Bohmann <be...@atanion.com> 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
> >
>
Re: Help getting started with tobago-facelets in a portlet
Posted by Bernd Bohmann <be...@atanion.com>.
Hello,
looks like the scarborough jar is missing.
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. Can you share the
example with me?
Good Night
Bernd
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
>