You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nino martinez wael <ni...@gmail.com> on 2016/06/15 10:11:07 UTC

stop wicket from rewriting references in my css file

Hi

I currently have an issue where I add a shared css resource, but
wicket rewrites all references in the resource. I can't seem to find
the setting to turn of that part of wickets processing?

-- 
Best regards / Med venlig hilsen
Nino Martinez

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


Re: stop wicket from rewriting references in my css file

Posted by Bas Gooren <ba...@iswd.nl>.
Can you show us how the references are being rewritten? Maybe the format is
an indication of where it is being rewritten…

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 23 juni 2016 bij 08:18:34, nino martinez wael (
nino.martinez.wael@gmail.com) schreef:

I've looked everywhere and cant find references to CssUrlReplacer.. I
will look into it later.. Thanks for the hints...


-Nino

On Thu, Jun 16, 2016 at 2:16 PM, Tobias Soloschenko
<to...@googlemail.com> wrote:
> Hi,
>
> If you don't add the CssUrlReplacer manually it is not active by default.
If URLs are replaced into Reference URLs it might be a manually added
CssUrlReplacer.
>
> If you don't want that some of the URLs are replaced you can consider to
add them into a different CSS file and add the name of the file to the
excludes of the CssUrlReplacer.
>
> kind regards
>
> Tobias
>
>> Am 16.06.2016 um 08:12 schrieb nino martinez wael <
nino.martinez.wael@gmail.com>:
>>
>> Ok it looks like it could be something like that. BUT,i've changed
>> nothing from stock options. Could that be enabled by default in 6.22 .
>> Other option of course are that it is because of something in pax
>> wicket.. I'll go check.
>>
>>> On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <ba...@iswd.nl> wrote:
>>> Sounds like you have enabled the css compressor / rewriter. By default
it is
>>> off.
>>>
>>> This assumes that you are letting wicket handle the css (which you do,
as
>>> you mention it is a shared resource).
>>>
>>> You are looking for Application#getResourceSettings() and
>>> (I)ResourceSettings#(get|set)CssCompressor().
>>> It sounds like it is currently set to an instance of CssUrlReplacer in
your
>>> app, as that rewrites all references in CSS.
>>>
>>> Met vriendelijke groet,
>>> Kind regards,
>>>
>>> Bas Gooren
>>>
>>> Op 15 juni 2016 bij 12:11:12, nino martinez wael
>>> (nino.martinez.wael@gmail.com) schreef:
>>>
>>> Hi
>>>
>>> I currently have an issue where I add a shared css resource, but
>>> wicket rewrites all references in the resource. I can't seem to find
>>> the setting to turn of that part of wickets processing?
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- br/>Best regards / Med venlig hilsen <
Nino Martinez

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

Re: stop wicket from rewriting references in my css file

Posted by nino martinez wael <ni...@gmail.com>.
I've looked everywhere and cant find references to CssUrlReplacer.. I
will look into it later.. Thanks for the hints...


-Nino

On Thu, Jun 16, 2016 at 2:16 PM, Tobias Soloschenko
<to...@googlemail.com> wrote:
> Hi,
>
> If you don't add the CssUrlReplacer manually it is not active by default. If URLs are replaced into Reference URLs it might be a manually added CssUrlReplacer.
>
> If you don't want that some of the URLs are replaced you can consider to add them into a different CSS file and add the name of the file to the excludes of the CssUrlReplacer.
>
> kind regards
>
> Tobias
>
>> Am 16.06.2016 um 08:12 schrieb nino martinez wael <ni...@gmail.com>:
>>
>> Ok it looks like it could be something like that. BUT,i've changed
>> nothing from stock options. Could that be enabled by default in 6.22 .
>> Other option of course are that it is because of something in pax
>> wicket.. I'll go check.
>>
>>> On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <ba...@iswd.nl> wrote:
>>> Sounds like you have enabled the css compressor / rewriter. By default it is
>>> off.
>>>
>>> This assumes that you are letting wicket handle the css (which you do, as
>>> you mention it is a shared resource).
>>>
>>> You are looking for Application#getResourceSettings() and
>>> (I)ResourceSettings#(get|set)CssCompressor().
>>> It sounds like it is currently set to an instance of CssUrlReplacer in your
>>> app, as that rewrites all references in CSS.
>>>
>>> Met vriendelijke groet,
>>> Kind regards,
>>>
>>> Bas Gooren
>>>
>>> Op 15 juni 2016 bij 12:11:12, nino martinez wael
>>> (nino.martinez.wael@gmail.com) schreef:
>>>
>>> Hi
>>>
>>> I currently have an issue where I add a shared css resource, but
>>> wicket rewrites all references in the resource. I can't seem to find
>>> the setting to turn of that part of wickets processing?
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

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


Re: stop wicket from rewriting references in my css file

Posted by Tobias Soloschenko <to...@googlemail.com>.
Hi,

If you don't add the CssUrlReplacer manually it is not active by default. If URLs are replaced into Reference URLs it might be a manually added CssUrlReplacer.

If you don't want that some of the URLs are replaced you can consider to add them into a different CSS file and add the name of the file to the excludes of the CssUrlReplacer.

kind regards

Tobias

> Am 16.06.2016 um 08:12 schrieb nino martinez wael <ni...@gmail.com>:
> 
> Ok it looks like it could be something like that. BUT,i've changed
> nothing from stock options. Could that be enabled by default in 6.22 .
> Other option of course are that it is because of something in pax
> wicket.. I'll go check.
> 
>> On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <ba...@iswd.nl> wrote:
>> Sounds like you have enabled the css compressor / rewriter. By default it is
>> off.
>> 
>> This assumes that you are letting wicket handle the css (which you do, as
>> you mention it is a shared resource).
>> 
>> You are looking for Application#getResourceSettings() and
>> (I)ResourceSettings#(get|set)CssCompressor().
>> It sounds like it is currently set to an instance of CssUrlReplacer in your
>> app, as that rewrites all references in CSS.
>> 
>> Met vriendelijke groet,
>> Kind regards,
>> 
>> Bas Gooren
>> 
>> Op 15 juni 2016 bij 12:11:12, nino martinez wael
>> (nino.martinez.wael@gmail.com) schreef:
>> 
>> Hi
>> 
>> I currently have an issue where I add a shared css resource, but
>> wicket rewrites all references in the resource. I can't seem to find
>> the setting to turn of that part of wickets processing?
>> 
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 
> -- 
> Best regards / Med venlig hilsen
> Nino Martinez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 

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


Re: stop wicket from rewriting references in my css file

Posted by nino martinez wael <ni...@gmail.com>.
Ok it looks like it could be something like that. BUT,i've changed
nothing from stock options. Could that be enabled by default in 6.22 .
Other option of course are that it is because of something in pax
wicket.. I'll go check.

On Wed, Jun 15, 2016 at 1:15 PM, Bas Gooren <ba...@iswd.nl> wrote:
> Sounds like you have enabled the css compressor / rewriter. By default it is
> off.
>
> This assumes that you are letting wicket handle the css (which you do, as
> you mention it is a shared resource).
>
> You are looking for Application#getResourceSettings() and
> (I)ResourceSettings#(get|set)CssCompressor().
> It sounds like it is currently set to an instance of CssUrlReplacer in your
> app, as that rewrites all references in CSS.
>
> Met vriendelijke groet,
> Kind regards,
>
> Bas Gooren
>
> Op 15 juni 2016 bij 12:11:12, nino martinez wael
> (nino.martinez.wael@gmail.com) schreef:
>
> Hi
>
> I currently have an issue where I add a shared css resource, but
> wicket rewrites all references in the resource. I can't seem to find
> the setting to turn of that part of wickets processing?
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

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


Re: stop wicket from rewriting references in my css file

Posted by Bas Gooren <ba...@iswd.nl>.
Sounds like you have enabled the css compressor / rewriter. By default it is off.

This assumes that you are letting wicket handle the css (which you do, as you mention it is a shared resource).

You are looking for Application#getResourceSettings() and (I)ResourceSettings#(get|set)CssCompressor().
It sounds like it is currently set to an instance of CssUrlReplacer in your app, as that rewrites all references in CSS.

Met vriendelijke groet,
Kind regards,

Bas Gooren

Op 15 juni 2016 bij 12:11:12, nino martinez wael (nino.martinez.wael@gmail.com) schreef:

Hi 

I currently have an issue where I add a shared css resource, but 
wicket rewrites all references in the resource. I can't seem to find 
the setting to turn of that part of wickets processing? 

-- 
Best regards / Med venlig hilsen 
Nino Martinez 

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


Re: stop wicket from rewriting references in my css file

Posted by Martin Grigorov <mg...@apache.org>.
I think you forgot to "mention" the problem itself.
It is not clear at all what you are talking about.
Some examples would be very helpful!


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jun 15, 2016 at 12:18 PM, nino martinez wael <
nino.martinez.wael@gmail.com> wrote:

> I forgot to mention that it's wicket 6.22
>
> On Wed, Jun 15, 2016 at 12:11 PM, nino martinez wael
> <ni...@gmail.com> wrote:
> > Hi
> >
> > I currently have an issue where I add a shared css resource, but
> > wicket rewrites all references in the resource. I can't seem to find
> > the setting to turn of that part of wickets processing?
> >
> > --
> > Best regards / Med venlig hilsen
> > Nino Martinez
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: stop wicket from rewriting references in my css file

Posted by nino martinez wael <ni...@gmail.com>.
I forgot to mention that it's wicket 6.22

On Wed, Jun 15, 2016 at 12:11 PM, nino martinez wael
<ni...@gmail.com> wrote:
> Hi
>
> I currently have an issue where I add a shared css resource, but
> wicket rewrites all references in the resource. I can't seem to find
> the setting to turn of that part of wickets processing?
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez



-- 
Best regards / Med venlig hilsen
Nino Martinez

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