Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Write plain html when encoding in JSF

Reply
Thread Tools

Write plain html when encoding in JSF

 
 
cool2005
Guest
Posts: n/a
 
      02-06-2006
I tried to create a JFS 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 it following way

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

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

}

work?

thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Include JSF page within another JSF page BlackIce Java 1 07-05-2006 11:24 PM
JSF debugging / JSF newsgroup Sebastian Fey Java 1 04-07-2006 08:52 PM
[JSF]Need to deploy a jsf application on SunApplicationServer. dudu Java 0 03-03-2006 12:09 PM
when I add HTML to innerHTML, FireFox renders it as HTML, but IE shows it as plain text Jake Barnes Javascript 9 02-21-2006 10:37 AM
getting around html encoding in outputText tag (JSF) nadlox@gmail.com Java 2 11-29-2005 12:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57