문제

I have some input fields that are created dynamically using JS. The thing is, when I submit the page, the setters of the Bean are not called, except when using IE. It only works on Chrome and Firefox when I add the input fields statically on the code.

This works on all browsers:

<input name="test" value="test"/>

This only works in IE:

var test = document.createElement('input');
test.name = 'test';
test.value = 'test';
tbody.appendChild(test);

Anyone know the solution, please?

도움이 되었습니까?

해결책 2

It was my mistake. The form tag was inside my table tag.

다른 팁

This guy had the same problem:

http://forums.mozillazine.org/viewtopic.php?f=25&t=518697&p=2742491

Try using html:rewrite to add new inputs.

If that is a tbody element of a table as the variable name suggests, that is invalid markup. tbody can only have rows as a child.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top