| Author |
MyFaces Tomahawk ignores checkbox in dataList on first submission
|
Wally Hartshorn
Ranch Hand
Joined: Jan 30, 2003
Posts: 77
|
|
We're using MyFaces with Tomahawk and are seeing some strange behavior that appears to be related to t:dataList and certain types of form elements. Suppose you have a form with code like this: Note that one checkbox is outside of the dataList, the other is inside the dataList. Suppose I were to do this: display the formselect both checkboxesclick submitI would find that the value of the checkbox that is inside the t:dataList is ignored -- the value of myBean.boxInDataList would NOT be set to "true". The checkbox outside of the t:dataList would work just fine. Stranger still, if I were to: display the formselect both checkboxesdo something that will cause a validation error (e.g. leave a required field blank)click submitThen I would find that when the form was redisplayed with the validation error message, the checkbox within the t:dataList would NOT be checked. The checkbox that is outside of the t:dataList would properly remember that I had checked it. Strangest of all, if I were to: display the formselect both checkboxesdo something that will cause a validation error (e.g. leave a required field blank)click submitobserve on the redisplayed form that the checkbox in the t:dataList is not checkedreselect the checkboxcorrect the validation errorresubmit the formThen I would find that the value of the checkbox in the t:dataList is NO LONGER IGNORED. What the...? Is this a bug in MyFaces Tomahawk or is there something subtle going on here that I'm missing?
|
Wally Hartshorn
|
 |
 |
|
|
subject: MyFaces Tomahawk ignores checkbox in dataList on first submission
|
|
|