Write plain html when encoding in JSF

Discussion in 'Java' started by cool2005, Feb 6, 2006.

  1. cool2005

    cool2005 Guest

    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
     
    cool2005, Feb 6, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MarkMurphy

    response.write and plain/text

    MarkMurphy, Aug 4, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    14,646
    Steven Cheng[MSFT]
    Aug 5, 2004
  2. =?ISO-8859-1?Q?B=FClent_=D6ktem?=

    encoding: write html file in java with ploish characters

    =?ISO-8859-1?Q?B=FClent_=D6ktem?=, Oct 28, 2003, in forum: Java
    Replies:
    1
    Views:
    6,467
    John C. Bollinger
    Oct 28, 2003
  3. Replies:
    2
    Views:
    9,681
  4. dudu
    Replies:
    0
    Views:
    595
  5. Sebastian Fey

    JSF debugging / JSF newsgroup

    Sebastian Fey, Apr 7, 2006, in forum: Java
    Replies:
    1
    Views:
    7,986
    Danno
    Apr 7, 2006
  6. BlackIce
    Replies:
    1
    Views:
    17,447
  7. Jesse Crockett
    Replies:
    2
    Views:
    169
    Jesse Crockett
    Jul 11, 2008
  8. Jake Barnes
    Replies:
    9
    Views:
    1,066
    dave cutts
    Feb 21, 2006
Loading...