Re: DropDownChoice NO_SELECTION_VALUE static field

2009-03-12 Thread ulrik

Okay, I will see If I can figure out how :)
I have never done that


igor.vaynberg wrote:
 
 please open a jira issue.
 
 -igor
 
 On Wed, Mar 11, 2009 at 1:32 AM, ulrik ulrik.hagb...@gmail.com wrote:

 Hello!

 I have an issue with the DropDownChoice (wicket 1.3.4).

 Lets say I do this:

 ListOption _options = getOptions();
 someRenderer = new ChoiceRenderer() {
 ...
 }

 DropDownChoice _ddc = new DropDownChoice(dropDown, new
 Model((Serializable) _option),options, someRenderer);

 The Option class looks like this:

 public class Option {
 private String display_name;
 private String id;

 gettersAndSetters...
 }

 If I select an Option from the DDC, and that Option has id = -1, the
 AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will
 interpret my choice as the protected static final String
 NO_SELECTION_VALUE
 = -1 in AbstractSingleSelectChoice.java.

 The result will be that the Choose one option is visible in the DDC.
 Shouldn't the NO_SELECTION_VALUE be customizable?



 --
 View this message in context:
 http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22471221.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice NO_SELECTION_VALUE static field

2009-03-12 Thread ulrik

https://issues.apache.org/jira/browse/WICKET-2161

// Ulrik



ulrik wrote:
 
 Okay, I will see If I can figure out how :)
 I have never done that
 
 
 igor.vaynberg wrote:
 
 please open a jira issue.
 
 -igor
 
 On Wed, Mar 11, 2009 at 1:32 AM, ulrik ulrik.hagb...@gmail.com wrote:

 Hello!

 I have an issue with the DropDownChoice (wicket 1.3.4).

 Lets say I do this:

 ListOption _options = getOptions();
 someRenderer = new ChoiceRenderer() {
 ...
 }

 DropDownChoice _ddc = new DropDownChoice(dropDown, new
 Model((Serializable) _option),options, someRenderer);

 The Option class looks like this:

 public class Option {
 private String display_name;
 private String id;

 gettersAndSetters...
 }

 If I select an Option from the DDC, and that Option has id = -1, the
 AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will
 interpret my choice as the protected static final String
 NO_SELECTION_VALUE
 = -1 in AbstractSingleSelectChoice.java.

 The result will be that the Choose one option is visible in the DDC.
 Shouldn't the NO_SELECTION_VALUE be customizable?



 --
 View this message in context:
 http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22471229.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: DropDownChoice NO_SELECTION_VALUE static field

2009-03-11 Thread Igor Vaynberg
please open a jira issue.

-igor

On Wed, Mar 11, 2009 at 1:32 AM, ulrik ulrik.hagb...@gmail.com wrote:

 Hello!

 I have an issue with the DropDownChoice (wicket 1.3.4).

 Lets say I do this:

 ListOption _options = getOptions();
 someRenderer = new ChoiceRenderer() {
 ...
 }

 DropDownChoice _ddc = new DropDownChoice(dropDown, new
 Model((Serializable) _option),options, someRenderer);

 The Option class looks like this:

 public class Option {
 private String display_name;
 private String id;

 gettersAndSetters...
 }

 If I select an Option from the DDC, and that Option has id = -1, the
 AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will
 interpret my choice as the protected static final String NO_SELECTION_VALUE
 = -1 in AbstractSingleSelectChoice.java.

 The result will be that the Choose one option is visible in the DDC.
 Shouldn't the NO_SELECTION_VALUE be customizable?



 --
 View this message in context: 
 http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org