I don't know too much about the internals of Wicket, but I have opinions on how things should work. ;-)

1) Fail gracefully: I had problems with a Panel/Form today. I got a (Runtime) Exception as soon as it was rendered (which I couldn't prevent). I actually wanted to show an empty form - it would illustrate to the user that soon he/she would be able to modify some data. Sure, I could get this working almost the way I wanted, but not without some coding. That brings me to my second point.

2) Supply default implementations that work: Wicket developers need to do far too much subclassing. We shouldn't have to subclass Form, Button... simply to get something working!

Actually; why do we have to explicitly instantiate anything? Why not do this in the html file:

<form wicket:id="form01" wicket:type"Form" wicket:action="doSomething" ... >

With Wicket I feel I'm building the GUI twice - I have to create a hierarchy of componenets that exactly matches the (structure of the) corresponding html file.

/Anders

Eelco Hillenius wrote:
I actually agree we should allow nulls. We have had discussions about
this in the past, but I'm definitively in the camp that wants to
either fail right away if a value (null) is not allowed, or be
flexible about what we support.

Eelco

On 8/23/05, Anders Peterson <[EMAIL PROTECTED]> wrote:

Igor Vaynberg wrote:


Cant you just do new CompoundPropertyModel(new HashMap()) ?

Yes


Also check out the wicket.util.value.ValueMap helper class.

StringValue seems useful!

/Anders


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anders Peterson
Sent: Tuesday, August 23, 2005 10:48 AM
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel

Hi, it's me agian...

I just discovered that this works perfectly fine:

Map tmpMap = new HashMap();
Ognl.setValue("testValue", tmpMap, new Integer(1));

Then couldn't CompoundProtertyModel have a Map as a default
object (if allowing null objects is a problem)?

/Anders

Anders Peterson wrote:


In case it wasn't clear...

An NSDictionary instance will accept *any* ognl expression.

/Anders


--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference &
EXPO September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices Agile & Plan-Driven Development *
Managing Projects & Teams * Testing & QA Security * Process
Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user








-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to