myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <de...@oma.be>
Subject tomahawk htmlcommandlink not working with reference implementation
Date Tue, 29 Aug 2006 12:07:37 GMT
Hello,

i make quite a good use of subforms, inside which i use the tomahawk
htmlcommandLink. While subforms are from sandbox, and then might not be
working properly, the commandlink itself is generating improper
javascript in my jsf form when witching from myface implementation of
jsf to the sun reference implementation. It does not work anymore
because javascript is referencing an inexistant form element that seem
specific to myfaces:

<a href="#"
onclick="if(window.clearFormHiddenParams_parameterTestForm!=undefined)
{clearFormHiddenParams_parameterTestForm('parameterTestForm');}document.forms['parameterTestForm'].elements['parameterTestForm:_idcl'].value='parameterTestForm:form4:parameter:_id18:append';document.forms['parameterTestForm'].elements['beanName'].value='parameterTestForm_form4_parameter_BEAN_';document.forms['parameterTestForm'].elements['parentClass'].value='be.dissco.shark.gui.html.HtmlParameterArrayEditor';if(document.forms['parameterTestForm'].onsubmit){var
result=document.forms['parameterTestForm'].onsubmit();  if( (typeof
result == 'undefined') || result )
{document.forms['parameterTestForm'].submit();}}else{document.forms['parameterTestForm'].submit();}return
false;" id="parameterTestForm:form4:parameter:_id18:append">+</a>


The element 'parameterTestForm:_idcl' does not exist in the form.
However, if i switch back from reference implementation to myfaces,
there is indeed a hidden field named 'parameterTestForm:_idcl' at the
end of form.
 
I know this is sandbox and thus not 100% compatible, but it think it's
not a problem of subform, rather a problem of HtmlCommandLink. I used a
svn checkout of 'current' from yesterday, compiled according to wiki
instructions using maven.

Mime
View raw message