I think it's likely because your KeyValue class does not implement equals. Your
defaultValue has its own new instance of KeyValue that contains the key JAVA
and the value java. Your defaultValue instance and what you think is the same
instance in your list are not the same unless you correctly
Aww, crap. I see it was already answered in a different thread….or something
that showed up under a different thread in my mail reader at least. Sorry for
the noise.
On Monday, July 23, 2012 at 11:46 PM, David Hosier wrote:
I think it's likely because your KeyValue class does not implement
.nabble.com/DropDownChoice-Default-Value-tp4650704.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h
:
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-Default-Value-tp4650704.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional
Hi All,
I have searched and wasted much of my time figuring out the default Value for
DropDownChoice for Object as dropdown but couldn't find the solution. For
String dropdown i was able to make it work but somehow for object it is not
working.
Below is the Simple example that i have been
Hi,
I created a new database and now it works fine.
Must have been an inconsistency in the development/test environment.
Thanks
Andrea
2008/7/30, Igor Vaynberg [EMAIL PROTECTED]:
On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED]
wrote:
Reason is, that the Country class
Hi,
I have a CityListPage, where City objects are listed in a DataView.
The City has a many to one relationship to Country (eager fetching).
For each item in the list there's a edit link to CityEditPage. When the user
clicks the link, the city object is passed to the CityEditPage.
There's a
On Wed, Jul 30, 2008 at 3:02 AM, Andrea Jahn [EMAIL PROTECTED] wrote:
Reason is, that the Country class contains an equal() method. Wicket calls
this method,
but the comparison of the id delivers false (different instances of the
Integer object).
this doesnt make any sense unless you do
DropDownChoice?
--
View this message in context:
http://www.nabble.com/DropDownChoice-default-value-tp15106932p15106932.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
On Sat, 26 Jan 2008, Mathias P.W Nilsson wrote:
I have a dropDownChoice populated with Category objects. If it is the first
time the page is rendered
the Choose one is visible in the list. If I choose any category this item
gets removed because it is not a Category object. How can I always
would like to have an option with id and a value of my choice in top.
--
View this message in context:
http://www.nabble.com/DropDownChoice-default-value-tp15106932p15107379.html
Sent from the Wicket - User mailing list archive at Nabble.com
On Jan 26, 2008 4:19 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:
Thanks but it still does not work. I have set the setIsNullValid to true and
overrided the getDefaultChoice
@Override
protected java.lang.CharSequence getDefaultChoice(final Object selected){
return Test value;
}
Thanks alot! It works now. :jumping:
--
View this message in context:
http://www.nabble.com/DropDownChoice-default-value-tp15106932p15114359.html
Sent from the Wicket - User mailing list archive at Nabble.com
13 matches
Mail list logo