You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Anshu Jain (JIRA)" <de...@myfaces.apache.org> on 2012/06/27 09:25:43 UTC
[jira] [Created] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Anshu Jain created TRINIDAD-2282:
------------------------------------
Summary: In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
Key: TRINIDAD-2282
URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Affects Versions: 2.0.0-beta-2
Environment: JDeveloper 11.1.2.0.0
Reporter: Anshu Jain
af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
When the user clicks on the the given text box, hintMaximum should be displayed.
Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416744#comment-13416744 ]
Scott O'Bryan commented on TRINIDAD-2282:
-----------------------------------------
Actually the ASF is granted. Sorry about that. They removed my summary icon. I'll go ahead and commit this to trunk but I need to know about 2.0.x.
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416750#comment-13416750 ]
Scott O'Bryan commented on TRINIDAD-2282:
-----------------------------------------
In the future, Anshu, it helps if you include a patch which includes the full path to the changed file. Thanks.
Committed to trunk, svn txn 1362725.
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Assignee: Scott O'Bryan
> Fix For: 2.1.0-core
>
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416340#comment-13416340 ]
Scott O'Bryan commented on TRINIDAD-2282:
-----------------------------------------
Ansu, I need you to grant a liscence to this patch for the ASF and tell me where it needs to be committed to by filling in the "fix" versions above. I see it effects 2.0.x, so I need to know whether it needs to go into trinidad-2.0.x, trunk (2.1.x), or both.
Thanks.
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (TRINIDAD-2282) In validateLength, a
default hintRange message is displayed instead of hintMaximum even when
minimum value is not set
Posted by "Anshu Jain (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13405686#comment-13405686 ]
Anshu Jain edited comment on TRINIDAD-2282 at 7/3/12 8:30 AM:
--------------------------------------------------------------
Code fix for this bug
when minimum value is not set for a validateLength, the default value is taken as 0 by the server side code. As a result min=0 is sent to the client side as well. In this condition, server side does not set the user defined hintNotInRange, but sets hintMaximum.
But, in the js, a check is done for min != null and a default hintNotInRange message is displayed.
This fix checks if the value of min is 0 in js, in which case, hintMaximum is displayed.
was (Author: anshujain):
Code fix for this bug
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott O'Bryan updated TRINIDAD-2282:
------------------------------------
Status: Open (was: Patch Available)
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Anshu Jain (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anshu Jain updated TRINIDAD-2282:
---------------------------------
Status: Patch Available (was: Open)
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Anshu Jain (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anshu Jain updated TRINIDAD-2282:
---------------------------------
Status: Open (was: Patch Available)
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott O'Bryan updated TRINIDAD-2282:
------------------------------------
Status: Patch Available (was: Open)
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Assignee: Scott O'Bryan
> Fix For: 2.1.0-core
>
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TRINIDAD-2282) In validateLength, a default
hintRange message is displayed instead of hintMaximum even when minimum
value is not set
Posted by "Anshu Jain (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anshu Jain updated TRINIDAD-2282:
---------------------------------
Status: Patch Available (was: Open)
> In validateLength, a default hintRange message is displayed instead of hintMaximum even when minimum value is not set
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-2282
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2282
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 2.0.0-beta-2
> Environment: JDeveloper 11.1.2.0.0
> Reporter: Anshu Jain
> Attachments: TrinidadBug2282.patch
>
>
> af:validateLength is used for a input text box. The maximum value is set and minimum value is not set. Which means by default minimum is 0.
> The hintMaximum is set to "{0} is maximum allowed" and hintRange is set to "{0} is minimum, {1} is maximum"
> When the user clicks on the the given text box, hintMaximum should be displayed.
> Instead a default message: "Enter between 0 and 3 characters." is displayed. hintMaximum should be displayed in this scenario.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira