Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Number field with a minValue but no maxValue(The error message is not user friendly.)
Number field with a minValue but no maxValue [message #1311156] Wed, 23 April 2014 12:32 Go to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 678
Registered: October 2011
Senior Member
On an integer field it is possible to define a min value without defining a max value. In this case Integer.MAX_VALUE is used as upper boundary.

If the user enters an invalid value (in this case negative values), he gets the message:

index.php/fa/17978/0/

In my opinion it should be something like:
"The value is too small; must be bigger than 0"

The current message is not user friendly.

I know there were some changes for the number fields with the Luna release. So I checked if the error message was better with Kepler:

index.php/fa/17979/0/

Not really.

What do you think?

Should I open a bug?

Code:
@Order(20.0)
public class MyField extends AbstractIntegerField {
  @Override
  protected String getConfiguredLabel() {
    return TEXTS.get("My");
  }
  @Override
  protected Integer getConfiguredMinValue() {
    return 0;
  }
}

Re: Number field with a minValue but no maxValue [message #1311372 is a reply to message #1311156] Wed, 23 April 2014 15:21 Go to previous messageGo to next message
Judith Gull is currently offline Judith Gull
Messages: 49
Registered: February 2010
Member
Yes, the error message is correct, but not user friendly. You can open a bugzilla with a suggestion for the change request.
Re: Number field with a minValue but no maxValue [message #1319481 is a reply to message #1311372] Mon, 28 April 2014 03:34 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 678
Registered: October 2011
Senior Member
Bug 433621 is submitted.
Re: Number field with a minValue but no maxValue [message #1385858 is a reply to message #1319481] Wed, 11 June 2014 12:58 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 678
Registered: October 2011
Senior Member
I have proposed a change on the develop branch for 4.1.0. Feel free to provide feedback.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=433621#c1
Re: Number field with a minValue but no maxValue [message #1387106 is a reply to message #1385858] Tue, 24 June 2014 03:56 Go to previous message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 678
Registered: October 2011
Senior Member
Thanks to Matthias Nick, the problem is fixed in Scout 4.1.0 (See Bugzilla).
Previous Topic:optimistic locking
Next Topic:Best way for Workflows and Wizards
Goto Forum:
  


Current Time: Mon Sep 01 03:48:54 EDT 2014

Powered by FUDForum. Page generated in 0.01821 seconds