Send beanvalidation-dev mailing list submissions to
beanvalidation-dev@lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/ beanvalidation-dev
or, via email, send a message with subject or body 'help' to
beanvalidation-dev-request@lists.jboss.org
You can reach the person managing the list at
beanvalidation-dev-owner@lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of beanvalidation-dev digest..."
Today's Topics:
1. Bean Validation and JavaFX (Rafael A P Nascimento)
2. Re: Bean Validation and JavaFX (Guillaume Smet)
3. Re: Bean Validation and JavaFX (Hendrik Ebbers)
------------------------------------------------------------ ----------
Message: 1
Date: Fri, 17 Nov 2017 11:05:49 -0200
From: Rafael A P Nascimento <rfx.go.on@gmail.com>
Subject: [bv-dev] Bean Validation and JavaFX
To: beanvalidation-dev@lists.jboss.org
Message-ID:
<CAHT-tEgJt7jA4ifcR6OqhJ4_3ihuTy+kt-FiD+1eboRT5A4d4w@ >mail.gmail.com
Content-Type: text/plain; charset="utf-8"
Hi all!
How do I integrate Bean Validation with JavaFX?
I would like to make a *bidirectional bind* between the entity field and
the javaFx controllers. In this scenario how could I validate fields using
Bean Validation?
Ex:
public class Category{
@NotNull(message = "Name can't be null)
@Size(max = 255, min=3, message = "Size name must be between 255 and 3")
private StringProperty name = new SimpleStringProperty();
//... getters & setters
}
//some fx Controller...
public class CategoryController{
@FXML
private TextField textFiledCategoryName;
private Category category;
@FXML
public void initialize() {
category = new Category();
textFiledCategoryName.textProperty(). bindBidirectional(category. nameProperty());
}
//other code...
}
thanks!
--
*Rafael A P Nascimento *
*finalexception.blogspot.com <http://finalexception.blogspot.com.br >*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/ attachments/20171117/c0a33721/ attachment-0001.html
------------------------------
Message: 2
Date: Fri, 17 Nov 2017 14:40:27 +0100
From: Guillaume Smet <guillaume.smet@gmail.com>
Subject: Re: [bv-dev] Bean Validation and JavaFX
To: beanvalidation-dev List <beanvalidation-dev@lists.jboss.org >
Message-ID:
<CALt0+o9U6yG7dq_TH9MGwOasJvsYyk3Sz6K4vnRVYK7o9 >0p19A@mail.gmail.com
Content-Type: text/plain; charset="utf-8"
Hi Rafael,
Hendrik contributed a few JavaFX examples here:
https://github.com/hibernate/hibernate-demos/tree/master/ hibernate-validator/javafx- validation-example
.
I think they will probably help you getting it working.
--
Guillaume
On Fri, Nov 17, 2017 at 2:05 PM, Rafael A P Nascimento <rfx.go.on@gmail.com>
wrote:
> Hi all!
> How do I integrate Bean Validation with JavaFX?
>
> I would like to make a *bidirectional bind* between the entity field and
> the javaFx controllers. In this scenario how could I validate fields using
> Bean Validation?
>
> Ex:
> public class Category{
> @NotNull(message = "Name can't be null)
> @Size(max = 255, min=3, message = "Size name must be between 255 and
> 3")
> private StringProperty name = new SimpleStringProperty();
> //... getters & setters
> }
>
> //some fx Controller...
> public class CategoryController{
> @FXML
> private TextField textFiledCategoryName;
> private Category category;
>
> @FXML
> public void initialize() {
> category = new Category();
> textFiledCategoryName.textProperty(). bindBidirectional(category. nameProperty());
>
> }
> //other code...
> }
>
> thanks!
> --
> *Rafael A P Nascimento *
>
> *finalexception.blogspot.com <http://finalexception.blogspot.com.br >*
>
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/ beanvalidation-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/ attachments/20171117/02af211b/ attachment-0001.html
------------------------------
Message: 3
Date: Fri, 17 Nov 2017 16:10:18 +0100
From: Hendrik Ebbers <hendrik.ebbers@me.com>
Subject: Re: [bv-dev] Bean Validation and JavaFX
To: beanvalidation-dev List <beanvalidation-dev@lists.jboss.org >
Message-ID: <D586A1DE-05C9-47D7-9BA9-DC5C327242F5@me.com >
Content-Type: text/plain; charset="us-ascii"
Hi Rafael,
please ping me on Monday if the example do not help. Than we can have a look :)
Von meinem iPhone gesendet
> Am 17.11.2017 um 14:40 schrieb Guillaume Smet <guillaume.smet@gmail.com>:
>
> Hi Rafael,
>
> Hendrik contributed a few JavaFX examples here: https://github.com/hibernate/hibernate-demos/tree/master/ .hibernate-validator/javafx- validation-example
>
> I think they will probably help you getting it working.
>
> --
> Guillaume
>
>> On Fri, Nov 17, 2017 at 2:05 PM, Rafael A P Nascimento <rfx.go.on@gmail.com> wrote:
>> Hi all!
>> How do I integrate Bean Validation with JavaFX?
>>
>> I would like to make a bidirectional bind between the entity field and the javaFx controllers. In this scenario how could I validate fields using Bean Validation?
>>
>> Ex:
>> public class Category{
>> @NotNull(message = "Name can't be null)
>> @Size(max = 255, min=3, message = "Size name must be between 255 and 3")
>> private StringProperty name = new SimpleStringProperty();
>> //... getters & setters
>> }
>>
>> //some fx Controller...
>> public class CategoryController{
>> @FXML
>> private TextField textFiledCategoryName;
>> private Category category;
>>
>> @FXML
>> public void initialize() {
>> category = new Category();
>> textFiledCategoryName.textProperty(). bindBidirectional(category. nameProperty());
>> }
>> //other code...
>> }
>>
>> thanks!
>> --
>> Rafael A P Nascimento
>> finalexception.blogspot.com
>>
>>
>> _______________________________________________
>> beanvalidation-dev mailing list
>> beanvalidation-dev@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/ beanvalidation-dev
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/ beanvalidation-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/ attachments/20171117/5b1984d8/ attachment.html
------------------------------
_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/ beanvalidation-dev
End of beanvalidation-dev Digest, Vol 43, Issue 1
*************************************************