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