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
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);
}
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
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
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,
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
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
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 */
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
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
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
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
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
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,
-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
-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?
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
-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
101 - 118 of 118 matches
Mail list logo