webtier@glassfish.java.net

Improve error messaging in JSF2 ajax?

From: <webtier_at_javadesktop.org>
Date: Wed, 04 Feb 2009 17:56:53 PST

If the jsf.ajax.request() call is not located within a form, it currently throws a non-descript error here, stating that els is undefined. I think this could be more descriptive if someone gets a chance to update it:

 * @returns String The encoded state for the specified form's input controls.
2811 * @function jsf.getViewState
2812 */
2813 jsf.getViewState = function(form) {
2814 var els = form.elements;
2815 var len = els.length;
2816 var qString = "";
2817 var addField = function(name, value) {
2818 if (qString.length > 0) {
2819 qString += "&";
2820 }
[Message sent by forum member 'lincolnbaxter' (lincolnbaxter)]

http://forums.java.net/jive/thread.jspa?messageID=330204