Set page direction in source code

Hello,
I would like to know how I can change the page direction in the source code of a backing bean.
Thanks.

I mean that the direction of the page has to be left-to-right or right-to-left.

Similar Messages

  • JDEVADF - Page and Template source code

    Hi All,
    On the "http://jdevadf.oracle.com" demo site I could see that there are links to the Page and Template source code.
    My question here is that can we download and use the same source code directly in the Jdev to get the same layout style.
    I tried with the Template and was getting some errors so not sure.
    If possible them please let me know the steps to achieve the same.
    The layout options are really cool and I want to implement the same for one of my practice project.
    Thanks,
    Kamleshwar

    Kamleshwar,
    You can download the entire demo from [url http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html]here
    John

  • How to set page direction to be right-to-left

    I need to change the direction of the page to be right to left
    how can i do that
    I build my page using ADF UIX components
    This is the source code of my page
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:myTemplate="selfservice">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="mainTemplate.uit"/>
    </templates>
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document >
    <metaContainer>
    <!-- Set the page title -->
    <head title="General Manager"/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <myTemplate:SelfService title="General Manager">
    <contents/>
    <tabs/>
    <pageButtons/>
    <globalButtons/>
    <pageHeader/>
    <start/>
    <end/>
    <about/>
    <copyright/>
    <privacy/>
    <corporateBranding/>
    <productBranding/>
    </myTemplate:SelfService>
    <formValue name="${bindings.statetokenid}" value="${bindings.statetoken}" id="_uixState"/>
    <table model="${bindings.HrsVEmpPhonesView1}" id="HrsVEmpPhonesView13" partialRenderMode="multiple" partialTargets="_uixState" showAll="yes" width="900">
    <contents>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'EmpNameAr')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.EmpNameAr}" columns="10" readOnly="true" onMouseOver="&quot;showTooltip(event,'This is a tooltip with a transparent shadow effect. Can you see the letters underneath the shadow?');return false&quot;"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'JobDescr')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.JobDescr}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'PhoneExt')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.PhoneExt}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'CntCellPhone')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.CntCellPhone}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'CntHomePhone')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.CntHomePhone}" columns="10" readOnly="true"/>
    </contents>
    </column>
    <column>
    <columnHeader>
    <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.HrsVEmpPhonesView1,'IaigcEmail')}"/>
    </columnHeader>
    <contents>
    <textInput model="${uix.current.IaigcEmail}" columns="10" readOnly="true" />
    </contents>
    </column>
    </contents>
    <tableSelection/>
    </table>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="goto sort" source="HrsVEmpPhonesView13">
    <invoke method="handleTableUiEvent" javaType="oracle.cabo.adf.rt.AdfUtils">
    <parameters>
    <parameter javaType="oracle.adf.model.binding.DCIteratorBinding" value="${bindings.HrsVEmpPhonesView1Iterator}"/>
    <parameter javaType="oracle.cabo.servlet.expl.ControllerImplicitObject" value="${uix}"/>
    </parameters>
    </invoke>
    </event>
    <event name="select" source="HrsVEmpPhonesView13">
    <set target="${bindings.HrsVEmpPhonesView1Iterator}" property="currentRowIndexInRange" value="${ui:tableSelectedIndex(uix, 'HrsVEmpPhonesView13')}"/>
    </event>
    </handlers>
    </page>

    Dear Shay
    Thank You for your replay
    I've read this link Before but i want an example
    I'll be so grateful if you write me a sample code,because this is the first experience for me to do this.
    Thanks in advance

  • Setting password to view source code.,,

    How can I set password to restrict users from accessing or viewing my code..

    Hi joseph,
    Welcome to SDN.
    1. SEUED001
       We can make use of this enhancement,
       and the FM EXIT_SAPLS38E_001
       (inside this enhancement)
    2.  Inside this u can
        give error message so that
       se38 does not proceed further
       to even display the source code !
    3. One can use like this :
       eg.
    Data
    DATA :  terminal LIKE usr41-terminal.
    DATA : BEGIN OF itab OCCURS 0,
           myprog LIKE sy-repid,
           END OF itab.
    My prog
    itab-myprog = 'ZAM_TEMP174'.
    APPEND itab.
    itab-myprog = 'ZAM_TEMP173'.
    APPEND itab.
      Check
    CALL FUNCTION 'TERMINAL_ID_GET'
    EXPORTING
      USERNAME                   = SY-UNAME
    IMPORTING
       terminal                   = terminal
    EXCEPTIONS
      MULTIPLE_TERMINAL_ID       = 1
      NO_TERMINAL_FOUND          = 2
      OTHERS                     = 3
    Detect
    LOOP AT itab.
      IF program = itab-myprog.
        IF terminal CS '10.101.8.101' AND operation = 'EDIT'.
         MESSAGE e999(yhr) WITH 'Not Allowed'.
        ENDIF.
      ENDIF.
    ENDLOOP.
    regards,
    amit m.

  • How to set breakpointer at any source code?

    i want to set break point any one line of source code.
    i saw the object file of this source code is loaded already
    even i use command to load it again by
    loadobjects xxx.so
    but when i set breakpoint at line of source code
    it said. couldnot find object files.
    but it is under LD_LIBRARY_PATH . and i load share libaray which contains
    this object file already.
    what should i do?

    Well, these 2 are different. If you want dbx to find shared libraries, executables ended with .so, you use LD_LIBRARY_PATH which is by the way the run-time linker would use. But for dbx to find object files in an executable, which are located in other directories, you need to use the dbx command "pathmap". Please type "help pathmap" in dbx for more details.
    - Rose

  • jsp:include Not Printing On Web Page, But In Source Code

    Hi there,
    I just had a friend install Tomcat for me on my Apache server at school and it's working great with the test .jsp page I created... until I started to use the <jsp:include> tag. Here's my source for "index.jsp":
    <html>
    <head>
    <% String title = "Hello World!"; %>
    <title><%= title %></title>
    </head>
    <body>
    <h1><%= title %></h1>
    <jsp:include page="/inc/header.jsp" flush="true" />
    </body>
    </html> Here's my source for "header.jsp":
    This is an include from the "inc" directory!When I load the page in a browser... "This is an include from the 'inc' directory!" does NOT show up on the page. However, if I view said page's source, I see this:
    <html>
    <head>
    <title>Hello World!</title>
    </head>
    <body>
    <h1>Hello World!</h1>
    This is an include from the "inc" directory!
    </body>
    </html>Can anyone please tell me why my include ("This is an include from the 'inc' directory!") is NOT being rendered on the web page... yet appears in its source? Thank you,
    CabG

    Well,
    I'm not sure why, but out of desperation I threw this:
    <%@ include file='inc/header.jsp' %>below this:
    <jsp:include page="inc/header.jsp" flush="true" />And it's working. Even after I took "<%@ include file='inc/header.jsp' %>" back out of the code. I must have done something wrong initially? I also removed the first "/" from my original:
    <jsp:include page="/inc/header.jsp" flush="true" />To make it:
    <jsp:include page="inc/header.jsp" flush="true" />But I thought I'd done that before, too. If anyone has any insight as to why it began to work after I added (then removed) the new code... love to hear it, as a new guy.
    CabG

  • Safari showing source code in browser

    This morning one of my users machines started rendering all web pages with the source code showing in the browser. It seems to be code in the head tags like javascript and css. here is an example of how safari is rendering the apple home page http://www.aloftgroup.com/safari.jpg
    According to the user they didn't change any settings or install anything new. I can't figure it out. I have checked it against other machines running the same set up and everything looks fine on there machines and all the settings are the same.
    I dumped the safari preference file com.apple.safari.plist
    Thanks in advance

    I experienced this too, and I'm not alone.
    Every now and then, this page: http://ace.dse.nl/ace_jubileum.html shows up in Safari as html code.
    I had a look at the code and changed it so that it now validates as "Valid HTML 4.01 Transitional" code in the http://validator.w3.org/ - but this doesn't seem to make any difference.
    The weird thing is that this error happens randomly. If you reload the page 20 times, it happens one or two times.
    I read on www.antipixel.com that this behaviour was reported more than a year ago, and seems to be a Safari bug.
    Any work-arounds?

  • Newsletter displays as source code when I send it

    I've read articles that said to send an HTML newsletter you
    make a webpage and copy it into the body of an email. I created an
    HTML page, copied the source code and pasted it into the body of an
    email and sent it to myself but when I received it it still just
    looked like source code. I have my email program (Entourage)
    formatted to HTML (both sending and receving). I have all images
    hard coded to a server online and all css in the body. How do I get
    it to display as a web page and not source code? Also tried this
    with Mac mail with the same result. What am I doing wrong?
    Liz

    Try these, too -
    http://www.anandgraves.com/html-email-guide#unnecessary_htmltags
    http://www.reachcustomersonline.com/content/2004/11/11/09.27.00/
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Tarvardian" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks for catching that, Murray.
    >
    >
    http://www.slipstick.com/mail1/html.htm
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> Article? 8)
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Tarvardian" <[email protected]>
    wrote in message
    >> news:[email protected]...
    >>> Hi Liz --
    >>>
    >>> I'm not familiar with Entourage, but maybe this
    tutorial on how to send
    >>> an HTML email with Outlook will give you some
    ideas. I've had good luck
    >>> with Method 1.
    >>>
    >>> Sorry I couldn't have been more help.
    >>> John
    >>>
    >>> "elhz" <[email protected]>
    wrote in message
    >>> news:[email protected]...
    >>>> I've read articles that said to send an HTML
    newsletter you make a
    >>>> webpage and
    >>>> copy it into the body of an email. I created
    an HTML page, copied the
    >>>> source
    >>>> code and pasted it into the body of an email
    and sent it to myself but
    >>>> when I
    >>>> received it it still just looked like source
    code. I have my email
    >>>> program
    >>>> (Entourage) formatted to HTML (both sending
    and receving). I have all
    >>>> images
    >>>> hard coded to a server online and all css in
    the body. How do I get it
    >>>> to
    >>>> display as a web page and not source code?
    Also tried this with Mac
    >>>> mail with
    >>>> the same result. What am I doing wrong?
    >>>>
    >>>> Liz
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • Source code jumps around when re-opening page?

    Is the following a common problem with Dreamwver CS4 Source Code view?
    In an effort to make the code read nice and neat, like everyone else I try to indent and nest my code. For example:
    <div>
              <ul>
                        <li>one</li>
                        <li>one</li>
                        <li>one</li>
              </ul>
    </div>
    But, upon saving a file and then later reopening it, I notice that in places the file does not keep my intended spaced nested layout i.e. the code jumps around on a line and I lose my neat indent spacing. For example:
    <div>
              <ul>
          <li>one</li>
                        <li>one</li>
                        <li>one</li>
                 </ul>
    </div>
    I have tried to set my preferences > code format > tab size to 10 to produce a larger indent which has improved the problem a little but not fixed it.
    Others must have experienced this frustrating problem.
    Is there anything I can do to fix it, like set further preferences to give me complete control over the page?
    Thanks in advance.

    Oh can it? I will look into this thanks Ken.
    With regards the CSS, I found out about it on Lynda.com training videos.
    - Dreamweaver CS4 with CSS Essential Training > Chapter 13: Testing and Deploying CSS > Formatting code for deployment
    The process is as follows:
    On Dreamweaver CS4 click Edit > Preferences > Code Format > CSS (button)
    On the CSS Source Format Options screen, de-select the "Each property on a seperate line" check box and click "OK" and then "OK".
    Then on your CSS page, in the left side panel, click "Format Source Code" and the "Apply Source Formatting" selection.
    The code will then condense for deployment.
    You can reverse the process just as easily going backwards.
    If anyone else has any ideas on code jumping around on a line please do let me know. Thanks.

  • How can one encrypt the source code of a given web page(html, jsp, etc.) ?

    Good Day! I'm just having a hard time of thinking how to encrypt the source code of a given web page(html, jsp, etc.) without affecting how it is previewed in an Internet Browser. What I plan is to disable the capabilities of some malicious Internet users of copying the source codes of my web pages by using the "View Source" option of Internet Explorer and the equivalent function in Netscape Navigator. Please somebody help me in this matter (I'm planning to use an IDEA algorithm using JCE)....
    It would be big help if a running code is supplied.
    Thank you very much in advance.
    God Bless!!!
    - Jonathan Untalan([email protected])

    don't know theses softs. What i know about encrypted web pages, is that you need a secure socket connection (https).
    Your web page will be ciphered, send to the user, and decipher by the browser with the signature file associated to your https connexion.
    It isn't possible to encrypt your page directly, and then decrypt them when requested.
    For the download time, only the server is responsible for this.
    if it is overloaded, then it will slow down its upload.
    Maybe you use some encryption method that require a lot of CPU time.
    For summary : you can only cipher the pipe transport, but not the transported pages.
    Good luck in your search.

  • Finding source codes and page rankings

    I have just got the new upgraded Firefox, and I would like to know how to find two things in this browser:
    (1) the source codes for any site I visit, and
    (2) the page rankings for any site I visit,
    Or aren't these available on Firefox?
    Roger

    @pkgrace, what happens when you try to view source -- no window, blank window??
    It's possible to change the source viewer in preferences, so if you have been running Firefox for a while, it might be worth checking that.
    (1) Type or paste '''about:config''' in the address bar and press Enter (click the button promising to be careful, and please do be careful!)
    (2) In the filter box, type or paste '''view_''' and pause until the preferences are filtered
    (3) If '''view_source.editor.external''' appears bold (set to true), double-click it to reset it to false. You're done, you can close about:config now.
    If that isn't it, perhaps it's related to an add-on?? Please start a new question and use the feature to include a list of add-ons and customized settings with your question.

  • How to remove blank spaces in the source code of my page?

    I created a page with the following code for testing:
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/>
         <dsp:droplet name="ProductLookup">
              <dsp:param name="id" value="xprod2046" />
              <dsp:param name="elementName" value="product" />
              <dsp:oparam name="output">
                   <dsp:valueof param="product.DisplayName"/>
              </dsp:oparam>
         </dsp:droplet>
    </dsp:page>
    It only shows the product name in the browser. But if I look at the source code of my page he created 61 lines in response to this code, where a line is the product name and the other 60 have nothing.
    I know how to remove these lines that the ATG creates no content because my project is full of these empty lines.
    Anyone ever had this problem and could help me?
    Thanks

    Hi ,
    Yup this is a problem ,
    you can use following ways :
    1- use jsp comments eg :
    <dsp:page>
    <dsp:importbean bean="/atg/commerce/catalog/ProductLookup"/><%--
         ----%><dsp:droplet name="ProductLookup"><%--
              ----%><dsp:param name="id" value="xprod2046" /><%--
              ----%><dsp:param name="elementName" value="product" /><%--
              ----%><dsp:oparam name="output"><%--
                   ----%><dsp:valueof param="product.DisplayName"/><%--
              ----%></dsp:oparam><%--
         ----%></dsp:droplet><%--
    ----%></dsp:page>
    2- End tags at next line :
    e g :
    * <dsp:page
    * ><dsp:droplet name=”xyz”
    * ><dsp:oparam name=”output”
    * >Name: <dsp:valueof param=”abc”
    * /></dsp:oparam
    * ></dsp:droplet
    * ></dsp:page>
    3- Always use TAB instead of using SPACEBAR whie writing source code.
    4 - From JSP 2.1 onwards we have a page directive trimwhitespaces ( see if that works , i was not able to ), google for it for more info
    5 - You can modify your build scripts to remove white spaces from jsps while building EAR.(complex though, as you may not want to trim all white space.)
    6 - modifying the deployment descriptor.
    <init-param>
    <param-name>trimSpaces</param-name>
    <param-value>true</param-value>
    </init-param>

  • Xletview: why not use sun's javaTV source code directly ?

    xletview : one emulator for viewing MHP Xlets on a PC;
    I see many difference from sun's code about the part of javaTV.
    Why the author Martin Sveden need to rewrite them and not use sun's javaTV source code directly ?
    Thank you for your any answer.
    Sorry for my horrible english.

    XleView is a fine effort, but it has its limitations. I tried using it for the GunBunny demo available in the JavaME SDK 3.0 Eary Access available in
    http://java.sun.com/javame/downloads/sdk30ea.jsp
    and I encountered some of thost limitations. What Sveden does it several tricky manipulations in a classloader for the Xlet. In particular, he translates bytecode as he loads the Xlet's classes, changing some class names, such as changing
    java.awt.Toolkit
    tto
    xjava.awt.Toolkit
    This works up to a point. This version of Toolkit usually just turns around calls java.awt.Toolkit's corresponding routine, but he deliberately he does not implement the ubiquitous
    public Image createImage(URL url)
    When I downloaded his source and tried adding ths into his code, I then encountered at runtime
    Uncaught error fetching image:
    java.lang.NullPointerException
    at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:97)
    at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:107)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240)
    at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
    at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    I think that this is some optimization within J2SE where they do not wait for the image to load and do the fetching in a separate thread. I do not know if there is some way to force the Sun's JVM to disable this optimization and I have not investigated furher, but I did email Svenden. I noticed that the current version of XleTView is 0.3.6 which is dated June 2004 and the web site http://www.xletview.org/ has had not news since 2005 .
    I note that Svenden provides an elegant user interface but I advise you not try to learn the API's from his classes: he makes no effort to keep his implementation separate from the API standards so, for instance, his version of HScene is
    package org.havi.ui;
    public class HScene extends Container
    implements HComponentOrdering, ImageObserver, MenuContainer, Serializable {
    whereas the real standard is
    public class HScene extends Container
    implements HComponentOrdering {
    I hate to critize such a fine effort, but it is best to keep an imlementation separate from the public API.
    I agree that having a lightweight, simple and Java feature-complete Xlet viewer running would be very helpful, especially if BD-J gains much popularity. I have found trying to work with the vendor players described at
    http://wiki.java.net/bin/view/Mobileandembedded/Blu-RayDiscHelloWorld
    to be frustrating. I tried all four mentioned and I have gotten none of them to work for me yet. These are huge downloads and the "Intro Version" of Arcsoft pointed to at the SDK 3.0 Early Access page
    http://www.arcsoft.com/products/totalmediatheatre/
    just gives a "File not found" HTML page. This forum post mentions that perhaps it was recently taken down?
    http://www.arcsoft.com/forum/forum_posts.asp?TID=1084
    I have already emailed Michael Downs of Arcsoft since he is mentioned here:
    http://wiki.java.net/bin/view/Mobileandembedded/BDJPCPlayers
    What did work for me was to take Sun's JavaTV 1.1 Reference Implementation and PowerDVD's BDJ.jar and hack/fix a few classes to get GunBunny to work within the RI's RunXlet program. This is not trivial but I will will describe:
    Download the JavaME 3.0 SDK EA and then download the correct version of PowerDVD that the SDK page points to:
    http://www.brothersoft.com/powerdvd-download-50794.html
    Download the RI binary and source of Java TV API 1.1
    http://java.sun.com/javame/technology/javatv/index.jsp
    Since I am too lazy to use anything but the latest 1.6 JRE as a runtime, I have to fix
    com.sun.tv.media.util.MediaThread
    to comment out its stop() method. This is becase stop() was deprecated and made final in J2SE 1.5
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop()
    http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html
    Next, I had to mae a change to Sun's JavaTV implementation to keep the GunBunny demo happy by providing a ServiceContext. The RunXlet program calls SIEmulator, but that environment does not provide a ServiceContex, so I added one back in:
    com.sun.tv.receiver.SIEmulator
    private static ServiceContext svcctx = null;
    Add before every call to new AppSignalEvent() and add the svcctx as the second-to-last argument:
    if(svcctx == null){ try { svcctx = new com.sun.tv.ServiceContextImpl(); }catch (Exception e){ e.printStackTrace(); } }
    I then had to hack a few PowerDVD classes, which is evil of me. First, I had to build an empty class by the name of
    sun.util.BDJPlugin
    becuase some PowerDVD class extends it but it is not in its BDJ.jar and then I had to reverse-compile (evil!) and modify one of their internal classes to avoid a dependency on their native methods. What I ended up with was a hacked version of com.cl.bdj.helper.CUtil to avoid the native methods which access the registry where they query for registry settings but also provide a default value (which I return).
    com.cl.bdj.helper.CUtil
    private static String pGetRegistryString(long i ,String string ,String string3) {
    return string3;
    private static int pGetRegistryInt(long i ,String string ,int j) {
    return j;
    The last thing I had to do was to change com.hdccookbook.gunbunny.BaseXlet, to use the JavaTV container rather than the org.havi one:
    import javax.tv.graphics.TVContainer;
    import java.awt.Container;
    change
    // protected HScene scene;
    protected Container scene;
    public final void run() {
    // waitForPresenting();
    // scene = HSceneFactory.getInstance().getDefaultHScene();
    scene = TVContainer.getRootContainer(xletContext);
    In order to having working keys, I had to add the KeyListener interface to BaseXet and
    run(){
    addKeyListener(this);
    and then add a near duplicate of the org.dvb.event.UserEvent* stuff that is already there:
    public void keyPressed(KeyEvent e){
    switch(e.getKeyCode()){
    case KeyEvent.VK_0:
    case KeyEvent.VK_1:
    case KeyEvent.VK_2:
    case KeyEvent.VK_3:
    case KeyEvent.VK_4:
    case KeyEvent.VK_5:
    case KeyEvent.VK_6:
    case KeyEvent.VK_7:
    case KeyEvent.VK_8:
    case KeyEvent.VK_9:
    numberKeyPressed(e.getKeyCode() - KeyEvent.VK_0);
    break;
    case KeyEvent.VK_ENTER:
    enterKeyPressed();
    break;
    case KeyEvent.VK_LEFT:
    arrowLeftKeyPressed();
    break;
    case KeyEvent.VK_RIGHT:
    arrowRightPressed();
    break;
    case KeyEvent.VK_UP:
    arrowUpPressed();
    break;
    case KeyEvent.VK_DOWN:
    arrowDownPressed();
    break;
    public void keyReleased(KeyEvent e){
    // System.out.println("Released: e="+e+" code="+e.getKeyCode());
    public void keyTyped(KeyEvent e) {
    // System.out.println("Typed: e="+e+" code="+e.getKeyCode());
    It then comes up and functions, but the rendering is not very good. Again, this is complete hack. Running the Java TV 1.1 RI in a JRE 1.6 is not supported. If you try to run any of the other examples, you will discover that the XML parsing is broken in JRE 1.6 with this message:
    Parsing failed: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
    Exception: Invalid byte 1 of 1-byte UTF-8 sequence., file: lib\JavaTVSampleFile01.xml
    and you have to go and change the lines in
    lib\JavaTV.properties
    from
    ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    # ServiceFileHandler=SampleData_01
    to
    # ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
    ServiceFileHandler=SampleData_01
    and build samples\db\SampleData_01.java and put it in your classpath along with all these other hacks.
    Nonetheless, if you want to develop a somewhat generic Xlet that uses some BD-J features, that is how you might do it. But the moment you exercise anything else in the vendor's BDJ.jar that simply doe snot work outside of their environment or invokes one of their native methods, you are again stuck.
    It would be nice if Sun would at least bother to update the JavaTV RI with the fixes I hae mentioned. Their "jmflite" implementation does not render perfecly but at least it would give the programmer something to work with without having to deal with an older JRE, etc.
    Andrew
    Edited by: AndrewMorrow on Oct 20, 2008 2:48 AM

  • Why does debugger not find source code when compiler output has been directed to the root directory, but the source is in a sub-directory, using Forte for JAVA community edition V3.0

    I have configured Forte to put compiler output, i.e. my classes, in the root directory of the project. I now find that the debugger does not find the source code when it is in a sub-directory. However, if I temporarily copy a classes' source code to the root directory the debugger will display it.
    To direct compiler output to the root directory I selected Project >Settings>Compiler types, then External Compiler ( which is the default compiler in my case ) and set Target to be the root project directory. This is the only directory it will allow.

    This Forum is for Forte 4GL or UDS as its called today. I am not sure if anybody is going to be able to answer your question here. Sorry.
    ka

Maybe you are looking for