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 PROTECTED]>
12/22/2005 03:31 PM
|
To: MyFaces Discussion <users@myfaces.apache.org> cc: bcc: Subject: Re: Popup calendar _javascript_ - loadPopupScript not defined |
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.
<portlet>
<portlet-name>BodyPortlet</portlet-name>
<display-name>Project Tracking</display-name>
<display-name xml:lang="en">Project Tracking</display-name>
<portlet-class>
com.aholdusa.ptw.portlet.BodyPortlet
</portlet-class>
<init-param>
<name>default-view</name>
<value>/home.jsp</value>
</init-param>
<init-param>
<name>ViewPage</name>
<value>/home.jsp</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>Project Tracking</title>
</portlet-info>
</portlet>
On a side note I did have to make sure my classloading was set tp parent_first in order to get my portlet to render. I also had to remove commons-logging from my project and added commons-el.
Louis M. Burroughs III
CD <[EMAIL PROTECTED]>
12/22/2005 03:17 PM Please respond to "MyFaces Discussion" |
To: MyFaces Discussion < users@myfaces.apache.org> cc: bcc: Subject: Re: Popup calendar _javascript_ - loadPopupScript not defined |
|
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 ;)
<filter>
<filter-name> extensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize </param-name>
<param-value>100m </param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k </param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter </filter-name>
<url-pattern>*.faces </url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter </filter-name>
<url-pattern>/faces/* </url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter </filter-name>
<url-pattern>*.jsf </url-pattern>
</filter-mapping>
Louis M. Burroughs III
CD <[EMAIL PROTECTED]
>
12/22/2005 02:58 PM Please respond to "MyFaces Discussion" |
To: MyFaces Discussion < users@myfaces.apache.org> cc: bcc: Subject: Re: Popup calendar _javascript_ - loadPopupScript not defined |
|
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 show up.
Do the scripts fail simply because the <script> tags are not in the <head>? Or is there something more sinister at work? If I can even get a general description of what needs to happen to get my scripts to function, I'll try to hack something to get it to work.
Louis M. Burroughs III
Martin Marinschek <[EMAIL PROTECTED]
>
12/22/2005 02:02 PM Please respond to "MyFaces Discussion" |
To: MyFaces Discussion < users@myfaces.apache.org> cc: bcc: Subject: Re: Popup calendar _javascript_ - loadPopupScript not defined |
|
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 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's
> WebSphere WebApp. My environment once again is WebSphere Portal v5.1.
> Don't know that it would be beneficial for me to to send the content of the
> config files in this thread, though I do think it would help. What would be
> the best way of posting this information as I think I am just incapable of
> configuring it properly :)
>
>
>
>
> On 12/22/05, Martin Marinschek < [EMAIL PROTECTED] > wrote:
> > 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 debug into ExtensionsFilter?
> >
> > CD - do you have the same issue as Kurt - no resources being
> > delivered, or is your head not showing the additional scripts?
> >
> > regards,
> >
> > Martin
> >
> > On 12/22/05, Martin Marinschek < [EMAIL PROTECTED]> wrote:
> > > 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:
> > > > > > <!-- extension mapping for serving page-independent resources
> > > > > > (_javascript_, stylesheets, images, etc.) -->
> > > > > > <filter-mapping>
> > > > > >
> <filter-name>MyFacesExtensionsFilter</filter-name>
> > > > > > <url-pattern>/faces/*</ url-pattern>
> > > > > > </filter-mapping>
> > > > > >
> > > > >
> > > > > 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. Is there a reason you changed your mind?
> > > >
> > > > As I mentioned on the dev list, I couldn't get it to work!
> > > >
> > > > As soon as I switched from /faces/* to
> > > > /faces/myFacesExtensionResource/*, the buttons on my
> popup
> > > > t:inputCalendar components stopped drawing.
> > > >
> > > > Strangely enough, I tried it yet again, and now it's working. Guess
> > > > it must have been user error on my part. I think maybe what happened
> > > > is that I broke the other piece (my web.xml uses "FacesServlet" while
> > > > MyFaces docs and examples have "Faces Servlet") and didn't notice the
> > > > difference until after I stopped trying to use
> > > > /faces/myFacesExtensionResource/*
> > > >
> > > > I'm +1 for changing it to
> /faces/myFacesExtensionResource/* since
> > > > you've been using that successfully.
> > > >
> > >
> > >
> > > --
> > >
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces