Perspective bean rendering in IE 5

I used the Perspective Bean comming with the Oracle JDeveloper and it really gives fascinating results without much work. However when I add this bean to an applet, this applet is never shown in the IE 5.0 to 5.5 although I can noramlly see it in the applet viewer and the Netscape Navigator versions 4.76 and 6.0.
What i used to test is the ListenAndRotate example given in the JDeveloper's help and on the www.threedgraphics.com web site.
What's wrong with IE when it comes to this bean added to my applet?
Do u have any work around guys? Please tell me and thanks in advance.

Well..
I can run the example chart from the threedgraphics web site. And I can run any other chart from any other place.
I will download the java plugin and try again, but the idea is: When I move my mouse to the area of the chart, IE gives me a message of "Applet started" in the console mesaage area!!
By the way.. I tried IE up to version 5.5 and it failed!
I'll send the same message to threedgraphics too.
Thanks a lot.
null

Similar Messages

  • Question on PG design-time web bean: rendered false

    Is there a rule or documentation on the behavior of web beans in PG when design-time property rendered is set to False?
    Bean instance is unpredictable when using findChildRecursive method of OAWebBean.
    Use Case:
    Update is needed on an existing page. We want this new item to display only on specific scenario.
    public void processRequest(final OAPageContext pageContext, final OAWebBean webBean) {
        final boolean metCriteria = true;
        if (metCriteria) {
            final OAWebBean bean = (OAWebBean)webBean.findChildRecursive("BeanId"); //alas! bean can be null!
            bean.setRendered(true); 
    }Workaround is do it negatively w/c is a little inconvenient. Set design-time render to true, and do setRendered(false) in PR when new scenario criteria is not met. You want rendered property to be false by default so you are a little sure that original behavior is not affected.
    public void processRequest(final OAPageContext pageContext, final OAWebBean webBean) {
        final boolean metCriteria = false;
        if (!metCriteria) {
            final OAWebBean bean = (OAWebBean)webBean.findChildRecursive("BeanId");//Bean is never null.
            bean.setRendered(false);
    }Any ideas?

    Hi
    Better to segregate the EJB's and put it in seperate controller keep atmost 30 in one controller (you have around 3-4 component ). Any component which is going to use in other component is basically based on create on demand priniciple automatically by framework.
    or
    as given in point third create a component , with say 8-10 Custom Controller  implement the all the methods and put a same method signature in Component Controller, call the same through interface thats it.
    Best Regards
    Satish Kumar

  • CommandButton with conditional-rendered doesn't work???

    Hi,
    My problem:
    I just would like to show the Submit-Button (commandButton) after I change the value of the "selectOneMenu ". So for that I set the boolean variable for the rednerer to true. After that the Submit-Button is shown. But when I click on that Submit-Button, the action is not invoked?
    But when I remove the "rendered="#{bean.rendered}" attribute from the commandButton, the action is invoke!
    What do I wrong?
    Would be great if someone could help me!
    <h:form id="choose2">
      <h:panelGrid columns="2" rowClasses="panelChooseRow" columnClasses="panelChooseCol">
        <h:outputText value="#{msgs.beanUserName}" />
        <h:panelGroup>
          <h:selectOneMenu id="userMenu" value="#{bean.userName}" onchange="submit()" required="true">  
             <f:selectItems id="userItems" binding="#{bean.userItems}" />
          </h:selectOneMenu>
          <h:message for="userMenu" errorClass="errMsg" />
        </h:panelGroup>
        <h:outputText value="" rendered="#{bean.rendered}"/>
        <h:commandButton id="send" value="#{msgs.beanSave}" action="#{bean.actionModify}" rendered="#{bean.rendered}"/>
      </h:panelGrid>
    </h:form>
    Bean-Code:
      public void setUserName( String newValue )
        _userName = newValue;
        _bRendered = true;
    public String actionModify()
        System.out.println("actionModify");
        return null;
      public boolean isRendered()
        return _bRendered;
      }

    Hi,
    well, I don't see what could be wrong in your code, but I have an example working.
    So I will just post my code and you can compare.
    Some code snipped off my JSF Site:
    <h:commandButton id="upload"  rendered="#{uploadFileBean.check}" onclick="submit()" action="#{uploadFileBean.upload}" value="#{messages.upload}" styleClass="bgTextBright" tabindex="4"/>
    <h:commandButton id="correct" rendered="#{not uploadFileBean.check}" onclick="submit()" action="#{uploadFileBean.correct}" value="#{messages.correct}" styleClass="bgTextBright" tabindex="4"/>Here the code in my uploadFileBean:
    private boolean check;
        public boolean isCheck()
            return check;
        public void setCheck(boolean b)
            this.check = b;
    public String upload()
            String retVal = Constants.UPLOAD_OK;
            return retVal;
    public String correct()
            String retVal = Constants.CORRECT_OK;
            return retVal;
        }There is only one commandButton shown (depending on my check property) and if I press it, the associated action method is called.
    Did you have a look, if you call the right method? Meaning, does the method exist in the given bean? Do you have your bean declared in the faces-config.xml?
    As I can tell you, the posted code works fine, so hope this could help you.

  • Rendered property equal result of method call ? Can it be done

    Hi Guys
    Is it possible to set the rendered property to the result of a method call.
    So for example I have an Input Text Item and I want to turn it on or off depending on whether the value of the date selected is a saturday.
    I was hoping to add a method to the backing bean called boolean isSaturday() and use the result of that on the Rendered property.
    Does anyone know if this is possible and provide an example of the EL syntax required to perform this function.
    Thanks in advance
    Kris

    Hi Kris,
    off course this is possible using Expression Language. Mention following condition in the rendered attribute of a (Faces) UI component and the method (getter) in the backing bean:
    rendered="#{userInfo.admin}" UserInfo class:
        private boolean admin = false;
        public void setAdmin(boolean admin) {
         this.admin = admin;
        public boolean isAdmin() {
         return admin;
        }The component will render depending on the value of the admin variable.
    Regards,
    Koen Verhulst

  • Differences between servlet and backing bean

    Could anyone please tell me whether everywhere that servlet can be used, backing bean and JSF can be used too? Are JSF and backing beans the new alternatives for JSP and servlets? please clarify the relations between these concepts for me.
    Thanks
    Laura

    Laura_Jlover wrote:
    Thank you. You mean backing beans can do every thing that servlets can do? Yes.
    JSF pages can work with servlets? Strictly speaking, every JSF page gets passed through the FacesServlet which does all the task. The lifecycle, creating the FacesContext, putting the request parameters in backing beans, rendering the response, etcetera.
    what are the advantages of servlet and the advantages of backing beans? what's the disadvantages? In general, which one is better?In context of JSF, you should be using backing beans, not Servlets. There is nothing what a Servlet can offer you as an advantage in the JSF context. It is simply not an option/alternative. You can't even call a Servlet (directly) using a JSF h:form. You, however, can access backing beans in any JSP or Servlet outside the JSF context.
    Just carefully read the JSF specification or buy a JSF book and the picture will be clear.
    JSF spec: [http://jcp.org/aboutJava/communityprocess/final/jsr252/index.html].
    JSF book: [http://www.amazon.com/JavaServer-Faces-Complete-Reference/dp/0072262400].

  • Query Regarding Hide/Show Bean

    All,
    Is there any way by which we can control rendering (Controller processRequest call)of the Hide/Show and one click and disclose it, Render it.( Controller processRequest call)
    Seen that even if the hide/show is in hidden state , still the Region controller processRequest is being called. If this is the case, how the hide/show component is advantageous over other webBeans on performance view point?
    Thanks
    Joseph

    My requirement is not call the processRequest of the region when its not rendered in disclosed mode.
    >>> When a bean is enabled on a page, its associated controller will always be called. Its the standard behavior. How would you otherwise do the related processing if some action is performed on the bean? Check the initial chapters of dev guide on the page bean rendering and controller method calls.
    If you have some conditional code, put it inside the main page's controller and execute on show/hide bean's status.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Distribution of Perspective for Java

    Can I include JavaBean "Perspective for Java" from JDeveloper 3.1.1.2 in my application and distribute it or I must pay some licence fee?
    Thank you
    Matic

    Hi,
    If you develop your application using an Oracle product, then you can redistribute the Perspectives bean with your application without an additional license fee.
    See the Release Notes for information on those libraries that do require a runtime license.
    null

  • Update "Pay on" value on approved PO - can it be done?

    Hi,
    We have some approved, receipted POs on the system (using R12.1.1).
    When the POs were created, the Suppliers used on the POs were not flagged as Pay on Receipt.
    Therefore when you open the POs, and click on the Terms button, the "Pay On" field is grayed out, and empty.
    After the POs were raised, the Suppliers were updated to set them to Pay on Receipt.
    We have got back to the POs, unreceipted them, and unreserved them. The "Pay On" field is still empty, and grayed out, and cannot be updated.
    Is anyone aware of anything we can do to update the Pay On values of the POs?
    Any advice much appreciated.
    Thanks

    Hi Kris,
    off course this is possible using Expression Language. Mention following condition in the rendered attribute of a (Faces) UI component and the method (getter) in the backing bean:
    rendered="#{userInfo.admin}" UserInfo class:
        private boolean admin = false;
        public void setAdmin(boolean admin) {
         this.admin = admin;
        public boolean isAdmin() {
         return admin;
        }The component will render depending on the value of the admin variable.
    Regards,
    Koen Verhulst

  • NEW 9iAS PORTAL UPGRADE SCRIPTS NOW AVAILABLE

    Based on detailed customer and internal feedback, Oracle9iAS Portal Product Development is now making available NEW and significantly IMPROVED versions of the 9iAS Portal Upgrade Scripts as of 4/20/2001.
    [list]
    [*]Oracle9iAS Portal Upgrade Scripts (2.2/3.0.3.3.3 -> 3.0.6) for Windows NT
    [*]Oracle9iAS Portal Upgrade Scripts (2.2/3.0.3.3.3 -> 3.0.6) for Solaris
    [list]
    The upgrade scripts provided here (at the links above) will allow you to upgrade the following environments:
    a) Your existing WebDB 2.2 installations to Oracle9iAS Portal 3.0.6.
    b) Your existing Oracle Portal Early Adopters Release (3.0.3.3.3) to Oracle9iAS Portal 3.0.6.
    For specific upgrade documentation (also updated!), please consult the links below:
    [list]
    [*]Release notes for Oracle9iAS Portal 3.0.6 Upgrade
    [*]Oracle9iAS Portal Upgrade Guide for NT/2000
    [*]Oracle9iAS Portal Upgrade Guide for Solaris
    [list]
    NOTE: For the final step of the upgrade process, you will also need to download additional upgrade scripts to take you from Oracle9iAS Portal 3.0.6 to the current 3.0.8.9.8 Oracle9iAS Portal release.
    NOTE: Scripts and Doc for the 9iAS Portal 3.0.6 to 3.0.8 Upgrade are expected to be made available later this week (April 24-27)
    The following is a list of bugs and issues addressed with the latest 9iAS Portal 3.0.6 upgrade scripts.
    Upgrade Bugs Fixed for the 2.2 -> 3.0.6 upgrade
    1697813 - NT SCRIPT IS ASKING FOR VALUES 3 AND 4
    1697862 - APPIMP.CSH
    1697863 - UNEXPECTED ERROR ENCOUNTERED ERRORS OCCURED IN APPIMP.CSH
    1697828 - SB: MISSING LINKS FOR THE FOR ITEMS
    1697781 - MIGRATION FAILED
    1714261 : APPLICATION IMPORT SCRIPT FAILS
    1716379 : IMPORT SCRIPT TERMINATES ABNORMALLY
    1712877 : EXPORTING A APPLICATION FAILS
    1715551 : NO ACTION LINKS FOR LOVS WHEN IMPORTED FROM WEBDB SCHEMA !!
    1740211 : AFTER UPGRADE EDITING THE SCHEMA GIVING ERROR
    1697795 - MISSING TEMPLATE AFTER UPGRADE (DOC BUG)
    1697839 - 22-306:DOC: NEEDS TO DOCUMENT
    1697835 - 22-306:DOC: NEEDS TO DOCUMENT
    Additional Bug Fixes
    1703032 - IMPROVE PERFORMANCE FOR THE FOLDER IN EDIT-MODE.
    1703040 - EDIT LINKS APPEAR ON FOLDERS EVEN THOUGH USER DOES NOT HAVE PRIVILEGES.
    1703052 - SUBFOLDERS UNDER THE FOLDERS NOT ALIGNED PROPERLY
    1703063 - PERSPECTIVE PAGE RENDERS SLOWLY
    1703070 - NAVBAR LOGON/LOGOFF LINKS IS HARDCODED TO GO THE CONTENT AREA ROOT FOLDER
    1703072 - NAVBAR LOGON/LOGOFF LINKS DOES NOT WORK FOR PERSONAL FOLDERS.
    1689813 - ITEM LINK IN SEARCH RESULTS SHOULD BE DIRECT ACCESS URL
    null

    Richard,
    You'll need to have 1.0.2.2 to be installed on the middle tier before performing the upgrade for your portal 3.0.9 upgrade repository on the database end. So that means, you'll need to wait for the Linux download of iAS 1.0.2.2 to be available before beginning your upgrade of the portal repository, assuming that your middle tier of iAS is also on a Linux box.
    iAS 1.0.2.2 does indeed include Portal 3.0.9, of which Portal 3.0.9 components will be installed during the upgrade process along with the upgrade of the middle tier. During the upgrade process, the installer (from my personal experience on NT), will notify you that it is performing an upgrade installation of your middle tier, provided that you specified the middle tier's ORACLE_HOME when executing the oracle installer.
    Just be sure to read and follow the 9iAS Migration guide before beginning your upgrade of the middle tier to iAS 1.0.2.2. After upgrading the middle tier to 1.0.2.2, the actual upgrade of the portal repository was extremely simple by comparison.
    The upgrade of the portal repository took a few hours (my recommendation is to invoke it off before leaving for the evening), and it will leave a detailed logfile for you to peruse afterwards, if you choose).
    Best Regards,
    Harry

  • Component binding return null value

    I'm migrating a JSF 1.2 application to JSF 2.1, specificly I'm currently using mojorra 2.1.24.
    The application consists of request scoped beans, and in order to pass data between requests, it embeds the data inside UI components.
    The following behaviour works well with JSF 1.2, but not with JSF 2.1.
    The application has the following configuration:
    <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>client</param-value>
    </context-param>
    The page contains the following snippet:
    <h:form prependId="false">
         <h:inputHidden binding="#{bean.inputHidden}" />
         <h:panelGroup rendered="#{bean.rendered}">
          <h:commandLink value="onAction" action="#{bean.onAction}" />
         </h:panelGroup>
    </h:form>
    The bean is the following:
    @ManagedBean
    @RequestScoped
    public class Bean {
      private UIInput inputHidden;
      private AItem item;
      public setInputHidden(UIInput inputHidden){
        this.inputHidden = inputHidden;
        if(item != null){ this.inputHidden.setValue(item); }
      public AItem getItem(){
        return (AItem) getInputHidden().getValue();
      // other getter/setter
      public String onNavToPage(AItem item){ this.item = item; return "page"; }
      public String onAction(){ //... do something return ""; }
      public boolean isRendered(){ return getProcessItem() != null; }
    The steps are the following:
    to navigate to page page the method bean.onNavToPage is invoked from within another page;
    upon page rendering the bean.item is set as bean.inputHidden value;
    after the page is diplayed, the command link is pressed.
    At this point no command link is invoked, because the bean.inputHidden.getValue() returns null, and the command link is not processed.
    I noticed that the inputHidden parameter passed to the setInputHidden method during restore view phase has, inputHidden.getValue() == null, no value has been saved previously in the view.
    I would guess that something has changed in the component state management, but debugging the JSF code I didn't find what.
    Debugging JSF code I found that the component state has been masked before the state has been saved in the view, so the ComponentStateHelper.saveState saves the deltaMap and not the defaultMap, where all the state has been put.
    public Object saveState(FacesContext context) {
            if (context == null) {
                throw new NullPointerException();
            if(component.initialStateMarked()) {
                return saveMap(context, deltaMap);
            else {
                return saveMap(context, defaultMap);
    is this a bug?
    If not, how can I restore JSF 1.2 behaviuor and save the defaultMap?
    Thanks in advance for the help.

    0.10: Saved session state: 6385226710016200 "P327_OU_NAME" changedValue="test"
    0.10: ...P327_FK_ORGUNIT session state saving same value: "%null%"
    0.15: Saved session state: 6388922235040486 "P327_OU_DESC" changedValue=""
    0.15: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.15: Branch point: BEFORE_COMPUTATION
    0.15: Computation point: AFTER_SUBMIT
    0.15: Perform Branching for Tab Requests
    0.15: Branch point: BEFORE_VALIDATION
    0.15: Perform validations:
    0.16: Branch point: BEFORE_PROCESSING
    0.16: Processing point: AFTER_SUBMIT
    0.16: ...PLSQL (AFTER_SUBMIT) INSERT INTO INDIT_PS_ORGUNIT ( OU_ID, FK_ORGUNIT, OU_NAME, OU_DESC ) VALUES ( INDIT_PASS_SEQ_GENERIC_ID.NEXTVAL, :P327_FK_ORGUNIT, :P327_OU_NAME, :P327_OU_DESC )
    0.16: Show ERROR page...
    0.17: Processing point: AFTER_ERROR_HEADER
    0.18: Processing point: BEFORE_ERROR_FOOTER
    ORA-01722: invalid number
    the table was created with:
    CREATE TABLE INDIT_PS_ORGUNIT (
    OU_ID NUMBER(15) PRIMARY KEY,
    FK_ORGUNIT NUMBER(15) NULL,
    OU_NAME VARCHAR2(30) NOT NULL,
    OU_DESC VARCHAR2(30) NULL,
    OU_DELETED DATE NULL
    what i see is that the status is "%null%" and not really "" (NULL, nothing, ...).
    so what can i do to insert a null value from a select list?
    i gave up RTFM. because i found nothing (NULL) ?!?!

  • Integrate richfaces and primefaces

    hi,
    i'm developping an application using richfaces.
    now,i would like to add primefaces to use its components and specially chart component.
    please ,help me to do this

    Hi all,
    I'm the next stumbling over the same problem.
    I have some dynamic page part that is fetched via a4j:poll. Inside there are some primefaces panels. My problem is, that the primefaces javascript code is not invoked after the content is placed inside the DOM.
    the code looks like this:
    <a4j:outputPanel id="panel">
    <p:panel rendered=#{bean.rendered}>
    Something...
    </p:panel>
    <a4j:poll action=#{bean.enableRender} rendered=#{not bean.rendered} reRender="panel"/>
    </a4j:outputPanel>initially, rendered is false, so that the poll is rendered. The poll then calls the bean's enableRender method, which sets rendered to true and the p:panel is rendered.
    PrimeFaces seems to use javascript to set the css-classes for the panels. But this JS-Code is never invoked...

  • Large trade show graphics - question on laying one graphic all across

    Hi I am using PSCS4 and I am on XP.
    I thought I would ask this before I began my project.
    I have a job to create a trade show booth display. There are 13 wall panels graphics set up. I normally design each one by one in Photoshop. 11 are the same size, one is half the size and one doesn't really apply to this question as it is small and above a door.
    I have been instructed to apply a background image of a map of the world to these graphics, but not on each separate graphic, but acorss the whole area of panels. (might be splitting it up in half because there is one side and then other, like an L shape. Here is a photo of a drawing I received with no artwork on it yet.
    I wanted to know if there was a way to do this as I think it would get tricky with bleeds involved and such. There are also slats inbetween each panel (as you can see from the photo) and I guess I kinda want things to line it up right. I could do it the way I normally would, just making sure I crop in the right places, but wondered if there was a way to lay it all out somehow differently.
    Thank you.

    Hi Stella.
    I'm a little confused about whether you are talking about making the full sized panels for the booth or panels for a perspective view rendering. MTSTUNER has addressed the second possibility. Here's some more info you might find useful either way.
    There are 13 wall panels graphics set up. ...11 are the same size, one is half the size and one doesn't really apply to this question as it is small and above a door. ...I have been instructed to apply a background image of a map of the world to these graphics, but not on each separate graphic, but acorss the whole area of panels. (might be splitting it up in half because there is one side and then other, like an L shape.
    If I understand you correctly, you are asking how to create the something like below. Except that there will be additional graphics on each panel over the map.
    Here is one way.
    Make a front view of the walls: First create a rectangle the same aspect ratio as the panels. Size it appropriately. Then copy it and move it to the right the width of the panel. Repeat the process until you have made 13 panels. I have marked the corners with yellow. The door is black (duh!) Now scale the panel to the left of the right inside corner to width 50% to make it a half panel. Now move the panels on the right left until everything lines up again.
    Now paste your map in and transform it to match your wall view.
    Now split the map into two parts. We need to split it over the door. Thanks to the miracle of plate tectonics we have a convenient place to split the map there. The Atlantic Ocean on a line east of New Foundland and west of Africa. With the Marquee Tool set to Show transform controls, I selected the left half and dragged the right handle to the corner (yellow line). Then did the same thing with the right half, aligning the left edge with the right side of the door. (To avoid resampling the map twice, you could split it before you add it, then transform each half to fit.)
    Below is the result. Now you can create your individual panels.
    To create the first panel on the left, Ctrl+Click on the panel layer's thumbnail. Select the map layer.
    Now copy the selection to a new layer (Ctrl+J). I would name this layer Map Panel 1 (brilliant!). It is now the background for the additional graphics. Repeat for each panel, including the half panel.
    Below are the first five panels, comprising the left wall (I would group them). I added a stroke to the outside of the panels to simulate the panel frames.Then nudged each of them right to realign them. Now you may select each panel and add the additional graphics over the map. You will work on one panel at a time, but you can see how the wall looks as a whole. Repeat for the remaining three walls. (Or you could consider the three panels right of the door going aroud the corner as one.)
    Whether you are creating full size panels or a perspective view, the above method could work for you. At least conceptually.
    To apply the finished artwork to a rendering of the booth, create a perspective view of the room as described by MTSTUNER. Then merge a copy of each wall group into a new wall layer. Apply each new wall layer to the perspective grid. Below, you can see the result. The artwork has been forshortened and skewed to the proper perspective.
    (The following Screenshot is presented in DogVision)
    FWIW.
    Peace,
    Lee

  • Calling a method in the backing bean when rendering a table

    I'm rendering a table that begins with :
    <h:dataTable value="#{showRooms.rooms}" var="rowRoom" ...
    There are several properties I'm displaying. Some are just displayed as they appear from the database like:
    <h:outputText value="#{rowRoom.roomNumber}"/>
    However, some I need to translate so they display a more meaningful message to the users. For example, status is stored 'A', or 'NA', but this should display 'Available' or 'Not Available'. To do this, I'm taking an idea I saw in another forum by providing a method to call and translate the text. For example:
    public String getDisplayedStatus(String status) {
    if (status.equals("A") {
    return "Available";
    } else {
    My problem is how can I invoke a method and pass in the current value of status for that row in the table. I think I need something like this:
    <h:outputText value="#{showRooms.getDisplayedStatus(#{rowRoom.roomStatus})"/>
    But that doesn't work. I can invoke the getDisplayedStatus method when passing in a hardcoded parameter, but it won't translate the value of both expressions(the method and the method param). How can I achieve this?
    Thanks,
    Mike

    Yes. I've done that and it does work....sort of. It works as long as I refer to it as 'displayStatus'. It looks up the getDisplayStatus and returns a value. The problem is getting the current status value from the object in the List. For example, the 3rd row in the table has either 'A;' or 'NA' for status. I need to know this value in order to do my translation. The way I see it, I either need
    1.)a way to call a method on the backing bean and pass the value of status from the current row into the method.
    -or-
    2.)in getDisplayStatus, I need a way to access the current row's value, perhaps through an expression. This appears to be what you can do in the AbstractPageBean class that all backing beans inherit in Studio Creator. I've seen code in a getter like 'getValue(#{currentRow.status}'), but I don't know how that is done. I looked for the source to AbstractPageBean on the web but couldn't find it - maybe its not open-source.
    Anyway, please share if anyone has a solution. I'm sure this has been done before.
    Thanks,
    Mike

  • RichTree is not rendered properly when created in Managed Bean

    HI,
    I am trying to create af:tree in managed bean using RichTree. It is not rendering the tree nodes properly. It is only showing the nodes, node text is missing. I am using EL expression to show the value in node element. But when I am creating the af:tree in jspx page, it is working properly.
    Following is the code,
    JSPX Page ------------------------------------------------------------>
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document id="document1" title="Tree Test">
    <af:form id="form1">
    <af:panelGroupLayout layout="horizontal">
    <af:spacer width="50" height="50"/>
    <af:panelGroupLayout layout="vertical">
    <h1>RCF Tree Component Test</h1>
    <af:spacer height="10" width="10"/>
    <h3>ADF Tree in JSPX</h3>
    <af:spacer height="5" width="10"/>
    <af:tree binding="#{treeTest.tree}" var="node" value="#{treeTest.treeModel}" rowSelection="multiple" rowDisclosureListener="#{treeTest.toggle}" selectionListener="#{treeTest.TableSelect}" inlineStyle="border:1px solid black;">
    <f:facet name="nodeStamp">
    <af:panelGroupLayout>
    <af:image source="#{node.icon}" inlineStyle="margin-right:3px; vertical-align:middle; height:14px; width:16px;"/>
    <af:outputText value="#{node.description}"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:tree>
    </af:panelGroupLayout>
    <af:panelGroupLayout layout="vertical">
    <af:spacer height="65" width="10"/>
    <h3>ADF Tree in UI Bean</h3>
    <af:spacer height="5" width="10"/>
    <af:tree binding="#{treeTest.treeInBean}" inlineStyle="border:1px solid black;"/>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </af:form>
    </af:document>
    </f:view>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:treeTest-->
    </jsp:root>
    Managed Bean ------------------------------------------------------------>
    import java.io.File;
    import java.util.ArrayList;
    import java.util.List;
    import javax.el.ExpressionFactory;
    import javax.el.ValueExpression;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.rich.component.rich.data.RichTree;
    import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
    import oracle.adf.view.rich.component.rich.output.RichImage;
    import oracle.adf.view.rich.component.rich.output.RichOutputText;
    import org.apache.myfaces.trinidad.event.RowDisclosureEvent;
    import org.apache.myfaces.trinidad.event.SelectionEvent;
    import org.apache.myfaces.trinidad.model.ChildPropertyTreeModel;
    import org.apache.myfaces.trinidad.model.TreeModel;
    public class TreeTest {
    private RichTree tree = new RichTree();
    private TreeModel treeModel;
    final public static String ROOT_DIR = ".";
    private RichTree treeInBean = new RichTree();
    public TreeTest() {
    List nodes = new ArrayList();
    FileNode rootNode = buildFileTree(ROOT_DIR);
    nodes.add(rootNode);
    treeModel = new ChildPropertyTreeModel(nodes, "children") ;
    private void createTreeInBean(List rootNode){
    ChildPropertyTreeModel l_model = new ChildPropertyTreeModel();
    l_model.setChildProperty("children");
    l_model.setWrappedData(rootNode );
    treeInBean.setValue( l_model);
    treeInBean.setRowSelection("multiple");
    treeInBean.setVar( "node" );
    RichOutputText comp = new RichOutputText();
    FacesContext l_context = FacesContext.getCurrentInstance();
    ExpressionFactory l_factory = l_context.getApplication().getExpressionFactory();
    ValueExpression l_expression = l_factory.createValueExpression( FacesContext.getCurrentInstance().getELContext(),
    "#{node.description}", String.class );
    comp.setValueExpression( "value", l_expression );
    RichImage img = new RichImage();
    img.setInlineStyle("margin-right:3px; vertical-align:middle; height:14px; width:16px;");
    ValueExpression l_expressionImg = l_factory.createValueExpression( FacesContext.getCurrentInstance().getELContext(),
    "#{node.icon}", String.class );
    //img.setValueExpression( "source", l_expressionImg );
    img.setSource("images/img1.png");
    RichPanelGroupLayout layout = new RichPanelGroupLayout();
    //layout.getChildren().add( img);
    //layout.getChildren().add( comp);
    //treeInBean.getChildren().add( layout);
    treeInBean.setNodeStamp( layout);
    treeInBean.getNodeStamp().getChildren().add( img );
    treeInBean.getNodeStamp().getChildren().add( comp );
    private static FileNode buildFileTree(String dirpath) {
    File root = new File(dirpath);
    return visitAllDirsAndFiles(root);
    private static FileNode visitAllDirsAndFiles(File dir) {
    FileNode parentNode = process(dir);
    if (dir.isDirectory()) {
    String[] children = dir.list();
    for (int i = 0; i < children.length; i++) {
    FileNode childNode = visitAllDirsAndFiles(new File(dir, children));
    parentNode.getChildren().add(childNode);
    return parentNode;
    public static FileNode process(File dir) {
    FileNode node = new FileNode(dir);
    return node;
    public void TableSelect(SelectionEvent p_event) {
    System.out.println(" Selection Event = " + p_event);
    RichTree l_tree = (RichTree)p_event.getSource();
    System.out.println("Display Row = " + l_tree.getSelectedRowKeys());
    TreeModel model = ((ChildPropertyTreeModel)l_tree.getValue());
    for (Object key : l_tree.getSelectedRowKeys()) {
    model.setRowKey(key);
    System.out.println("Model Data = " + ((FileNode)model.getRowData()));
    public void toggle(RowDisclosureEvent p_rowDisclosureEvent) {
    System.out.println(" Dislosure Event = " + p_rowDisclosureEvent);
    public void setTree(RichTree tree) {
              this.tree = tree;
    public RichTree getTree() {
    return tree;
    public void setTreeModel(TreeModel treeModel) {
    this.treeModel = treeModel;
    public TreeModel getTreeModel() {
    return treeModel;
    public void setTreeInBean(RichTree treeInBean) {
    this.treeInBean = treeInBean;
    public RichTree getTreeInBean() {
    List nodes = new ArrayList();
    FileNode rootNode = buildFileTree(ROOT_DIR);
    nodes.add(rootNode);
    createTreeInBean(nodes);
    return treeInBean;
    File Node Class-------------------------------------------------------------
    import java.io.File;
    import java.util.ArrayList;
    import java.util.Collection;
    public class FileNode {
    private Collection children;
    private boolean nodeSelected;
    private File file;
    public FileNode(File file) {
    this.file = file;
    children = new ArrayList();
    public boolean isDir() {
    return file.isDirectory();
    public boolean isFile() {
    return file.isFile();
    public String getDescription() {
    return file.getName();
    public Collection getChildren() {
    return children;
    public String getIcon(){
    if(children.size() == 0){
    return "images/img1.png";
    } else {
    return "images/img3.png";
    public int getChildCount() {
    if (children == null)
    return 0;
    else
              return children.size();
    public void setNodeSelected(boolean nodeSelected) {
    this.nodeSelected = nodeSelected;
    public boolean isNodeSelected() {
    return nodeSelected;
    public void setFile(File file) {
    this.file = file;
    public File getFile() {
    return file;
    @Override
    public String toString() {
    return getDescription();
    With Regards,
    Sujay

    HI,
    When you see the output of the code, you will find 2 different trees one with proper label and another with out labels. This tree is showing the folder structor. When i am creating the tree in managed bean, the EL expression of the component added in nodeStamp is not getting evaluated. To make sure that same component is stamped as nodeStamp, i tried by setting default value in that component, and it is showing the same hard coded value.
    But the same EL expression is getting evaluated for the tree in JSPX page.
    Sujay

  • Rendered Property calling managed bean Multiple Times

    Hi
    We have a problem within a command button in a jspx, which includes a rendered tag which references a managed bean method via EL.
    e.g.
    rendered="#{PERUserInfo.trainee}"
    When I debug the jspx, the PERUserInfo.trainee method is called 4 times instead of once.
    We have noticed similar findings when using managed bean methods via the rendered property. i.e. calls getters multiple times.
    Any idea why this is happening?
    We are using JDeveloper v10.1.3, JHS v10.1.3 SU1.
    All comments appreciated.
    Cheers
    Denis

    Denis,
    There can be many reasons why your bean method is called multiple times; but I would consider this perfectly normal in any JSF application considering all the lifecycles and (possible) Partial Page Rendering that happens.
    The question is, by the way, more appropriate on the JDeveloper forum since it is not directly related to JHeadstart itself.
    Hope this helps,
    Evert-Jan de Bruin

Maybe you are looking for

  • Burning more than one movie

    If I burn a 10-minute movie to DVD-R or DVD+R can I later burn another 10 minute move to the same DVD on the leftover space?

  • System User _Unknown

    While similar to previous threads ... I've encountered a different flavor of issue with the _unknown user. It has appeared this week exclusively (all other folders appear correct) at the top level, Macintosh HD drive. This isn't a traditional folder,

  • Where have all the plug-ins gone?

    I re-installed InDesign CS3 after my hard drive was wiped clean with the re-installation of Windows XP, and I'm finding that some files won't open.  The error messages state that some plug-ins are missing and that the program and/or  the plug-ins sho

  • Problems with Tecra S1 keys

    Hello All, Have a Tecra S1 (model pt831e) - PM 1.7ghz, XP Pro, 512ram which when you hit the enter key it produces # symbol (in notepad, word outlook etc). has anyone come across this ? thx

  • VariableSelection - techn. name in Web?

    Hello, I have Cost Center Hierarchy. In BEx I set up a Reporting-Variable Selection. Here I can switch on / off the technical names in my search. In Web and Portal it is not possible. I always see text. No technical name...and it is not possible to s