Re: [Wicket-user] MarkupWriter

2007-02-27 Thread Eelco Hillenius
> > Maybe this simple addition should also be backported to 1.3 Sounds good to me. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opin

Re: [Wicket-user] MarkupWriter

2007-02-27 Thread Johan Compagner
On 2/13/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: For some cases it is easier, more efficient or - as with behaviors - simply the only way to write markup 'around' (before and after) the actual tag that a component is coupled to. This is where response.write can be used. wrapping around

Re: [Wicket-user] MarkupWriter

2007-02-14 Thread Eelco Hillenius
On 2/14/07, Robert . <[EMAIL PROTECTED]> wrote: > > > On 2/13/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > For some cases it is easier, more efficient or - as with behaviors - > > simply the only way to write markup 'around' (before and after) the > > actual tag that a component is coupled to

Re: [Wicket-user] MarkupWriter

2007-02-14 Thread Robert .
On 2/13/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: For some cases it is easier, more efficient or - as with behaviors - simply the only way to write markup 'around' (before and after) the actual tag that a component is coupled to. This is where response.write can be used. Is this also the

Re: [Wicket-user] MarkupWriter

2007-02-13 Thread Eelco Hillenius
For some cases it is easier, more efficient or - as with behaviors - simply the only way to write markup 'around' (before and after) the actual tag that a component is coupled to. This is where response.write can be used. The interface to that could be made more to-the-purpose so that it you can h

Re: [Wicket-user] MarkupWriter

2007-02-13 Thread Robert .
Yes, that's the example I am talking about. BTW the overridden method's name is incorrect. It should be renderChoice instead of renderChoices. On 2/13/07, karthik Guru <[EMAIL PROTECTED]> wrote: this one? AbstractAutoCompleteRenderer implements IAutoCompleteRenderer{ @Override protected voi

Re: [Wicket-user] MarkupWriter

2007-02-13 Thread karthik Guru
this one? AbstractAutoCompleteRenderer implements IAutoCompleteRenderer{ @Override protected void renderChoices(Object object, Response r) { String val = ((Email) object).email; r.write(""); r.write(val); r.write(""); r.write("" + ((Email) object).getEmailInfo()); r.write(""); } } I'm not sure

Re: [Wicket-user] MarkupWriter

2007-02-13 Thread Robert .
Actually I encounter this raw HTML output in the Pro Wicket book on page 251. A custome AutoCompleteRenderer is used to render a choice protected void renderChoice(Object object, Response response) Could you give an example how to write custom HTML to the response in such a method, without having

Re: [Wicket-user] MarkupWriter

2007-02-12 Thread Jonathan Locke
yeah. pretty much never. in fact, i can't think of a single exceptional case where this was necessary outside of the wicket core. igor.vaynberg wrote: > > in wicket you very very very very rarely output markup from your code. why > do you need this? > > -igor > > > On 2/12/07, Robert . <

Re: [Wicket-user] MarkupWriter

2007-02-12 Thread Marc-Andre Houle
On 2/12/07, Marc-Andre Houle <[EMAIL PROTECTED]> wrote: I don't think there is something for that in wicket, but 1. You can use a Label and setEscapeMarkupId(false); Oops, setEscapeModelStrings 2. You can use simple Label and add a SimpleAttributeModifier. On 2/12/07, Robert . <[EMAIL

Re: [Wicket-user] MarkupWriter

2007-02-12 Thread Marc-Andre Houle
I don't think there is something for that in wicket, but 1. You can use a Label and setEscapeMarkupId(false); 2. You can use simple Label and add a SimpleAttributeModifier. On 2/12/07, Robert . <[EMAIL PROTECTED]> wrote: Hi, I have been using Tapestry before and kinda enjoyed using the IM

Re: [Wicket-user] MarkupWriter

2007-02-12 Thread Igor Vaynberg
in wicket you very very very very rarely output markup from your code. why do you need this? -igor On 2/12/07, Robert . <[EMAIL PROTECTED]> wrote: Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin("div"); writer.attribute("id",

[Wicket-user] MarkupWriter

2007-02-12 Thread Robert .
Hi, I have been using Tapestry before and kinda enjoyed using the IMarkupWriter by doing things like writer.begin("div"); writer.attribute("id", "abc"); writer.println("text"); writer.end(); Is there an equivalent way of doing this in Wicket? Robert -