You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Peter Büttner (JIRA)" <de...@myfaces.apache.org> on 2006/08/11 02:57:15 UTC

[jira] Created: (TOMAHAWK-591) htmltag doesn't render span

htmltag doesn't render span
---------------------------

                 Key: TOMAHAWK-591
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-591
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Html Tag
    Affects Versions: 1.1.3
         Environment: w2k, jdk1.5_06, tomahawk-1.1.3.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar, adf-faces (last one from oracle)
            Reporter: Peter Büttner
            Priority: Minor


The inner htmlTag (span) doesn't render the 'span', 
it renders it if i add a ' ' (blank) getting <apan >...</span >

-----------------------------------------------------------------------
xmlns:h="http://java.sun.com/jsf/html"
...
xmlns:t="http://myfaces.apache.org/tomahawk"


<t:htmlTag value="div" styleClass="xyz" >
     <t:htmlTag value="span"><h:outputText value="#{anyRefHere}"/></t:htmlTag>
</t:htmlTag>

-----------------------------------------------------------------------


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

       

[jira] Commented: (TOMAHAWK-591) htmltag doesn't render span

Posted by "Peter Büttner (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-591?page=comments#action_12437176 ] 
            
Peter Büttner commented on TOMAHAWK-591:
----------------------------------------

well, i have not much time these days...

3 days ago i wen't into that again: adding a space after the 'span'
and i saw it in my browser - this 'fix' works for me, but it points to
potentialy more bugs.

If it is not in tomahawk it maybe in any of the adf parts, maybe a 
writer that inspects and 'fixes' the html, or a filter.
Some minutes ago i stumbled into the source and had a look
at adf(oracle) (x)HtmlResponseWriter but found nothing suspicious.

If i have much more time (1+ month later) i may try to find out what 
happens, maybe use only pure myfaces, no other software blocks.
Since i use 1.1.3 it maybe change already in newer versions. 

Peter


> htmltag doesn't render span
> ---------------------------
>
>                 Key: TOMAHAWK-591
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-591
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Tag
>    Affects Versions: 1.1.3
>         Environment: w2k, jdk1.5_06, tomahawk-1.1.3.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar, adf-faces (last one from oracle)
>            Reporter: Peter Büttner
>         Assigned To: Martin Marinschek
>            Priority: Minor
>
> The inner htmlTag (span) doesn't render the 'span', 
> it renders it if i add a ' ' (blank) getting <apan >...</span >
> -----------------------------------------------------------------------
> xmlns:h="http://java.sun.com/jsf/html"
> ...
> xmlns:t="http://myfaces.apache.org/tomahawk"
> <t:htmlTag value="div" styleClass="xyz" >
>      <t:htmlTag value="span"><h:outputText value="#{anyRefHere}"/></t:htmlTag>
> </t:htmlTag>
> -----------------------------------------------------------------------

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

       

[jira] Commented: (TOMAHAWK-591) htmltag doesn't render span

Posted by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-591?page=comments#action_12435644 ] 
            
Martin Marinschek commented on TOMAHAWK-591:
--------------------------------------------

HtmlTagRenderer says:

            String tag = htmlTag.getValue().toString();
            if( tag.trim().length() == 0 ) // Don't render the tag, but render the children.
                return;

apart from that, the tag is always rendered. So I don't see how this can happen!

regards,

Martin

> htmltag doesn't render span
> ---------------------------
>
>                 Key: TOMAHAWK-591
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-591
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Tag
>    Affects Versions: 1.1.3
>         Environment: w2k, jdk1.5_06, tomahawk-1.1.3.jar, myfaces-impl-1.1.3.jar, myfaces-api-1.1.3.jar, adf-faces (last one from oracle)
>            Reporter: Peter Büttner
>         Assigned To: Martin Marinschek
>            Priority: Minor
>
> The inner htmlTag (span) doesn't render the 'span', 
> it renders it if i add a ' ' (blank) getting <apan >...</span >
> -----------------------------------------------------------------------
> xmlns:h="http://java.sun.com/jsf/html"
> ...
> xmlns:t="http://myfaces.apache.org/tomahawk"
> <t:htmlTag value="div" styleClass="xyz" >
>      <t:htmlTag value="span"><h:outputText value="#{anyRefHere}"/></t:htmlTag>
> </t:htmlTag>
> -----------------------------------------------------------------------

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