Re: Another question for best practices

2009-02-06 Thread Thomas Mäder
No, what I meant was a single tag link and a list view: link wicket:id=cssList/link and in code: List cssFiles= Array.asList(new String[] { base.css, special.css }); add(new ListView(cssList, cssFiles) { public void populateItem(ListItem item) { String cssFile=

Re: Another question for best practices

2009-02-06 Thread uwe janner
ok, i got it :-) the downside is, that then you have the names of the css in the java class; as this is more the duty of the html designer, i looked for a way to let the html designer say which css to take (and pull it from a static source) and a mechanism that converts this to the real url by

Another question for best practices

2009-02-05 Thread janneru
dear community, still working on a reimplementation of a former jsf gui i have some more questions about how to implement it correctly in wicket; * simple components: in my html i have many lines where i need just little modifications of the html: e.g. in jsf i had 10 lines like: link

Re: Another question for best practices

2009-02-05 Thread Martin Makundi
in wicket i tried: style a{color: span wicket:id=linkColor/; }/style Have you tried wicket:container wicket:id=linkColor/ ? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Another question for best practices

2009-02-05 Thread uwe janner
i just tried it, the parser seems to ignore it, i find the wicket:container wicket:id=linkColor/ unchanged in the html if i dont add a omponent to the page, and if i add the component wicket complains that he cannot find the associated component in the html (just as before) On Thu, Feb 5,

Re: Another question for best practices

2009-02-05 Thread Igor Vaynberg
On Thu, Feb 5, 2009 at 4:43 AM, janneru jan.ne...@googlemail.com wrote: * simple components: in my html i have many lines where i need just little modifications of the html: e.g. in jsf i had 10 lines like: link rel=stylesheet type=text/css href=#{mediaPath.cssFolder}/header.css /

Re: Another question for best practices

2009-02-05 Thread uwe janner
thanks igor, it's always so refreshing how easy things can be done in wicket with the right hint perhaps this is usefull for somebody, so i post the code here (as i work with seam i use org.jboss.el.lang.ExpressionBuilder.Expressions): public class ReplaceElContainer extends WebComponent{

Re: Another question for best practices

2009-02-05 Thread Igor Vaynberg
wicket also has a MapVariableInterpolator that can take care of ${var} substitutions -igor On Thu, Feb 5, 2009 at 9:18 AM, uwe janner ujan...@googlemail.com wrote: thanks igor, it's always so refreshing how easy things can be done in wicket with the right hint perhaps this is usefull

Re: Another question for best practices

2009-02-05 Thread Thomas Mäder
What I would have tried is this: have a list view of web markup containers. As a list item, create a WebMarkupContainer (mapped to the link tag). Add an attribute modifier that fixes up the href attribute of the link tag. You get the filename (header.css) from the ListView's model. Or am I