Re: onMouseOver and onMouseClick in wicket

2014-07-29 Thread Martin Grigorov
Hi, You need to use the JavaScript mouseover's event to get the mouse's coordinates. In JavaScript this looks like: var myMouseOverHandler = function(event) { var x = event.clientX; var y = event.clientY; document.getElementById('subImage').src = getSubImage(x, y); }; In Wicket you can do:

Getting intermittent ListenerInvocationNotAllowedException with AjaxEventBehavior

2014-07-29 Thread Lorne Malvo
I'm getting an intermittent ListenerInvocationNotAllowedException when using an AjaxEventBehaviors. (stacktrace below) This is my code: WebMarkupContainer con = new WebMarkupContainer( container ) { @Override protected void onConfigure() {

Re: Getting intermittent ListenerInvocationNotAllowedException with AjaxEventBehavior

2014-07-29 Thread Sven Meier
Hi, the request comes in when the component is already/again invisible on the server. Try adding the behavior higher up in the component hierarchy with AjaxRequestAttributes#childSelector. Sven On 07/29/2014 04:12 PM, Lorne Malvo wrote: I'm getting an intermittent

Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
Hi everyone, I think there is some kind of bug in the handling of CompoundPropertyModel (or any IComponentInheritedModel). In Component exists a Flag FLAG_INHERITABLE_MODEL - which is set to true whenever a model is inherited from a parent, so that the model can be nulled onDetach. Thing is: The

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, the setModel(CompoundPropertyModel ...) actually KEEPS the FLAG_INHERITABLE_MODEL on true where is that? Sven On 07/29/2014 04:29 PM, Raoul Zander wrote: Hi everyone, I think there is some kind of bug in the handling of CompoundPropertyModel (or any IComponentInheritedModel). In

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
In Component.setModelImpl(IModel) - rza 2014-07-29 16:37 GMT+02:00 Sven Meier s...@meiers.net: Hi, the setModel(CompoundPropertyModel ...) actually KEEPS the FLAG_INHERITABLE_MODEL on true where is that? Sven On 07/29/2014 04:29 PM, Raoul Zander wrote: Hi everyone, I think

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, if I look for setFlag(FLAG_INHERITABLE_MODEL, true), it is called in initModel() only. Please paste the relevant code or even better create a quickstart. Regards Sven On 07/29/2014 04:59 PM, Raoul Zander wrote: In Component.setModelImpl(IModel) - rza 2014-07-29 16:37 GMT+02:00 Sven

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
Hi, the flag is not set to true - that's the problem :) See the method Component.setModelImpl(IModel) especially (Line 2981 in Wicket-Core 6.16.0): if (getFlag(FLAG_INHERITABLE_MODEL) !(model instanceof IComponentInheritedModel)) { setFlag(FLAG_INHERITABLE_MODEL, false); } Which should

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, I agree, that look bogus. WICKET-3413 tried to improve on a similar issue though: https://issues.apache.org/jira/browse/WICKET-3413 Wouldn't it be easier, just to always clear FLAG_INHERITABLE_MODEL in #setDefaultModel(), i.e. when a model is set explicitely? Please create a Jira

Mailbox component

2014-07-29 Thread Pierre Goupil
Good evening, Does anyone know about a mailbox component, please? I'm looking for something to allow my users send and browse private messages through my webapp. And I'd be surprised that there is no good open-source components to do that out there. Any suggestion? Thanks in advance, Pierre

Re: Mailbox component

2014-07-29 Thread Paul Bors
This is Wicket not GMail :) Perhaps you could write your own? Integrate something like this in your own page/panel (or ask Google for a better one): http://w3lessons.info/2013/05/13/gmail-style-message-inbox-design-with-jquery-css/ Then you can use templates to send those e-mails:

Foundation integrated in wicket

2014-07-29 Thread Paul Bors
Has anyone integrated Foundation from http://foundation.zurb.com/ in Wicket? Each time I search for it the search engine comes back to Apache's Wicket Foundation :)

Re: Mailbox component

2014-07-29 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Jul 30, 2014 at 7:18 AM, Paul Bors p...@bors.ws wrote: This is Wicket not GMail :) Perhaps you could write your own? Integrate something like this in your own page/panel (or ask Google for a better one):

Re: Mailbox component

2014-07-29 Thread Ernesto Reinaldo Barreiro
Pierre, Hi, I have rolled out something like that for a private application. I'm not sure how configurable/complete it is at the moment. I would not be against open sourcing it. On Wed, Jul 30, 2014 at 3:43 AM, Pierre Goupil goupilpie...@gmail.com wrote: Good evening, Does anyone know