myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Qian" <markq...@hotmail.com>
Subject Write plain html when encoding in JSF
Date Sun, 12 Feb 2006 05:44:28 GMT
I tried to create a JSF tag component containing two or more HTML
tables but by default
writer.endElement and writer.startElement seems to deal with a single
HTML
component only.

How do people output their HTML in case that they want to write
something like


<table>...</table>
<table>...</table>


in a encodeBegin or encodeEnd?


Will following way


public void encodeBegin(FacesContext context) throws IOException
  {
   ResponseWriter writer = context.getResponseWriter();


      writer.writeText("<table>...</table>
<table>...</table>", null);


  }


work?


thanks



Mime
View raw message