cancel
Showing results for 
Search instead for 
Did you mean: 

Small request about PropertyDefinition interface

jmliege
Champ in-the-making
Champ in-the-making
Hello

I'm currently fullfilling 'SelectItem' (in my jsp) upon my constraints model through back bean and by coding a function which returns a List<String>.
Classical.

The idea is to directly provide list of valid values without having to maintain multiple times the same data through various XML config file, and then I'm currently loading values through the use of the Constraint Interface.

So here's my request :

would it be possible for you to overload the PropertyDefinition.getConstraints() function in order to specify a type of Constraint such as I would be able to write the following code ? :



List<ConstraintDefinition> getConstraints(ListOfValuesConstraint.class);
//or
List<ConstraintDefinition> getConstraints(ListOfValuesConstraint.TYPE);
//where TYPE is a static final String…


Yes, i'm a bit lazy…  Smiley Happy

JMarc
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Feel free to raise this as an enhancement request on JIRA.

jmliege
Champ in-the-making
Champ in-the-making
It's done.

Follow this link to keep track of this request (AR-810)

Best regards,
JM