General question - business logic with Wicket, where to put it?

2010-08-13 Thread Brown, Berlin [GCG-PFS]
What is the best practice for where to put business logic in Wicket. At first, I had put logic in the page constructor, but now I have learned a little bit about the Lifecycle of a page, the serialization of the page. So putting any kind of logic there didn't seem like a good idea. I placed

Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
With the onblur ajax calls, is it possible to add my own javascript . final AjaxFormComponentUpdatingBehavior blurText = new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { checkPageNextLink(target); }

RE: Additional attributes to ajax events

2010-07-21 Thread Brown, Berlin [GCG-PFS]
that append your custom javascript On Wed, Jul 21, 2010 at 10:26 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: With the onblur ajax calls, is it possible to add my own javascript . final AjaxFormComponentUpdatingBehavior blurText = new AjaxFormComponentUpdatingBehavior(onblur

wicket hell

2010-07-20 Thread Brown, Berlin [GCG-PFS]
There is a css hell, html hell, java web app hell. Is there a wicket hell or issues that are specific to wicket? Because I do believe web application development is wicket is pretty unique. I am still new to wicket but there are two gripes that get me every time. And maybe over time, I will

RE: Welcome Martin Grigorov as a core team member

2010-07-20 Thread Brown, Berlin [GCG-PFS]
Cool, he has been helping me on IRC/Freenode -Original Message- From: Maarten Bosteels [mailto:mbosteels@gmail.com] Sent: Tuesday, July 20, 2010 10:16 AM To: users@wicket.apache.org Subject: Re: Welcome Martin Grigorov as a core team member Congratulations Martin ! On Tue, Jul 20,

Issues with form submit, not retaining values from session without ajax

2010-07-09 Thread Brown, Berlin [GCG-PFS]
I have a page that has a html components like a select list and radio buttons. And those components will invoke the onchange event to submit the form or move to the next page. It doesn't look like I am moving to the next page. My model values dont' seem to be retained, at least they aren't

wantOnSelectionChangedNotifications and form components. and keeping state

2010-07-01 Thread Brown, Berlin [GCG-PFS]
I have an object in session and want to keep the state of those values when I refresh a page or my form submits back to the page. Do I have to add on every component? It seems that I do. Also, how do I add want on selection change but NOT have it perform a form submit. public boolean

How to access above hierarchy in the markup

2010-06-29 Thread Brown, Berlin [GCG-PFS]
Pseudo Code: CompoundPropertyModelString labelModel = new CompoundPropertyModelString(labelProps); panel.setDefaultModel(labelModel); /* Load labels at the PANEL level */ panel.add(new Label(label[1])); form = new Form(new CompoundPropertyModel(myObj)) /* Load data at the form level */

Wicket: On RadioChoice component, invoke form submit, what am I missing

2010-06-25 Thread Brown, Berlin [GCG-PFS]
There are some components in wicket that seem to be associated with a form, but I can't get them to actually submit the form. Or at least, I can't get them to submit the form, if I have a hierarchy of FORM - PANEL - COMPONENT/RADIOCHOICE For example, I can create a submitlink or button and

Hierarchy mismatch with forms and hideable sections.

2010-06-24 Thread Brown, Berlin [GCG-PFS]
I am getting a hierarchy error message and the error makes sense, but how do you construct a form that also has hideable sections: This is what I had originally, a form and sub components. This works fine: Java: form = new Form(); panel.add(form); form.add(new TextField(t1)) form.add(new

RE: Dynamic Resources, Properties

2010-06-21 Thread Brown, Berlin [GCG-PFS]
No, I was not using a properties file from the filesystem but it is an in memory string (the properties data). The properties data is loaded dynamically when the page is hit. -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Friday, June 18, 2010 2:29 AM

Specific user/session properties and resources

2010-06-17 Thread Brown, Berlin [GCG-PFS]
I still want to use wicket message resource tags in my markup. But, I need a system to load and reload resources property data for each page and request. Or maybe load properties per user session. Is this possible using Wicket resource loader classes. Ideally, it looks like I should use a

Dynamic Resources, Properties

2010-06-17 Thread Brown, Berlin [GCG-PFS]
I want to be able to use the StringResourceModel, but I want to use a property string that is loaded when the page is loaded. Basically, I want to set a dynamic property object? With this code below, how can I do this. public class SomePanel extends BaseContentPanel { private

Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I was a little confused about page layouts and markup inheritance. I was thinking that a I could take a piece of HTML markup and reuse that component when I need to, and use it multiple times within page without ever having to create the content. I was not able to do this. What I have now,

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:26 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts On Tue, Jun 15, 2010 at 10:07 AM, Brown, Berlin [GCG-PFS

RE: Question about markup inheritance and page layouts

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 11:34 AM To: users@wicket.apache.org Cc: Berlin Brown Subject: Re: Question about markup inheritance and page layouts Where did you place the wicket:panel tags in your markup?

Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
I am sorry, am just getting used to Wicket but I notice a lot of use of calling a lot of code in the constructor. Does it really matter? I mention it because this kind of style makes it difficult to test code because code in the constructor may fail and the object won't be created. Should I

RE: Newbie question anti-patterns and wicket, constructor component building

2010-06-15 Thread Brown, Berlin [GCG-PFS]
-Original Message- From: Jeremy Thomerson [mailto:jer...@wickettraining.com] Sent: Tuesday, June 15, 2010 3:25 PM To: users@wicket.apache.org Subject: Re: Newbie question anti-patterns and wicket, constructor component building On Tue, Jun 15, 2010 at 2:11 PM, Brown, Berlin [GCG-PFS

<    1   2