Why  javaScript does not works within ADF-jsf regions ?

Hi
thakn you for reading my post
i have problem with running some flash and js in my adf faces page.
the html files that contain this flash/javascript stuff works fine (in my application) but when i try to use them in jspx file i get nothing , here are some samples :
heml file :
<html>
<head>
<title>Preview</title>
</head>
<body>
<link href="./jsmenu01.css" type=text/css rel=stylesheet>
<script language="javascript" src="./jsmenu01cfg.js"></script>
<script language="javascript" src="./jsmenu0.js"></script>
<div id=jmbti_div></div>
</body>
</html>jspx file : which is a region
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
          xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
          xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces"
          xmlns:graph="/webapp/graph.tld"
          xmlns:c="http://java.sun.com/jstl/core">
  <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
<af:regionDef var="menuRegion">
<link href="./jsmenu01.css" type="text/css" rel="stylesheet"/>
<f:verbatim>
<center>
<script language="javascript" src="./jsmenu01cfg.js"></script>
<script language="javascript" src="./jsmenu0.js"></script>
<div id="jmbti_div"></div>
</center>
</f:verbatim>
  </af:regionDef>
  <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_segments_menu-->
</jsp:root>why it should be like this ?
putting this region in the page will cause all elements below this region not to render and show.
thank you for your help.

Why do you want to use a h:commandButton and not an <input type="button"> or a <button>? I don't think that you want to execute a backing bean action. Anyway, in this case you can also add return: false; to the onclick event so that it prevents the button from submitting the form to the server.

Similar Messages

  • Why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    why facetime does not working with any carrier in u.s expect att although the iphone is factory unlocked

    Facetime only works via WiFi. Are you trying to set up Facetime with a T-Mobile account?

  • Why condition does not work.

    Hi Pros,
            in my bex query, there is a CKF OT hours, having a value 30.000, when I set a condition for 'OT hours = 30.000', but get no result out. could you please tell why condition does not work.

    HI,
    please check the "Characteristic Assignment" Tab in change condition window.
    In that tab default  selection as "All Characteristic in the drill down independently" change that selection  as "Individual characteristic and Char. combinations"  and choose the particular characteristic. for ex OT hours against employee means select employee alone.
    Regards
    Sureshkumar C

  • Why RSS does not work with my OS X 10.8.2?

    Why RSS does not work with my OS X 10.8.2? There was no problem before the upgrade to the Mountain Lion.

    By clicking on the RSS icon I'm getting a message:
    "No RSS reader is installed. Safari can't open the feed because Safari can't display RSS feeds"
    In Chrome I get xml file of the RSS site.
    Should I buy something what I didn't need with the Snow Leopard?
    Thanks for your help.
    Message was edited by: PZA22

  • I don't understand why ePrint does not work on emailing photos - Discard - Looked like a spam/ virus

    I don't understand why ePrint does not work on emailing photos - Discard - Looked like a spam/ virus

    Thanks. The problem was solved when I inserted a word in the subject line. Previously I was keeping it blank.

  • Javascript does not work in web browser

    Hello friends.
    I have a problem with javascript in my Captivate project.
    This script only works in preview in Captivate, but does not work in web browser (IE 9, Mozilla, Chrome).
    Anybody knows why?
    Thank you for your answers.

    Common JS interface
    That is the official documentation for JS in Captivate 8. For more information, have a look at Jim Leichliter's website: CaptivateDev.com - eLearning Development with Adobe Captivate

  • Why it does not work as Hyperterminal?

    I use Hyperterminal & setup:
    COM3, Baudrate = 115200, 8 bit, 1 Stop Bit, Parity = None, Flow = None 
    When I type the "*debug" & hit 'Enter' key in the Hyperterminal, it received & showed a lot of Ascii text continously on the dialog (then I close the Hyperterminal)
    But when I tried to the same with my vi (please see the attachment), when run the InQ & the Read String dialog box show nothing return!
    - I did use the NI Measurement & Automation Explorer to config the COM3 with 115200 successfully (just make sure NI driver can see it)
    - Even I change "*debug" or "*debug\r" or "*debug\n" or "*debug\r\n" it still does not work!
    Can anyone know why?
    Thank for any help
    Attachments:
    COM3 Serial Write and Read.vi ‏35 KB

    Remember that if you are going to use '\' codes your text control must be in the right mode. Right click  on the control and select '\' code display. If not you will only send \n as two normal ascii char. \n is most often the correct term char
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Why this does not works??? (I use jsp: include. to contain two jsp files)

    I have a main.jsp, and in this main.jsp, I have two part, leftButton.jsp and view.jsp, I want to include the leftButton.jsp and view.jsp to main.jsp.
    The code of main.jsp is like follows:
    <%@ page language="java" contentType="text/html" %>
    <html>
    <head>
    <title>JSP include element test</title>
    </head>
    <body>
    <table>
    <tr>
    <td><jsp: include page="leftButton.jsp" flush="true"></jsp: include></td>
                             <td>     <jsp: include page="view.jsp" flush="true"></jsp: include></td>
                        </tr>
         </table>
    </body>
    </html>
    Why the include does not works? by the way, I embeded a flash.swf file in view.jsp.

    Hi Mellon,
    You might be better off using a JSPF segment for leftButton.jsp & view.jsp and the <%@ include file="relativeURL" %>.
    Be careful that the included file does not contain <html>, </html>, <body>, or </body> tags. Because the entire content of the included file is added to the including JSP page, these tags would conflict with the same tags in the including JSP page, causing an error.
    Note: It is conventional to put JSP segements under the WEB-INF/jspf/ folder so the file cannot be accessed directly by a URL
    Note: JSPF files end with .jspf, so your files would be leftButton.jspf and view.jspf.

  • Android orientation lock does not work within the ADPS App

    Hi,
    and another Android App Bug for today. The Android orientation lock feature does not work in Apps created with ADPS. If orientation lock is enabled and I turn the tablet, the orientation off the ADPS Apps will turn with the tablet.
    My Test Tablet is an Acer IconiaTab A510 with Android 4.0.3
    Kind regards
    Yves

    When you say that the orientation lock doesn't work, we have no way of knowing if that means that the screen is locked in one position only, or that it will not lock in one position only. So try something g very basi and reboot your iPad.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    In the camera app, you have to swipe up and down on the screen to move between photo, video and the square photo mode options, so are you even in the correct mode to take videos?

  • Why Rpad does not work in non-English characters...????

    Ηι ,
    I have the classic table of emp in user scott....
    When i insert another row containing non-English characters the rpad function does not work......
    SQL> select ename , rpad(ename,12,'.') from emp;
    ENAME                          RPAD(ENAME,12,'.')
    SMITH                          SMITH.......
    ALLEN                          ALLEN.......
    WARD                           WARD........
    JONES                          JONES.......
    MARTIN                         MARTIN......
    BLAKE                          BLAKE.......
    CLARK                          CLARK.......
    KING                           KING........
    TURNER                         TURNER......
    JAMES                          JAMES.......
    FORD                           FORD........
    MILLER                         MILLER......
    SCOTT                          SCOTT.......
    ADAMS                          ADAMS.......
    ΠΑΝΑΓΙΩΤΟΥ ΠΑΝΑΓΙWhen i convert it to English characters then it works....
    PANAGIOTOU PANAGIOTOU..
    How can i make it to work....????
    I use 10g v.2
    Many thanks...
    Sim

    Hi ,
    SQL> select length('ΠΑΝΑΓΙΩΤΟΥ') from dual;
    LENGTH('ΠΑΝΑΓΙΩΤΟΥ')
                      10
    SQL> select vsize('ΠΑΝΑΓΙΩΤΟΥ') from dual;
    VSIZE('ΠΑΝΑΓΙΩΤΟΥ')
                     20When i issue the command
    SQL> select ename , rpad(ename,25,'.') from emp;
    ENAME                          RPAD(ENAME,25,'.')
    SMITH                          SMITH....................
    ALLEN                          ALLEN....................
    WARD                           WARD.....................
    JONES                          JONES....................
    MARTIN                         MARTIN...................
    BLAKE                          BLAKE....................
    CLARK                          CLARK....................
    KING                           KING.....................
    TURNER                         TURNER...................
    JAMES                          JAMES....................
    FORD                           FORD.....................
    MILLER                         MILLER...................
    SCOTT                          SCOTT....................
    ADAMS                          ADAMS....................
    ΠΑΝΑΓΙΩΤΟΥ                     ΠΑΝΑΓΙΩΤΟΥ.....It worked.... setting as 25 characters for padding.....
    Thanks....for the useful remark
    Sim

  • Why "align" does not works in IE ?

    I need to align my SWF file to right side. In HTML code I m
    useing align=right ....
    It works in Firefox, but not in IE 6 (7). I tried to load SWF
    with java, but it also does not work.
    IE 6 (7) does not know "ALIGN" ? How can I to align my SWF to
    right side ?

    Thank you for your help, but it is not what I need.
    I dont need align SW to right, or left side of HTML page.
    What I need is...
    For example : When I use frames. Left frame is FLASH menu and
    this SWF is bigger than frame - usualy SWF is displayed from left
    side. But I need to align this MENU to the SWF right side.
    This code works in Firefox, but not in IE :
    <object classid="clsid:d42122....."
    width="600"
    height="580"
    id="mySWF"
    align="right">
    <param name="movie" value="mySWF.swf" />
    <param name="quality" value="high" />
    <embed src="mySWF.swf" quality="high" wmode="transparent"
    bgcolor="#ffffff" width="600" height="580" name="mySWF"
    align="right" type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>

  • Why listeners does not work?

    I have the problem with starting sqlplus session.
    I have created database mybase.
    When I start listener with command:
    lsnrctl startand then I try to log into ma database with the command:
    sqlplus SYSTEM/MYPASSWORD@mybaseit does not work, although the listeners claims it's OK.
    BUT
    if the listener the application 'dbca' is started and I choose in it to modify my database without any changes (I suppose it just raises the oracle engine up),
    then every think works fine.
    Could anyone help me with the problem? How to work without the calling 'dbca' each time?
    Thank you.
    Waldemar

    It is an error! It should be added BEFORE:
    ...BUT
    if BEFORE the listener the application 'dbca' is started ...
    Waldemar

  • Why UDO does not work more  in SAP B1 P16?

    Someone of you has tried to use UDO in SAP B1 Patch 16?
    It does not work more what worked in patch 14 created by code.
    I have also created master and detail tables (from menu Options…)
    and the object by hand but I do not succeed to make to work it!
    Can you help me?
    Message was edited by:
            Andrea Scavazza
    Message was edited by:
            Andrea Scavazza
    Message was edited by:
            Andrea Scavazza

    Hi everybody,
    I am using SBO SP1 PL16 and I have problems with Update in Default Form.
    1. I create a Master Data Table and a Lines Master Data Table
    2. I create an UDO using Default Form
    3. When I test it I get the following behavior:
    a) When I add master data an lines at the same time, there is no problem.
    b) When I update any data in master or lines, I press Update Button and the message "successfully" is displayed but automatically it gets the old information
    c) I tried to find the right information in the table but it was not saved.
    Anyone has the same problem?

  • Why Skype does not work with the new OS for iphone

    Since I downloaded the new OS, skype for iphone does not work at all. Nobody can hear...

    Have you tried deleting the app then reinstalling it? If not, give that a try.

  • Tool tip in EO/VO does not work in ADF Faces  ?

    Hi,
    I set tool tip in Control hints of Entity Object / View Object. But when I use the VO in ADF faces page, the tool tip text does not displays.
    (It does work when using ADF BC Tester)
    Is it only for swing application ?
    Thanks,
    xtanto

    I've raised a bug on this bug:563929
    I'd expect the ADF Faces components to reflect the Tooltip attibute that you set in ADF BC. I also raised the point that everywhere else we talk about "tooltip" except in JSF when we refer to "shortDesc" (and the attribute "Tip" is something else as well!),
    No wonder we missed this ;o)
    Thanks
    Grant

Maybe you are looking for