It looks like you didn't add the Tobago resources to your WAR. If you look into the tobago-example-demo WAR, you will see the directory /tobago, which contains the resources needed by the themes. You will need to add these to your WAR, too.

Udo is currently working on simplifying this. Afterwards the themes will packaged as archives and you won't need to unpack them. If you use maven this is currently done automatically.

Regards,
Arvid

Thomas Gaudin wrote:
Hi,

Arvid, I am trying to reach the same point than you but I am having problems. I built and deployed the example demo and it works great but when I try to insert a sample in my facelet web application (even the simplest hello world example) I keep getting :

[benevole.info] ERROR [http-80-Processor24] ResourceManagerImpl.getPaths(323) | Path not found, and no fallback. Using empty string. mainDirs = '[org/apache/myfaces/tobago/renderkit]' contentType = 'html' theme = 'speyside' browser = 'mozilla_5_0' subDir = 'tag' name = 'org.apache.myfaces.StylesheetRenderer' suffix = '' key = 'null' [benevole.info] ERROR [http-80-Processor24] ResourceManagerImpl.getRenderer(429) | name = 'org.apache.myfaces.StylesheetRenderer' clientProperties = 'html/speyside/mozilla_5_0'
java.lang.NullPointerException
at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:424) at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:63) at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:744) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:509) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:544) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
.....
9 févr. 2006 16:55:04 com.sun.facelets.FaceletViewHandler handleRenderException
GRAVE: Error Rendering View
java.lang.RuntimeException: org.apache.myfaces.StylesheetRenderer
at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:433) at org.apache.myfaces.tobago.renderkit.TobagoRenderKit.getRenderer(TobagoRenderKit.java:63) at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:744) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:509) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:544) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:372)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
.......
Caused by: java.lang.NullPointerException
at org.apache.myfaces.tobago.context.ResourceManagerImpl.getRenderer(ResourceManagerImpl.java:424)
    ... 71 more
9 févr. 2006 16:55:04 com.sun.facelets.FaceletViewHandler handleRenderException

Has anybody some clue about the reason of this problem?
Thanks,

Thomas


Arvid Hülsebus a écrit :
Yes, thanks a lot!

I just came home from work and updated the example. Now the gridLayout works:



But I still get this warning:

08.02.2006 23:33:16 com.sun.facelets.tag.jsf.ComponentRule warnAttr
WARNUNG: /helloWorld.xml @10,43 columns="fixed;*" Property 'columns' is not on type: org.apache.myfaces.tobago.component.UIGridLayout

Unfortunately I'm pretty tired and have to go to bed... I will look into the other problems tomorrow night -- like the missing SPAN tag around the label content:

<span class="tobago-out-default">Hello World</span>

Regards,
Arvid

---------------------------------------------------------------------------------------
Wanadoo vous informe que cet e-mail a ete controle par l'anti-virus mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.


------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date: 07/02/2006

Reply via email to