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
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 case when implementing the IAutoCompleteRenderer interface?
Or is there a way to use the power of panels or fragments to render in
renderChoice?


I think it is too trivial to put this in Wicket core, but if we have a

decent implementation we could consider putting it in extensions.



If I will need this at some time I will make a good implementation and let
you know.

Robert


Eelco



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=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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. This is where
  response.write can be used.

 Is this also the case when implementing the IAutoCompleteRenderer interface?
 Or is there a way to use the power of panels or fragments to render in
 renderChoice?

That seems to be an individual choice by the developers of that
component. Probably because that has to work in Ajax requests where
the variation you'll send over is probably pretty limited.

Eelco

  I think it is too trivial to put this in Wicket core, but if we have a
  decent implementation we could consider putting it in extensions.

 If I will need this at some time I will make a good implementation and let
 you know.

 Robert

 
  Eelco
 
 
  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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

  
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
   
 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=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the 

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
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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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(div style='float:left; color:red; ');
r.write(val);
r.write(/divdiv 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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 void renderChoices(Object object, Response r) {
 String val = ((Email) object).email;
 r.write(div style='float:left; color:red; ');
 r.write(val);
 r.write(/divdiv 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=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 have writer.begin(div); etc. We've talked about that before, but
decided against it as we don't want to give the impression that
directly writing to the stream is the preferred way to build
components. Rather, we like people to use compound components with
markup files, like Panels, first and only when there is a very good
reason for it use the response directly.

That said, and interface like that could easily be built.

public class MarkupWriter {

  private final Reponse response;

  public MarkupWriter(Response response) {
this.response = response;
  }

  public void begin(String tag) {
response.write();
response.write(tag);
  }

  public void attribute(String attrib, String value) {
response.write(attrib);
response.write( = \);
response.write(value);
response.write(\);
  }
}

I think it is too trivial to put this in Wicket core, but if we have a
decent implementation we could consider putting it in extensions.

Eelco


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=lnkkid=120709bid=263057dat=121642
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
  
 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=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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
-
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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, 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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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 . [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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 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=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/MarkupWriter-tf3213426.html#a8930322
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user