you can cause it to not escape markup with setShouldEscapeModelStrings(false)...
Gili wrote:
I tried using class Label to construct the CSS statement dynamically, but Label escapes HTML reserved characters so that method does not work...
Eelco, how are you handling this problem...?
Gili
Gili wrote:
I guess this is really a CSS-specific problem. If you read the last email I sent out, part of the problem is that CSS uses different syntax than HTML markup so it is impossible as far as I can tell to generate CSS statements using Wicket.
All I really want is to point the HTML page to an external CSS file. This is very basic stuff and I would gladly settle for a workaround. Do you have any ideas on how to do this?
Thanks, Gili
Jonathan Locke wrote:
you would currently need to create a new kind of resource for something like a PDF file. but then, this isn't a huge problem in the first place for 99% of users because you can just create an ordinary hyperlink to the resource in your markup and if you wanted to make a real resource class for PDF files or something you could do it using the core as it is right now.
we will very likely introduce a StylesheetResource in 1.1 to deal with css stuff and/or a JavaScriptResource to deal with JS stuff (but these probably won't be static resources since they are likely to be modified programmatically). and, as you point out, these would both be things that could be shared via SharedResource for efficiency.
i think the idea of introducing a generic abstraction like StaticResource is a little outside the scope of 1.0, but we might easily add something like this later. the main benefit right now looks like something pretty obscure, like enabling someone to link to PDF files in a locale-sensitive way... i just don't see it for 1.0. maybe if you can describe a real use case and benefit in an RFE we could consider something for 1.1.
Gili wrote:
Hi,
How do I get static non-image resources mapped using SharedResource? Am I supposed to simply subclass WebResource.getResourceStream()? Maybe it makes sense to refactor StaticImageResource into StaticResource, as a subclass of WebResource? I mean, right now it doesn't seem to care whether it's grabbing images so functionality-wise it should be identical for CSS, PDF files... This could be a catch-all for any static resource.
What do you think?
Gili
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
