× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joe

The problem is that, using server-side
validation, I haven't found the JSF keyword (if one exists) that will
tell a field to use an alternate style if the field is in error.

One of the nice things about ASP.NET is that Client Side and Server Side
validation is combined (out of the box) using the ASP.NET Validator
controls, so you can easily set the CSS attribute of the field in error from
wherever you wish (client side generated JavaScript or C#/VB code behind).

Regards

Maurice O'Prey



-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Joe Pluta
Sent: 09 June 2008 17:42
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Data validation, mapping, and error handling

Michael_Schutte@xxxxxxxxxxxx wrote:
<<<Note that in my example, all the fields are edited at once, all the
messages are shown. My only downfall right now is that I haven't
figured the easy way to "reverse image" the input field when it's in
error. I'm certain there is a way, but if there isn't we need a way to
add that. It should be as easy as checking for an error and applying a
different style if there is one. >>>

Use CSS to change the background color and the text color.

Yup, I understand that, Michael. I've already done that, creating a
class for error messages and a class for input fields in error. And on
client-side validation, it's easy to define the class to apply to a
field when an error occurs. The problem is that, using server-side
validation, I haven't found the JSF keyword (if one exists) that will
tell a field to use an alternate style if the field is in error.

I would have created one, but the JSF implementers didn't ask me... <grin>

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.