> -----Original Message-----
> From: Stefan Frank [mailto:[EMAIL PROTECTED] 
> Subject: Setting up myfaces extension for suns jsf-implementation
> pretty cool idea to allow a consistent packaging of 
> components - is this in some way standardized, or does it 
> have chances to get standardized? Or is there another 
> proposed way to package ressources like images or .js that 
> are needed by the component?!

Yea, clever it is. Filters of course are standard, but accessing packaged 
resources this way is not. I don't believe there's any other proposed standard 
way.. I guess you could do it in the viewhandler as well, but a filter is a 
cleaner and better performing approach IMHO. Btw, the filter doesn't set 
last-modified, expires headers correctly I believe, so the resources are pulled 
from the server every time the page is rendered, which is unnessary. I'd 
consider it a bug, but not critical, just affects performance. Lots of other 
bigger or smaller bugs as well I'm aware of, just haven't had any time to file 
those not not to mention fixing them. Stupid real work gets in the way of fun 
stuff :(

> ---
> Aah, and by the way: Do I have to add the references to the 
> *.js and images manually to the jsp? Or should the 
> extension-filter magically detect the components on the page 
> and even more magically adds the references? Right now, I 
> added the filter and get the same results like before(none:() 
> It looks like the filter is working, at least ressources like 
> <web-app>/faces/myFacesExtensionResource/htmlEditor.HtmlEditor
> Renderer/kupud
> rawers/demolibraries.xml
> are properly resolved. 
> Any other steps to do? 

Dunno. I haven't used htmlEditor, but I can tell you that I didn't need to do 
anything else when I added the calendar component on a page. I'd use the latest 
codebase from CVS.

Kalle

> PS: ok, I volunteer to scribble some document together that 
> describes the steps needed to set this up with suns 
> jsf-implementation, when I finally got this stuff to run:)

Great!

> > -----Original Message-----
> > From: Korhonen, Kalle [mailto:[EMAIL PROTECTED]
> > Sent: Montag, 14. Februar 2005 18:21
> > To: MyFaces Discussion
> > Subject: RE: Empty Pages with myfaces-examples
> > 
> > > -----Original Message-----
> > > From: Stefan Frank [mailto:[EMAIL PROTECTED]
> > > Subject: RE: Empty Pages with myfaces-examples Now I started to 
> > > integrate the x:htmlEditor component: This works. Sort of.
> > > The component is rendered, but all references to styles,
> > images or the
> > > .js used by the editor are unsatisfied: All ressources
> > needed by the
> > > html-editor are in myfaces-extensions.jar. Sorry, if I
> > bother you with
> > > basic tomcat-questions, but how do I tell the web-app to
> > lookup these
> > > ressources inside the jar?! Or do I have to unpackage 
> them? (no, in 
> > > the myfaces-example, these files are still packaged 
> inside the jar)
> > 
> > You need to specify Myfaces extensions filter in your 
> web.xml, see the 
> > example web.xml. It's a clever, clever way of handling access to 
> > packaged resources, but it should really be documented properly 
> > somewhere, or maybe some underlying code could log a 
> warning if it's 
> > not there. Some of the guys here as well were more than a little 
> > confused about it a while ago.
> > 
> > Kalle
> > 
> > > > Btw. myfaces_ext_sf.tld is for legacy support of our
> > > sourceforge code
> > > > base. (backwards compatibility) myfaces_ext.tld all *new*
> > > components
> > > > and Apache Namespaces
> > > 
> > > 
> > > > 
> > > > HTH,
> > > > Matthias
> > > > 
> > > > > 
> > > > > Thx for the help!
> > > > > stf
> > > > > 
> > > > > 
> > > > > 
> > > > 
> > > > --
> > > > Matthias We�endorf
> > > > Aechterhoek 18
> > > > DE-48282 Emsdetten
> > > > Germany
> > > > phone: +49-2572-9170275
> > > > cell phone: +49-179-1118979
> > > > email: matzew AT apache DOT org
> > > > url: http://www.wessendorf.net
> > > > callto://mwessendorf (Skype)
> > > > icq: 47016183
> > > > 
> > > 
> > > 
> > 
> 
> 

Reply via email to