Re: Will renderHead method be invoked when a component is rendered via wicket events?

2015-03-10 Thread Martin Grigorov
gt; When > > > the entire page is reloaded, the timepicker is working fine. However, > > when > > > the respective panel is displayed via Wicket events, the time picker is > > not > > > rendered. I am using Component#onEvent(Ievent) method to display the >

Re: Will renderHead method be invoked when a component is rendered via wicket events?

2015-03-09 Thread MadasamySankarapandian
ap-timepicker.js in a single page application > . > > Time picker is added in a panel which is then embedded in the page. When > > the entire page is reloaded, the timepicker is working fine. However, > when > > the respective panel is displayed via Wicket events, the time p

Re: Will renderHead method be invoked when a component is rendered via wicket events?

2015-03-09 Thread Martin Grigorov
hen embedded in the page. When > the entire page is reloaded, the timepicker is working fine. However, when > the respective panel is displayed via Wicket events, the time picker is not > rendered. I am using Component#onEvent(Ievent) method to display the panel. > The javascript resource

Will renderHead method be invoked when a component is rendered via wicket events?

2015-03-08 Thread MadasamySankarapandian
I am using bootstrap-timepicker.js in a single page application . Time picker is added in a panel which is then embedded in the page. When the entire page is reloaded, the timepicker is working fine. However, when the respective panel is displayed via Wicket events, the time picker is not

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
Hi Chris, Yes it works like you did but on a strict point of view, its better to notify the component its modelobject changed (and the page is also aware that a child component model has changed)... So event if it is not much important yet, it is still better to call #onRemove because it already h

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Hi Sebastian, currently, I am deleting the element that should be removed from the list and render the view again. I am not calling #onRemove, but the code works, too. Therefore, I wanted to ask you if it is better to call #onRemove. br, Chris > Am 08.02.2015 um 19:55 schrieb Sebastien : >

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
Hi Chris, Not sure to understand. OnRemove already removes from the list but also indicates that the model has changed... target.add(MySortable.this) re-render the sortable with the updated list. So everything should work, that's why I am not sure to understand the question... Thanks, Sebastien

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
Hi Sebastian, thanks for the solution with #onConfigure - it works. Would it also be an option to remove the item from the list and render the sortable again, instead of calling MySortable.this.onRemove? Best regards > Am 08.02.2015 um 19:13 schrieb Sebastien : > > Hi Chris, > > As I told y

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
Hi Chris, As I told you earlier (but it seems it was in another post), in our case we need to retrieve the item's data-hash for retrieving and deleting the correct item So the code becomes: item.add(new AjaxLink("remove") { private static final long serialVersionUID = 1L; @Override

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
Damned, I sent the mail a little bit to quickly... the button does not remove the correct item if it has moved... Will fix that.

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
ComponentEventVisitor.component(ComponentEventSender.java:329) >> >>>>>>>>>>>>> at >> >>>>>>>>>>> >> >>>>>>>> >> >>>>>> >> >>>> >> >> >&g

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
ts.java:162) > >>>>>>>>>>>>> at > >>>>>>>>>>> > >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123) > >>>>>>>>>>>>> at > >>>>>>&g

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
>>> >>>>>>>> >>>>>> >>>> >> org.apache.wicket.ComponentEventSender.breadth(ComponentEventSender.java:160) >>>>>>>>>>>>> at >>>>>>>>>>> >>>>

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
ctableBehavior.onAjax(SelectableBehavior.java:122) > >>>>>>>>>>> at > >>>>>>>>> > >>>>>> > >>>> > >> > com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior.respond(JQueryAjaxBehavior.java:171) &

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
>>>>>> >>>> >> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) >>>>>>>>>>> at >>>>>>>>> >>>>>> >>>> >> org.apache.w

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
t; org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) >>>>>>>>> at >>>>>>> >>>> >> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) >>>>&

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Sebastien
at > >>>>>>> > >>>> > >> > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862) > >>>>>>>>> at > >>>>>>> > >>>> > >> > or

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-08 Thread Chris
;>>>>> at >>>>>>> >>>> >> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) >>>>>>>>> at >>>>>>> >>>> &g

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Martin Grigorov
; >>>>> > >> > org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137) > >>>>>>>at javax.servlet.http.HttpServlet.service(HttpServlet.java:618) > >>>>>>>at javax.servlet.http.HttpServlet.service(Htt

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
;>>>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) >>>>>>>at >>>>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.jav

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Sebastien
ContextValve.__invoke(StandardContextValve.java:106) > >>>>> at > >>> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) > >>>>> at > >>> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-06 Thread Chris
ErrorReportValve.java:79) >>>>> at >>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610) >>>>> at >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) >>>>>

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-05 Thread Sebastien
11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081) >> >> at >> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658) >> >> at >> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Ht

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-05 Thread Sebastien
va:1523) > >> at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > >> at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > >> at > org.apache.tomcat.util.threads.TaskThread$WrappingRun

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
n(NioEndpoint.java:1523) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >> at >> org.apache.tomcat.util.threa

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Sven Meier
get, using Wicket events. The internal error is thrown when using Wicket events to add the additional panel. Without the event, just calling #target.add(sortable) it works. Panel A * @Override public void onSelect(AjaxRequestTarget target, List items) { sortable.onRem

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
me in figuring out the problem? >> >> Panel A senses the selection of an item from a user and adds the „sortable“ >> as container to the ajax target. >> In addition, Panel B should be added to the ajax target, using Wicket events. >> >> The internal error is thr

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Tobias Soloschenko
problem? Panel A senses the selection of an item from a user and adds the „sortable“ as container to the ajax target. In addition, Panel B should be added to the ajax target, using Wicket events. The internal error is thrown when using Wicket events to add the additional panel. Without the event

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
Wicket events. The internal error is thrown when using Wicket events to add the additional panel. Without the event, just calling #target.add(sortable) it works. Panel A * @Override public void onSelect(AjaxRequestTarget target, List items) { sortable.onRemove(target, items.get

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Grün Christoph
When the user clicks on a certain icon, a specific part of the page should >> be reloaded through ajax. The icon is part of a panel, the specific part is >> a webmarkupcontainer added directly to the page. I am using Wicket Events to >> push the click event. However, when ad

Re: Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Sven Meier
webmarkupcontainer added directly to the page. I am using Wicket Events to push the click event. However, when adding the web markup container as target, I am getting an internal error. -> update.getTarget().add(container); Can someone help me to fix this? * * PA

Ajax - render Webmarkup-Container based on Wicket Events

2015-02-04 Thread Chris
Hi, When the user clicks on a certain icon, a specific part of the page should be reloaded through ajax. The icon is part of a panel, the specific part is a webmarkupcontainer added directly to the page. I am using Wicket Events to push the click event. However, when adding the web markup

AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Yoav Stern
My scenario: on an ajax event I replace a webmarkupContainer with one of my components which have some wicket IBehaviorListener. The problem is that this replace happen due to Ajax request, and the behavior gets listed on don ready: Wicket.Event.add(window, "domready", function(event) { Wicket.Aj

Re: Fwd: AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Sven Meier
I'm assuming that, being generated in the this event registration code happens for all components that are added explicitly, but not for any components that are added dynamically by me. That assumption is wrong. Wicket will handle all event registration code automagically. Updating a parent con

Fwd: AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Yoav Stern
My scenario: on an ajax event I replace a webmarkupContainer with one of my components which have some wicket IBehaviorListener. The problem is that this replace happen due to Ajax request, and the behavior gets listed on don ready: Wicket.Event.add(window, "domready", function(event) { Wicket.Aj

Re: Wicket Events

2012-06-21 Thread Douglas Ferguson
I was able to get the EventDispatcher to work. I added an annotation and as well as an Enum with my EventTypes. It works quite nicely. Thanks for the tips. Douglas On Jun 19, 2012, at 7:15 PM, Douglas Ferguson wrote: > Yeah.. when I read Jeremy's reply it was the kind of thing I was looking

Re: Wicket Events

2012-06-19 Thread Douglas Ferguson
Yeah.. when I read Jeremy's reply it was the kind of thing I was looking for but my understanding was that Jeremy was suggesting it as a possible approach. Are you saying this will work out of the box? On Jun 19, 2012, at 3:40 PM, Martin Grigorov wrote: > As the tests shows this is pluggable

Re: Wicket Events

2012-06-19 Thread Martin Grigorov
As the tests shows this is pluggable in Wicket. There is a default impl that uses casting of the payload and there is a way to setup your own impl that does it your way. See Jeremy's message in this thread for a solution that works as Google's one. On Tue, Jun 19, 2012 at 11:36 PM, Douglas Ferguso

Re: Wicket Events

2012-06-19 Thread Douglas Ferguson
Yeah... i just don't like the idea of unpacking the payload and doing instanceOf, if/else do decide if I care about that message. The GoogleEvent buss approach seems better. I.E. Implement the specific methods for the specific event types. Douglas On Jun 19, 2012, at 3:20 PM, Martin Grigorov w

Re: Wicket Events

2012-06-19 Thread Martin Grigorov
Wicket always sends ComponentEvent. The dynamic part is the event's payload. The test shows how to receive the payload in a type-safe way. On Tue, Jun 19, 2012 at 11:16 PM, Douglas Ferguson wrote: > Ok.. So I took a look at it and it is ignoring the IEvent. > > I'm actually interested in how to c

Re: Wicket Events

2012-06-19 Thread Martin Grigorov
This is what the test shows partially. The test shows the usage of a custom annotation, but doesn't do the additional step of checking the argument type. At my job we use such implementation and it works for us. What you miss this way is the IEvent API - like stopping the event, for example. Addi

Re: Wicket Events

2012-06-19 Thread Douglas Ferguson
Ok.. So I took a look at it and it is ignoring the IEvent. I'm actually interested in how to cleanly handle multiple type of IEvents without having to do if/else or instanceOf. Was curious if anybody had a nice pattern to follow. @Override 115 public void onEvent(Component c

Re: Wicket Events

2012-06-19 Thread Douglas Ferguson
This seems similar to the google EventBus approach. On Jun 19, 2012, at 2:58 PM, Jeremy Thomerson wrote: > Have we talked about adding an IEventDispatcher that dispatches events by > their class type based on event method signature? > > Example: > > class MyComponent { > > @EventListener // or

Re: Wicket Events

2012-06-19 Thread Jeremy Thomerson
Have we talked about adding an IEventDispatcher that dispatches events by their class type based on event method signature? Example: class MyComponent { @EventListener // or some annotation public void onUserAddedEvent(UserAddedEvent event) { // do something here } } Then when someone calls

Re: Wicket Events

2012-06-19 Thread Igor Vaynberg
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket-core/6.0.0-beta1/org/apache/wicket/EventDispatcherTest.java#EventDispatcherTest -igor On Tue, Jun 19, 2012 at 12:31 PM, Douglas Ferguson wrote: > Where's the source repository located? > > > On Jun 19, 2012, at 2:20 PM, Mar

Re: Wicket Events

2012-06-19 Thread Douglas Ferguson
Where's the source repository located? On Jun 19, 2012, at 2:20 PM, Martin Grigorov wrote: > See org.apache.wicket.EventDispatcherTest in wicket-core's tests > > On Tue, Jun 19, 2012 at 9:58 PM, Douglas Ferguson wrote: >> Anybody have a good pattern for using Events without having lots of >>

Re: Wicket Events

2012-06-19 Thread Martin Grigorov
See org.apache.wicket.EventDispatcherTest in wicket-core's tests On Tue, Jun 19, 2012 at 9:58 PM, Douglas Ferguson wrote: > Anybody have a good pattern for using Events without having lots of > instanceOf, if/else, or switch statements? > -

Wicket Events

2012-06-19 Thread Douglas Ferguson
Anybody have a good pattern for using Events without having lots of instanceOf, if/else, or switch statements? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache