David,
I think Martin fixed this recently (in a mid-July snapshot?)
If you're still having issues with this with the most recent snapshot,
please open a JIRA issue.
On 8/29/06, David Delbecq <[EMAIL PROTECTED]> wrote:
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.