Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Validation Order
Validation Order [message #709791] Thu, 04 August 2011 10:01 Go to next message
Ercan CANLIER is currently offline Ercan CANLIERFriend
Messages: 17
Registered: July 2009
Junior Member
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 06:08 Go to previous messageGo to next message
Ercan CANLIER is currently offline Ercan CANLIERFriend
Messages: 17
Registered: July 2009
Junior Member
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 06:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 07:40 Go to previous messageGo to next message
Ercan CANLIER is currently offline Ercan CANLIERFriend
Messages: 17
Registered: July 2009
Junior Member
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 07:40 Go to previous messageGo to next message
Ercan CANLIER is currently offline Ercan CANLIERFriend
Messages: 17
Registered: July 2009
Junior Member
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 08:39 Go to previous message
Ercan CANLIER is currently offline Ercan CANLIERFriend
Messages: 17
Registered: July 2009
Junior Member
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: Tue Apr 16 22:59:16 GMT 2024

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

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

Back to the top