jsr Questions
6
Solved
Main model classes are as follows :
public class UserAddressesForm {
@NotEmpty
private String firstName;
@NotEmpty
private String lastName;
private List<AddressForm> addresses;
// s...
Klemm asked 28/2, 2011 at 12:36
2
Solved
Getting this error on an IntelliJ project when I compile java files. There is no specific source file listed, but it fails with this error.
Removing the following compiler flags fixes the error:
...
Acquittance asked 15/10, 2013 at 12:36
2
Solved
Can we say Spring Batch is an implementation of the JSR 352 (spec for Batch Applications for the Java Platform) ?
What are some other implementations of JSR 352 ?
Ineffectual asked 14/8, 2017 at 8:24
3
When I am validating bean using @Valid annotation in javax.validation, for some objects I am getting ConstraintViolationException and for some I am getting a MethodArgumentNotValidException.
I unde...
Adelaadelaida asked 12/7, 2019 at 16:18
3
Solved
I have a calculator service that gets the operation type, num1 and num2 from the user. I need to validate that the user actually inputs these values and doesn't just leave it blank.
@RequestMappi...
Cockatrice asked 7/3, 2017 at 8:53
5
Solved
Is it possible to validate a collection of objects in JSR 303 - Jave Bean Validation where the collection itself does not have any annotations but the elements contained within do?
For example, is...
Bicyclic asked 5/11, 2010 at 14:25
5
Solved
What is the relevance of JSR and how does one optimize it for one's use?
I read something like jsr82 for Bluetooth and some other for other technical apps.
What's its relevance?
1
Solved
I want to validate GET / POST request for spring-boot controller classes with the javax.validation-api annotations.
For classes @Valid and @NotBlank for attributes of that class work perfectly.
T...
Goatsbeard asked 28/8, 2018 at 12:56
1
Solved
JLS - Java Language
Specification
JSR - Java Specification
Requests.The
formal documents that describe proposed specifications and
technologies for adding to the Java platform.
JEP - JDK Enhanceme...
4
Solved
How can we ensure the individual strings inside a list are not null/blank or follow a specific pattern
@NotNull
List<String> emailIds;
I also want to add a pattern
@Pattern("\b[A-Z0-9._%+...
Blest asked 6/3, 2014 at 18:59
3
In Eclipse's Project Explorer view there is a project named "JSR-109 Web Services" that can not be deleted or removed.
I did not create this project. It came to Project Explorer by itself...
2
Solved
I am using Spring Boot 1.5.2.RELEASE and not able to incorporate JSR - 349 ( bean validation 1.1 ) for @RequestParam & @PathVariable at method itself.
For POST requests, if method parameter i...
Cana asked 2/6, 2017 at 4:15
1
Solved
We encountered a problem with legacy code. There is a validation set for a "username" field, validating its length and making sure it contains at least one letter:
@Column(name = "username")
@Size...
Fortyfive asked 14/5, 2017 at 12:47
1
Solved
I have configured my Spring Boot 1.5.1 application with JSR 303 validation. Right now I'm getting ConstraintViolationException in case of wrong data.
Is it possible to get a detailed message(now i...
Ivett asked 4/2, 2017 at 14:2
3
Solved
In my Spring Boot 1.5.1 application I'm trying to configure support of JSR-303 / JSR-349 validation.
I have added a following annotations @NotNull @Size(min = 1) to my method:
@Service
@Transacti...
Wollis asked 2/2, 2017 at 8:31
2
I need to validate a field - secPhoneNumber (secondary phone #). I need to satisfy below conditions using JSR validation
The field can be empty/null
Otherwise, the data must be of length 10.
I ...
Thomasthomasa asked 6/7, 2016 at 13:3
1
Solved
I have googled around quite a bit still am confused as to what each of the above exactly mean.
Here is my understanding of it:
jaxrs-api : contains only api. No implementation. But how is it di...
1
Solved
I want to validate two fields of a Request Class in manner that Either one field is valid OR another field is valid.
Eg:
Request Bean
public class CarRequest {
@NotEmpty
private String custome...
Garrow asked 25/3, 2015 at 7:47
1
Solved
Jetty 9 supports both it's own Jetty Websocket API as well as the standard JSR 356 API, for what I assume are historical reasons (Jetty's API precedes the final JSR 356).
I've looked over the basi...
1
Solved
Please help me with learning the basics of Spring 3 MVC better, I was trying to learn about Spring JSR 303: Bean Validation and could not solve the below problem at all, I have spent over a day on ...
Insubstantial asked 12/5, 2014 at 20:20
2
Solved
I use JSR303 Spring Validation and I have the following;
@Digits(fraction = 0, integer = 15)
private String tpMobile;
Validation says Must be number between 10-15 digits, but the thing is this f...
Melise asked 9/10, 2013 at 4:13
1
Solved
For example, we have some entity in whitch several fields are validating with annotation @Pattern. This entity is used everywhere in project, but only in one place we need to "turn off" this valida...
Vesper asked 22/8, 2013 at 13:47
2
I was checking the JSR 227 page and see its status be shown as "withdrawn". What does this status mean? Does it mean it is deprecated? is there a newer version that has replaced this specification?...
Dragonroot asked 14/5, 2013 at 6:29
1
Solved
Initially Project Coin had enhanced support for collections e.g. list[3] instead of list.get(3) and map["hello"] = 27 instead of map.put("hello", 27) but they were not in jdk7. Are they going...
1
Solved
I have developed two projects in Andriod system based on java A and B , the codes in project A rely on codes in project B ,also the codes in project B rely on codes in project A.Can I use Proguard ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.