Re: Scala-Wicket Help and Advice

2011-01-08 Thread James Carman
Since scala is statically-typed, the ide can (and does) give you contextual help very easily On Jan 8, 2011 2:21 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: But it will do the right thing about 90% of the time. you'll subconsciously work around 4 or 5% of the rest that doesn't

Re: Scala-Wicket Help and Advice

2011-01-08 Thread Gustavo Hexsel
Analysis is the a background process that parses the file and highlights errors, warnings, etc while you type. Eclipse has the same, though the name may be different. It's slow in Scala, like compilation is. Yes, it gives you context help. It's very helpful with a caveat: in Scala, there

Re: Scala-Wicket Help and Advice

2011-01-08 Thread Martin Makundi
 Analysis is the a background process that parses the file and highlights errors, warnings, etc while you type.  Eclipse has the same, though the name may be different.  It's slow in Scala, like compilation is. If it is slow then it is pain. Computer speeds might enhance faster than ides ;)  

Re: Scala-Wicket Help and Advice

2011-01-08 Thread James Carman
On Sat, Jan 8, 2011 at 1:25 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: What I hate about java is its one-dimensionality... ehh.. say you have: object man object man carrying bag bag carrying pencil case. This isn't a Java problem.  This is a design problem. How would you

Re: Scala-Wicket Help and Advice

2011-01-08 Thread Martin Makundi
Hi! You would use a more domain-oriented design approach.  Setters/getters are merely used because of all the frameworks that support (and expect) them.  Why do you care where the man is carrying his pencil? Perhaps he's keeping it in his sock. All you want to do is ask the man object for a

Re: Scala-Wicket Help and Advice

2011-01-08 Thread James Carman
On Sat, Jan 8, 2011 at 2:59 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: It should be possible to say that man will proxy by default all get methods of his belongings, It should be possible to say that bag will proxy by default all get methods of his belongings. Same with

Re: Scala-Wicket Help and Advice

2011-01-08 Thread Martin Makundi
Hi! public T T borrowObject(ClassT objectType) where you can do Pencil p = man.borrowObject(Pencil.class); Either way, you have to put logic somewhere that tries to figure out what the heck you want to borrow and then figure out where the heck to get it. If it is done at compile time

Re: Scala-Wicket Help and Advice

2011-01-08 Thread James Carman
On Sat, Jan 8, 2011 at 4:19 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Either way, you have to put logic somewhere that tries to figure out what the heck you want to borrow and then figure out where the heck to get it. If it is done at compile time you don't need messaging

More flexible Panel, Fragment, etc.

2011-01-08 Thread Juergen Donnerstag
Hi, currently every component that requires the markup to be in an associated file must be derived from Panel. Every component that want it's markup inline must be derived from Fragment. I've changed that and moved the respective source code into something I called markup sourcing strategy. I'm

Re: More flexible Panel, Fragment, etc.

2011-01-08 Thread Igor Vaynberg
sounds interesting, but your patch didnt make it. attach to a jira issue? -igor On Sat, Jan 8, 2011 at 2:54 PM, Juergen Donnerstag juergen.donners...@gmail.com wrote: Hi, currently every component that requires the markup to be in an associated file must be derived from Panel. Every

Fragility/Stability of Wicket core

2011-01-08 Thread richard emberson
Ok, you need to debug whats in a Model when it is added to a Component. So, in setModelImpl which is called by the Component constructor you add code to get the object out of the Model (if its not null, of course) by calling model.getObject(): void setModelImpl(IModel? model) { if (model

Re: Fragility/Stability of Wicket core

2011-01-08 Thread Jeremy Thomerson
On Sat, Jan 8, 2011 at 7:03 PM, richard emberson richard.ember...@gmail.com wrote: Ok, you need to debug whats in a Model when it is added to a Component. So, in setModelImpl which is called by the Component constructor you add code to get the object out of the Model (if its not null, of

Re: Fragility/Stability of Wicket core

2011-01-08 Thread richard emberson
On 01/08/2011 05:16 PM, Jeremy Thomerson wrote: Not all that amazing. This is happening*during construction* which always leaves objects in fragile states. It's assumed that you can't start monkeying around with an object's state until construction is completed (and not expect side