You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "robert.mcguinness" <ro...@gmail.com> on 2012/01/08 02:31:49 UTC

Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

in my BasePage.html, i have a meta tag in the header:

  /<meta wicket:id="metaAuthor" content="Rob McGuinness" name="author">/

which is created by something like:

  /WebComponent metaKeywords = new WebComponent(id); 
  metaKeywords.add(new AttributeModifier("content", new
ResourceModel(key)));/

after applying /JavaScriptFilteredIntoFooterHeaderResponse/, the meta tag(s)
get filtered to bottom of the page because it is not of type CssHeaderItem.

looks like i can override/create my own filter to footer, but i didn't see
that behavior in 1.5 so I just wanted to point it out. 

rob








--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4274687.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

Posted by "robert.mcguinness" <ro...@gmail.com>.
done.  thank martin.

https://issues.apache.org/jira/browse/WICKET-4328

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4276477.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

Posted by Martin Grigorov <mg...@apache.org>.
Hi Rob,

On Sun, Jan 8, 2012 at 8:12 AM, robert.mcguinness
<ro...@gmail.com> wrote:
> kk, got it working again by overriding
> /CssAcceptingHeaderResponseFilter#accepts/
>
>  /item instanceof CssHeaderItem || item instanceof PageHeaderItem/
>
> also, for some js frameworks like *modernizr.js* and *respond.js*, they
> require these libs to live in the in the <head> tag.   to target the head
> bucket for for these js libs, i created a new
> JavaScriptReference*In*HeaderItem that is used to accept these type of libs
> in the <head>.

This sounds like a good addition to the default HeaderItems.
Please create a ticket with your class(es) attached.
Thanks!

>
> if i'm wrong about my assumptions let me know.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4275033.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

Posted by "robert.mcguinness" <ro...@gmail.com>.
kk, got it working again by overriding
/CssAcceptingHeaderResponseFilter#accepts/

  /item instanceof CssHeaderItem || item instanceof PageHeaderItem/

also, for some js frameworks like *modernizr.js* and *respond.js*, they
require these libs to live in the in the <head> tag.   to target the head
bucket for for these js libs, i created a new
JavaScriptReference*In*HeaderItem that is used to accept these type of libs
in the <head>.  

if i'm wrong about my assumptions let me know.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4275033.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org