|
What I'm talking about is how it looks to the user. The user doesn't care where you put the edits; most of them wouldn't understand if you tried to explain where they are. What the user sees is what counts. In the case of the VALUES keyword in DDS, when the user enters a value outside the listed VALUES, the keyboard locks, a cryptic message is displayed saying they've entered an invalid value. A typical business rule error message is probably more descriptive of the problem, and may or may not lock the keyboard, highlight the field, position the cursor, or whatever; in other words, it acts differently.Well, cryptic is in the eye of the beholder. I'd use "generic" as a more descriptive term, and for things like invalid date formats and required fields, it's pretty straightforward. For ranges, it's a matter of showing the user what the valid range is, which should be done anyway in a good design.
Which led to the question about how EGL's field-related validation actually displays the error to the user. Is it predetermined by EGL? Do you have to define how it shows the errors? Do you (you, Joe, in this case) make your business rule errors show the errors the same way EGL does?It's hard to explain the "how" if you don't take the tutorials (or at least take a peek at the Powerpoint that goes with them). But in general, there is a tag called h:message that has a "for" attribute. You specify the ID of the input field whose message you're interested in, and any error message will appear in that tag. You can then place that tag wherever you want, although typically you would place it either next to the widget itself or perhaps in a separate column in the table the widget appears. the point being that you can indeed place the widget wherever you want and control its appearance through standard CSS techniques.
As an Amazon Associate we earn from qualifying purchases.
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.