[OKC JUG] Hello!

Grzegorz Bugaj gregbugaj at yahoo.com
Tue Jan 29 22:13:45 PST 2008


Not an expert in JSF yet, but in the HTML Head tag you
could have something like
<code>
<head>
<jsf:resolveyui>
</head>
</code>
 then you could grab the JSF Component Tree scan for
all the ones that use YUI staff, and easly decide
which YUI scripts need to be included. 

Pesonally I wouldn't include YUI files at the bottom
of the page since this would cause issues if we try to
declare shortcuts like  in the head
<code>
var $D=YAHOO.util.dom;
var $E=YAHOO.util.event;
</code>

and later use them like 
<code>$E.attacheEvent("load",function(){});</code>
which would cause the object to be null till the
actual javascript file is loaded.

Another thing to consider is that we might want to use
YUI componets without using any JSF, or we might want
to mix some JSF and YUI and not have to have multiple 
YUI scripts included on the page.

Just an idea. 
Greg Bugaj

--- Jason Lee <jason at steeplesoft.com> wrote:

> On 1/29/08, Grzegorz Bugaj <gregbugaj at yahoo.com>
> wrote:
> >
> > Hello everyone.
> > Quick question for Jason, I read the article
> > 'JSFTemplating and Woodstock: Component Authoring
> Made
> > Easy' and I see how you are defining a slider
> > component, but arent you going to include YUI
> headers
> > twice this was for each component, or did I miss
> > something in there?
> >
> 
> Right now, yes.  You're right.  Before I stamp that
> 1.0, I'm going to fix
> that.  I also need to figure out a clean (and
> scalable) way to put these in
> the <head> section (or, optionally) at the end of
> the page.  As it is now,
> it spits out the JS and CSS where the component is,
> which will make it
> difficult to, say, put a contextMenu on a tree item.
> 
> -- 
> Jason Lee, SCJP
> Software Architect -- Objectstream, Inc.
> Mojarra and Mojarra Scales Dev Team
> https://mojarra.dev.java.net
> https://scales.dev.java.net
> http://blogs.steeplesoft.com
> > _______________________________________________
> Jug mailing list
> Jug at lists.okcjug.org
> http://lists.okcjug.org/listinfo.cgi/jug-okcjug.org
> 



Regards
Greg Bugaj



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the Jug mailing list