TestParent.java
TestParent.html
TestChild.java
TestChild.html
Output:
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-with-ajax-tp4650898p4650909.html
Sent from the Users forum mailing list archive at Nabble
Hi.
I'm sure I'm talking about something that has already been discussed
here and on stackoverflow a lot, but still I haven't found a solution.
I do not understand how AutocompleteTextField works when dealing with
list of objects that are not just strings. Other wicket components
like DropDown ha
ciao,
I think Autocompletetextfield deals only with String.
IIRC there is a objectautocomplete in wicketstuff.
I did not use it personally but I suppose that does what you need.
Giovanni
Il 01/08/12 12.31, Daniele Dellafiore ha scritto:
Hi.
I'm sure I'm talking about something that has alre
You have to overwrite AutoCompleteTextfield#getConverter() and provide a
converter for your object.
You can use #getChoices() to find the correct object for the new input.
Sven
Daniele Dellafiore schrieb:
>Hi.
>
>I'm sure I'm talking about something that has already been discussed
>here and o
> DropDown has a clear pattern:
> the renderer is used only for
> rendering purpose
BTW this is not correct: all choice components use their renderer for rendering
AND input, AutoCompleteTextField uses its renderer for rendering only.
Sven
Sven Meier schrieb:
>You have to overwrite AutoCompl
Hey Sven,
On Wed, Aug 1, 2012 at 2:01 PM, Sven Meier wrote:
>> DropDown has a clear pattern:
>> the renderer is used only for
>> rendering purpose
>
> BTW this is not correct: all choice components use their renderer for
> rendering AND input, AutoCompleteTextField uses its renderer for renderin
On Wed, Aug 1, 2012 at 4:08 AM, Martin Grigorov wrote:
> Hey Sven,
>
> On Wed, Aug 1, 2012 at 2:01 PM, Sven Meier wrote:
>>> DropDown has a clear pattern:
>>> the renderer is used only for
>>> rendering purpose
>>
>> BTW this is not correct: all choice components use their renderer for
>> render
Hi
I use wicket-dnd (0.5.0) with wicket 1.5.5. Initial I developed a small
application with these libraries but now I want to integrate the code in a
big application (copy/paste with some rename on packages).
In the big application I retrieves "Uncaught TypeError: Object
# has no method 'ready'"
Hi Alex,
I tried your code and stripped it down as much as possible and couldn't
find anything wrong with it. My guess is that Wicket ajax does not
remove timers from replaced components in ajax responses. Therefore, the
javascript timeout function is still executed on the client even if its
Wicket.Event.add(window, "domready", function(event) { new
wicketdnd.DropTarget(...) }); // works
$(document).ready(function(event){new wicketdnd.DropTarget(...)}); // error
(probably jquery not found or a conflict between jquery and prototype)
--
View this message in context:
http://apache-w
On Wed, Aug 1, 2012 at 4:55 PM, Bertrand Guay-Paquet
wrote:
> Hi Alex,
>
> I tried your code and stripped it down as much as possible and couldn't find
> anything wrong with it. My guess is that Wicket ajax does not remove timers
> from replaced components in ajax responses. Therefore, the javascr
On 01/08/2012 9:58 AM, Martin Grigorov wrote:
No.
The timer is fired but the precondition prevents the Ajax call.
The precondition checks that the component (html element) on which is
attached the timer behavior is still in the DOM document.
Hmm... I don't quite know what to say! In my tests, th
Do you use -beta3 ?
There was a bug which is fixed in -SNAPSHOT. That's why I know how it works ;-)
On Wed, Aug 1, 2012 at 5:12 PM, Bertrand Guay-Paquet
wrote:
> On 01/08/2012 9:58 AM, Martin Grigorov wrote:
>>
>>
>> No.
>> The timer is fired but the precondition prevents the Ajax call.
>> The pr
Yes I was using -beta3 since this is what Alex used. I just tried it
with -SNAPSHOT (commit b89909c1fa99ae6973c3fb0738a966eb23c27e73) and I
get the same exception.
You say that:
The precondition checks that the component (html element) on which is
attached the timer behavior is still in the DO
I see.
I'm not sure how Wicket can detect this situation ...
A workaround would require some coding from the developer - when he
replaces the component he has to call additionally:
timerBehavior.stop(target).
This will clear the scheduled timeout in the browser.
On Wed, Aug 1, 2012 at 5:31 PM, Be
As Igor has written, AutoCompleteTextField is a TextField and thus depends on
converters.
I'll improve the javadoc.
Sven
Martin Grigorov schrieb:
>Hey Sven,
>
>On Wed, Aug 1, 2012 at 2:01 PM, Sven Meier wrote:
>>> DropDown has a clear pattern:
>>> the renderer is used only for
>>> rendering
Would this work if done on the client?
New code when ajax response is received :
replacedDOMElement = ...;
$replacedDOMElement = $(replacedDOMElement);
for each js timers:
$component = $(timer.component);
if( $replacedDOMElement.is($component) ||
$replacedDOMElement.find($compone
Well, it appears that your Page2.html and Page3.html are base pages (root
classes to extend from) since you used (something will
extend from those pages). Thus your hierarchy tree would look like:
Page2.html (root)
Page1.html (child: if you extend Page2)
Page3.html (root)
Page1.html (child: i
Yes.
Wicket sends a message on topic '/dom/node/removed' for each removed element.
Using its id we can stop the timer.
Please file the ticket :-)
On Wed, Aug 1, 2012 at 6:20 PM, Bertrand Guay-Paquet
wrote:
> Would this work if done on the client?
>
> New code when ajax response is received :
> re
Filed WICKET-4689.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
Hi,
Actually the scene is different here. Page2 is child of Page3. The hierarchy
is:
Page3
Page2
Page1
So, I have modified Page2 as:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"
xmlns:wicket="http://wicket.apache.org/dtds.
Whenever posting multipart forms via ajax, any IAjaxCallListener or
IAjaxIndicatorAware classes at play will have no impact. If the form is not
multi-part, all works fine.
As part of our upgrade process (from 1.4.13 to 6.0), I have converted a handful
of AjaxCallDecorators to appropriate IAjax
This is already supported! ;-)
Use latest -SNAPSHOT.
On Wed, Aug 1, 2012 at 11:33 PM, Crabb, Curtis wrote:
> Whenever posting multipart forms via ajax, any IAjaxCallListener or
> IAjaxIndicatorAware classes at play will have no impact. If the form is not
> multi-part, all works fine.
>
> As pa
The DataTable was changed in wicket 6 to use wicket:container instead of
span on the td and th elements (
https://issues.apache.org/jira/browse/WICKET-4224). While this fixed the
issue described in the ticket, it can make dealing with the DataTable a
little more cumbersome and introduces a new bug
Are you using wiquery?
I remember an incompatibility between prototype and jquery in that case.
Sven
On 08/01/2012 03:58 PM, Decebal Suiu wrote:
Wicket.Event.add(window, "domready", function(event) { new
wicketdnd.DropTarget(...) }); // works
$(document).ready(function(event){new wicketdnd.Dr
Hi,
I'm trying to create a custom form component that extends a
DropDownChoice. The reason I'm doing this is because I need a form
component that forces a user to select a choice. However, I'm unable to get the
model to update. What am I not overriding properly? I'm all ears for
suggestions if
Instead of going to the extent of overriding a class because your model
value is not updated, why not fix the problem?
Take a look at the component reference wicket-example project:
http://www.wicket-library.com/wicket-examples/compref/
More precisely at the DropDownChoice:
http://www.wicket-libr
I use DataTable and add a new object to its model.
Another thing I do is to allow for an edit button that would turn the entire
row of a DataTable into the appropriate form fields.
For a visual see the Editable tree table from wicket's examples at:
http://www.wicket-library.com/wicket
-examples/ne
Refer to Wicket's examples and how to use Spring.
http://www.wicket-library.com/wicket-examples/spring/
Once you get the injection going you can write your own DAOs (Hibernate, JDBC,
etc) that filter the SQL given a data table toolbar and sort them by the
selected column. You would need to learn
There's nothing wrong with using TextFields inside ListViews. Just call
#setReuseItems(true) and (in most cases) you're done.
And if you're using a LDM, detach it after you've changed the backing list.
Sven
On 08/02/2012 02:25 AM, Benjamin Heiskell wrote:
Hi,
I have a List that I want to rep
Hi,
How can I load external properties file? (i mean that I don't want to load a
file that is in the regular wicket hierarchy where i have HelloWorld.java,
HelloWorld.html, HelloWorld.properties), what i want is to load file from-
C:\project\HelloWorld.properties.
i tried to do this but wicket w
Hello Sven
First, I want to say thanks for your contribution to wicket (for wicket-tree
and wicket-dnd in special).
Yes, I use wiquery :) I read
http://code.google.com/p/wicket-dnd/issues/detail?id=13&can=1.
Is there anyone from wiquery that can explains us why wiquery doesn't works
with wicket-
32 matches
Mail list logo