You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andrew Robinson <an...@gmail.com> on 2006/04/05 05:59:28 UTC

Re: Using Tobago with facelet?

In regards to the "It is not possible to combine tobago with other jsf
tag libraries", is there any movement for getting Tobago to be just a
component library so that it can be used alongside of Tomahawk and
other component libraries (like ADF when it is part of MyFaces for
example)?

Tobago looks nice, but if it is mutually exclusive from other
component libraries its usefulness is very little unless it has all
the components a web site requires.

On 2/10/06, Volker Weber <us...@weber-oldenburg.de> wrote:
> Hi Thomas,
>
> tobago has no Stylesheet tag. Did you use any non tobago tags?
>
> The debug output looks like you are using the stylesheet tag from tomahawk.
>
> It is not possible to combine tobago with other jsf tag libraries.
>
> Tobago has also a style tag, try this one.
>
> Regards,
>   Volker
>
> Thomas Gaudin wrote:
> > Arvid Hülsebus a écrit :
> >
> >> 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
> >
> > Thanks for your answer Arvid.
> >
> > I actually had included directories and jars into my webapp like it is
> > in the tobago-example-demo and still get this error.
> > I set the output level to debug and also tryed to debug the code but
> > this doesn't help much...
> >
> > I checked my classpath and I do not have any
> > org.apache.myfaces.Stylesheet nor org.apache.myfaces.StylesheetRenderer
> > in it.
> >
> > Could it be the problem?
> >
> > I inserted the stacktrace in case someone see some hint.
> >
> > Thanks,
> >
> > Thomas
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getRendererClassName(444) | rendererType =
> > 'org.apache.myfaces.Stylesheet'
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/standard/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/speyside/standard/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/mozilla_5_0/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/mozilla/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/mozilla/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/org.apache.myfaces.StylesheetRenderer_en
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(251) | testing path:
> > /org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/org.apache.myfaces.StylesheetRenderer
> >
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(290) | testing path:
> > /org.apache.myfaces.StylesheetRenderer_en
> > [benevole.info] DEBUG [http-80-Processor25]
> > ResourceManagerImpl.getPaths(290) | testing path:
> > /org.apache.myfaces.StylesheetRenderer
> > [benevole.info] ERROR [http-80-Processor25]
> > 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-Processor25]
> > 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)
> >
>
> --
> Don't answer to From: address!
> Mail to this account are droped if not recieved via mailinglist.
> To contact me direct create the mail address by
> concatenating my forename to my senders domain.
>

Re: context path in

Posted by Andrew Robinson <an...@gmail.com>.
Just use "<img src="/images/myimage.gif" />"
graphicImage is just a component that adds the context path to
relative links and escapes the URL.

-Andrew

On 4/4/06, Lance Frohman <lf...@gmail.com> wrote:
> Sorry, I know why the jsessionid is there, that's not the
> problem. I have my .gif files being served by apache, so they
> really are in /images/ directory, not /contextpath/images/
> directory. So the images are not found. I want to be able to
> have the resulting img tag be
> <img src="/images/myimage.gif" />
> (or <img src="/images/myimage.gif;jsessionid=XXXXXXXXXXXXXXXXXXXXXX" />)
> I can't use
> <h:graphicImage url="images/myimage.gif" />
>
> -----Original Message-----
> From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
> Sent: Tuesday, April 04, 2006 9:42 PM
> To: MyFaces Discussion
> Subject: Re: context path in <h:graphicImage>
>
> This problem has been discussed on this list.
>
> Check out the archives for the subjects:
> mailto outputLink with session id problem jsessionid added to resources in
> myfaces SVN current?
>
> Basically the problem is that the client doesn't support cookies or there is
> no active cookie. It is a "feature" of the servlet container and JSF uses
> the functionality that involves that "feature".
>
> Why the servlet spec chose ";jsessionid" instead of "?jessionid" is beyond
> me.
>
> -Andrew
>
> On 4/4/06, Lance Frohman <lf...@gmail.com> wrote:
> > When I use an <h:graphicImage url="/images/myimage.gif" /> the
> > resulting html has the context path added to the beginning:
> >
> > <img
> > src="/contextpath/images/myimage.gif;jsessionid=FC8DCE7CCC9D6174FB47A3
> > CC5183
> > 11FC" />
> >
> > Is there any way to prevent this?
> >
> > Thanks,
> > Lance
> >
> >
>
>

RE: context path in

Posted by Lance Frohman <lf...@gmail.com>.
Sorry, I know why the jsessionid is there, that's not the
problem. I have my .gif files being served by apache, so they
really are in /images/ directory, not /contextpath/images/ 
directory. So the images are not found. I want to be able to
have the resulting img tag be
<img src="/images/myimage.gif" />
(or <img src="/images/myimage.gif;jsessionid=XXXXXXXXXXXXXXXXXXXXXX" />)
I can't use
<h:graphicImage url="images/myimage.gif" />

-----Original Message-----
From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] 
Sent: Tuesday, April 04, 2006 9:42 PM
To: MyFaces Discussion
Subject: Re: context path in <h:graphicImage>

This problem has been discussed on this list.

Check out the archives for the subjects:
mailto outputLink with session id problem jsessionid added to resources in
myfaces SVN current?

Basically the problem is that the client doesn't support cookies or there is
no active cookie. It is a "feature" of the servlet container and JSF uses
the functionality that involves that "feature".

Why the servlet spec chose ";jsessionid" instead of "?jessionid" is beyond
me.

-Andrew

On 4/4/06, Lance Frohman <lf...@gmail.com> wrote:
> When I use an <h:graphicImage url="/images/myimage.gif" /> the 
> resulting html has the context path added to the beginning:
>
> <img
> src="/contextpath/images/myimage.gif;jsessionid=FC8DCE7CCC9D6174FB47A3
> CC5183
> 11FC" />
>
> Is there any way to prevent this?
>
> Thanks,
> Lance
>
>


Re: context path in

Posted by Andrew Robinson <an...@gmail.com>.
This problem has been discussed on this list.

Check out the archives for the subjects:
mailto outputLink with session id problem
jsessionid added to resources in myfaces SVN current?

Basically the problem is that the client doesn't support cookies or
there is no active cookie. It is a "feature" of the servlet container
and JSF uses the functionality that involves that "feature".

Why the servlet spec chose ";jsessionid" instead of "?jessionid" is beyond me.

-Andrew

On 4/4/06, Lance Frohman <lf...@gmail.com> wrote:
> When I use an <h:graphicImage url="/images/myimage.gif" />
> the resulting html has the context path added to the beginning:
>
> <img
> src="/contextpath/images/myimage.gif;jsessionid=FC8DCE7CCC9D6174FB47A3CC5183
> 11FC" />
>
> Is there any way to prevent this?
>
> Thanks,
> Lance
>
>

Re: Using Tobago with facelet?

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Andrew,

Andrew Robinson wrote:
> In regards to the "It is not possible to combine tobago with other jsf
> tag libraries", is there any movement for getting Tobago to be just a
> component library so that it can be used alongside of Tomahawk and
> other component libraries (like ADF when it is part of MyFaces for
> example)?

no, tobago is not going to be just a library of jsf components.
Tobago is more like a system of components with a themeing and layouting
mechanimn. At least for the layouting they need to interact, this is one
reason why it is not possible to combine with components from other jsf
libs.

> 
> Tobago looks nice, but if it is mutually exclusive from other
> component libraries its usefulness is very little unless it has all
> the components a web site requires.

Which components did you miss?
We are open for adding usefull components to tobago.


Regards,
  Volker

> 
> On 2/10/06, Volker Weber <us...@weber-oldenburg.de> wrote:
> 
>>Hi Thomas,
>>
>>tobago has no Stylesheet tag. Did you use any non tobago tags?
>>
>>The debug output looks like you are using the stylesheet tag from tomahawk.
>>
>>It is not possible to combine tobago with other jsf tag libraries.
>>
>>Tobago has also a style tag, try this one.
>>
>>Regards,
>>  Volker


-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

context path in

Posted by Lance Frohman <lf...@gmail.com>.
When I use an <h:graphicImage url="/images/myimage.gif" />
the resulting html has the context path added to the beginning:

<img
src="/contextpath/images/myimage.gif;jsessionid=FC8DCE7CCC9D6174FB47A3CC5183
11FC" />

Is there any way to prevent this?

Thanks,
Lance