The js and css files are in my webapp. YUI doesn't require anything to be in the head tag.
-- Michael On Wed, Nov 19, 2008 at 3:09 PM, Otto, Frank <[EMAIL PROTECTED]> wrote: > > Hi michael, > > Thanks for your fast answer. > > Have you the js and css tags in your portlet webapp or in the portal > environment? Because, there is no head-tag in a portlet jsp. > > Kind regards, > > Frank > > -----Ursprüngliche Nachricht----- > Von: Michael Binette [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 19. November 2008 16:25 > An: Jetspeed Users List > Betreff: Re: jetspeed 2 with Yahoo User Interface Library (YUI) > > Yes, I've used the YUI tree control in a portlet. It didn't take any > special work, just put the js files in your webapp. Then make sure you use > encodeURL like this: > > <link rel="stylesheet" type="text/css" href="<%= > renderResponse.encodeURL(renderRequest.getContextPath() + > "/js/yui/treeview/assets/skins/sam/treeview.css")%>" /> > <script type="text/javascript" src="<%= > renderResponse.encodeURL(renderRequest.getContextPath() + > "/js/yui/yahoo/yahoo-min.js")%>"></script> > <script type="text/javascript" src="<%= > renderResponse.encodeURL(renderRequest.getContextPath() + > "/js/yui/event/event-min.js")%>"></script> > <script type="text/javascript" src="<%= > renderResponse.encodeURL(renderRequest.getContextPath() + > "/js/yui/treeview/treeview-min.js")%>"></script> > <script type="text/javascript" src="<%= > renderResponse.encodeURL(renderRequest.getContextPath() + > "/js/yui/json/json-debug.js")%>"></script> > > -- > Michael > > On Tue, Nov 18, 2008 at 10:25 PM, David Sean Taylor > <[EMAIL PROTECTED]>wrote: > > > > > On Nov 18, 2008, at 8:03 AM, Otto, Frank wrote: > > > > hi, > >> > >> has someone use a portlet with YUI in jetspeed 2? Is it possible? > >> > >> If yes, have you an example? > >> > >> Don't know of any. I was considering using it for layout possibly > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
