[webbeans-issues] [JBoss JIRA] Updated: (WBRI-80) numberguess example allows values outside of the current valid range
Brandon Blatnick (JIRA)
jira-events at lists.jboss.org
Fri Mar 27 19:39:22 EDT 2009
[ https://jira.jboss.org/jira/browse/WBRI-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Blatnick updated WBRI-80:
---------------------------------
Attachment: mychanges.diff
mychanges.diff
Added following method to Game.java:
public void validateNumberRange(FacesContext context,
UIComponent toValidate,
Object value)
{
int input = (Integer) value;
if (input < smallest || input > biggest)
{
((UIInput)toValidate).setValid(false);
FacesMessage message = new FacesMessage("Invalid guess");
context.addMessage(toValidate.getClientId(context), message);
}
}
> numberguess example allows values outside of the current valid range
> --------------------------------------------------------------------
>
> Key: WBRI-80
> URL: https://jira.jboss.org/jira/browse/WBRI-80
> Project: Web Beans
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.0.0.ALPHA1
> Environment: OS X
> JDK 5
> Reporter: Jay Balunas
> Priority: Minor
> Fix For: 1.0.0.CR1
>
> Attachments: mychanges.diff, mychanges.diff
>
>
> Once you guess a number the range of valid values shifts correctly in the text of the page. However the validation of future guess's is not bound by those new values, and remain 0-100.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list