I am attempting to use the MyFaces calendar object as a popup (I have a working version of the inline calendar working). However, I am running into _javascript_ errors resulting from loadPopupScript not being defined as well as DateFormatSymbols not being defined. I have put the sample Extensions
Hi !
However, I am running into javascript errors resulting from
loadPopupScript not being defined as well as DateFormatSymbols not
being defined.
You have to map the extension filter to /faces/* too.
---
Mario
That did not work as was expected since the /faces/* path is used nowhere in my application. Thank you for the suggestion though :)
On 12/21/05, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
Hi !> However, I am running into _javascript_ errors resulting from> loadPopupScript not being defined as w
The extension filter uses the faces-path.
It automatically mirrors component resources under the faces-path.
regards,
Martin
On 12/21/05, CD <[EMAIL PROTECTED]> wrote:
> That did not work as was expected since the /faces/* path is used nowhere in
> my application. Thank you for the suggestion
It's my understanding that the tomahawk component *creates* urls
containing the /faces/* path in your response. The extensions filter
then resolves those requests.
This does raise another question. Is there any reason why the
extension filter has a *.jsf mapping? It would seem less confusing
Yes there is - the extension filter is also used to add the necessary
,
tags to the of JSF-pages. - you wouldn't get this if it was
not mapped to the .JSF suffix.
The rule is: map it to whatever your JSF-pages are mapped to, plus map
it to /faces/*...
regards,
Martin
On 12/21/05, Mike Kiene
Martin, I think I'll make it a point to update our documentation at
some point in the future to describe WHY we're needing the extension
filter mappings that we do. I know that it was a source of confusion
for me, and I never understood why it required /faces until recently.
Thanks for clearing
That is all good to know. Thanks Martin and Mike for a good explanation of what the filter represents. I have changed the web.xml to look identical to the example given on the myfaces website yet I still get the same JScript issue. Here is the snippet of my
web.xml that has changed (everything
>... One question I would
> have is this. My page has a jsp extension as opposed to a jsf extension.
> Will the extensions filter still correctly operate under this condition?
Change the
MyFacesExtensionsFilter
*.jsf
to
MyFacesExtensionsFilter
*.jsp
No, it has to match what your facesServlet maps to PLUS the /faces/* pattern.
One maintenance-free way to do this might be to use the following
(assuming your faces servlet is named "FacesServlet"):
extensionsFilter
FacesServlet
MyFacesExtensionsFilter
/f
Hi,
I posted the same issue couple of weeks ago and couldn't resolve it. I'm still
stuck with an JavaScript error: jscalendarPopUpCalendar is not defined
I do have the extensionsFilter declared in my web.xml, both mapped to /faces/*
and *.jsf as shown by this snipplet of my web.xml:
MyFacesExt
Kurt Edegger <[EMAIL PROTECTED]> wrote on
12/21/2005 01:18:05 PM:
> Hi,
>
> I posted the same issue couple of weeks ago and couldn't resolve it.I'm
still
> stuck with an _javascript_ error: jscalendarPopUpCalendar is not defined
>
> I do have the extensionsFilter declared in my web.xml, both ma
Hi Kurt,
Are you working in a portal environment perhaps? I don't think that has any bearing on the issue I'm dealing with as you are getting the same problems I am, but it would be comforting to know :)
On 12/21/05, Kurt Edegger <[EMAIL PROTECTED]> wrote:
Hi,I posted the same issue couple of w
Hi,
thank you for the idea. I followed the thread discussing that the extension
filter needs a or tag to be able to add the neccessary
javaScripts.
I do indeed work with a non standalone JSF application, but it's not in a
portal
environment. The thing is called Sakai and is a sort of classroom m
Hi,
nope this didn't work. No change at all - same problem ..
Thank you,
Kurt
Quoting "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
> Kurt Edegger <[EMAIL PROTECTED]> wrote on 12/21/2005 01:18:05 PM:
>
> > Hi,
> >
> > I posted the same issue couple of weeks ago and couldn't resolve it.I'm
>
I've updated forrest/content/xdocs/tomahawk/extensionsFilter.xml
describing how the filter works and what filter mappings you should
set.
Here's what I'd recommend using. As was mentioned before, you need both:
MyFacesExtensionsFilter
Faces Servlet
MyFacesExtensionsFilter
Hi,
thank you for the idea. I followed the thread discussing that the extension
filter needs a or tag to be able to add the neccessary
javaScripts.
I do indeed work with a non standalone JSF application, but it's not in a portal
environment. The thing is called Sakai and is a sort of classroom m
Mike Kienenberger wrote:
I've updated forrest/content/xdocs/tomahawk/extensionsFilter.xml
describing how the filter works and what filter mappings you should
set.
Here's what I'd recommend using. As was mentioned before, you need both:
MyFacesExtensionsFilter
Faces Servlet
Lo
On 12/21/05, Simon Kitching <[EMAIL PROTECTED]> wrote:
> >
> >
> > MyFacesExtensionsFilter
> > /faces/*
> >
> >
>
> I liked your suggestion of mapping this to
>/faces/myFacesExtensionResource/*
>
> This mapping is what I use in the app I'm currently developing, and it
> works fine. I
Sounds good to me!
this also bears documentation with it ;)
regards,
Martin
On 12/21/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> On 12/21/05, Simon Kitching <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > MyFacesExtensionsFilter
> > > /faces/*
> > >
> > >
> >
> > I liked your sug
To come back to Kurt's and CDs original problem -
Kurt - your header is rendered correctly - can you fire up something
like HTTPFiddler and check if the files are actually delivered to your
browser?
Next step - start your app in debugging mode, attach the
myfaces-sources to the jar-file, and debu
Martin,
I am encountering both as the resources and the _javascript_ are not showing up in the head. I had modified my xmls (portlet, faces-config, and web) to represent how I thought they should be configured for MyFaces but I encountered a ClassCastException in the container that involved IBM'
You're in a portal environment?
Well, this might as well be your problem. There are several known
issues with the extension-filter and portlets, they boil down to the
fact that the two don't work together ;)
regards,
Martin
On 12/22/05, CD <[EMAIL PROTECTED]> wrote:
> Martin,
>
> I am encounter
So you are saying that I have no recourse here?
On 12/22/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
You're in a portal environment?Well, this might as well be your problem. There are several known
issues with the extension-filter and portlets, they boil down to thefact that the two don't wo
My extensions filter works (I think),
for example my tree2 renders fine and all of the images from the jar show
up.
Do the scripts fail simply because the
Well, I'm not working with portal servers and by no means a portlet
expert, but for as much as I know, it won't work.
what you do is just include the necessary resources for each component
on your own...
regards,
Martin
On 12/22/05, CD <[EMAIL PROTECTED]> wrote:
> So you are saying that I have
Is it a matter of the filter not running at all?
Is it a matter of the JSF page not being updated? Not sure how this
could be addressed. Maybe by using something like t:buffer? Or a
subclass of ExternalContext with an in-memory buffer of the response
outputstream?
Is it a matter of the /faces
On 12/22/05, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> Is it a matter of the /faces/myfacesExtensionResource/* resources not
> being available? Maybe this could be addressed by a filter.
Oops. I meant replaced with a phase-listener, not a filter.
Louis,
Can you post some of the content of your config files where you set up the extensions filter? That would be quite helpful.
On 12/22/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
My extensions filter works (I think), for example my tree2 renders fine and all of the images from the jar sh
Well, what I remember it wouldn't work as we used the ServletRequest
in the filter - and that wasn't available in the portlet environment?
But actually, upon reflection, people complained about class-cast
exceptions then...
Hmmm...
There is one huge patch in jira attributed to Stan Silvert which
D'oh! Do you know what the timetable is on MyFaces supporting a portal environment?
On 12/22/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
Well, what I remember it wouldn't work as we used the ServletRequestin the filter - and that wasn't available in the portlet environment?
But actually, up
I threw all the patterns
I could think of ;)
extensionsFilterfilter-name>
org.apache.myfaces.component.html.util.ExtensionsFilter
filter-class>
Well, you can work around the issues.
just add the resources yourself! this is not ideal, but better than nothing.
I don't know of any of the MyFaces committers being involved with
portals, so I really don't know about a timetable, sorry.
regards,
Martin
On 12/22/05, CD <[EMAIL PROTECTED]> wro
Louis,
That is consistent with what I have done, what do your portlet.xml and faces-config.xml look like?
Thanks!
Regards,
C. Dillon
On 12/22/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
I threw all the patterns I could think of ;)
extension
Here
is my portlet config. My faces-config is nothing special.
BodyPortlet
Project Tracking
Project
Tracking
com.aholdusa.ptw.portlet.BodyPortlet
Louis,
Pardon the foolish question, but I can't, for the life of me, recall where the setting for Parent_first option is accessed.
Thanks!
Regards,
C. Dillon
On 12/22/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
Here is my portlet config. My faces-config is nothing special.
When you say add the resources myself
do you mean adding the _javascript_ files using the script tag?
In the admin console under enterprise
apps.
I have tried to figure out a way to
change this in a deployment file, but with no luck yet. I am also
trying to work out why only Parent_First works for me, but first I have
to get my scripting fixed.
Louis M. Burroughs III
CD <[EMAIL PROTECT
No. not that I know of.. so you'll need to write it from scratch.regards,MartinOn 12/22/05, Louis Burroughs <
[EMAIL PROTECTED]> wrote:
When you say add the resources myself
do you mean adding the _javascript_ files using the script tag?
Louis,
Did you try adding the script tags to include the js manually? I'm noticing that it is not placing it between the tags in the rendered html.
On 12/22/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
No. not that I know of.. so you'll need to write it from scratch.regards,
Martin
On 12/
The AddResource class parses the html
to add tags in the head. I am assuming that because the head is rendered
outside of the portlet (it belongs to the entire page), that it is not
in to the resource stream the AddResource class is using. I will
be spending at least some of my Christmas break r
"MyFaces Discussion"
To:MyFaces Discussion ,
[EMAIL PROTECTED]
cc:
bcc:
Subject: Re: Popup calendar javascript - loadPopupScript
not defined
Louis,
Did you try adding the script tags to include the js manually? I'm
noticing that it is
ping my portlet, so I
> > can insert text into the head.
> >
> >
> > Louis M. Burroughs III
> >
> >
> > *CD <[EMAIL PROTECTED]>*
> >
> > 12/22/2005 04:06 PM
> > Please respond to "MyFaces Discussion"
> >
> >
> >
>
43 matches
Mail list logo