would you please open a bug for it. Thanks

Juergen

On 9/13/05, Todor Todorov <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> I'm having hard time with borders and CSS today.
> 
> I have a border component which contributes a CSS link in the header section
> of a page. 
> 
>     <wicket:head>
>         <wicket:link autolink="true">
>                 <link rel="StyleSheet" type="text/css" href="cborder.css"/>
>         </wicket:link>
>       </wicket:head>
>       ....
> 
> At runtime, this generates  
> <link href="/test/resources/wicket.Application/cborder.css"
> 
type="text/css" rel="StyleSheet"/>
> and when wicket tries to load the "cborder.css"  it throws 
> 
> wicket.RequestCycle - Unexpected runtime exception [page = null]
> wicket.WicketRuntimeException: Unable to find package resource [path =
> test/web/cborder.css, style = null, locale = null]
>     at
> wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:198)
>     at wicket.Resource.init(Resource.java:229)
>     at
> wicket.Resource.onResourceRequested(Resource.java:140)
>    ....
> 
> To clarify, my border is in package test.web.control and the page is in
> test.web ,  I think there is something wrong with resolving the owner of the
> header... 
> 
> I use the same approach in panels and it works fine. Unless, of course , I'm
> not suppose to have CSS in borders.
> 
> ----------------
> 
> Alternatively I tried to use StyleSheetReference and manually linked css. 
> With this approach I ran into another problem - "Failed to render component"
> Exception for that CSS.
> I have to mention here that I have two instances of the same border on one
> page.
> I did some debugging and I think the exception is thrown when the second CSS
> (from second border) is being marked as not rendered since the first one is
> already in the set of rendered components.
> After removing the second border, the page works just fine !
> 
> Any idea what's wrong with my borders?
> Thanks in advance!
> 
> Todor
> 
> 
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to