Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Validation Error Dialog

    Hi,

    I've setup a server side validator like this:

    Code:
    <field name="CODE" type="text" title="$code" escapeHTML="true" required="true">
            	<validators>
    				<validator type="isUnique" requiresServer="true" errorMessage="This code is already used."/>
    			</validators>
    </field>
    If I add a new record using the grid's addNewRecord() method, giving an already used 'CODE', the validator works as expected and triggers a warning.

    My problem is that the displayed warning is not really user friendly (JSON Like display) and I would have expected to just have the custom error message I've configured in the DS.
    Is it possible to have this without the need to enable the "willHandleErrors" for every single DSRequest I issue ?

    Many Thanks,

    Thomas

    PS: SmartGwt 4.0p

    #2
    We show this validator giving a perfectly readable error message by default (see this sample).

    If you're seeing something else, it's probably due to customized error handling you've added in your application.

    Comment

    Working...
    X