NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Luke Shannon Posted via mailing list.
|
Posted: Wed May 02, 2012 6:48 pm Post subject: [platform-dev] Re: Validation Question |
|
|
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.
|
Posted: Wed May 02, 2012 8:21 pm Post subject: [platform-dev] Re: Validation Question |
|
|
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.
|
Posted: Fri May 04, 2012 7:31 pm Post subject: [platform-dev] Re: Validation Question |
|
|
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
|
Posted: Mon Jul 09, 2012 11:57 am Post subject: CustomValidator |
|
|
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 |
|
 |
|
|
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
|
|
|
|
| | | |