State Change causing tree item to loss selected item highlight

I'm looking for some guidance on a situation i'm encountering. I've an application with a tree component which will be used as a report selector in all view states. The parent nodes are not selectable but the children are. Each child has a for a lack of a better term parameter classification. When a report item is selected in the tree then a state change occurs and displays the appropriate parameter selection view.
My issue is this. Upon clicking an item and displaying the new state for the first time, the selected item in the tree losses the visual representation or highlight around the selected item. But within the debugger it still shows which item is the selectedItem.  Once the state has been displayed at least once...i.e. I select other items and then eventually back to initial tree item when the state changes it does not loss the highlight on the selected tree item.
Couple things I've tried to see if i'm in the right neck of the woods is use the currentStateChange and currentStateChanging handlers to do a bit of tracing and found that the tree item remains selected all the way through both currentStateChanging and then even in the currentStateChange...the redraw occurs just after which is when the tree item losses its highlight.
Does anyone have any ideas or even encounter this?

Good question. Well you're right in asking. Just using a spark Label to show me the label of the selectedItem, upon the first time I click on the selection nothing populates the label's text BUT the state changes as its suppose to. Took me clicking on it a second time to get the item to be highlighted and the label to show me what had been selected.
My question here is...is there another event which is occurring after the changeState?

Similar Messages

  • Item availability for selected items and directly create the delivery

    Hi All,
    For a very big sales order ..lets say having 700 line items ...is there any convenient way to create the delivery for selected items ..e.g. 30-40 line items rather going and selecting the line items then doing the item availability.
    do you have any LSMW format by which we can do the item availability for selected items and directly create the delivery.
    kindly Guide me..
    With Regards
    Azeez.Mohd

    Hi ,
    There is no stand way of doing it . You need to take help of abaper to do this :
    1. Create a t code where if you give sale order number , it displays a report with all the items with a check box near to it as we see in SE16 .
    2. This report could be best in ALV form where users can do "ctr+f" and search only the required materials then select those lines and press a button on the top of report .
    3. Once the button is pressed , program will run vL01n ( create delv in backgrnd) in a BDC form . At time of delev creating , the bdc program in backgrnd uses only those items which were selected by user and not the other items .
    4. Program will create a delv using a BDC in background and return the delv number for user to view tht.
    U can also try using FM : RV_DELIVERY_CREATE to create delv in backgrnd after user selection if BDC is getting tricky.
    Hopefully ,this shuld work and will be a easy process for the customers.
    Let us know the outcome .. .
    B O L ..
    Hope this Helps !!!

  • How to Default Item Description on Selecting Item

    Hi,
    I have two fields in a search form, Item and Item Desc. Whn user selects any item it should default the item description in the item description field. Can any one suggest me how to do this please.
    Thanks,
    Mahesh

    Its simple:
    Item is MessageText input with Lov. In Item LOV create one more LOV Mapping, in this the return item would be the description field of page.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                       

  • Change the font style in a selected item on a DataGrid

    Hi!!
    I have a normal DataGrid and i want to set the font to BOLD style the selected row.

    try it:
    ...datagrid id='dg'....
    <mx:DataGridColumn
         width="50" sortable="false"
         headerText="My Title"
         textAlign="center">
         <mx:itemRenderer>
              <mx:Component>
                   <mx:Text fontWeight="{data == dg.selectedItem?'bold':'normal'}"
                                       text="{data.title}"/>
              </mx:Component>
         </mx:itemRenderer>
    </mx:DataGridColumn>

  • Changing JList non-editable Font color of the selected items

    Hi All,
    I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.
    Could you please clarify me?
    <img src="file:///C:/DOCUME~1/sgnanasi/LOCALS~1/Temp/moz-screenshot-4.png" alt="" />

    [email protected] wrote:
    ..I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio.Set a custom [cell renderer|http://java.sun.com/javase/6/docs/api/javax/swing/ListCellRenderer.html] *(<- link)* for the JList.

  • Purchase order from Purchase Requisition error  no selectable items found

    while modifying the Purchase order item quantity, iam getting an error
    Tcode me22n.
    The order already released. now i want to ( change ) reduce the quantity.
    No selectable items exist for Purchase requisition l_banfn.
    message no 06053.
    can anyone  please help me on this.
    thanks
    rajesh.

    Check the status tab in ME53N whether all the qty in PR are already used up
    Or
    Check the line item in PR whether it is deleted
    Edited by: Karthik on Jul 20, 2011 12:37 PM

  • XML driven DataGroup & lastResult or selected item

    I am using a xml driven DataGroup to display images with a itemRenderer and custom layout. When an image is selected i want a new state to display with info from the selected item (image, name, description). Is this possible and how do i do it?
    code example;
              <s:HTTPService id="srv" url="http://...../data/catalog.xml" result="resultHandler(event)" />
              <s:DataGroup includeIn="Main" left="50" right="50" top="200" dataProvider="{items}" id="dg1"
                     horizontalCenter="0" itemRenderer="renderers.kitchensRenderer" click="currentState='details'">
                           <s:layout>
                               <layouts:FilteredTileLayout id="filterLayout" filteredItems="{filteredItems}" />
                           </s:layout>
              </s:DataGroup>
              <mx:Image id="image2" includeIn="details" width="720" height="450" top="75" horizontalCenter="0" src="???" />               how do i get the selected DataGroup item to display the correct image
               //kitchensRenderer
              <mx:Image id="image" width="72" height="45" horizontalCenter="0" source="{data.image}" />

    "implement the property in your model and update the renderer state based on that."
    I am a complete beginner and most of the code I got from TourDeFlex. Please can you explain how to do this or provide a code example, thanks

  • ADF Tree with Boolean Check Box: How to find selected items

    Hi Experts,
    ADF: 11.1.1.5.0
    WLS: 10.3.6
    I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
    I am facing the below issues while trying to implement this use case:
    1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
    2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
    To summarize,
    1. Please let me know how to expand all master nodes in af:Tree by default.
    2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
    Thanks in advance,
    Rathnam

    Hi,
                Can you please elaborate the solution? I have a similar problem in
    https://forums.oracle.com/thread/2579664

  • Af:tree selected item

    I want to display the selected item from a tree (and to store this into a variable). I tried with selection_listener, but I don't know exactly what to write in the bean. The disclosed_row_keys is used to expand all nodes.
    <af:tree value="#{bindings.ConfigTreeParent2.treeModel}"
    var="node"
    rowSelection="single" id="tree1"
    selectionListener="#{left_tree.selection_listener}"
    disclosedRowKeys="#{left_tree.disclosed_row_keys}">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}"/>
    </f:facet>
    </af:tree>
    Thanks,
    vio

    Hi vio,
    The method signature for selectionListener is
    public void someMethodName(SelectionEvent ev);
    The selection event contains the selected row keys (well actually it contains the delta which should be improved imho like oldSelection and newSelection, but in the case of single selection, you can simply use the added list more or less), you can then extract the data associated with each row keys. So, in your case, I suggest you inject the TreeModel in your bean. Here's an example:
    In the code:
    public class MyTreeController
        private TreeModel model;
        private MySelectionManager selectionManager;
        public TreeModel getTreeModel()
            return model;
        public void setTreeModel(TreeModel model)
            this.model = model;
        public MySelectionManager getSelectionManager()
            return selectionManager;
        public void setSelectionManager(MySelectionManager manager)
            this.selectionManager = manager;
        public void selectionPerformed(SelectionEvent ev)
            Object selected = getFirstRowKey(ev.getAddedSet());
            if (selected == null)
                Object unselected = getFirstRowKey(ev.getRemovedSet());
                if (selectionManager.isSelected(getRowData(unselected)))
                    selectionManager.setSelection(null);
            else
                selectionManager.setSelection(getRowData(selected));
        private Object getFirstRowKey(RowKeySet set)
            for (Object key : set)
                return key;
            return null;
        private Object getRowData(Object rowKey)
            TreeModel model = getTreeModel();
            Object oldRowKey = model.getRowKey();
            try
                model.setRowKey(rowKey);
                return model.getRowData();
            finally
                model.setRowKey(oldRowKey); // Always restore the state
    public class MySelectionManager
        private Object selection; // Or another more precise type
        public Object getSelection()
            return selection;
        public boolean isSelected(Object data)
            return selection != null && selection.equals(data);
        public void setSelection(Object selection)
            this.selection = selection;
    }In the faces-config.xml
    <managed-bean>
      <managed-bean-name>selectionManager</managed-bean-name>
      <managed-bean-class>MySelectionManager</managed-bean-class>
      <managed-bean-scope>pageFlow</managed-bean-scope> <!-- That one can be persistent across requests -->
    </managed-bean>
    <managed-bean>
      <managed-bean-name>treeController</managed-bean-name>
      <managed-bean-class>MyTreeController</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    <!-- request scope is important here since we don't know the exact lifespan of bindings.ConfigTreeParent2.treeModel -->
      <managed-property>
        <property-name>selectionManager</property-name>
        <property-class>MySelectionManager</property-class>
        <value>#{selectionManager}</value>
      </managed-property>
      <managed-property>
        <property-name>treeModel</property-name>
        <property-class>org.apache.myfaces.trinidad.model.TreeModel</property-class>
        <value>#{bindings.ConfigTreeParent2.treeModel}</value>
      </managed-property>
    </managed-bean>In your page:
    <af:tree value="#{treeController.treeModel}"
             var="node"
             id="tree1"
             rowSelection="single"
             selectionListener="#{treeController.selectionPerformed}"
             disclosedRowKeys="#{left_tree.disclosed_row_keys}">
      <f:facet name="nodeStamp">
        <af:outputText value="#{node}"/>
      </f:facet>
    </af:tree>Note that I preferred to use the tree model from the bean rather than using directly the databindings here. I did so to improve reusability and declarativity of the page as you could now simply alter the injected tree model within the faces-config to have your page point on a completely different data source.
    Regards,
    ~ Simon

  • Cannot sync ipad. statement "ipad cannot be synced because there is not enough free space to hold all of the selected items (additional 157.3 mb required) There is 1.86gb available on ipad and i am trying to remove items. any thoughts...

    annot sync ipad. statement "ipad cannot be synced because there is not enough free space to hold all of the selected items (additional 157.3 mb required) There is 1.86gb available on ipad and i am trying to remove items. any thoughts...

    If you haven't changed your sync preferences, meaning that you are not trying to add more content from the last time that you synced with iTunes, try quitting iTunes, restart your computer and then try again.
    If you are trying to add more content to the iPad than what you had before, you can only use so much of the available storage capacity that is left on the device. You probably need to leave about 10% of the space free so if you have a 16GB iPad, you might not have enough space left to sync that content that you are trying to sync.

  • Item state change events - notification not recd when run on nokia phone

    I have a Form which implements ItemStateListener and its registered to receive item state change events. The Form has a text field which needs to be enabled/disabled based on certain ChoiceGroup element being selected. The code works fine on emulator, however I don't receive event notification in itemStateChanged() on series 60 nokia devices when a new ChoiceGroup element gets selected. Has anyone faced a similar problem? Is there any solution for this? The profile used in my project is CLDC 1.1 and MIDP 2.0.

    I faced a similar problem on Motorola ROKR E6. Turned out that ItemStateListener was working only as long as the first form to be displayed remained current -- once I setCurrent another Form, the app stopped responding to itemStateChanged.
    The workaround I adopted was to remove Items from the Form and add new Items, giving the illusion of the next form being displayed. It would be interesting to know whether that works for you and whether anyone has faced the same problem with any other handset.
    I have subsequently come to know that Motorola have marked my bug report as "solved" -- but have not offered me any option to update my handset with a bug-free version.
    btw, calling setConstraints on a TextField can throw a NullPointerException. My workaround for that was to setText("") in the itemStateChanged in lieu of setConstraints (TextField.UNEDITABLE).
    luck, db

  • How to change selected item color and the selected area size of listview

    What i really need to do is change the following things in XMAL.
    1. Changing the selection color
    2. Size of selected area 
    Thanks in advance.
    Dileepa S. Rajapaksa
    Trainee Developer
    Microsoft, Sri Lanka
    Twitter : @dsrajapaksa
    Blog : http://www.dileepatech.net

    Hi Dileepa,
    It is possible by customize the control by its template, see this for more information:
    ListViewItem styles and templates.
    By changing the selected visual state, you can change the color of the ListView item background, also the size of the selected item.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Alert Causes Tree to Invoke Item Editor

    Attached is a very simplified version of my application which
    is causing me a headache. I have a Tree to which I have added a
    custom ContextMenu, with options to Delete and Rename items in the
    Tree. When a user selects "Delete", I force them to confirm the
    deletion by showing an Alert, with YES/NO options. However,
    regardless of what option they choose, when they click one of the
    buttons, the Tree suddenly shows one of the items in edit mode. I
    can't understand why.
    To reproduce:
    1. Compile the attached code in a Flex Project and open the
    application in a browser.
    2. Open the "Parent" node in the Tree.
    3. Select the "Child" node.
    4. Right-click with your mouse in the Tree and select Delete.
    5. Select either Yes or No.
    Any help with preventing this behavior from happening would
    be greatly appreciated.
    Thank you.

    I am pretty sure it is possible, but I have not done it. You
    will probably need to cancel the default behavior of click event.
    Tracy

  • How to get selected items from a tree in backing bean without adfbc

    Hi ADF Experts,
    Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
    Using Jdev 11.1.1.7.0
    <af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
                      binding="#{pageFlowScope.MerchandizeBean.treeModel}"     id="tree" immediate="true" autoHeightRows="0"
                           styleClass="AFStretchWidth" rowSelection="multiple"
                           selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
                    <f:facet name="nodeStamp">
                      <af:commandLink text="#{node.classDescription}"
                           actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}"           id="displayTable" partialSubmit="true">
                      </af:commandLink>
                    </f:facet>
                  </af:tree>
        public void treeNodeSelection(SelectionEvent selectionEvent) {
            // Add event code here...
            RichTree tree = (RichTree)selectionEvent.getSource();
                    TreeModel model = (TreeModel)tree.getValue();
                    //get selected value
    Thanks
    Roy

    Hi,
    in a multi select case, try
    RowKeySet rks = tree.getSelectedRowKeys();
    Iterator iter = rks.iterator();
    while(iterator.hasNext()){
    Object aKey = iterator.next();
    tree. setRowKey(aKey);
    Object rowData ? tree.getRowData();
      .... do something with the data here ...
    Frank

  • The 'selected items' color randomly changes and I can't figure out why.

    Hi everybody, I recently upgraded to Firefox 13, which appears to be the most stable browser version so far and I really like it. I have loved Firefox very much, having used it since somewhere between versions 2 and 3.
    After upgrading to version 13 I noticed something that annoys me quite a bit. This may have been present before but I can't remember and I did not notice until now.
    On my computer (Windows 7 x64 Ultimate) I have set the color of the 'selected items' (specifically text) to be lime green text on a slightly off black background. I chose this color scheme because it blends very well with Firefox itself (I have the NASA night launch theme), Windows Explorer, and many web pages that I have changed to a dark theme (using the Stylish browser extension). This color scheme has excellent contrast in areas with black text on a light background, as well as light text on a dark background. It has served me well.
    After upgrading to Firefox 13 I have noticed that if the web page is dark with light text, the 'selected items' color changes to lime green text on a light grey background. (Less frequently, it changes instead to off-black text on a lime green background). I have not been able to isolate the threshold where this change occurs (meaning how dark the website background needs to be /how light the text needs to be for this to happen) nor have I found a solution.
    This problem sometimes extends even to sites that have dark text on a light background: when tabs are switched, with no input fields clicked and the address bar is not clicked. This very page (Firefox support) is apparently vulnerable as well.
    This problem only happens on rendered web pages. Firefox's menus, buttons and toolbars, as well as all other programs and Windows itself, are unaffected.
    I want the 'selected items' to remain as I have set it, and not deviate regardless of the apparent contrast or color scheme of the web page being displayed.
    [Edit #1]: Interestingly, as I was copying the information from about:support I noticed that it is affected as well.
    Any suggestions? Thanks so much, and I am sorry for the long-winded description. tl;dr look at the pictures.
    [http://i.imgur.com/vmLZ6.png selected items]
    [http://i.imgur.com/d8xsa.png example1]
    [http://i.imgur.com/2OE9J.png example2]
    [http://i.imgur.com/1lhvb.png example3]
    [http://i.imgur.com/UWOOp.png example4]

    It is always best to avoid making changes to the selected text colors.<br />
    Firefox uses an algorithm to check if the contrast is sufficient and will swap text and background colors if that test fails.<br />
    *http://mxr.mozilla.org/mozilla-central/source/layout/generic/nsTextFrameThebes.cpp#3349
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=1331845

Maybe you are looking for