Hi,
Take a look at AjaxEditableLabel, it sends a parameter named save.
This is improved a lot in Wicket 6.
On Wed, Mar 6, 2013 at 3:28 AM, Nick Mudge mud...@gmail.com wrote:
I could not find an example that show's how to do what I want to do.
I have a web page with a Save button on it. When
Hi,
I have a springbean with a ThreadLocal property. On the page (constructor
and onBeforeRenderer) I set a value to that ThreadLocal property. When I do
the get of that property after an ajax call, the value is null.
I made a quickstart to simulate the problem. I print the ThreadLocal value
on
Hi,
Why do you use ThreadLocal ?
Each http request is handled by a random thread from the web container's
thread pool.
You should store that value in the session if you want it to be available
in the next request.
On Wed, Mar 6, 2013 at 1:36 PM, Ann Baert ann.ba...@tvh.com wrote:
Hi,
I have
to run my lengthy operation, my pages needs, I am using a static filed which
is a proxy of my service in the page class itself, on ahjaxevent I use this
proxy to get my data, this proxy times out based on configration to avoid
wicket freezing for lengthy operation.
Is it advised to have static
Hi,
Since it is static it wont be (de)serialized at all.
But it will be used by *all* instances of this page. Is this OK for your
case ?
On Wed, Mar 6, 2013 at 2:10 PM, fachhoch fachh...@gmail.com wrote:
to run my lengthy operation, my pages needs, I am using a static filed
which
is a
If you create an ExecutorService then you should shutdown it too.
See org.apache.wicket.Application#getApplicationListeners
org.apache.wicket.IApplicationListener#onBeforeDestroyed
or org.apache.wicket.Application#onDestroy
On Wed, Mar 6, 2013 at 2:32 PM, fachhoch fachh...@gmail.com wrote:
My
How are you ensuring that the thread that created the page is the same one
that's used to service the AJAX call?
N
On Mar 6, 2013 6:37 AM, Ann Baert ann.ba...@tvh.com wrote:
Hi,
I have a springbean with a ThreadLocal property. On the page (constructor
and onBeforeRenderer) I set a value to
Hi all,
When there is some AJAX activity on page we can show ajax indicator
(using AjaxIndicatorAppender and implementing IAjaxIndicatorAware).
My problem is that I want to show such indicator only when ajax
request takes longer than specified amount of time (eg. 1 second).
But inside a
Maybe you can monkey patch wicketHide and wicketShow? Make some assumption
that indicator id start as ind_ and then do an special delayed show for
those DOM elements/
On Wed, Mar 6, 2013 at 2:11 PM, Daniel Stoch daniel.st...@gmail.com wrote:
Hi all,
When there is some AJAX activity on page we
I've created three subclasses of FormComponentPanel, e.g.
TextFormComponentPanel, CheckBoxFormComponentPanel and
DropDownChoiceFormComponentPanel. They all share some markup logic in that
they all have an enclosing label and a span for the text to use as label.
However each class has its own
Hi,
You can use wicket:for attribute:
label wicket:for=input wicket:id=inputLabelspan
wicket:id=inputSpan[label text]/span
input wicket:id=input type=text size=50 //label
On Wed, Mar 6, 2013 at 5:10 PM, Lucio Crusca lu...@sulweb.org wrote:
I've created three subclasses of
So I am trying to do the package resource reference thing.
https://cwiki.apache.org/WICKET/adding-javascript-or-css-using-a-resource.html
https://cwiki.apache.org/WICKET/including-css-resources.html
However, I am clearly not doing it right. The URLs rendered look like:
script
Hi,
Why would I look at the AjaxEditableLabel? According to the javadoc for it,
it is for: An implementation of ajaxified edit-in-place component using a
TextField as it's editor.
I am not doing that.
What I need is a Save button that executes some javascript to calculate
some data that is then
On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge mud...@gmail.com wrote:
Hi,
Why would I look at the AjaxEditableLabel? According to the javadoc for it,
To see an example how this is done there.
it is for: An implementation of ajaxified edit-in-place component using a
TextField as it's editor.
That's exactly what i am doing. Notice the comment marks /* and */ around
the package stuff. I tried it both ways. And this in this case is
ExtGrid.java. So I am also sending in that class.
So I have to pre-register these resources in some way or something? Note
that ExtGrid is a panel not a
Hi,
On Wed, Mar 6, 2013 at 5:44 PM, Entropy blmulholl...@gmail.com wrote:
That's exactly what i am doing. Notice the comment marks /* and */ around
the package stuff. I tried it both ways. And this in this case is
ExtGrid.java. So I am also sending in that class.
I think the URLs are
On Wed, Mar 6, 2013 at 6:51 PM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
Hi,
On Wed, Mar 6, 2013 at 5:44 PM, Entropy blmulholl...@gmail.com wrote:
That's exactly what i am doing. Notice the comment marks /* and */
around
the package stuff. I tried it both ways. And this in
Hi,
Where is the example?
Nick
On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov mgrigo...@apache.orgwrote:
On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge mud...@gmail.com wrote:
Hi,
Why would I look at the AjaxEditableLabel? According to the javadoc for
it,
To see an example how this is
Hi,
On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge mud...@gmail.com wrote:
Hi,
Where is the example?
AjaxEditableLabel source code?
Nick
On Wed, Mar 6, 2013 at 8:32 AM, Martin Grigorov mgrigo...@apache.org
wrote:
On Wed, Mar 6, 2013 at 6:24 PM, Nick Mudge mud...@gmail.com wrote:
I see, Martin wanted me to look at the source code of AjaxEditableLabel. I
didn't know that.
I understand now. Thank you.
On Wed, Mar 6, 2013 at 9:01 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
Hi,
On Wed, Mar 6, 2013 at 5:57 PM, Nick Mudge mud...@gmail.com wrote:
Hi,
Replacing OnDomReadyHeaderItem with OnLoadHeaderItem (class
DatatablesBehavior) seems to solve your problem. It's likely that your
script (the one from DatatablesBehavior) depends on some other code and
it must wait for it to be loaded before being executed.
Im having a problem with Javascript
Looks like the problem with AjaxEditableLabel is that it sends data to the
server through a URL. The data I need to send to the server is a lot of
data and won't fit in a URL.
Is there another source code example that I could look at that can send a
lot of data to the server via AJAX?
Here's is
Thanks - that seems to confirm the problem - delaying the Datatables JS to
after the Wicket link listeners have executed will fix it, since the errors
are coming from the Wicket Link Listeners not being able to find markup IDs
that the Datatables JS paginates out of view. (load fires after ready
I take some of that back:
In the initial page rendering, the Javascript is ordered as I expect (child
JS then parent JS).
However, in the Ajax update, the Wicket listeners are added *after* the
datatables init call, which results in an out of order sequence.
Why is the Ajax update change the
If you are already using Spring why do you need the field to be static?
Beans are by default singleton scoped and can be tailored to
session/request scoped.
On Wed, Mar 6, 2013 at 1:41 PM, Martin Grigorov mgrigo...@apache.org wrote:
If you create an ExecutorService then you should shutdown it
Hi,
On Wed, Mar 6, 2013 at 6:18 PM, Nick Mudge mud...@gmail.com wrote:
Looks like the problem with AjaxEditableLabel is that it sends data to the
server through a URL. The data I need to send to the server is a lot of
data and won't fit in a URL.
Is there another source code example that I
Great, do you know of any good examples using wicketAjaxPost?
On Wed, Mar 6, 2013 at 9:35 AM, Ernesto Reinaldo Barreiro
reier...@gmail.com wrote:
Hi,
On Wed, Mar 6, 2013 at 6:18 PM, Nick Mudge mud...@gmail.com wrote:
Looks like the problem with AjaxEditableLabel is that it sends data to
If the FileUploadField is just a FormComponentListlt;FileUpload shouldn't
calling setRequired(true) on it and submitting the form with blank user
input generate an error using the Required language pack key?
I've notice that it doesn’t do that for me and was wondering if it's just
me.
-
~
Hi Vineet,
tried it out. My setup() method now looks like this:
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
app = new StartApplication() {
@Override
public ServletContext
I have a Form-level Validator which works on a pair of Date fields, and makes
sure that one can't be filled in without the other. (None or both filled in
is fine.)
The Validator is Form-level because it is multi-component; it must work
generically on any pair of Component IDs, because it's shared
Assuming you are extending AbstractFormValidator, you can store the
components when you construct the validator like so...
public DependantTextFieldValidator(TextField? textField1, TextField?
dependantTextField)
{
if (textField1 == null)
{
throw new
I logged: https://issues.apache.org/jira/browse/WICKET-5082 and added some
comments with my interpretation of what's going on.
N
On Wed, Mar 6, 2013 at 12:31 PM, Nick Pratt nbpr...@gmail.com wrote:
I take some of that back:
In the initial page rendering, the Javascript is ordered as I expect
n/m that... is just me :)
-Original Message-
From: Paul Bors [mailto:p...@bors.ws]
Sent: Wednesday, March 06, 2013 2:02 PM
To: users@wicket.apache.org
Subject: Wicket 1.5.x FileUploadField and the required flag
If the FileUploadField is just a FormComponentListlt;FileUpload shouldn't
Hi All,
Please can we do a 6.6.0 release of wicketstuff... I'd love for
LazyModel to be on Maven Central.
Thanks,
Jesse
On 18/02/2013 19:30, Sven Meier wrote:
Hi all,
I've added a new module to wicketstuff:
LazyModel offers lazy evaluation of method invocations. It takes the
best from
34 matches
Mail list logo