You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ramesha <ra...@yahoo.com> on 2006/11/19 06:36:59 UTC

Java Script error with My Faces

Dear all,

I am getting javascript error when I tried to click on <t:commandButton>.
which calls generated onclick="clear_<formname>()" function.

The generated source code is some thing like this:

<t:input type="submit" value="submit" onclick="clear_form()" />.

But We do not see the function clear_form() anywhere, so when we click

the that button, Browser will raise an javascript error.

May be this script function will get generated by the Myfaces libraries, but I 
might be missing to point to this generated function.


If some one is having solution to this issue please suggest.

Regards
Ramesha



Re: Java Script error with My Faces

Posted by Andrew Robinson <an...@gmail.com>.
I may be mistaken, but it sounds like a jar version conflict issue.
What versions of MyFaces jars have you deployed for core, tomahawk and
sandbox? Also, do you have a form around the command button?

On 11/18/06, Ramesha <ra...@yahoo.com> wrote:
> Dear all,
>
> I am getting javascript error when I tried to click on <t:commandButton>.
> which calls generated onclick="clear_<formname>()" function.
>
> The generated source code is some thing like this:
>
> <t:input type="submit" value="submit" onclick="clear_form()" />.
>
> But We do not see the function clear_form() anywhere, so when we click
>
> the that button, Browser will raise an javascript error.
>
> May be this script function will get generated by the Myfaces libraries, but I
> might be missing to point to this generated function.
>
>
> If some one is having solution to this issue please suggest.
>
> Regards
> Ramesha
>
>
>