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. Advertising

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. Replies:
    2
    Views:
    9,441
  2. dudu
    Replies:
    0
    Views:
    390
  3. Sebastian Fey

    JSF debugging / JSF newsgroup

    Sebastian Fey, Apr 7, 2006, in forum: Java
    Replies:
    1
    Views:
    7,651
    Danno
    Apr 7, 2006
  4. BlackIce
    Replies:
    1
    Views:
    17,198
  5. Jake Barnes
    Replies:
    9
    Views:
    821
    dave cutts
    Feb 21, 2006
Loading...

Share This Page