I think it would also be nice if you could specify an alternate
script/image/style location for some of the myfaces components like
you can with tree2.  This way you can skip the extensions filter. 
Plus you have the option to override the scripts/images/styles with
your own.

sean


On 4/19/05, Korhonen, Kalle <[EMAIL PROTECTED]> wrote:
> > -----Original Message-----
> > From: Tang, Jason [mailto:[EMAIL PROTECTED]
> > Subject: RE: inputCalendar
> > I think I did.
> >   <filter-mapping>
> >     <filter-name>extensionsFilter</filter-name>
> >     <url-pattern>*.jsf</url-pattern>
> >   </filter-mapping>
> >   <filter-mapping>
> >     <filter-name>extensionsFilter</filter-name>
> >     <url-pattern>/secure/*</url-pattern>
> >   </filter-mapping>
> > I got the simple example working, the only difference is the
> > url of calendar.jsp is on root while mine is under a package
> > named /secure (need login)
> 
> The url where the component tries to load the resources is
> /faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/....
> 
> In your case, the extensionsFilter isn't processing the resource request
> at all, so the javascript functions are not available. Change your
> mapping accordingly. Check the page source to verify. Granted, this
> should be documented better. i.e. why you need to specify mapping in a
> certain way.
> 
> Another thing, say you access your main page with path /<rootContext>/
> only. In that case the resource urls wouldn't be added to the page
> because it's not processed by the filter at all. Therefore, we simply
> let extensionsFilter to process all requests.
> 
> Kalle
> 
> > -----Original Message-----
> > From: Rob Decker [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 19, 2005 1:53 PM
> > To: MyFaces Discussion
> > Subject: Re: inputCalendar
> >
> >
> > You probably need to set up the extension filter so the
> > javascript and images are accessible.
> >
> > See http://myfaces.apache.org/docs/extensionsFilter.html
> >
> >
> > ----- Original Message -----
> > From: "Tang, Jason" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Tuesday, April 19, 2005 4:48 PM
> > Subject: inputCalendar
> >
> >
> > > Hi
> > >
> > > I tried to use inputCalendar in my jsf page but I got an
> > error page which
> > said failure to locate jscalendarSetImageDirectory reported from the
> > javascript console.
> > >
> > > Error: jscalendarSetImageDirectory is not defined
> > >
> > > What is jscalendarSetImageDirectory?
> > >
> > > Also, I notice some errors in the log
> > >
> > > 13:41:57,492 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id1: -2147483648
> > > 13:41:57,498 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id2: -2147483648
> > > 13:41:57,500 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id4: -2147483648
> > > 13:41:57,503 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid login:_id6: -2147483648
> > > 13:41:57,503 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid login:_id7: -2147483648
> > > 13:42:02,878 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id1: -2147483648
> > > 13:42:02,884 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id2: -2147483648
> > > 13:42:02,900 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid _id4: -2147483648
> > > 13:42:02,902 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid log:_id6: -2147483648
> > > 13:42:02,903 ERROR [HtmlGridRenderer] Wrong columns attribute for
> > PanelGrid log:_id7: -2147483648
> > >
> > > I don't think I use wrong attribute for any of the tags. I
> > appreciate if
> > anyone can point me out something.
> > >
> > > I use MyFaces 1.0.9m9
> > >
> > > Thanks
> > > Jason
> > >
> >
>

Reply via email to