You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Andreas Gärtner <A....@gmx.net> on 2008/01/09 02:02:37 UTC
Re: MyFaces 1.2.0 bug? not generating JavaScript
I have had one of those when I was using an old
but working navigation menu .jsp with jsf 1.2.
What I found out, after days of testing: jsf 1.2
needed a seperate form around these tags for the
javascript to be inserted, which it didn't before
(in versions 1.1.3 and some...). Maybe this solves your problem, too?
At 14:10 29.12.2007, you wrote:
>Hi All! I have upgraded MyFaces to 1.2.0, but
>unfortunately JavaScript functions for
>components like Tomahawk are not generated. For
>example, this is the output when using MyFaces
>1.2.0 and Tomahawk 1.1.7 snapshot for
>t:dataTable and sort header: <th
>class="standardTable_Header"><a href="#"
>onclick="clear_contacts();document.forms['contacts'].elements['contacts:_link_hidden_'].value='contacts:data:j_id_id68';if(document.forms['contacts'].onsubmit){document.forms['contacts'].onsubmit();}document.forms['contacts'].submit();return
>false;"
>id="contacts:data:j_id_id68">Nazwaâ</a></th>
>but when I click "Nazwa" header I get:
>JavaScript Error: clear_contacts is not defined
>Error: clear_contacts is not defined Source
>File:
>http://localhost:8080/student/contacts/contactsList.jsf
>Line: 1 when I downgraded MyFaces to 1.1.5
>(tomahawk 1.1.7) I get: <a href="#"
>onclick="return
>oamSubmitForm('contacts','contacts:data:j_id_id68');"
>id="contacts:data:j_id_id68">Nazwaâ</a>
>the oamSubmitForm is appended to generated web
>page and everything works. has anybody
>encountered similar behaviour? best regards Åukasz