Hi *,

I have tried to add some new features to the HtmlInputTextAjax
component, contributed by travis.

He did great work, but there are still some open thoughts I would like
to discuss over the list.

In short, added features are:

-) highlighting the input fields with a given style after a validation
error has occured

-) possibility of displaying error messages of all ajax input fields
on one site in a central place

-) displaying the messages over t:message and t:messages, via a new
attribute forceRenderSpan, which renders a span out, even if there is
no message getting through via a "normal" jsf processing.

While trying to implement these new enhancements it was really hard to
get along with the high amount of legacy JavaScript code in the
AjaxRendererUtils class.

However, it may also be difficult for others to maintain it in the
future, so swapping some JavaScript fragments out, sounds like a good
idea to me, right?

We can do this by introducing a utility class, or just throw the whole
thing away :)

I have discussed this issue with Martin; Why displaying an error
message via the whole JavaScript processing on client? Just render it
out with some enhancements to the message components.
So we could save a lot of JavaScript code and it is not a need to do
so much client side things. For highlighting the fields, a little bit
JavaScript is still necessary.

Any drawbacks, issues we have not thought about?

Furthermore, Travis has introduced a own HtmlMessageTag and Renderer
in order to put the error message in the span over JavaScript. Is this
approach necessary? Adding new attributes to the message comps sounds
more preferable to me.

@Werner; Any idea how the dojo library comes along with this ajax
validation stuff?

regards,

Gerald
--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]

Reply via email to