× 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.




Can you not still use client-side scripting once you've determined there's
an error?

Maybe there is a JSF keyword, but you are having trouble finding it, and I
certainly do not know enough to give you the answer. But if it was me, I
check to see if there's an error message and then change the class using
client-side scripting to get around the issue at hand.




Michael Schutte
Admin Professional
Bob Evans Bob-B-Q: You haven't had barbeque until you've had Bob Evans
Bob-B-Q. Try our six Bob-B-Q dishes, starting at $5.99. For more
information, visit www.BobEvans.com.


web400-bounces@xxxxxxxxxxxx wrote on 06/09/2008 12:41:46 PM:

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
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

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.