How to override the default height of tree component...

Hi,
Can anyone please tell me how to override the default height of <af:tree> component.
Actual Problem:
I have a PanelBox in which I have a ShowDetail component. ShowDetail contains Tree component. When I click on ShowDetail item the Tree component have to be displayed. But, PanelBox is expanding to TREE default height(27.27 ems) instead of expanding to exact height of Tree.
How to manage this issue?
Thanks
-Sukumar

Did you already try
           <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                              var="node"
                              selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                              rowSelection="none" rowBandingInterval="0"
                         inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
Julian

Similar Messages

  • How to override the default delete operation

    Hi,
    I am new to Jheadstart, java coding for that matter.
    Here's my situation,
    I have a view which is based on a function (function returns a collection).
    I have created instead of triggers on this view to perform insert/update/delete operations.
    All these DML operations work as expected in Oracle database.
    Now, I created an Entity object and a view object on this view in my jheadstart project.
    When I run this Jheadstart application my insert and search operations run fine but update and delete operations fail with JBO-26080 error.
    The underlying oracle error is "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc."
    I know that delete and update operations work fine in Oracle and hence I would like to override the default Jheadstart operations. Can any body tell me how can I do it or point me in right direction?

    Hi,
    From the JHeadstart Developer's Guide, chapter TroubleShooting - Problem Assessment:
    If you are getting a JBO error (Business Components for Java error), try to perform the same data retrieval or data manipulation action using the BC4J Tester. You can
    invoke the tester through a right-mouse-click on the BC4J application module. If you get the same error using the BC4J tester, the problem is in the BC4J object definitions. If you added business rules, or other custom code to your BC4J objects that executes during your data retrieval or data manipulation action, you can debug this code line-by-line by running the tester in debug mode. You can also look up the JBO error in the JDeveloper online help, for each error possible causes and how to solve them are described.
    It sounds to me like you will also get this error in the BC4J Tester. This means that the problem is not related to JHeadstart. You can go to the JDeveloper discussion forum http://otn.oracle.com/discussionforums/jdev.html and ask your question there without mentioning JHeadstart. Maybe there is some switch you can set in the BC4J object to let BC4J not use SELECT FOR UPDATE.
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • How to override the default "required" attribute for the UIComponent?

    Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
    if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
    I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
    //whatever the name of the method i'm overriding....
    String value = (String)value;
    if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
    value = value.trim();
    if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
    How can I go about doing that?
    Thank you.

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • JRE 1.4.2: how to override the default xml parser?

    Hi all,
    I have JRE 1.4.2_03 and I need to replace the default xml "crimson" parser with xerces because the former one doesn't properly handle utf-8 BOM.
    Does anyone have an idea where I should look at for this kind of configuration?
    I skimmed thorugh the oracle docs but couldn't find anything.
    I found a link describing how to change the xml parser in OC4J, but my understanding is that this has little to do with what I am looking for.
    I need to force Saxon 8.6.1, that is invoked by means of java.exe from the command line, to pick up the right xml parser.
    Has anyone else tried this out already?
    Alternatively, is it safe to install JRE 1.5 in place of JRE 1.4.2 on a Oracle 10.1.0.4 database?
    I am told that JRE 1.5 uses a different xml parser that should fix my problem.
    Bye,
    Flavio

    I sorted this out myself.
    Downloaded the latest stable xerces binary (2.5.0) from http://xml.apache.org/dist/xerces-j/
    Then I extracted xercesImpl.jar and put it under:
    %ORACLE_HOME%\LIB\endorsed
    I had to create the endorsed folder as it didn't exist.
    Then, when invoking Saxon using java.exe, I added the following switch:
    -Djava.endorsed.dirs=%ORACLE_HOME%\LIB\endorsed
    That's it.
    You can find some background info on:
    https://jaxp.dev.java.net/Updating.html
    Bye,
    Flavio

  • HT201448 How to override the default order of Websites, Wiki, and Xcode services?

    Greetings,
    On my Mac server, I have the Websites, Wiki, and Xcode services all enabled but, as detailed by the Apple support article, Xcode takes precedence over all, or Wiki if Xcode is disabled.
    What I would like to see is a virtual host (e.g. wiki.myhost.com) and/or directory alias (www.mydomain.com/xcode) that opens the home page for the respective service while the default (e.g. www.mydomain.com) goes to the home page for mydomain.com.
    I'm no httpd configuration expert but I expect some manual httpd configuration will be required.  Any help appreciated.

    At the end, I decided to adopt Firefox add-on "Classic Theme Restore"—amazing output. I guess it is impossible to get such a space saving but full furnished solution somehow else.

  • How to set the default query for query component.

    I have a query component on the page, and there are 2 system query in the saved search dropdown list.
    Here is my system saved search
    Saved Search:
    Search by worker
    Search by organization.
    when the page load the default search panel is always search by worker.
    I want to default the search panel search by organization. How do I implement this.

    Thanks for your reply. Maybe I not describe my question clearly, I want to display different search form.
    For example
    when search by work, the search form displayed as firstname, lastname, gender etc.
    when search by work, the search form dispaly as organization name , manager name etc.
    I resolve this issue by customize the queryMode object.

  • How to override the 'default' partition in composite.xml - urgent

    All,
    Version: 11.1.1.4
    I have created a simple BPEL A which invokes another BPEL B which is deployed to 'default' partition. In the composite.xml of BPEL A I can see the WSDL location of BPEL B as *"http://localhost:7001/soa-infra/services/default/BPELB/BPELB.wsdl"*. I noticed that the name of the partition (i.e in our case its 'default') is hardcoded in the wsdl location. During deployment I want to override to other partition, how I can achieve this?
    thanks
    sen

    If you want to change the partion name at run time then used Token ,value concept and define it in build.xml
    For Example
    <target name="replaceAllValues">
    <input
    message="Please enter full path of the file directory:"
    addproperty="dirPath"/>
    <replace dir="${dirPath}">
    <replacefilter
    token="OldValue."
    value="Newvalue"/>
    </replace>
    </target>
    Call the above target from ant build.xml before you deploying the service.
    Regards,
    Tarak.

  • How to override the default SOAP envelope prefix?

    I have a Web service as an external reference. In run-time WebLogic generates SOAP messages with a default prefix <env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/”…>. Normally this is fine. However the Web service required a prefix as <soapenv:…>. How can I have WebLogic generate soap envelope prefix as soapenv instead env?

    hello!
    It's possible. You must implement handler and change envelope and body prefix. Here is example:
    public class WsHandler implements SOAPHandler<SOAPMessageContext> {
    public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty =
    (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (outboundProperty.booleanValue()) {
    try {
    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
    envelope.setPrefix("soapenv");
    envelope.removeNamespaceDeclaration("env"); //remove old prefix
    envelope.getBody().setPrefix("soapenv");
    context.getMessage().saveChanges();
    } catch (Exception e) {
         throw new ProtocolException(e);
    }

  • ADF &CSS :overriding the default ADF:tree icons and CSSs

    Hi,
    I have major layout issue regarding ADF:tree, how can I override the default icons?
    I override the oracle CSS with my own, but when I did that, the tree images has changed, its now small hideous triangles, I copied some lines from the oracle CSS and it worked, but the small triangles still show inside the images, how can I remove those triangles, or can I write something in my CSS to override them?
    Thanks in prior,
    Ahmad Esbita

    Ahmad,
    According to bug 5682799, you cannot work around this in the current JDeveloper release. It is fixed in 10.1.3.3 (due out "soon," perhaps as early as 15th June, according to another post on this forum)
    John

  • Trying to override the default af:tree expanded and collapsed icons

    Hi,
    I initially hijacked a thread from 2010 that was vaguely similar to what I need to ask, but a kind forum moderator split my post out to stand on its own merits.
    I am trying to override the default af:tree expanded and collapsed icons I am using the following styles for my af:tree but they are not reflecting any thing on my tree with the styleclass orgType.
    af|tree.orgType::expanded-icon {
    content: url("../images/ac-expand.png");
    cursor: default;
    af|tree.orgType::collapsed-icon {
    content: url("../images/ac-collapsed.png");
    cursor: default;
    af|tree::expanded-icon {
    content: url("../images/folder_open.png");
    cursor: default;
    af|tree::collapsed-icon {
    content: url("../images/folder_close.png");
    cursor: default;
    After working for long hours I realized that there is some problem with af:tree and treeTable. They are not taking the styles where as for the other components, every thing works fine. Is there any way to achieve the task. Could you suggest any alternative way to do this. Thanks in advance. Your suggestions for this task can really help me and my team a lot.
    Regards,
    Krishna Sumanth.

    Hi,
    do the icons show without the style class reference used in the skin file? If so, then the style class for this component might be rendered differently for the tree, e.g.
    .orgType af|tree ...
    Frank

  • How to hide the default arrow icon of af:tree node

    Hi All,
    I am using Oracle JDeveloper 11g R2.
    I want to hide the arrow icon which is displayed by default with af:tree node. The use case is to display custom icons for all the nodes. The problem is that when I am customizing icons of tree node, it is showing arrow as well as the icon with each node. Which doesn't seems fine. Can any one help/guide on how to hide the default af:tree node arrow icon.
    Thanks in advance.
    Regards
    Bilal
    Edited by: Bilal on 29-May-2012 01:32

    Hi,
    Use Css to change the icon style:
    af|treeTable::expanded-icon {
    content: url("/adf/1.gif");//content : none;
    outline: none ;
    af|treeTable::collapsed-icon {
    content: url("/adf/2.gif");//content : none;
    outline: none ;
    af|treeTable::leaf-icon {
    content: url("/adf/3.gif");//content : none;
    outline: none ;
    Regards,
    Raj Gopal K

  • How to change the default KeyBinding of the TableView ?

    how to change the default key binding of the TableView ?
    When press Enter key on a editable TableView, the default action is to make the selceted cell to a editing state. I want to know if there is any way to make it select the right cell and wouldn't change the editing state of the selected cell when i press Enter key.
    here is something i've done.
          table.setOnKeyPressed(new EventHandler<KeyEvent>() {
                   @Override
                   public void handle(KeyEvent e) {;     
                        table.requestFocus();
                        KeyCode code =e.getCode();
                        if(code == KeyCode.ENTER){
                             try {
                                  new Robot().keyPress(java.awt.event.KeyEvent.VK_RIGHT);//XXX
                             } catch (Exception e1) {
    Thanks,
    ahiwoo
    Edited by: 911579 on 2012-2-1 上午3:15
    Edited by: 911579 on 2012-2-1 上午6:26
    Edited by: 911579 on 2012-2-1 上午6:41

    thanks jsmith. now it works well.
         table.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
                   @Override
                   public void handle(KeyEvent e) {
                        table.requestFocus();
                        KeyCode code =e.getCode();
                        if(code == KeyCode.ENTER){
                             try {
                                  new Robot().keyPress(key);//XXX  javafx  has no robot for key type...
                             } catch (Exception e1) {
                             e.consume();
              });

  • How to change the default orientation?

    Hello,
         I'm new to Adobe Flash Builder and I am currently making a mobile application for a school project. I was wondering how you change the default app orientation to landscape. I've tried going into my app.xml and change the aspect ratio to landscape with no luck, and it is very hard to find any answers on the internet. I would greatly appreciate your help.
    HomeView.mxml Code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        actionBarVisible="false" tabBarVisible="false" title="HomeView">
              <fx:Declarations>
              </fx:Declarations>
              <s:Image left="0" right="0" top="0" bottom="0" scaleMode="zoom" smooth="true"
                                   smoothingQuality="high" source="@Embed('file:///C:/Users/Owner/Downloads/48127-solarsystem-teaser.jpg')"/>
              <s:Button x="-5" y="0" width="410" height="1504"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Sun)"/>
              <s:Button x="444" y="852" width="80" height="80"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Mercury)"/>
              <s:Button x="628" y="742" width="120" height="124"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Venus)"/>
              <s:Button x="836" y="632" width="127" height="117"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Earth)"/>
              <s:Button x="994" y="506" width="99" height="96"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Mars)"/>
              <s:Button x="1255" y="464" width="298" height="279"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Jupiter)"/>
              <s:Button x="1626" y="302" width="274" height="270"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Saturn)"/>
              <s:Button x="1965" y="196" width="175" height="174"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Uranus)"/>
              <s:Button x="2201" y="66" width="175" height="174"
                                    skinClass="spark.skins.mobile.TransparentNavigationButtonSkin" click="navigator.pushView(Neptune)"/>
    </s:View>
    App.xml code:
    <!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape").
                                  Optional. Mobile only. Default is the natural orientation of the device -->
                        <!-- <aspectRatio>landscape</aspectRatio> -->
                        <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile
                                  only. Default false -->
                        <!-- <autoOrients>false</autoOrients> -->
    I need to make it so that the app is permanently in landscape.
    Thanks again.
         8th grade student

    <!-- <aspectRatio>landscape</aspectRatio> -->
    <!-- <autoOrients>false</autoOrients> -->
    In XML, everything within <!-- and --> is a comment.  You need to remove the <!-- and -->:
    <aspectRatio>landscape</aspectRatio>
    <autoOrients>false</autoOrients>

  • How do change the default "Save As" from PSD to JPG?

    I know a while back, Photoshop was offering to save my files as JPEGs as default.  But now it defaults to saving as a PSD file, and I am having some difficulty figuring out how to make it save as a JPG file instead.
    OS: CS 5.1 Production Premium, Mac
    Adobe Photoshop 5.1
    Thanks!

    Some of the posters up in this thread implied that this is a problem and/or is somehow not logical (yes, I know some of the posts are old).
    That's not the case.  There actually is rhyme and reason.  Understanding it could help you make better decisions while using Photoshop.
    Photoshop has a concept that you will be working with master documents and occasionally saving copies as work products.  Conceptually a master document is saved into a file and loaded from a file so that it maintains all the features you added while editing.
    So Photoshop considers that JPEG can actually house a master document IF (and only if) all the features of your document can be saved in the JPEG format.  For this to be true, the document has to be a flat single layer, 8 bits/channel, and without other things such as extra channels.  It can have paths.
    Here's the logic as I understand it:
    IF the last time you saved or opened the master document you're working on you saved it as a JPEG, and IF all the features currently in the document can be saved as a JPEG, your default format in the File - Save As menu will be JPEG.
    If you change or add something in the document - say create a layer (or turn the Background into a layer), add a channel, or increase the bit depth to 16 - the next time you try to save it Photoshop will offer to save it in e.g., PSD format, since that format is now needed to save and re-load all the additional features of the document that you have added.  At this point, if you override the default format and change it to JPEG, you'll find the [ ] As a Copy option will be automatically be given a checkmark which you can't change, indicating you cannot save all the current document features in that format.
    For brand new documents you've just created, I believe Photoshop simply checks to see if the current document can be completely saved in the last master document format you saved something else in successfully, and offers that as the default if everything about the document will "fit" in that format.  So if a few minutes ago you saved a JPEG master document, then you created a new flattened image in 8 bits/channel and now you do File - Save As, it will offer JPEG as the default choice.
    Someone please correct me if I've missed anything here.
    -Noel

Maybe you are looking for