NestedMarkupWriterImpl doesn't close the current open tag when getBuffer() is 
called
------------------------------------------------------------------------------------

         Key: TAPESTRY-519
         URL: http://issues.apache.org/jira/browse/TAPESTRY-519
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Versions: 4.0    
    Reporter: Raphael Jean


NestedMarkupWriterImpl doesn't close the currently open tag when getBuffer() is 
called. This causes invalid HTML to be produced in FormSupport.preRenderField().
For example, an Upload component will be rendered as <input type="file" 
name="upload" id="upload"

This could be fixed by moving part of the close() method into getBuffer():

    public String getBuffer()
    {
        if (_closed)
            throw new IllegalStateException(MarkupMessages.closeOnce());

        _closed = true;

        super.close();

        return _charArrayWriter.toString();
    }

    public void close()
    {
        String content = getBuffer();

        _parent.printRaw(content);
    }


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to