Giter VIP home page Giter VIP logo

Comments (11)

mkurz avatar mkurz commented on August 19, 2024

I am not sure if it is my fault because I use my own Data Binders.

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 19, 2024

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.

mkurz avatar mkurz commented on August 19, 2024

@helper.inputText(myForm("zip")) works.
@b3.text(myForm("zip")) does not work.
Problem is your library.

from play-bootstrap.

mkurz avatar mkurz commented on August 19, 2024

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.

mkurz avatar mkurz commented on August 19, 2024

I am using Java not Scala.

from play-bootstrap.

mkurz avatar mkurz commented on August 19, 2024

This is probably because of the HTML 5 constraint stuff you have been adding with the last commits.

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 19, 2024

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.

mkurz avatar mkurz commented on August 19, 2024

Thanks!

from play-bootstrap.

adrianhurt avatar adrianhurt commented on August 19, 2024

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.

mkurz avatar mkurz commented on August 19, 2024

Thanks! I will try on Monday.

from play-bootstrap.

mkurz avatar mkurz commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.