NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

[platform-dev] Re: Validation Question

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Luke Shannon
Posted via mailing list.





PostPosted: Wed May 02, 2012 6:48 pm    Post subject: [platform-dev] Re: Validation Question Reply with quote

Actually its the textField I am trying to validate that is null.

I am trying to following this tutorial, however it is missing some
pics at the top that I am starting to feel might be important:

https://blogs.oracle.com/geertjan/entry/validating_a_form_in_the

On Wed, May 2, 2012 at 2:15 PM, Luke Shannon <address-removed> wrote:
Quote:
I have added a Validation component to my TopComponent.

In the Post Creation Code I have this:

final ValidationGroup group = validationPanel1.getValidationGroup();


group.add(jTextField_baseOutputFileName, Validators.REQUIRE_NON_EMPTY_STRING);

jTextField_baseOutputFileName.getDocument().addDocumentListener(new
DocumentListener() {
Back to top
Luke Shannon
Posted via mailing list.





PostPosted: Wed May 02, 2012 8:21 pm    Post subject: [platform-dev] Re: Validation Question Reply with quote

I just added all this in the Post-Init code for the Validation Panel
and it works fine.

On Wed, May 2, 2012 at 2:23 PM, Luke Shannon <address-removed> wrote:
Quote:
Actually its the textField I am trying to validate that is null.

I am trying to following this tutorial, however it is missing some
pics at the top that I am starting to feel might be important:

https://blogs.oracle.com/geertjan/entry/validating_a_form_in_the

On Wed, May 2, 2012 at 2:15 PM, Luke Shannon <address-removed> wrote:
Quote:
I have added a Validation component to my TopComponent.

In the Post Creation Code I have this:

final ValidationGroup group = validationPanel1.getValidationGroup();


group.add(jTextField_baseOutputFileName, Validators.REQUIRE_NON_EMPTY_STRING);

jTextField_baseOutputFileName.getDocument().addDocumentListener(new
DocumentListener() {
Back to top
Luke Shannon
Posted via mailing list.





PostPosted: Fri May 04, 2012 7:31 pm    Post subject: [platform-dev] Re: Validation Question Reply with quote

Hi;

I want to create a org.netbeans.validation.api.Validator to ensure a
table has at least one row in it. Looks like there is only one method
to implement, should be straight forward enough.

Anyone created a custom validator before? Any tips?

Is there something that already exists to can use for this?

Thanks,

Luke

On Wed, May 2, 2012 at 3:56 PM, Luke Shannon <address-removed> wrote:
Quote:
I just added all this in the Post-Init code for the Validation Panel
and it works fine.

On Wed, May 2, 2012 at 2:23 PM, Luke Shannon <address-removed> wrote:
Quote:
Actually its the textField I am trying to validate that is null.

I am trying to following this tutorial, however it is missing some
pics at the top that I am starting to feel might be important:

https://blogs.oracle.com/geertjan/entry/validating_a_form_in_the

On Wed, May 2, 2012 at 2:15 PM, Luke Shannon <address-removed> wrote:
Quote:
I have added a Validation component to my TopComponent.

In the Post Creation Code I have this:

final ValidationGroup group = validationPanel1.getValidationGroup();


group.add(jTextField_baseOutputFileName, Validators.REQUIRE_NON_EMPTY_STRING);

jTextField_baseOutputFileName.getDocument().addDocumentListener(new
DocumentListener() {
Back to top
skyhook



Joined: 13 Apr 2012
Posts: 22

PostPosted: Mon Jul 09, 2012 11:57 am    Post subject: CustomValidator Reply with quote

Hi,

Send me email, message i have created some custom date validator and interval validator, may be it can help to you.

Marek
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo