I don't think that it has to be that difficult. You do not need X
panels, just WebMarkupContainers attached to each <link wicket:id ..>
or whatever you want to enable/disable and by means of setVisible()
they get disabled/enabled. No panels, no extra files.

Juergen

On 8/8/05, SourceForge.net <[EMAIL PROTECTED]> wrote:
> Feature Requests item #1254154, was opened at 2005-08-08 12:50
> Message generated for change (Tracker Item Submitted) made by Item Submitter
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1254154&group_id=119783
> 
> Please note that this message will contain a full copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: None
> Group: None
> Status: Open
> Priority: 5
> Submitted By: Gili Tzabari (cowwoc)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Page.addToHeader()
> 
> Initial Comment:
> WicketMarkupComponent defines addToHeader() to
> contribute CSS/JS to pages it is added to. The problem
> is that Pages need CSS/JS to render html tags that lie
> outside to scope of any Wicket component.
> 
> We should add Page.addToHeader() so we can
> conditionally add different header contributions at
> runtime. For example, depending on the user's browser,
> different CSS/JS files will be included for IE or
> FireFox or even different CSS will be included
> depending upon the time of day.
> 
> Workarounds exist (such as injecting Panels) but these
> are not intuitive and harder to maintain. Right now I
> have to create two panels, each with their own markup
> files, depending upon whether IE or FireFox is detected
> at runtime. I'd like to replace these with two lines of
> code instead of the pages worth of code I require right
> now.
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1254154&group_id=119783
> 
> 
> -------------------------------------------------------
> 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-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


-------------------------------------------------------
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-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to