You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Dániel Dékány (Jira)" <ji...@apache.org> on 2020/02/20 18:55:00 UTC
[jira] [Commented] (FREEMARKER-132) An Integer larger than 1000 in
a JavaBean is injected into the template, and the browser cannot display
this value
[ https://issues.apache.org/jira/browse/FREEMARKER-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17041237#comment-17041237 ]
Dániel Dékány commented on FREEMARKER-132:
------------------------------------------
You should check the generated HTML itself, with source view in the browser, to see how it looks.
As it happens at 1000, I suspect the problem is somehow that number rendered with grouping (like 1,000). Try {{$\{person.age?c}}}.
> An Integer larger than 1000 in a JavaBean is injected into the template, and the browser cannot display this value
> ------------------------------------------------------------------------------------------------------------------
>
> Key: FREEMARKER-132
> URL: https://issues.apache.org/jira/browse/FREEMARKER-132
> Project: Apache Freemarker
> Issue Type: Bug
> Components: engine
> Affects Versions: 2.3.23
> Environment: windows10 x64 JDK8u_121 、IDEA2019.3
> Reporter: zouchanglin
> Priority: Critical
> Attachments: image-2020-02-20-22-25-24-989.png, image-2020-02-20-22-26-02-726.png, image-2020-02-20-22-26-17-204.png, image-2020-02-20-22-26-29-906.png
>
>
> An Integer larger than 1000 in a JavaBean is injected into the template, and the browser cannot display this value,for example,now I have a JavaBean,example class Person\{ String name, Integer age},now I,need put this javabean to html,if this person age > 999,the html show null input tag,http://localhost:8080/ !image-2020-02-20-22-25-24-989.png!
> This is mycode:
> !image-2020-02-20-22-26-02-726.png!
> !image-2020-02-20-22-26-17-204.png!
> !image-2020-02-20-22-26-29-906.png!
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)