hr element placed incorrectly on html page

<HR> element is placed in a row of a grid but it appears above the table on HTML page. JSP code and HTML output is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<jsp:text><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
]]></jsp:text>
<f:view>
<html lang="en-US" xml:lang="en-US">
<head>
<meta content="no-cache" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>
<title>TestPage Title</title>
<link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body style="-rave-layout: grid">
<h:form binding="#{TestPage.form1}" id="form1">
<h: panelGrid binding="#{TestPage.gridPanel1}" id="gridPanel1" style="left: 0px; top: 0px; position: absolute" width="780">
<h:outputText binding="#{TestPage.outputText1}" id="outputText1" styleClass="page-header" value="Test page"/>
<hr width="780"/>
</h: panelGrid>
</h:form>
</body>
</html>
</f:view>
</jsp:root>
HTML output is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-US" lang="en-US"><head><meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="Pragma" content="no-cache"/><title>TestPage Title</title><link type="text/css" rel="stylesheet" href="resources/stylesheet.css"/></head><body style="-rave-layout: grid"><form id="form1" method="post" action="/homesoncell/faces/TestPage.jsp" enctype="application/x-www-form-urlencoded">
<hr width="780"/><table id="form1:gridPanel1" style="left: 0px; top: 0px; position: absolute" width="780">
<tbody>
<tr>
<td><span id="form1:outputText1" class="page-header">Test page</span></td>
</tr>
</tbody>
</table>
<input type="hidden" name="form1" value="form1" /></form></body></html>

You cannot safely include HTML tags within all JSF components -- and panelGrid is one such component. This is the reason by the way we disabled the HTML palette in the last moment; it's easy to get into trouble in this area.
The way to include markup is to include a verbatim tag as a child and then the verbatim tag wraps the html you want to include.
http://java.sun.com/j2ee/javaserverfaces/1.1/docs/tlddocs/f/verbatim.html
-- Tor
http://blogs.sun.com/tor

Similar Messages

  • How to include HTMLB in a HTML page

    Hello all,
    Is it possible to include for instance a HTMLB:tableview-element in a plain HTML page, with a minimum of HTMLB-elements?
    So i have:
    <HTML>
      <HEAD>
        <TITLE>
        <TITLE>
      </HEAD>
      <BODY>
      </BODY>
    </HTML>
    Where and what HTMLB-elements do i have to include to succeed?
    The reason for my question is, that i have to include some additional elements in a standard generated page and i prefer to us HTMLB for it.
    Thanx in advance.
    Kind regards,
    Martijn de Jong.

    Hi,
       add the following code where ever you require a tableview...
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "display page ">
      <htmlb:form>
          add tableview here....
      </tmlb:form>
    </htmlb:page>
    </htmlb:content>
    Regards,
    Azaz Ali Shaik.

  • Incorrect functionality of Embedded tag in html page, displaying object on top of all layers of Adobe air application native window

    Title
    Incorrect functionality of embed tag in html loader for adobe air development
    Description
    Problem Description: If we had loaded youtube.com video url in a view stack and navigate to other index of stack or away from we UI screen within the same native window video or embeded tag of flash player or any other embed object will be displayed on top of all screens layer in same position of where the object should be placed in side of html loader only.
    Steps to Reproduce:
    1) go to http://get.straweb.com/StraWebBrowser/StraWebBrowser.air download and install
    2) load 2 tabs and in the 3 tab load video player of youtube.com which will a sample video
    before completing the load of 3 tab which trying to load video from youtube.com, navigate to other tabs 1 or 2 in few second once the flash player of youtube.com video player is load it will display in the current tab or UI screen.
    3) Try navigating to other tabs than youtube.com loaded tab you see the flash player is on top it stable.
    4) navigate to 3 tab and try to navigate to other tab you can observe that so how it will not show that flash player and only visible in that 3 tab which is fine.
    Actual Result: Embedded tag of html page displaying on top of all layers of Adobe air application native window
    Expected Result: Embedded tag of html page should only displayed in side htmlloader
    This you can replicate in any adobe air plugin update and on any Hardware and Environment.
    Applicable to all sdk versions of adobe air.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

  • Cursor placed in 2nd character position of an HTML page generated thru Web Bean.

    I am not sure if others have noticed it but in my HTML page (generated thru EDitCurrentRecord web bean), the cursor is not always placed in the first character position of a text box/text area.
    Is there a way that I can ensure that the cursor starts blinking in the first character position always (instead of the 2nd or 3rd character position)?
    Thanks in advance!

    This is a bug. I don't have a workaround for you. I will fix it in the next release.

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How to set a value to an  existing element in  html page using servlets

    i have created a session in my login page and i know how to retrieve it now the actual problem is i want to set the same value to a textbox in an html page........

    Use JSTL and/or EL.
    Assuming that you mean with "created a session" that you've created a bean and have set it as an attribute of the HttpSession, e.g.httpSession.setAttribute("someBean", someBean);then do for example using the JSTL c:out tag:<p><c:out value="${someBean.someProperty}" /></p>or, if you're using at least Servlet 2.4 API with JSP 2.0 API which allows EL in template text, then do for example:<p>${someBean.someProperty}</p>

  • How to extract elements from an HTML page?

    Hi:
    If we have the following returned page which is the web query result from a library: http://library.fsi.uiuc.edu/dbtw-wpd/exec/dbtwpub.dll?XC=%2Fdbtw-wpd%2Fexec%2Fdbtwpub.dll&BU=http%3A%2F%2Flibrary.fsi.uiuc.edu%2Fdbtw-wpd%2FnewWeb%2Fauthor.asp&submit=Submit+Query&QB0=AND&QF0=Author&QI0=william&QB1=AND&QF1=Corporate+Author&QI1=&MR=20&TN=Catalog&DF=Display-Web&RF=Brief+Title+-+Web&DL=1&RL=1&NP=1&AC=QBE_QUERY
    If we want to store all the returned information in the local memory,
    how can Java be used to extract the records out of the html page?
    What kind of classes should be used?
    For example, should I just use regular expression to do this (java.util.regex class),
    build-in html parser (javax.swing.text.html.parser.Parser, or even javax.swing.text.html.HTMLEditorKit.Parser), or any other classes? Thanks.

    I been working on a simular project but i might not be using a method that you would want.
    I am reading the webpage code and then getting the data by looking for certain words. The problem with this is that it is reading the page "blindly" so it could read the wrong data or screw up on an error on the page. but here is a bit of code i am using. I am using ti to get data that appears in " " (quotes) so i can get urls, images, etc
    This code isnt totaly mine, i amended it from some one and dont know the original owner :(
    try {
            is =                    new BufferedInputStream(new URL(jTextField1.getText()).openStream());
          while ((record = is.read()) != -1) {
            buffer.append((char) record);
            length++;
            System.out.print((char)record);
          }     is.close();
    } catch // error management herei am using a seperate thread running at same time to enter data
    do {
            while (lengthposition != length) {
              //System.out.print(buffer.charAt(lengthposition));
              temp[0] = "" + buffer.charAt(lengthposition);
              if (buffer.charAt(lengthposition) != /*34*/64 && tolist == true)
                temp[1] += ""+ buffer.charAt(lengthposition);
              else if (buffer.charAt(lengthposition) == /*34*/64 && tolist == false)
                tolist = true;
              else if (buffer.charAt(lengthposition) == /*34*/64 && tolist == true) {
                tolist = false;
                list1.addItem(temp[1]);
                temp[1] = "";
              lengthposition++;
          } while (buffer.charAt(lengthposition) != 32);I hope you find out a solution to your problem :)

  • Viewing HTML page saved  on the server from the browser

    Hi all
    In my application i am having some HTML pages saved on the server. I had given an option to the user to view the HTML page from my application. behind the scene what i am doing is that the view request will get handled by a servlet and from that servlet iam locating the HTML page on the server directory and sending the HTML page to browser by using the Servlet OutputStream. The HTML page is shown on the browser but the attached images are not shown. The images are also there in the server directory and are refered in the HTML file correctly. When i directly open the HTML file then the images are shown correctly.
    Can anyone suggest wat's wrong there.
    The code i m using is
    ServletOutputStream out=response.getOutputStream();
                        if(format.equalsIgnoreCase("pdf"))
                             logger.info("Seleted format is pdf..\n");
                             response.setContentType("application/pdf");
                        else
                             logger.info("Seleted format is html..\n");
                             response.setContentType("text/html");
    String file = ReportingConstants.URL_GENERATEDREPORTS+reportPath+itemName;
    // file : HTML file absolute path as string.
                        URL url=new URL(file);                    
                        BufferedInputStream bis=new BufferedInputStream(url.openStream());
                        BufferedOutputStream bos=new BufferedOutputStream(out);
                        byte[] buff = new byte[2048];
                        int bytesRead;
                        while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                             bos.write(buff, 0, bytesRead);
                             bos.flush();
                        }

    You have to undertsand how the browser handles images and other resources in a HTML page. In the HTML there is an image tag that has a url to an image which can be a reletive url or an absolute url (starts with a "/").
    If the url is a relative url the browser interprets the url as being relative to the url currently displayed in the address field discarding the last element of the url . So if the url in the address bar is http://www.myserver.com/myapp/mypage.html and the relative url is images/myimage.jpg, the browser will submit a request to the server for http://www.myserver.com/myapp/images/myimage.jpg
    Now let's say that you are call mypage.html from a servlet that has the url http://www.myserver.com/myapp/servlets/myservlet. Then when the browser tries to retrieve myimage.jpg it will use the url http://www.myserver.com/myapp/servlets/myservlet/images/myimage.jpg and since this is incorrect it will not be able to display the images.
    One solution to this is to change all of the image urls to absolute urls. That is the start with a slash where the slash represents the start of the url after the application domain name. For example you used an absolute url for myimage.jpg it would look like /images.myimage.jpg and when accessing the page through the servlet url (http://www.myserver.com/myapp/servlets/myservlet) the browser will discard everything after http://www.myserver.com/myapp and look for the image at http://www.myserver.com/myapp/images/myimage.jpg which is the correct url.
    A second solution is to use the HTML BASE tag which tells the browser not to interpret the image tag urls (and other resourses) using the current url in the address bar but to use the url supplied in the HTML BASE tag. The browser will still perform the same process for relative urls but now relative to the BASE tag url. Since the BASE tag url will be the same every time the page is accesssed the images should be correctly accessed no matter how the page is accessed (eg directly, using RequestDistpatcher or via your servlet)

  • Need to embed a Flash animation over top of a html page!

    Hello,
    I've created an animation in Flash with a transparent
    background which needs to be embedded into a html page with lots of
    div tags. I didn't create the html page and now I need to place the
    animation into that page somehow, overlapping with some text and
    graphics. Every where I place the animation, it will sit before or
    after the text and elements in the page and not over top of them.
    Hope I am clear enought to explain what my problem is. Does anybody
    know what I should do? I truly appreciate your help.
    PS. I am not a technical person so if any body wants to help
    me and needed the sources please email me at:
    Many thanks in advance.
    Mojan
    Mojan

    Treat Flash as any other content and place it within its own
    containing div. Position the div in the normal flow of the document
    allowing the div to 'stack' with the other divs above and below it.
    If you want to place the Flash such that it 'covers' existing
    content you can use CSS positioning techniques. Options include
    absolute positioning the containing div with the Flash swf within
    it (this removes the div from the normal flow of the document) and
    placing it over the existing content. Us position: absolute; and
    top and left, with px values to place the div where you need it.
    You can find tutorials on absolute positioning in the developer
    center or www.communitymx.com
    You can use the float property and negative margins to pull
    containing divs (or other elements) around the document, too.
    Experimenting with floats can be fun but you need to read up on
    their specific behavior as you can end up pulling your hair out.
    Again, there are plenty of CSS tutorials on positioning and a
    Google search should throw-up some options.
    Outside of CSS you can use DOM Scripting and JavaScript to
    also position and hide various content depending on your
    requirements. If you get stuck come back on this forum and ask for
    more help but provide specific code to help us.

  • HTML Page not appearing after SAP Upgrade from 4.6c to ECC 6.0

    Dear All,
    I am novice in ITS and IAC configuration stuff....
    Issue: We have a HTML page which shows a tree structure of Functional location and Equipments. A Z transaction is built to cater the requirement. User logs on to the HTML page navigates thru the Tree structure of Functional locations and equipments and the logs the workrequest or Break down details. In 4.6C every thing is working fine. But after Upgrade in Testing Server (We are not go live yet) we are facing a problem where the HTML page with tree structure is skipped off and directly the Z transaction is appearing on the web page.
    Did any one faced such issue? Any thoughts is highly appreciable?
    Thanks,
    Sanjay.

    Thanks Frank and Dhurairaj....and sorry for the delay in responding..
    I have checked my service in SICF and it is active. I also tried to create a new Service and now I am now getting "500 Connection timed out" error.
    Our Z transaction is ZW03 and Service name is ZW03_2.
    We are on Netweaver 7 (2004s)
    Steps I followed:
    1. Created a Service ZW03_2 in SICF (New Sub element) and then Activated.
    default host -> SAP -> bc -> gui -> sap -> its
    2. Created a folder ZW03_2 under SAP->Public->ITS (Transaction SE80, MIME Repository) and imported all MIME objects into that folder.
    3. Created a Internet Service ZW03_2 in SE80. Once I created a Service already there is blank folder Topic 99. Then I created two folders Mime Objects and HTML Templates. Imported all Mime objects into folder "Mime Objects" and Created templates in "HTML Templates" folder. Then I published ..
    After doing all the above setting then I tried to test the service and I am getting 500 Connection time out.
    Please let me know if I missed any step or if I have done any setting incorrectly.
    Thanks,
    Sanjay.

  • Swf movie won't load in html page

    I have a flash movie that loads another movie into a place holder container upon opening.
    So, 2 swf files - one is the main movie and the other the one that loads into the main movie.
    Works just fine when testing in flash or clicking on the swf files outside of flash.
    But when I embedd the main movie into my html page - the main movie loads ok, but it doesn't load the child movie. I have both swf files in the directory so I am not getting why it works fine except when placing into html page.
    Any thoughts on this without uploading the actual files or code for everything somewhere?
    Thanks!

    are all 3 files in the same directory?
    if not, you probably have a path error in your loading code.  (the path is relative to the embedding html's location.)
    if yes, you probably have incorrect/incomplete embedding code.  (to test, use the html file generated by flash without editing.)

  • Best place to begin design of old HTML pages with Web Dynpro

    I am new to web dynpro (and the Netweaver environment).  I just took the EP150 course so I have an idea of how to create pages with both Visual Composer (although I doubt I'll use that much) and in java projects in NWDS. 
    My first application is to be an online purchase requisition application to replace one written in Lotus Domino (this will NOT be integrated with R/3- we will have a seperate DB for these documents outside of R/3).  I have taken the HTML main page from that application and coded it as a JSP but I am getting the impression that the overall design/coding may be simpler if I do the project as a web dynpro.  I want to find some sort of a primer that describes the various controls that go on the web dynpro view in order to figure out how I can take my HTML design and bring it into a web dynpro project.  Can anyone point me to a resource that does this?  I've checked the help and SDN and not found anything that is too helpful yet.
    Can anyone tell me if it would be worthwhile for me to attend the JA310 Web Dynpro course?  I have done a couple of the tutorials posted on SDN for web dynpro but haven't done much else with it as of yet.
    Thanks.
    Dana

    I don't know such a migration guide, but here are some general remarks:
    The Web Dynpro programming model does not use tag-libs, markup, scripting etc. as you might have used in JSP or BSP applications.
    Instead, you create your view layout using the NWDS view designer (or the runtime API) and place UI elements like tables, input fields etc. inside containers.
    Containers have layouts (e.g. MatrixLayout, RowLayout, FlowLayout) and UI elements placed inside a container have layout data for setting individual layout constraints. This is similar to programming in non-Web frameworks like Java Foundation Classes (Swing).
    The UI elements get their data from the view controller context by data binding. There is a hierarchy of controllers (view, custom, component) and the corresponding controllers may be mapped, giving an automatic data flow through the controller hierarchy.
    The complete details of markup (e.g. HTML), client-side scripting, CSS etc. is provided by the client-specific framework part and the application is completely shielded from these technical details.
    This has the additional benefit that a Web Dynpro application can be run on completely different clients without change.
    Example: If tomorrow it will be hip to run your business application inside some other UI technology, e.g. Adobe Flex, SAP will provide a new Web Dynpro client and all Web Dynpro applications will run without change inside this  environment. (Replace Adobe Flex by any other relevant framework).
    Compare this to a programming model, that directly uses HTML, Javascript etc. Good luck rewriting several thousand user interfaces!
    So in your concrete use case, look at your UIs from such a perspective and identify the Web Dynpro concepts. This should help in the migration process.
    Armin

  • A tree-view in HTML page with nodes generated with java script in run time is not visible in the UI Automation Tree. Need Help

    I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
    <iframe>
    <table>
    <tr>
    <td>
    <treeview id="tv1"></treeview>
    </td>
    </tr>
    </table>
    </iframe>
    In UIA, i am able to traverse till the tree view but not able to see it.
    I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement. 
    I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element. 
    i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
    But trying the reverse way like navigating from root element to tree node, was not getting the element for me. 
    Please help me with suggestions or inputs to resolve this issue. 

    Thanks Bernard,
    It works fine with JInitiator but not working with
    the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
    i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
    Thx and Regards
    dkklau

  • How to display a HTML Page in Webdynpro (without IFrame)?

    Hi everyone,
    maybe this one is really simple. I have a RFC returning the URL to a HTML-Page in the backend.  Which of the standard UI-Elements should I use to display that page in my Webdynpro?
    My first guess was to use the IFrame. However, according to different sources this element is deprecated and buggy. So I'm hesitating.
    Are there any other possibilities? Or is it ok to use IFrame nevertheless?
    Many thanks,
    Xiaopeng
    Message was edited by: Xiaopeng Tan

    hi Ashutosh,
    I took a look at the help document. It states that "_self" is no longer supported. And I should use exit plugs instead and specify the URL there.
    But even that won't serve the purpose. I have other UI-elements (fields, tables) on the same screen where I want the page being embedded next to them as co-component. Using _SELF and clicking on the link would would remove all other components.

  • Retrive data from different frames in the same HTML page

    Dear sirs,
    Consider a HTML page with 2 frames, frame1.html and frame2.html. Frame1 contains a textbox, and frame2 contains an "Ok" button.
    Could it be possible that, once I click "OK", and after being redirected to the proper servlet, such servlet could retrive information from Frame1?
    Or, in other words, it is possible for a servlet to get information from different html pages? (I mean INPUT elements like texboxes or radio buttons).
    Thanks in advance for any ideas provided.

    Hi,
    Try this out:
    window.parent.Frame1.document.formname.textbox1.value
    Best of luck

Maybe you are looking for

  • Can not keep drawable signature option in reader on a form with a mailto: submit button added.

    I hope someone has run into this.  I have acrobat 11.0.10 to create fill-able forms and reader 11.0.10 to view and fill them.  Do to the nature of the forms a drawn signature is required and is available right up until I add a submit button with a ma

  • Short dump when expand info provide

    Dear all, I have 0GL_ACOOUNT info object that act as a master data. the problem is when I want to expand at the info provider instantly create short dump the overview of the short dump is : Runtime Errors         ASSERTION_FAILED Date and Time       

  • When using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name.

    Our company has recently upgraded form Acrobat Professional 8 to Acrobat professional XI. We also use the Quite Imposing Plus plug-in in both versions. Now when using Quite Imposing Plus the resulting file is only given a Temp name which will be sent

  • NullPointerException during failover on 5.7MP2

    I just saw this error (below) today during the failover of the primary engine to the backup engine. This message was in the backup engine's log file (soon to be primary engine) and occurred right after the "[SSM] Primary server is not responding. Att

  • Start-process -arguments

    Hi, Can anyone see why this is running the program but not passing the arguments across.  It fires up but then closes, with no logs that I can find $startRichCopy = "C:\RichCopy4.0\RichCopy64.exe" $arguments = "d:\internal \\remotenas.qav-dr.com\QAV-