Re: Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-13 Thread Willis Blackburn
On Feb 13, 2011, at 2:33 PM, jer...@wickettraining.com [via Apache Wicket] wrote: I understood your key point, which is why I said as a side note but my point still remains. Loading a list and then sticking it into Model class is in almost all cases a *bad* idea. I agree with you!

Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-12 Thread Willis Blackburn
I'm constantly running into problems with this method: public static C IModelList? extends C ofList(final List? extends C list) This says that ofList takes, as a parameter, a List of C or some subclass of C, and returns a List of C or of some subclass of C. The problem that I keep having is

Re: Unfriendly Model.ofList etc. methods; can anything be done?

2011-02-12 Thread Willis Blackburn
jer...@wickettraining.com wrote: On Sat, Feb 12, 2011 at 7:56 AM, Willis Blackburn wbo...@panix.com wrote: As a side note, rarely should you ever use Model class for a list of things, especially things loaded from a database. If you then pass that model to a component, all the things

Is it possible to change the /wicket path?

2011-01-22 Thread Willis Blackburn
(Sorry if this seems familiar to anyone. I accidentally posted it to the Nabble Apache Wicket forum the first time, instead of Users.) I have an application in which the majority of valid URLs map to a content management system. In general, anything that's not a bookmarked page or a

What happened to IValidatorAddListener?

2011-01-22 Thread Willis Blackburn
It has gone missing between 1.5-RC1 and 1.5-M3. Is there a replacement of some kind? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-happened-to-IValidatorAddListener-tp3231645p3231645.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Is it possible to change the /wicket path?

2011-01-22 Thread Willis Blackburn
Thanks! On Jan 22, 2011, at 5:42 PM, Igor Vaynberg-2 [via Apache Wicket] wrote: https://issues.apache.org/jira/browse/WICKET-3368 -igor On Sat, Jan 22, 2011 at 9:38 AM, Willis Blackburn [hidden email] wrote: (Sorry if this seems familiar to anyone. I accidentally posted

Re: Why I'm getting NPE?

2009-04-29 Thread Willis Blackburn
Hi, The @SpringBean annotation is only resolved by Component and its subclasses. (Actually it's resolved by SpringComponentInjector--but that only works with components.) You can call InjectorHolder.getInjector().inject(whatever) to resolve @SpringBean annotations in the whatever

Re: Validator for 2 fields

2009-04-27 Thread Willis Blackburn
Thorsten, Look at the Wicket class called EqualInputValidator for guidance. You have to add it to the form, not to the individual fields. W On Apr 27, 2009, at 6:16 AM, Thorsten Scherler wrote: Hi all, I have a question about validating one field with another. I have a form that ask for

Re: displaying xml content

2009-04-27 Thread Willis Blackburn
Shiraz, Does this dynamic XML content include references to Wicket components? In other words does it include wicket:id attributes? If not, then you don't need a special panel for it. You can just display it as a MultilineLabel with escaping turned off. W On Apr 27, 2009, at 5:57 AM,

Re: Large Scale Applications using Wicket

2009-03-13 Thread Willis Blackburn
I don't think that page serialization is going to be your bottleneck. I don't know what you're thinking when you say large scale. Some folks think large scale means two server and others think Travelocity or Google. I developed a system in PHP that served about 20-50 pages per second.

Re: Two Wicket Apps in a single web app

2009-03-13 Thread Willis Blackburn
Sure. You just have to sort out the URL space so they don't conflict. Mount a bunch of Wicket filters on various URLs, each referencing a different Application instance. W On Mar 13, 2009, at 9:46 PM, subbu_tce wrote: Is it possible to two or more wicket apps in a single web

Re: Why is BookmarkablePageLink generified?

2009-03-02 Thread Willis Blackburn
BookmarkablePageLink isn't final. A subclass could use the model. W On Mar 2, 2009, at 7:36 AM, Erik van Oosten wrote: Hello, I was wondering why BookmarkablePageLink has been generified. A bookmarkable link has no use for a model as far as I can see. Shall I create an issue to change

Re: bad practice in sharing models between wicket form and hibernate?

2009-03-01 Thread Willis Blackburn
Let's say you have a Java object with 20 fields that's mapped to a database using Hibernate. I don't see that there's much difference in terms of memory utilization between using that object as the model and creating a separate object with 20 fields to use as the model. Following the

Re: bad practice in sharing models between wicket form and hibernate?

2009-03-01 Thread Willis Blackburn
persisted yet to the db and you have some kind of wizard to fill it up. On Sun, Mar 1, 2009 at 14:56, Willis Blackburn wbo...@panix.com wrote: Let's say you have a Java object with 20 fields that's mapped to a database using Hibernate. I don't see that there's much difference in terms

Re: Add a surrounding component to itself

2009-02-17 Thread Willis Blackburn
Prag, It would be tough to write a component that could replace itself, and I think that it's impossible to have a component that's visible when its parent is invisible. What you want to do is create a Panel that either displays the link with the product within it, or just displays the

Re: N-level CompoundPropertyModel

2009-02-16 Thread Willis Blackburn
that the change breaks what i thought the contract of initmodel was... we should discuss on dev, mind sending a message? -igor On Sun, Feb 15, 2009 at 10:08 AM, Willis Blackburn wbo...@panix.com wrote: Igor, Are you sure that will work? I don't think that SmallComponent's initModel method

Re: N-level CompoundPropertyModel

2009-02-16 Thread Willis Blackburn
)); add(new Label(name); } } On Mon, Feb 16, 2009 at 20:59, Willis Blackburn wbo...@panix.com wrote: Johan, The below solution requires that SmallComponent know it's parent has CompoundPropertyModel and that there is a member called smallObject. I'm trying to keep SmallComponent

N-level CompoundPropertyModel

2009-02-15 Thread Willis Blackburn
Hello, I have a situation that keeps coming up. All of my solutions have seemed clumsy, which makes me think that there's a better way of approaching this that I just haven't figured out. Can someone point me in the right direction? What I want is to have a Page that uses

Re: N-level CompoundPropertyModel

2009-02-15 Thread Willis Blackburn
On Feb 15, 2009, at 12:00 PM, jcgarciam wrote: Hi, Have you tried using an expression as the name of your Label component which match your object model hierarchy. i.e: add(new Label(smallObject.name)); Willis Blackburn wrote: Hello, I have a situation that keeps coming up. All of my

Re: N-level CompoundPropertyModel

2009-02-15 Thread Willis Blackburn
(); return new compoundpropertymodel(model); } } -igor On Sun, Feb 15, 2009 at 8:19 AM, Willis Blackburn wbo...@panix.com wrote: Hello, I have a situation that keeps coming up. All of my solutions have seemed clumsy, which makes me think that there's a better way of approaching this that I just

Re: Hi

2009-02-15 Thread Willis Blackburn
Swapna, You can set up the radio buttons to submit the form via ajax when the user clicks on. See AjaxFormSubmitBehavior. W On Feb 15, 2009, at 8:13 PM, Swapna Rachamalla wrote: Hi Using Apache Wicket: I have a form.In that form i have Radio button group like: Country - USA - UK