Thank you

----- Original Message ----- From: "Cosma Colanicchia" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <users@myfaces.apache.org>
Sent: Friday, May 19, 2006 12:04 PM
Subject: Re: commandLinks - javascript errors


You should have this in your web.xml:

   <!-- Extensions Filter -->
   <filter>
       <filter-name>extensionsFilter</filter-name>
       
<filter-class>org.apache.myfaces.webapp.filter.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>*.jsf</url-pattern>
   </filter-mapping>

   <filter-mapping>
       <filter-name>extensionsFilter</filter-name>
       <url-pattern>/faces/*</url-pattern>
   </filter-mapping>



After your last <context-param> and before your <servlet> elements.
With this, some javascript code is automatically added to each jsf
page, and this is needed to correctly handle the auto scrolling
feature. The missing javascript function, which is called by
commandLink, was probably the cause of your javascript errors.

Cosma



2006/5/19, Nicolas GENSOLLEN <[EMAIL PROTECTED]>:
Thank you very much Cosma, you are right !
You said "that causes errors if the myfaces filter
isn't properly setup", what is a properly setup ?

Nicolas


----- Original Message -----
From: "Cosma Colanicchia" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <users@myfaces.apache.org>
Sent: Friday, May 19, 2006 11:31 AM
Subject: Re: commandLinks - javascript errors


It can be the auto-scrolling, that causes errors if the myfaces filter
isn't properly setup. Try to set, in web.xml, the parameter
org.apache.myfaces.AUTO_SCROLL to false and see if this fix the
problem.

Cosma


2006/5/18, Nicolas GENSOLLEN <[EMAIL PROTECTED]>:
> Hi,
>
> Even if I'm not using SUN RI all my commandLinks produce a javascript
> errors.
> I tried all solutions explained in comments without good results.
> Has anyone got any idea what I'm doing wrong?
>
> tia.
>
> ----- Original Message -----
> From: "Gerald Müllan" <[EMAIL PROTECTED]>
> To: "MyFaces Discussion" <users@myfaces.apache.org>
> Sent: Wednesday, May 17, 2006 1:12 PM
> Subject: Re: commandLinks - javascript errors
>
>
> Hi,
>
> have a look at the actual discussion in JIRA:
>
> https://issues.apache.org/jira/browse/TOMAHAWK-416
>
> and also on the dev list (topic DummyForm stuff).
>
> It addresses this problem.
>
> cheers,
>
> Gerald
>
> On 5/17/06, Nicolas GENSOLLEN <[EMAIL PROTECTED]> wrote:
> > I've got the same error since I have installed core 1.1.3 and tomahawk
> > 1.1.2,
> > all commandLinks produce a javascript errors. My browser is IE 6
> >
> > Thanks
> >
> > ----- Original Message -----
> > From: "Chrisi" <[EMAIL PROTECTED]>
> > To: "MyFaces Discussion" <users@myfaces.apache.org>
> > Sent: Tuesday, May 16, 2006 11:47 AM
> > Subject: Re: commandLinks - javascript errors
> >
> >
> > Which Browser/Version do you use?
> >
> > On 5/15/06, Sarah Touati <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Hello,
> > >
> > >  I am new to JSF and have been unable to get commandLinks to work at
> > > all -
> > > they simply produce javascript errors. I was using Sun RI and am now
> > > using
> > > the MyFaces tomahawk extension along with that. I am using Tomcat
> > > 5.5.9.
> > >
> > >  I have tried placing commandLinks within a dataTable, within a
> > > dataList,
> > > and on their own (but within a form). I have tried using simple
> > > hard-coded
> > > strings for the action and the output text but they still don't > > > work.
> > > I
> > > have
> > > gotten around this in one case by using commandButton instead, but
> > > would
> > > like to be able to use the links.
> > >
> > >  Has anyone got any idea what I'm doing wrong?
> > >
> > >  Thanks
> > >
> > >
> > >
> > >
> > > ________________________________
> > >  --- Disclaimer ---
> > >
> > >  Unless otherwise agreed expressly in writing by a Director of Edina
> > > Software, this communication is to be treated as confidential and > > > the > > > information in it may not be used or disclosed except for the > > > purpose
> > > for
> > > which it has been sent. If you have reason to believe that you are > > > not
> > > the
> > > intended recipient of this communication, please contact the sender
> > > immediately.
> > >
> > >
> > > ______________________________________________________________________
> > > This email has been scanned by the MessageLabs Email Security > > > System.
> > >  For more information please visit
> > > http://www.messagelabs.com/email
> > > ______________________________________________________________________
> > >
> >
> >
> > --
> > Thanks and Greetings
> > Chrisi
> >
> >
>
>
> --
> Gerald Müllan
> Schelleingasse 2/11
> 1040 Vienna, Austria
> 0043 699 11772506
> [EMAIL PROTECTED]
>
>



Reply via email to