Comments (11)
I am not sure if it is my fault because I use my own Data Binders.
from play-bootstrap.
Hi @mkurz, could you try using @helper.inputText(myForm("zip"), ...)
instead? This will tell us if it's a problem of the library or not.
from play-bootstrap.
@helper.inputText(myForm("zip"))
works.
@b3.text(myForm("zip"))
does not work.
Problem is your library.
from play-bootstrap.
This is the declaration of the field in the form:
@Required @NonEmpty
@Pattern(value="[1-9][0-9]{3}", message="error.zip")
private String zip;
// also field has getter and setter
from play-bootstrap.
I am using Java not Scala.
from play-bootstrap.
This is probably because of the HTML 5 constraint stuff you have been adding with the last commits.
from play-bootstrap.
Ok, I see, you're right. It seems it doesn't happen in Scala, but it does with Java using the pattern constraint. Thank you for finding the bug. I'll try to find out what's happening and fix it as soon as possible.
from play-bootstrap.
Thanks!
from play-bootstrap.
Hi, it's fixed now. I didn't know that Java and Scala versions give a different type result for the pattern constraint.
from play-bootstrap.
Thanks! I will try on Monday.
from play-bootstrap.
Thanks @adrianhurt! I works now.
Thank you for you fast reponses and for your first class support for this library 👍
from play-bootstrap.
Related Issues (20)
- fooForm in all the examples HOT 2
- Make my own radio button? HOT 1
- Install / Usage instructions HOT 1
- Unsure on how to use, getting errors HOT 2
- Release 1.4 HOT 8
- Checkbox label in horizontal form not vertically aligned HOT 1
- documentation misses class "position-relative" for feedback tooltip HOT 1
- Play 2.7 support (and cross build for Scala 2.13.0-M5) HOT 23
- Combining @multifield and @repeat HOT 4
- Display invalid-feedback HOT 4
- How do you pass the labelClass class radio-inline to a radioOption? HOT 3
- Messages are translated twice HOT 9
- Play 2.8 HOT 12
- Checkbox error text is always hidden HOT 1
- classes on b4.date not added correctly HOT 1
- How to set data-browse attribute at custom-file input HOT 2
- Cannnot select default option in select input HOT 1
- using custom file input, .invalid-feedback not shown. HOT 1
- Support for Bootstrap 5 HOT 3
- Option to handle translated strings as HTML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-bootstrap.