You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kurtis Williams (JIRA)" <ta...@jakarta.apache.org> on 2005/01/06 00:16:13 UTC

[jira] Created: (TAPESTRY-245) Using "Any" component in XML generation should render an empty tag if there is no body

Using "Any" component in XML generation should render an empty tag if there is no body
--------------------------------------------------------------------------------------

         Key: TAPESTRY-245
         URL: http://issues.apache.org/jira/browse/TAPESTRY-245
     Project: Tapestry
        Type: Bug
    Versions: 3.0.1    
 Environment: JDK 1.5 Tomcat
    Reporter: Kurtis Williams


For certain types of XML generation (VoiceXML, for example) it is illegal to have a opening and closing tag for certain tag sets.  When using the "Any" component to generate an XML tag that has no body, it generates a closing tag when what it should render is an empty tag.

For example, if in VXML you have:
<var jwcid="@Any" name="myVar" expr="someVal"/>

The Any component generates:
<var name="myVar" expr="someVal"></var>

Which is ignored by most VoiceXML 2.0 compliant browsers.  If the tag detected that there were no body present and did a writer.beginEmpty(), all would be well!

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-245) Using "Any" component in XML generation should render an empty tag if there is no body

Posted by "Vjeran Marcinko (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-245?page=comments#action_64467 ]
     
Vjeran Marcinko commented on TAPESTRY-245:
------------------------------------------

How did you generate XML? Have you used HTMLWriter and used it to create some base XML page like:

public class XmlPage extends AbstractPage {
    public IMarkupWriter getResponseWriter(OutputStream out) {
        return new HTMLWriter("text/xml", out);
    }
}
or did you developer your own IMarkupWriter implementation for plain XML (XMLWriter) ?

I can see that HTMLWriter has possibility to set content type, but I would like also to know is it sufficient for XML rendering, or is it needed some new XMLWriter for proper work?

Whatever, I think that Tapestry should include some "base XML page" (with according XMLWriter) since it doesn't look like big addition, and lot of coworkers gave me scowl when I told them that Tapestry is mainly for HTML.

-Vjeran


> Using "Any" component in XML generation should render an empty tag if there is no body
> --------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-245
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-245
>      Project: Tapestry
>         Type: Bug
>     Versions: 3.0.1
>  Environment: JDK 1.5 Tomcat
>     Reporter: Kurtis Williams

>
> For certain types of XML generation (VoiceXML, for example) it is illegal to have a opening and closing tag for certain tag sets.  When using the "Any" component to generate an XML tag that has no body, it generates a closing tag when what it should render is an empty tag.
> For example, if in VXML you have:
> <var jwcid="@Any" name="myVar" expr="someVal"/>
> The Any component generates:
> <var name="myVar" expr="someVal"></var>
> Which is ignored by most VoiceXML 2.0 compliant browsers.  If the tag detected that there were no body present and did a writer.beginEmpty(), all would be well!

-- 
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Resolved: (TAPESTRY-245) Using "Any" component in XML generation should render an empty tag if there is no body

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-245?page=all ]

Jesse Kuhnert resolved TAPESTRY-245.
------------------------------------

    Fix Version/s: 4.1.1
       Resolution: Fixed

> Using "Any" component in XML generation should render an empty tag if there is no body
> --------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-245
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-245
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 3.0.1
>         Environment: JDK 1.5 Tomcat
>            Reporter: Kurtis Williams
>             Fix For: 4.1.1
>
>
> For certain types of XML generation (VoiceXML, for example) it is illegal to have a opening and closing tag for certain tag sets.  When using the "Any" component to generate an XML tag that has no body, it generates a closing tag when what it should render is an empty tag.
> For example, if in VXML you have:
> <var jwcid="@Any" name="myVar" expr="someVal"/>
> The Any component generates:
> <var name="myVar" expr="someVal"></var>
> Which is ignored by most VoiceXML 2.0 compliant browsers.  If the tag detected that there were no body present and did a writer.beginEmpty(), all would be well!

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-245) Using "Any" component in XML generation should render an empty tag if there is no body

Posted by "Brian K. Wallace (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-245?page=all ]

Brian K. Wallace updated TAPESTRY-245:
--------------------------------------

    Component: Framework

> Using "Any" component in XML generation should render an empty tag if there is no body
> --------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-245
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-245
>      Project: Tapestry
>         Type: Bug

>   Components: Framework
>     Versions: 3.0.1
>  Environment: JDK 1.5 Tomcat
>     Reporter: Kurtis Williams

>
> For certain types of XML generation (VoiceXML, for example) it is illegal to have a opening and closing tag for certain tag sets.  When using the "Any" component to generate an XML tag that has no body, it generates a closing tag when what it should render is an empty tag.
> For example, if in VXML you have:
> <var jwcid="@Any" name="myVar" expr="someVal"/>
> The Any component generates:
> <var name="myVar" expr="someVal"></var>
> Which is ignored by most VoiceXML 2.0 compliant browsers.  If the tag detected that there were no body present and did a writer.beginEmpty(), all would be well!

-- 
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-245) Using "Any" component in XML generation should render an empty tag if there is no body

Posted by "Vjeran Marcinko (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-245?page=comments#action_64468 ]
     
Vjeran Marcinko commented on TAPESTRY-245:
------------------------------------------

Just to add that example of XML generation in docs for Any component:
http://jakarta.apache.org/tapestry/doc/ComponentReference/Any.html
use plain BasePage, thus rendered XML response has text/html content type, which is something none would want I guess...


> Using "Any" component in XML generation should render an empty tag if there is no body
> --------------------------------------------------------------------------------------
>
>          Key: TAPESTRY-245
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-245
>      Project: Tapestry
>         Type: Bug
>     Versions: 3.0.1
>  Environment: JDK 1.5 Tomcat
>     Reporter: Kurtis Williams

>
> For certain types of XML generation (VoiceXML, for example) it is illegal to have a opening and closing tag for certain tag sets.  When using the "Any" component to generate an XML tag that has no body, it generates a closing tag when what it should render is an empty tag.
> For example, if in VXML you have:
> <var jwcid="@Any" name="myVar" expr="someVal"/>
> The Any component generates:
> <var name="myVar" expr="someVal"></var>
> Which is ignored by most VoiceXML 2.0 compliant browsers.  If the tag detected that there were no body present and did a writer.beginEmpty(), all would be well!

-- 
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org