After reading the source code again, here's my revised message:
= "There should always be a submitted value for an input if it is
rendered,"
+ " its form is submitted, and it was not originally rendered
disabled or read-only.";
+ " You cannot submit a form after disabling an input element via
javascript."
+ " Consider setting read-only to true instead"
+ " or resetting the disabled value back to false prior to form
submission.";
On 3/29/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
If the input for a component is set to disabled via javascript, the
following warning occurs.
"There should always be a submitted value for an input if it is
rendered, its form is submitted, and it is not disabled or read-only."
This is not true if the component is set to read-only via javascript.
I don't think the error above is clear.
Explanation of what's happening underneath here:
http://webdesign.about.com/od/forms/a/aa071805.htm
Perhaps it should be rewritten as:
"There should always be a submitted value for an input if it is
rendered and its form is submitted. You cannot submit a form after
disabling an input element via javascript. Consider using read-only
instead or resetting the disabled value back to false prior to form
submission."
I'm going to start with this, but I'd like to have someone else
confirm that this is a better solution.
https://issues.apache.org/jira/browse/MYFACES-1569