You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Rigel Freden (JIRA)" <ad...@incubator.apache.org> on 2006/05/12 20:48:46 UTC

[jira] Created: (ADFFACES-8) issue with af:document and afh:html

issue with af:document and afh:html
-----------------------------------

         Key: ADFFACES-8
         URL: http://issues.apache.org/jira/browse/ADFFACES-8
     Project: MyFaces ADF-Faces
        Type: Bug

 Environment: debian linux, tomcat 5.5.17, java 1.5, adf faces version ea20-SNAPSHOT
    Reporter: Rigel Freden


the following code generates the html further down the page
output text is rendered above input text, and even above the html tag
this same behavior is observed when af:document is replaced with afh:html, afh:head and afh:body tags
my workaround was to use plain vanilla html tags <html> <head> and <body>

jsp source page:

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>

<f:view>
    <af:document title="af:document fails">
        <afh:tableLayout>
            <af:inputText label="input label" value="x" />
        </afh:tableLayout>
        
        <af:outputText>output text</af:outputText>
            
    </af:document>
</f:view>




client side html:




    
        
            
        
        
        output text
            
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"><html dir="ltr" lang="en-US"><head><title>af:document fails</title><meta name="generator" content="Oracle ADF Faces"><link rel="stylesheet" charset="UTF-8" type="text/css" href="/compiere-webapp/adf/styles/cache/minimal-desktop-${version}-en-gecko.css"><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script><script src="/compiere-webapp/adf/jsLibs/Commonea20.js"></script><script>_defaultTZ()</script></head><body onload="_checkLoad(event)" onunload="_checkUnload(event)"><iframe id="_pprIFrame" name="_pprIFrame" frameborder="0" longdesc="#" title="" src="about:blank" style="position:absolute;top:-100px;visibility:hidden" width="0" height="0"></iframe><div id="_pprBlockingDiv" onclick="return _pprConsumeClick(event);" style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;" onkeydown="return false;" onkeyup="return false;" onmousedown="return false;" onmouseup="return false;" onkeypress="return false;"></div><script>var _cachedLibs;</script><a name="top"></a><noscript>This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.</noscript><table summary="" border="0" cellspacing="0" cellpadding="0"><tr id="_idJsp2__xc_"><td class="xc" nowrap><span class="xa"><label for="_idJsp2">input label</label></span></td><td width="12"><img src="/compiere-webapp/adf/images/t.gif" alt="" width="12"></td><td valign="top" nowrap><input id="_idJsp2" name="_idJsp2" class="x6" size="30" type="text" value="x"></td></tr></table><!-- MYFACES JAVASCRIPT -->

<script type="text/javascript"><!--
function getScrolling() {
    var x = 0; var y = 0;
    if (self.pageXOffset || self.pageYOffset) {
        x = self.pageXOffset;
        y = self.pageYOffset;
    } else if ((document.documentElement && document.documentElement.scrollLeft)||(document.documentElement && document.documentElement.scrollTop)) {
        x = document.documentElement.scrollLeft;
        y = document.documentElement.scrollTop;
    } else if (document.body) {
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
    }
    return x + "," + y;
}

//--></script>

</body><!-- Created by Oracle ADF Faces (ADF JavaServer Faces API - ea20-SNAPSHOT/ADF JavaServer Faces Impl - ea20-SNAPSHOT), skin:minimal.desktop (minimal) -->

-- 
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] Resolved: (ADFFACES-8) issue with af:document and afh:html

Posted by "Adam Winer (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-8?page=all ]
     
Adam Winer resolved ADFFACES-8:
-------------------------------

    Resolution: Invalid

This isn't a bug. This is a standard JSF 1.1 + JSP problem.

The proper syntax is not:
        <af:outputText>output text</af:outputText> 
but instead:
        <af:outputText value="output text"/>
or:
         <f:verbatim>output text</f:verbatim>



> issue with af:document and afh:html
> -----------------------------------
>
>          Key: ADFFACES-8
>          URL: http://issues.apache.org/jira/browse/ADFFACES-8
>      Project: MyFaces ADF-Faces
>         Type: Bug

>  Environment: debian linux, tomcat 5.5.17, java 1.5, adf faces version ea20-SNAPSHOT
>     Reporter: Rigel Freden

>
> the following code generates the html further down the page
> output text is rendered above input text, and even above the html tag
> this same behavior is observed when af:document is replaced with afh:html, afh:head and afh:body tags
> my workaround was to use plain vanilla html tags <html> <head> and <body>
> jsp source page:
> <%@page contentType="text/html"%>
> <%@page pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
> <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
> <f:view>
>     <af:document title="af:document fails">
>         <afh:tableLayout>
>             <af:inputText label="input label" value="x" />
>         </afh:tableLayout>
>         
>         <af:outputText>output text</af:outputText>
>             
>     </af:document>
> </f:view>
> client side html:
>     
>         
>             
>         
>         
>         output text
>             
>     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"><html dir="ltr" lang="en-US"><head><title>af:document fails</title><meta name="generator" content="Oracle ADF Faces"><link rel="stylesheet" charset="UTF-8" type="text/css" href="/compiere-webapp/adf/styles/cache/minimal-desktop-${version}-en-gecko.css"><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script><script src="/compiere-webapp/adf/jsLibs/Commonea20.js"></script><script>_defaultTZ()</script></head><body onload="_checkLoad(event)" onunload="_checkUnload(event)"><iframe id="_pprIFrame" name="_pprIFrame" frameborder="0" longdesc="#" title="" src="about:blank" style="position:absolute;top:-100px;visibility:hidden" width="0" height="0"></iframe><div id="_pprBlockingDiv" onclick="return _pprConsumeClick(event);" style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;" onkeydown="return false;" onkeyup="return false;" onmousedown="return false;" onmouseup="return false;" onkeypress="return false;"></div><script>var _cachedLibs;</script><a name="top"></a><noscript>This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.</noscript><table summary="" border="0" cellspacing="0" cellpadding="0"><tr id="_idJsp2__xc_"><td class="xc" nowrap><span class="xa"><label for="_idJsp2">input label</label></span></td><td width="12"><img src="/compiere-webapp/adf/images/t.gif" alt="" width="12"></td><td valign="top" nowrap><input id="_idJsp2" name="_idJsp2" class="x6" size="30" type="text" value="x"></td></tr></table><!-- MYFACES JAVASCRIPT -->
> <script type="text/javascript"><!--
> function getScrolling() {
>     var x = 0; var y = 0;
>     if (self.pageXOffset || self.pageYOffset) {
>         x = self.pageXOffset;
>         y = self.pageYOffset;
>     } else if ((document.documentElement && document.documentElement.scrollLeft)||(document.documentElement && document.documentElement.scrollTop)) {
>         x = document.documentElement.scrollLeft;
>         y = document.documentElement.scrollTop;
>     } else if (document.body) {
>         x = document.body.scrollLeft;
>         y = document.body.scrollTop;
>     }
>     return x + "," + y;
> }
> //--></script>
> </body><!-- Created by Oracle ADF Faces (ADF JavaServer Faces API - ea20-SNAPSHOT/ADF JavaServer Faces Impl - ea20-SNAPSHOT), skin:minimal.desktop (minimal) -->

-- 
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] Updated: (ADFFACES-8) issue with af:document and afh:html

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-8:
--------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> issue with af:document and afh:html
> -----------------------------------
>
>                 Key: ADFFACES-8
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-8
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.0-incubating-core
>         Environment: debian linux, tomcat 5.5.17, java 1.5, adf faces version ea20-SNAPSHOT
>            Reporter: Rigel Freden
>             Fix For: 1.0.0-incubating-core
>
>
> the following code generates the html further down the page
> output text is rendered above input text, and even above the html tag
> this same behavior is observed when af:document is replaced with afh:html, afh:head and afh:body tags
> my workaround was to use plain vanilla html tags <html> <head> and <body>
> jsp source page:
> <%@page contentType="text/html"%>
> <%@page pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
> <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
> <f:view>
>     <af:document title="af:document fails">
>         <afh:tableLayout>
>             <af:inputText label="input label" value="x" />
>         </afh:tableLayout>
>         
>         <af:outputText>output text</af:outputText>
>             
>     </af:document>
> </f:view>
> client side html:
>     
>         
>             
>         
>         
>         output text
>             
>     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"><html dir="ltr" lang="en-US"><head><title>af:document fails</title><meta name="generator" content="Oracle ADF Faces"><link rel="stylesheet" charset="UTF-8" type="text/css" href="/compiere-webapp/adf/styles/cache/minimal-desktop-${version}-en-gecko.css"><script>var _AdfWindowOpenError='A popup window blocker has been detected in your browser. Popup blockers interfere with the operation of this application. Please disable your popup blocker or allow popups from this site.';</script><script src="/compiere-webapp/adf/jsLibs/Commonea20.js"></script><script>_defaultTZ()</script></head><body onload="_checkLoad(event)" onunload="_checkUnload(event)"><iframe id="_pprIFrame" name="_pprIFrame" frameborder="0" longdesc="#" title="" src="about:blank" style="position:absolute;top:-100px;visibility:hidden" width="0" height="0"></iframe><div id="_pprBlockingDiv" onclick="return _pprConsumeClick(event);" style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;" onkeydown="return false;" onkeyup="return false;" onmousedown="return false;" onmouseup="return false;" onkeypress="return false;"></div><script>var _cachedLibs;</script><a name="top"></a><noscript>This page uses JavaScript and requires a JavaScript enabled browser.Your browser is not JavaScript enabled.</noscript><table summary="" border="0" cellspacing="0" cellpadding="0"><tr id="_idJsp2__xc_"><td class="xc" nowrap><span class="xa"><label for="_idJsp2">input label</label></span></td><td width="12"><img src="/compiere-webapp/adf/images/t.gif" alt="" width="12"></td><td valign="top" nowrap><input id="_idJsp2" name="_idJsp2" class="x6" size="30" type="text" value="x"></td></tr></table><!-- MYFACES JAVASCRIPT -->
> <script type="text/javascript"><!--
> function getScrolling() {
>     var x = 0; var y = 0;
>     if (self.pageXOffset || self.pageYOffset) {
>         x = self.pageXOffset;
>         y = self.pageYOffset;
>     } else if ((document.documentElement && document.documentElement.scrollLeft)||(document.documentElement && document.documentElement.scrollTop)) {
>         x = document.documentElement.scrollLeft;
>         y = document.documentElement.scrollTop;
>     } else if (document.body) {
>         x = document.body.scrollLeft;
>         y = document.body.scrollTop;
>     }
>     return x + "," + y;
> }
> //--></script>
> </body><!-- Created by Oracle ADF Faces (ADF JavaServer Faces API - ea20-SNAPSHOT/ADF JavaServer Faces Impl - ea20-SNAPSHOT), skin:minimal.desktop (minimal) -->

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.