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 void renderChoices(Object object, Response r) {
 String val = ((Email) object).email;
 r.write("<div style='float:left; color:red; '>");
 r.write(val);
 r.write("</div><div style='text-align:right; width:100%;'>");
 r.write("" + ((Email) object).getEmailInfo());
 r.write("</div>");
}

}

I'm not sure how to move the HTML div to a panel/fragment for example ,
pass the EmailInfo text to the fragment/panel and then add it to the
Response.

thanks,
Karthik



On 2/13/07, Robert . <[EMAIL PROTECTED]> wrote:
>
> 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
> to do something like response.write("<div>");
>
> Robert
>
>
> On 2/12/07, Igor Vaynberg < [EMAIL PROTECTED]> 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 . < [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", "abc");
> > > writer.println("text");
> > > writer.end();
> > >
> > > Is there an equivalent way of doing this in Wicket?
> > >
> > > Robert
> > >
> > >
> > > -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> > > security?
> > > Get stuff done quickly with pre-integrated technology to make your
> > > job easier.
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > > Geronimo
> > >
> > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


--
-- karthik --
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to