You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "James Song (JIRA)" <be...@incubator.apache.org> on 2005/05/10 23:54:06 UTC
[jira] Created: (BEEHIVE-687) AnnotationMemberType.Text mistakes minLength
AnnotationMemberType.Text mistakes minLength
---------------------------------------------
Key: BEEHIVE-687
URL: http://issues.apache.org/jira/browse/BEEHIVE-687
Project: Beehive
Type: Bug
Components: Controls
Versions: V1
Reporter: James Song
Assigned to: Hoi Lam
Fix For: V1
Error message:
[apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
ip\Controller.java:47: A value assigned to a control property does not satisfy its constraints. Caus
e: The value, coverlanguage, assigned to a text property exceeds the maximum length allowed: 0
[apt] public BookControlBean myBook2;
[apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
ip\Controller.java:43: A value assigned to a control property does not satisfy its constraints. Caus
e: The value, atitleofthebook, assigned to a text property exceeds the maximum length allowed: 0
[apt] public BookControlBean myBook;
Repro:
1. change trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\property\constraint\BookControl.java
change line 50,52,54,69,71,73 to the following:
@AnnotationMemberTypes.Text(minLength=8)
2. change trunk\controls\test\webapps\controlsWeb\property\membership\Controller.jpf, change line 42 to:@BookControl.Intro(title="atitleofthebook",content="",subject="")
line 46 to:@BookControl.Language(coverlanguage="coverlanguage",contentlanguage="",authorlanguage="")
3 run ant detailed.tests from trunk\controls\test
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (BEEHIVE-687) AnnotationMemberType.Text mistakes minLength
Posted by "Hoi Lam (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-687?page=all ]
Hoi Lam resolved BEEHIVE-687:
-----------------------------
Resolution: Fixed
Resolved in SVN 169530
I have corrected the default value for the maxLength member of Text member type, so no problem would occur if a value is not set for the member. Also, minLength is not a valid member for Text member type, and it will be ignored if used.
> AnnotationMemberType.Text mistakes minLength
> --------------------------------------------
>
> Key: BEEHIVE-687
> URL: http://issues.apache.org/jira/browse/BEEHIVE-687
> Project: Beehive
> Type: Bug
> Components: Controls
> Versions: V1
> Reporter: James Song
> Assignee: Hoi Lam
> Fix For: V1
>
> Error message:
> [apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
> ip\Controller.java:47: A value assigned to a control property does not satisfy its constraints. Caus
> e: The value, coverlanguage, assigned to a text property exceeds the maximum length allowed: 0
> [apt] public BookControlBean myBook2;
> [apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
> ip\Controller.java:43: A value assigned to a control property does not satisfy its constraints. Caus
> e: The value, atitleofthebook, assigned to a text property exceeds the maximum length allowed: 0
> [apt] public BookControlBean myBook;
> Repro:
> 1. change trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\property\constraint\BookControl.java
> change line 50,52,54,69,71,73 to the following:
> @AnnotationMemberTypes.Text(minLength=8)
> 2. change trunk\controls\test\webapps\controlsWeb\property\membership\Controller.jpf, change line 42 to:@BookControl.Intro(title="atitleofthebook",content="",subject="")
> line 46 to:@BookControl.Language(coverlanguage="coverlanguage",contentlanguage="",authorlanguage="")
> 3 run ant detailed.tests from trunk\controls\test
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (BEEHIVE-687) AnnotationMemberType.Text mistakes minLength
Posted by "Zach Smith (JIRA)" <be...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/BEEHIVE-687?page=all ]
Zach Smith closed BEEHIVE-687:
------------------------------
maxLength works as advertised
> AnnotationMemberType.Text mistakes minLength
> --------------------------------------------
>
> Key: BEEHIVE-687
> URL: http://issues.apache.org/jira/browse/BEEHIVE-687
> Project: Beehive
> Type: Bug
> Components: Controls
> Versions: v1m1
> Reporter: James Song
> Assignee: Hoi Lam
> Fix For: v1m1
>
> Error message:
> [apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
> ip\Controller.java:47: A value assigned to a control property does not satisfy its constraints. Caus
> e: The value, coverlanguage, assigned to a text property exceeds the maximum length allowed: 0
> [apt] public BookControlBean myBook2;
> [apt] D:\beehive\controls\test\build\webapps\controlsWeb\WEB-INF\.tmpbeansrc\property\membersh
> ip\Controller.java:43: A value assigned to a control property does not satisfy its constraints. Caus
> e: The value, atitleofthebook, assigned to a text property exceeds the maximum length allowed: 0
> [apt] public BookControlBean myBook;
> Repro:
> 1. change trunk\controls\test\src\controls\org\apache\beehive\controls\test\controls\property\constraint\BookControl.java
> change line 50,52,54,69,71,73 to the following:
> @AnnotationMemberTypes.Text(minLength=8)
> 2. change trunk\controls\test\webapps\controlsWeb\property\membership\Controller.jpf, change line 42 to:@BookControl.Intro(title="atitleofthebook",content="",subject="")
> line 46 to:@BookControl.Language(coverlanguage="coverlanguage",contentlanguage="",authorlanguage="")
> 3 run ant detailed.tests from trunk\controls\test
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira