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
>
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
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
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
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
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 :
>
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
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
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
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.
ComponentEventVisitor.component(ComponentEventSender.java:329)
>> >>>>>>>>>>>>> at
>> >>>>>>>>>>>
>> >>>>>>>>
>> >>>>>>
>> >>>>
>> >>
>&g
ts.java:162)
> >>>>>>>>>>>>> at
> >>>>>>>>>>>
> >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
> >>>>>>>>>>>>> at
> >>>>>>&g
>>>
>>>>>>>>
>>>>>>
>>>>
>> org.apache.wicket.ComponentEventSender.breadth(ComponentEventSender.java:160)
>>>>>>>>>>>>> at
>>>>>>>>>>>
>>>>
ctableBehavior.onAjax(SelectableBehavior.java:122)
> >>>>>>>>>>> at
> >>>>>>>>>
> >>>>>>
> >>>>
> >>
> com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior.respond(JQueryAjaxBehavior.java:171)
&
>>>>>>
>>>>
>> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>>>>>>>>>>> at
>>>>>>>>>
>>>>>>
>>>>
>> org.apache.w
t; org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
>>>>>>>>> at
>>>>>>>
>>>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>>>>&
at
> >>>>>>>
> >>>>
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
> >>>>>>>>> at
> >>>>>>>
> >>>>
> >>
> or
;>>>>> at
>>>>>>>
>>>>
>> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
>>>>>>>>> at
>>>>>>>
>>>>
&g
; >>>>>
> >>
> 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
;>>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>>>>>>at
>>>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.jav
ContextValve.__invoke(StandardContextValve.java:106)
> >>>>> at
> >>>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
> >>>>> at
> >>>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authent
ErrorReportValve.java:79)
>>>>> at
>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>>>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>>>>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>>
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?
> -
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
48 matches
Mail list logo