It wouldn't be a good idea. It will open up scripting in the markup. We
try to stay clear from that. First there is conditional markup, then
there's repeating markup, then... you have JSP's.
If you need alternating markup, create a Panel component for your
specific case. It works very elegantly, is more O.O. (I hate that word,
like the concept though), and opens up a lot of possibilities for reuse.
Martijn
David Liebeherr wrote:
wouldn't it be a good idea to allow the designer to add components on
demand?
and the java code looks if there is the element and if not it does
nothing and if then it's proccessed...
Something like <span wicket:id="something" wicket:mode="demand"/>.
What do you think?
Cu,
Dave
Juergen Donnerstag wrote:
yo can't. If there is wicket:id there MUST be a component. What you
can do is using setVisible(true/false) to switch the visibility of a
component on or off. Visibility == gets rendered and written to the
output.
Juergen
On 8/4/05, David Liebeherr <[EMAIL PROTECTED]> wrote:
Hi!
I have a page that may contains a ...<span
wicket:id="somtimesThereSometimesNot"/>...
How can i search for that markup and onyl attach something (e.g.
Label) to it when it's there?
Thanx,
Dave
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user