Re: How to set cache scope for mapped resources

2014-12-12 Thread Martin Grigorov
On Fri, Dec 12, 2014 at 6:49 PM, Boris Goldowsky wrote: > > > On 12/12/14, 11:22 AM, "Martin Grigorov" wrote: > > >On Fri, Dec 12, 2014 at 2:52 AM, Boris Goldowsky > >wrote: > > > >> Ah, yes that works. I can now reference my resources too. > >> > >> Now, sorry to be a pain about this, but I w

Re: How to set cache scope for mapped resources

2014-12-12 Thread Boris Goldowsky
On 12/12/14, 11:22 AM, "Martin Grigorov" wrote: >On Fri, Dec 12, 2014 at 2:52 AM, Boris Goldowsky >wrote: > >> Ah, yes that works. I can now reference my resources too. >> >> Now, sorry to be a pain about this, but I would like to get it hooked >>up to >> something like the FilenameWithVersio

Re: mod_pagespeed with wicket?

2014-12-12 Thread Martin Grigorov
Hi, Thanks for investigating this ! See inline. On Thu, Dec 11, 2014 at 6:03 PM, Boris Goldowsky wrote: > The issue seems to be that, if the mod_pagespeed Javascript rewriting > rules are enabled, then the Wicket ajax code tries to re-load JS libraries > like jQuery. This is not only unnecess

Re: How to set cache scope for mapped resources

2014-12-12 Thread Martin Grigorov
On Fri, Dec 12, 2014 at 2:52 AM, Boris Goldowsky wrote: > Ah, yes that works. I can now reference my resources too. > > Now, sorry to be a pain about this, but I would like to get it hooked up to > something like the FilenameWithVersionResourceCachingStrategy . I am not > seeing how to do this.

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Martin Grigorov
On Fri, Dec 12, 2014 at 4:32 PM, Daniel Stoch wrote: > On Fri, Dec 12, 2014 at 11:38 AM, Martin Grigorov > wrote: > > I see it is a bit ugly, but oh well... this is how it works now. > > > > in YourComponent#renderHead(): > > > > AtmosphereBehavior atmo = > > getPage().getBehaviors(AtmosphereBeh

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Daniel Stoch
On Fri, Dec 12, 2014 at 11:38 AM, Martin Grigorov wrote: > I see it is a bit ugly, but oh well... this is how it works now. > > in YourComponent#renderHead(): > > AtmosphereBehavior atmo = > getPage().getBehaviors(AtmosphereBehavior.class).get(0); > CharSequence callbackUrl = atmo.getCallbackUrl()

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Martin Grigorov
I see it is a bit ugly, but oh well... this is how it works now. in YourComponent#renderHead(): AtmosphereBehavior atmo = getPage().getBehaviors(AtmosphereBehavior.class).get(0); CharSequence callbackUrl = atmo.getCallbackUrl(); headerResponse.render(OnDomReadyHeaderItem.forScript("Wicket.Ajax.ge

Re: How to call onResourceRequested for page behavior in ajax update (Atmosphere related)

2014-12-12 Thread Daniel Stoch
Hi, Ok, I think I didn't described a problem well. When you add a component which subscribes some events, then AtmosphereBehavior is added to page. But the wicketAtmosphere JS callback is registered inside AtmosphereBehavior.renderHead() method, so only (I think) when the whole page is rendered.

Re: Special behavior on setEnabled

2014-12-12 Thread Martin Grigorov
Yes. Everytime WMC is rendered its #onComponentTag() will called Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Dec 12, 2014 at 11:15 AM, Maxim Solodovnik wrote: > Thanks a lot! > > Would it work with AJAX updates as well? > > On Fri, Dec 12, 2014 at 3:09

Re: Special behavior on setEnabled

2014-12-12 Thread Maxim Solodovnik
Thanks a lot! Would it work with AJAX updates as well? On Fri, Dec 12, 2014 at 3:09 PM, Sebastien wrote: > > Hi Maxim, > > Something like this? > > this.container = new WebMarkupContainer("container") { > @Override > protected void onComponentTag(ComponentTag tag)

Re: Special behavior on setEnabled

2014-12-12 Thread Sebastien
Hi Maxim, Something like this? this.container = new WebMarkupContainer("container") { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if (!WysiwygEditor.this.getForm().isEnabled())

Re: Special behavior on setEnabled

2014-12-12 Thread Martin Grigorov
Hi Maxim, special = new WebMarkupContainer("someId") { @Override public void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); Form form = Form.findParent(Form.class); if (form != null && form.isEnabled() == false) { tag.put("specialAttrName", "specialAttrValue");

Special behavior on setEnabled

2014-12-12 Thread Maxim Solodovnik
Hello All, I would like special attribute be added to WebMarkupContainer which is part of FormComponentPanel [1] in case Form was disabled Is it possible? Thanks in advance for your help! [1] https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui-plugins/src/main/java/com/googl