Skip to main content



      Home
Home » Eclipse Projects » JFace » Validation Order
Validation Order [message #709791] Thu, 04 August 2011 06:01 Go to next message
Eclipse UserFriend
Hi,

Is there any way to handle validation order with jface databinding framework?

For now, it works due to binding order in the java class.

And even if i put binding to the last line, it works before some other bindings.

In my java code, i used AllRequiredValidator, so even one of required form fields are missing, it shows an error because of it is required and also it doesnt work in order.

For example.

Below are all required fields

Field 1

Field 2

Field 3

Field 4


Instead of field 1 must show required error, field 4 shows that it is required.

How can you handle this kind of problem?

I really need help or any other solution recommends.

Thanks,

Regards,

Ercan CANLIER
Re: Validation Order [message #710543 is a reply to message #709791] Fri, 05 August 2011 02:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Any guru help?

My problem is exactly about ordering binding. Do i really need to write in order for required form fields in java code? Is there any way to tell one of those binding is more prior than others to the databinding context?
I hope someone is going to reply...

Thanks in advance,

Regards.
Re: Validation Order [message #710570 is a reply to message #710543] Fri, 05 August 2011 02:37 Go to previous messageGo to next message
Eclipse UserFriend
You can register a validator on the DatabindingContext instead similar
to how the WizardDialogSupport and TitleAreaDialogSupport are implemented.

Tom

Am 05.08.11 08:08, schrieb Ercan CANLIER:
> Hi,
>
> Any guru help?
>
> My problem is exactly about ordering binding. Do i really need to write
> in order for required form fields in java code? Is there any way to tell
> one of those binding is more prior than others to the databinding context?
> I hope someone is going to reply...
>
> Thanks in advance,
>
> Regards.
Re: Validation Order [message #710592 is a reply to message #710570] Fri, 05 August 2011 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Do you mean AggregateValidationStatus?

Thanks,

Tom Schindl wrote on Fri, 05 August 2011 02:37
You can register a validator on the DatabindingContext instead similar
to how the WizardDialogSupport and TitleAreaDialogSupport are implemented.

Tom

Am 05.08.11 08:08, schrieb Ercan CANLIER:
> Hi,
>
> Any guru help?
>
> My problem is exactly about ordering binding. Do i really need to write
> in order for required form fields in java code? Is there any way to tell
> one of those binding is more prior than others to the databinding context?
> I hope someone is going to reply...
>
> Thanks in advance,
>
> Regards.

(no subject) [message #710599 is a reply to message #710570] Fri, 05 August 2011 03:40 Go to previous messageGo to next message
Eclipse UserFriend
Do you mean AggregateValidationStatus?

Thanks,

Tom Schindl wrote on Fri, 05 August 2011 02:37
> You can register a validator on the DatabindingContext instead similar
> to how the WizardDialogSupport and TitleAreaDialogSupport are implemented.
>
> Tom
>
> Am 05.08.11 08:08, schrieb Ercan CANLIER:
> > Hi,
> >
> > Any guru help?
> >
> > My problem is exactly about ordering binding. Do i really need to write
> > in order for required form fields in java code? Is there any way to tell
> > one of those binding is more prior than others to the databinding context?
> > I hope someone is going to reply...
> >
> > Thanks in advance,
> >
> > Regards.
Re: (no subject) [message #710631 is a reply to message #710599] Fri, 05 August 2011 04:39 Go to previous message
Eclipse UserFriend
Thanks Tom, i have handled the solution with AggregateValidationStatus.

Best Regards.
Previous Topic:(bug?) AssertionFailedException in jface getTreePathFromItem
Next Topic:MasterDetails and inital master selection
Goto Forum:
  


Current Time: Wed Jul 23 13:17:24 EDT 2025

Powered by FUDForum. Page generated in 0.26473 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top