If <input type="radio" ...="" appears="" outside="" any="" <form="">
element and some javascript code wants to set checked
property, it leads to code:
public void setChecked( final boolean isChecked ) {
final HtmlForm form = getEnclosingForm();
final boolean changed = isChecked() != isChecked;
if( isChecked ) {
try {
form.setCheckedRadioButton( getNameAttribute(),
getValueAttribute() );
}
catch( final ElementNotFoundException e ) {
// Shouldn't be possible
throw new IllegalStateException("Can't find this
element when going up to the form and back down.");
}
}
And "final HtmlForm form = getEnclosingForm();"
returns null, than whole javascript ends with
NullPointerException.
At least there should be used getEnclosingFormOrDie
function. And maybe input fields outside form could be
allowed.
Thanks
Logged In: YES
user_id=950730
Originator: NO
Fixed in SVN, many thanks.