Af:table shows horizontal scroll when embedded in a region

I added a af:table in a jsff file which has 5 columns into a region. Even if the rows are empty, the horizontal bar is shown. I tried changing the width and/or styleClass attribute of the table and there is no change. I tried adding panelStrechLayout/panelCollection without any success.
Can you please let me know how to avoid the horizontal bar of the table.

The contents of the jsff file is as follows and this jsff file is added as a region.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
<af:panelCollection id="pc1" featuresOff="wrap">
<af:table var="row" rowBandingInterval="0" id="sqlMon"
summary="SQL Monitor"
emptyText="No Data Found"
disableColumnReordering="true"
value="#{dbHomePageSQLMonitorBean.tableList}"
>
<af:column sortable="false" headerText="Duration" id="c5"
>
<af:spacer id="spr4" width="#{row.durationPX}" height="10px"
shortDesc="#{row.durationDesc}"
inlineStyle="background-color:Grey;"/>
</af:column>
<af:column sortable="false" headerText="SQL ID" id="c1"
noWrap="true" >
<af:outputText value="#{row.sql_id}" id="ot4"/>
</af:column>
<af:column sortable="false" headerText="Session" id="c4"
>
<af:outputText value="#{row.session_id}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="Parallel " id="c3"
noWrap="true">
<af:panelGroupLayout id="pgl1">
<af:image id="inst" source="/images/database/rac/dbcluster.gif"
shortDesc="Instance Count"/>
<af:outputText value="#{row.inst_count}" id="ot3"/>
<af:spacer width="10" />
<af:image id="nodes" source="/images/database/rac/dbcluster.gif"
shortDesc="Degree of parallelism"/>
<af:outputText value="#{row.dop}" id="ot31"/>
</af:panelGroupLayout>
</af:column>
<af:column sortable="false" headerText="Database Time" id="c2"
>
<af:panelGroupLayout id="mg1" >
<af:spacer id="spr1" width="#{row.cpuWidthPX}" height="10px"
shortDesc="#{row.cpuDesc}"
inlineStyle="background-color:Lime;"/>
<af:spacer id="spr2" width="#{row.userIOWidthPX}" height="10px"
shortDesc="#{row.userDesc}"
inlineStyle="background-color:Yellow;"/>
<af:spacer id="spr3" width="#{row.otherWidthPX}" height="10px"
shortDesc="#{row.otherDesc}"
inlineStyle="background-color:Orange;"/>
</af:panelGroupLayout>
</af:column>
</af:table>
</af:panelCollection>
</jsp:root>

Similar Messages

  • Can we manipulate the Show Horizontal Scroll Bar property during runtime?

    Hi
    i have set the Show Horizontal Scroll bar to true in the property palette during design time but i want to set to false during run-time based on certain conditions.
    it is possible to set the Show Horizontal Scroll Bar property of the forms window to true or false during runtime?
    if yes, how do you do it?
    any help is appreciated. thx.
    Siti

    Hi there
    thank you for the reply.
    so is resizing of canvas using set_canvas_property('CANVAS6',WIDTH,690)
    possible during run-time based on certain conditions? thx.
    Siti

  • Reports doesn't shows horizontal scroll bar after EHP5

    Hi All,
    After EHP5 SP level, under menu MSS -> My Staff -> Reporting, any reports doesn't shows horizontal scroll bar, to view last colums. I tried with Authroziation SAP ALL but still issue persists.
    Thanks,
    Cheers!!!
    Sara

    can you chekc note 1531182
    1. Open SAP Note 19466 - "Downloading SAP kernel patches"
    2. Follow the instructions on the a above note and implement the Kernel
    patches contained on SAP Note 1531182 -  "Number of fixed columns is
    incorrect"

  • Showing Horizontal scroll bar in JTabel

    I am creating a table as follows:
    private ResultSetTableModel tableModel;
    // create TableModel for results of query
    tableModel = new ResultSetTableModel( JDBC_DRIVER, DATABASE_URL, USERNAME, PASSWORD, DEFAULT_QUERY );
    // create JTable delegate for tableModel
    JTable resultTable = new JTable( tableModel );
    sp = new JScrollPane( resultTable);
    where
    ResultSetTable Model is a class which extends AbstractTableModel
    When dispalying the table I can only see the vertical scroll, How can the horizontal scroll be shown??
    Thanks.

    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=623692

  • Avoid table's horizontal scroll bar

    I have an ADF table (<af:table>) with predetermined width and height. The table displays couple of rows, without any horizontal and vertical scroll bar. We have an option to add new rows to the table. After adding few more rows, if the number of rows exceeds the height of the table, both the horizontal and vertical scroll bar of the table appears.
    Do we have an option to display only the vertical bar without the horizontal scroll bar?

    Hi,
    are you using JDeveloper 11 ? Must be because 10.1.3 doesn't know of scrollbars, unless you mean browser bars.
    In 11, when the vertical scrollbar is added, it takes from the horizontal space and if there isn't enough left, horizontal scrollbars are shown. So just make sure you add enough space for the table and the scrollbars should not display. There is no property to hide them.
    Frank

  • JList in JScrollPane never shows horizontal scroll bar

    I have a JList inside a JScrollPane. When I add a lot of cells to the list, the vertical scroll bar appears as expected. However, if I add a cell that would require lots of horizontal space in which to render, the horizontal scroll bar never appears.
    Is there a way to make the JList take on the width of the widest rendered cell?
    Josh

    Here's some code that will demonstrate the problem. Run the code, then resize the window so that the horizontal scroll bar should appear.
    Code for jds.toys.Main:
    package jds.toys;
    import javax.swing.DefaultListModel;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.SwingUtilities;
    public class Main extends JFrame {
         protected DefaultListModel model;
         public Main()
              super("JList in JScrollPane");
              model = new DefaultListModel();
              model.addElement("A very very very very very very long String");
              model.addElement("A very very very very very very very long String");
              model.addElement("A very very very very very very very very long String");
              model.addElement("A very very very very very very very very very long String");
              model.addElement("A very very very very very very very very very very long String");
              model.addElement("A very very very very very very very very very very very long String");
                      JList list = new JList(model);
                      list.setSize(300,300);
                      list.setFixedCellHeight(30);
                      list.setCellRenderer(new MyCellRenderer());
                      JScrollPane scrollPane = new JScrollPane(list);
                      add(scrollPane);
                      setSize(400,400);
        public static void main(String[] args) throws InterruptedException {
             final Main m = new Main();
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                     m.setVisible(true);
    Code for jds.toys.MyCellRenderer:
    package jds.toys;
    import java.awt.Component;
    import java.awt.Graphics;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.ListCellRenderer;
    public class MyCellRenderer extends JPanel implements ListCellRenderer
         private Object currentValue;
         private JList currentList;
         public MyCellRenderer()
         public Component getListCellRendererComponent(     JList list,
                                             Object value,
                                       int index,
                                       boolean isSelected,
                                       boolean cellHasFocus)
              currentValue = value;
              currentList = list;
              return this;
         public void paintComponent(Graphics g)
              int stringLen = g.getFontMetrics().stringWidth(currentValue.toString());
              int ht = currentList.getFixedCellHeight();
              g.setColor(getBackground());
              g.fillRect(0,0,stringLen,ht);
              g.setColor(getForeground());
              g.drawString(currentValue.toString(),0,ht/2);
    }

  • Flash ComboBox only showing 2 rows when embedded in Connect

    We've built an AS2 application that can be embedded into various LMSs, etc.
    Curiously, when embedded in Adobe Connect, the ComboBoxes aren't rendered correctly.  Rather than dropping down, the menus are displaying above the widget, even though there is plenty of room below.  Even worse, only the first two rows are displayed, so to select any other rows you have to use the arrow keys.
    My guess is that the ComboBox is trying to determine how much room it has to render its menus, and that this is going awry.
    _lockRoot is set to true
    I think this might be handled by the PopUpManager, perhaps by its setSize function, but I can't figure out where this is defined.  It's simply listed as a property:
         var setSize:Function;
    Any ideas?  Thanks!

    Hello Chris and Sameer,
    thank you for getting back on this issue.
    To answer your questions first:
    - no, I have not posted this issue in the connect forums - I will do and point to this discussion
    - Sameer, I have tested the webcam on the website you pointed out, it is not working with Firefox but it is working in Chrome
    I also need to give you an update on the current versions I use:
    Win 7 Pro (64bit) (all updates included)
    Firefox 21.0
    IE 10.0.9200.16576
    Chrome  26.0.1410.64 m
    Flash Player 11.7.700.202
    Adobe Connect Addin 11.2 r261
    I tested the webcam via FP with Firefox, IE and Chrome in the versions mentioned above. Only in Chrome I can run the WebCam on the www.testwebcam.com website. Once I start the adobe connect meeting and want to start the webcam the Connect Addin stops working with the popup as shown in post 3 of this discussion in all three browsers.
    All components have been uninstalled and installed again (except for IE)  for testing with no change in the result. I have also rolled back the computer to the system recovery point furthest back in time to see if any other installation might be the cause. But no luck either.
    I am happy to post the logs but would need advise where to find these or how to retrieve.
    Thanks!
    Konwill

  • Not show horizontal srollbar when decrease table size

    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
         final Object[][] data = {
                   { "Mary", "Campione", "ooooooooooooooooooooooooooo", "5" },
                   { "Alison", "Huml", "Rowing", "3" },
                   { "Kathy", "Walrath", "Chasing toddlers", "2" },
                   { "Mark", "Andrews", "Speed reading", "20" },
                   { "Angela", "Lih", "Teaching high school", "4" } };
         final Object[] columnNames = { "First Name", "Last Name", "Sport",
                   "Est. Years Experience" };
         public SimpleTableDemo() {
              JTable table = new JTable(data, columnNames);
              // Create the scroll pane and add the table to it.
              JScrollPane scrollPane = new JScrollPane(table);
              scrollPane.setPreferredSize(new Dimension(400, 100));
              // Add the scroll pane to this panel.
              setLayout(new GridLayout(1, 0));
              add(scrollPane);
         public static void main(String[] args) {
              JFrame frame = new JFrame("SimpleTableDemo");
              frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              frame.getContentPane().add("Center", new SimpleTableDemo());
              // frame.setSize(400, 125);
              frame.pack();
              frame.setVisible(true);
    }When I decrease table size the vertical scrollbar show, but horizontal srollbar NOT show. Why?

    When I decrease table size the vertical scrollbar show, but horizontal srollbar NOT show. Why? Because the table automatically resizes the width of each column.
    If you don't want this behaviour then set the setAutoResizeMode(...) method to off.

  • JTable Horizontal Scroll WHEN NEEDED fix?

    Me again....
    JTable in a JScrollPane When the Jtable width exceeds the scrollpane I would like a horizontal scrollbar to appear. If the Jtable does not exceed the width Id like it to fill the ScrollPane.
    If I use the AUTO_RESIZE_OFF I get a horizontal scrollbar all the time. I dont want this if possible.
    I did try to overwrite getScrollableTracksViewportWidth() and getPreferredSize() as suggested by work around http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4127936
    However this bug is not exactly what I am having trouble with.
    Anyone know what I can do for this?
    Thanks
    B.

    You're welcome.
    Autoscrolling means that you can middle click on a web page and then get a scroll icon to indicate that you can move the mouse up or down to scroll the page automatically.

  • TreeTable not showing horizontal scroll bar on Chrome

         Hi experts,
    I'm coding a treeTable and it Works just fine on Internet explorer,
    I'm creating a SDK component for Design Studio and the version of SAPUI5 it carries is 1.12.7
    I can't use a newer version, is there any way to fix this?
    Best Leandro

    if (!!sap.ui.Device.browser.webkit
      && !document.width) {
      jQuery.sap.require("sap.ui.core.ScrollBar");
      var fnOrg = sap.ui.core.ScrollBar.prototype.onAfterRendering;
      sap.ui.core.ScrollBar.prototype.onAfterRendering = function() {
      document.width = window.outerWidth;
      fnOrg.apply(this, arguments);
      document.width = undefined;
    This code solved the problem. Thanks

  • Horizontal scroll bar not appeating in af:treeTable

    We have an af:treeTable component in a popup with two af:column.
    Issue:
    1. af:treeTable is not showing horizontal scroll bar. When i set the width to a fixed value say 1000 on af:column c171, it shows scroll bar but the size is fixed.
    This is not the solution, because if the length of #{node.TerrDimMemberHierarchy} exceeds this size again some portion of it becomes invisible.
    Question:
    1. How can i make horizontal scroll bar appear in tree table. And also it should grow or shrink depending upon the length of #{node.TerrDimMemberHierarchy}
    data.
    <af:treeTable rowBandingInterval="0" id="tt2"
    fetchSize="25"
    inlineStyle="width:38em; height:28em; border-width:1px; border-style:groove;"
    partialTriggers="::dimensionDropDown ::searchButton ::cb5"
    rowSelection="multiple"
    value="#{backingBeanScope.ManageTerritoriesBean.dimensionMemberSearchTreeTableTreeModel}"
    var="node"
    visible="#{pageFlowScope.searchString != null ? (pageFlowScope.viewInHierarchyBtnLbl == null ? true : false) : false}"
    columnStretching="column:c171"
    binding="#{backingBeanScope.ManageTerritoriesBean.dimensionMemberSearchTreeTable}"
    summary="#{salesterrmgmtterritoriesuiGenBundle['OLabel.AvailableDimensionMembers']}"
    immediate="true"
    selectionListener="#{backingBeanScope.ManageTerritoriesBean.dimensionMemberSearchTreeListener}"
    styleClass="AFStretchWidth">
    <f:facet name="nodeStamp">
    <af:column sortable="false" id="c14"
    rowHeader="unstyled"
    headerText="#{salesterrmgmtterritoriesuiAttrBundle['ColAttr.Name.DimensionName.MOTTERRDIMENSIONSVL.NAME']}">
    <af:outputText value="#{node.Name}" id="ot15"/>
    </af:column>
    </f:facet>
    <af:column sortable="false" id="c171"
    headerText="#{dlBndl.PATH}"
    styleClass="AFStretchWidth">
    <af:outputText value="#{node.TerrDimMemberHierarchy}"
    id="ot16"/>
    </af:column>
    </af:treeTable>
    Edited by: sekare on Aug 29, 2011 4:01 AM

    can u remove the styleClass="AFStretchWidth" for af:column
    AFStretchWidth is for table or treetable to stretch.. not for columns
    <af:column sortable="false" id="c171"
    headerText="#{dlBndl.PATH}"
    styleClass="AFStretchWidth">

  • TableView and horizontal scroll bar

    Hi
    I need to show horizontal scroll bar in my TableView - there are many columns in my view. I tried to put it into the ScrollPane but it takes no any effect.. Is there any ability to make scrollable treeview via FXML layout file?
    My code is
    <ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="ALWAYS" VBox.vgrow="ALWAYS">
    <content>
    <TableView fx:id="resultsTbl">
    <columns>
    <TableColumn text="col 1" prefWidth="60" />
    <TableColumn text="col 2" prefWidth="60" />
    <TableColumn text="col 3" prefWidth="130" />
    ........cut....
    </columns>
    <items>
    </items>
    </TableView>
    </content>
    </ScrollPane>
    Thanks
    Edited by: 918392 on 02.03.2012 4:51

    OK. If I understand you correctly, you want the table view to fill the scroll pane width when the total column width is less than the scroll pane width, but show a scroll bar when the total column width is greater than the scroll pane width. Is that right? If so, I don't believe that is currently supported. I think there is a feature request for it, but JIRA is down right now so I can't tell for sure.
    Feel free to submit a feature request for this if you like, and we'll mark it as a duplicate if necessary.

  • Horizontal scroll bar for the adf page

    Hi,
    We have around 7 tables in single jsff page. Here , we have a requirement like :
    We need to show horizontal scroll bar for the entire page instead of each table. Is there any way to get this.
    As of now, we have horizontal scroll bar for each table, but our customer is not accepting this, that want the scroll bar for the entire page.
    Please suggest the approach.
    Thanks

    I have grouped all the tables in panelgrouplayout.So, what is the problem (because it is not quite clear what you need)?
    If your PanelGroupLayout is with layout="horizontal", then the tables will be rendered next to each other horizontally but there will be no horizontal scrollbar on the page.
    If your PanelGroupLayout is with layout="scroll", then the tables will be next to each other vertically and there will be a horizontal and a vertical scrollbar on the page (if necessary).
    If you need your tables to be relocated next to each other horizontally and to have a horizontal scrollbar on the page, then use a PanelGroupLayouts(horizontal) inside a PanelGroupLayout(scroll):
    <af:panelGroupLayout layout="scroll">
      <af:panelGroupLayout layout="horizontal">
        <af:table> ... </af:table>
        <af:table> ... </af:table>
        <af:table> ... </af:table>
      </af:panelGroupLayout>
    </af:panelGroupLayout>If your problem is that you still have horizontal scrollbars inside the tables, then you should set appropriate widths to the corresponding tables (e.g. to <af:table> tags) such that they are large enough to fit the sum of corresponding column widths.
    ya, I know that its not god design, but its customer requirement, so we need to do that.If you expect some table(s) to be stretched automatically according to the size of browser's window, then you should re-think your UI design because PanelGroupLayouts do not stretch their children. A possible solution is to use a combination of PanelSplitters or other layout containers that stretch their children.
    Dimitar

  • Horizontal Scroll in JTable

    Hello!
    I have a JTable inside a JScrollPane when the table has horizontal scroll it looks strange. When the user clicks in arrows of horizontal scroll the headers of table don't follow the scroll.
    What am I doing wrong?
    Thanks,
    Pati

    That's my code
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class Teste extends JFrame{
         public Teste()
         this.setSize(320,270);
         JTable table = new JTable(10,15);
         JScrollPane scroll = new JScrollPane(table, JScrollPane.VERTICAL_SCROLLBAR_NEVER, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         table.getColumnModel().getColumn(0).setPreferredWidth(150);
         table.getTableHeader().setPreferredSize(new Dimension(150,15));
         table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
         scroll.setBounds(10,10,300,250);
         this.getContentPane().add(scroll);
         this.setVisible(true);
         public static void main(String args[]){
              Teste obj = new Teste();          
    The problem is in line:
    table.getTableHeader().setPreferredSize(new Dimension(150,15));
    When I remove it, the table works well.

  • Strange behaviour when embedding HTML page in Air

    Hi,
    I'm trying to embedd a HTML page to a Air application.
    The HTML page has a simple Flex application (TestFlex4Project.mxml) with a button that changes one HTML element on the web page (TestFlex4Project.html) using ExternalInterface. If I run the Flex application using the HTML page it works just fine and when I click the button the HTML ellement is changed and the mouseover- and onclick events works. If I embedd the HTML page in an Air application the mouseover- and onclick events does not work any more. Why?
    If I use Aternative 1 in the HTML code (instead of using Aternative 2 in the HTML code where I'm editing the innerHTML property) the mouseover- and onclick events works when the HTML page is embeded in Air. Why?
    Even more strange is that if I remove the line [<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />] from the HTML page the Flex application dose not show at all when embedded in Air. Why?
    You can try the online sample here and the files here.
    The application looks like this:
    And if you click the button and click the upper most text you will recieve a message like this:
    But not when I use innerHTML and embedd the HTML page in Air. Can anyone please help me with this issue. Is it a bug or what am I doing wrong? I need to change some HTML elements using innerHTML.
    Thanks!!
    The code for TestFlex4Project.mxml is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
    width="100%"
    height="100%">
    <fx:Script>
      <![CDATA[
       function buttonClickHandler(event:Event):void{
       ExternalInterface.call(" function(){SetHTML();}")
      ]]>
    </fx:Script>
    <s:HGroup verticalAlign="middle">
      <s:Button label="Edit HTML Element" click="buttonClickHandler(event)"/> 
    </s:HGroup>
    </s:Application>
    The code for TestFlex4Project.html is like this
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Test Flex 4 Project</title>
    <meta name="description" content="" />
    <script src="js/swfobject.js"></script>
    <script>
      var flashvars = {
      var params = {
       menu: "false",
       scale: "noScale",
       allowFullscreen: "true",
       allowScriptAccess: "always",
       bgcolor: "",
       wmode: "direct" // can cause issues with FP settings & webcam
      var attributes = {
       id:"TestFlex4Project"
      swfobject.embedSWF(
       "TestFlex4Project.swf",
       "altContent", "100%", "100%", "10.0.0",
       "expressInstall.swf",
       flashvars, params, attributes);
       function Message(){
       alert("Message!")
    function SetHTML(){
       //Start Alternative 1
       NewHTML.innerHTML = "Dynamically changed text"
       NewHTML.style.cursor = "pointer"
       NewHTML.style.color = "#ff0000"
       NewHTML.onclick = function(){
        Message();
       NewHTML.onmouseover = function(){
        this.style.fontWeight = 700;
       //End Alternative 1
       //Start Alternative 2
       var HTMLStr='<p style="cursor:pointer; fontWeight:300; color:#ff0000" onClick = "Message()" onMouseOver = "this.style.fontWeight=700">Dynamically changed text</p>'
       NewHTML.outerHTML=HTMLStr
       //End Alternative 2
    </script>
    <style>
      html, body { height:100%; overflow:hidden; }
      body { margin:0; }
    </style>
    </head>
    <body id="Body">
    <p id="NewHTML">This text will change when you click the button!</p>
    <p style="cursor:pointer; fontWeight:'300'; color:#ff0000" onClick = "Message()" onmouseover = "this.style.fontWeight='700'">Default text</p>
    <div id="altContent">
      <p><a href="http://www.adobe.com/go/getflashplayer">
       <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
       </a>
      </p>
    </div>
    </body>
    </html>
    The code for the Airapplication is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
    width="800"
    height="566">
    <mx:HTML id="HTMLObject" location="TestFlex4Project.html" width="100%" height="100%"/>
    </s:WindowedApplication>

    Hi,
    I'm trying to embedd a HTML page to a Air application.
    The HTML page has a simple Flex application (TestFlex4Project.mxml) with a button that changes one HTML element on the web page (TestFlex4Project.html) using ExternalInterface. If I run the Flex application using the HTML page it works just fine and when I click the button the HTML ellement is changed and the mouseover- and onclick events works. If I embedd the HTML page in an Air application the mouseover- and onclick events does not work any more. Why?
    If I use Aternative 1 in the HTML code (instead of using Aternative 2 in the HTML code where I'm editing the innerHTML property) the mouseover- and onclick events works when the HTML page is embeded in Air. Why?
    Even more strange is that if I remove the line [<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />] from the HTML page the Flex application dose not show at all when embedded in Air. Why?
    You can try the online sample here and the files here.
    The application looks like this:
    And if you click the button and click the upper most text you will recieve a message like this:
    But not when I use innerHTML and embedd the HTML page in Air. Can anyone please help me with this issue. Is it a bug or what am I doing wrong? I need to change some HTML elements using innerHTML.
    Thanks!!
    The code for TestFlex4Project.mxml is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
    width="100%"
    height="100%">
    <fx:Script>
      <![CDATA[
       function buttonClickHandler(event:Event):void{
       ExternalInterface.call(" function(){SetHTML();}")
      ]]>
    </fx:Script>
    <s:HGroup verticalAlign="middle">
      <s:Button label="Edit HTML Element" click="buttonClickHandler(event)"/> 
    </s:HGroup>
    </s:Application>
    The code for TestFlex4Project.html is like this
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Test Flex 4 Project</title>
    <meta name="description" content="" />
    <script src="js/swfobject.js"></script>
    <script>
      var flashvars = {
      var params = {
       menu: "false",
       scale: "noScale",
       allowFullscreen: "true",
       allowScriptAccess: "always",
       bgcolor: "",
       wmode: "direct" // can cause issues with FP settings & webcam
      var attributes = {
       id:"TestFlex4Project"
      swfobject.embedSWF(
       "TestFlex4Project.swf",
       "altContent", "100%", "100%", "10.0.0",
       "expressInstall.swf",
       flashvars, params, attributes);
       function Message(){
       alert("Message!")
    function SetHTML(){
       //Start Alternative 1
       NewHTML.innerHTML = "Dynamically changed text"
       NewHTML.style.cursor = "pointer"
       NewHTML.style.color = "#ff0000"
       NewHTML.onclick = function(){
        Message();
       NewHTML.onmouseover = function(){
        this.style.fontWeight = 700;
       //End Alternative 1
       //Start Alternative 2
       var HTMLStr='<p style="cursor:pointer; fontWeight:300; color:#ff0000" onClick = "Message()" onMouseOver = "this.style.fontWeight=700">Dynamically changed text</p>'
       NewHTML.outerHTML=HTMLStr
       //End Alternative 2
    </script>
    <style>
      html, body { height:100%; overflow:hidden; }
      body { margin:0; }
    </style>
    </head>
    <body id="Body">
    <p id="NewHTML">This text will change when you click the button!</p>
    <p style="cursor:pointer; fontWeight:'300'; color:#ff0000" onClick = "Message()" onmouseover = "this.style.fontWeight='700'">Default text</p>
    <div id="altContent">
      <p><a href="http://www.adobe.com/go/getflashplayer">
       <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
       </a>
      </p>
    </div>
    </body>
    </html>
    The code for the Airapplication is like this
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
    width="800"
    height="566">
    <mx:HTML id="HTMLObject" location="TestFlex4Project.html" width="100%" height="100%"/>
    </s:WindowedApplication>

Maybe you are looking for

  • PDF Tool Bar Not Working in Safari

    Hi all: I'm running Safari 5.1.3, Lion 10.7.3 on an iMac. About a month ago (prior to upgrading to the latest OS yesterday), I noticed that on certain web sites, I am unable to save PDFs after they open up in a new Safari browser window. This happens

  • Payment being taken despite cancellation?

    Payment is still being taken (2 extra months) since I deleted Photoshop. I went onto "manage account" but it is not listed as an app, yet the money keeps coming out my account each month for Photoshop. Can anyone tell me how this can be cancelled and

  • Down Payment Sales

    Dear Gurus, I have configure the down payment scenario, and in material master assign the item category and gen, item category to 0005, system determine the correct item category at order level, TAO, and also the billing plan related information at s

  • Export quality in quicktime

    I know I'm not the first to ask about this but I'm still a bit confused after reading various posts. It seems that my Livetype movie is crystal clear upon exporting it from livetype but it becomes pixelated once inported to FCE. I know, this is the l

  • Volume setting sometimes ignored

    I've notices (macbook) that the volume setting in OS X is sometimes ignored by applications (like quicktime, idvd etc). It just goes on max. volume, although i told os x my volume has to be 50% for example. After clicking in the menu bar (where it st