Odd dynamic behaviour: tree to textarea

Hi
I built an apex page with an apex tree and a textarea. The goal is to be able to click on an item in the tree which then will be added (concatenated) to the already existing value of the textarea.
This is working nicely, however everytime I click the item in the tree the value is added twice to the textarea.
This is how I did the setup:
- I created a page region with a hierarchical tree in which the link object (in the tree query) sets the value of an intermediate item P3_ITEMS through 'javascript:setValue("P3_ITEMS","'||ITEM_CODE||'")'
- After clicking the object in the tree, a dynamic action, which is triggered by an 'onChange' event of the P3_ITEM, then fires a pl/sql expression which concatenates the current P3_TEXTAREA value with the intermediate P3_ITEMS value
As noted above: this is working but results in the tree value being added twice.
I can solve this by changing the onChange to onClick in the dynamic action, but then the user will have to click twice to add the value to the textarea: once on the tree, and once on the intermedia P3_ITEMS value....
Anybody got any ideas on how to fix this?
Thanks!

Hi... that explains the local part at least - bit nervous about mucking around with such things - but the http://artperth.com/01-artistsfilter.html is also returning blanks online - at my end at least. I had thought it might be a mac/firefox thing but then thought perhaps the online samples use a different set of files.

Similar Messages

  • Unexplainable behaviour shown by textArea

    unexplainable behaviour shown by textArea . can some one explain the strange behaviour. I have built a JTextArea where is some text in it and the users can enter only " in it and delete only " leave the rest of the original intact . But there is a strange problem when start selecting the text using the mouse and pressing delete key Simultaneously the text i tend to protect is also deleting. I want to know why is this happing. I have attched the code for your referance
    import java.awt.BorderLayout;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextArea;
    import javax.swing.KeyStroke;
    public class KeyBoardINputTest extends JPanel {
      public KeyBoardINputTest(){
         setLayout(new BorderLayout());
         buildGUI();
      private void buildGUI() {
         JTextArea myTA=new JTextArea() {           
           public boolean processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed) {           
              if (e.getKeyChar() == '"') {                
                return super.processKeyBinding(ks, e, condition, pressed);                
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_END, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else if (ks == KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0)) {
                return super.processKeyBinding(ks, e, condition, pressed);
              } else {
                return true;
         myTA.setText("JLBHJKBNSJKBNJKSDNB");
         myTA.addKeyListener(new KeyListener() {
           public void keyPressed(KeyEvent e) {
              JTextArea textArea = (JTextArea) e.getSource();
              if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
                int caretPos = textArea.getCaretPosition();
                String text = textArea.getText();
                if (text.length() > (caretPos - 1) && caretPos != 0) {
                if (caretPos - 1 != -1) {
                     if (text.charAt(caretPos - 1) != '"') {
                        e.consume();
              } else if (e.getKeyCode() == KeyEvent.VK_DELETE) {
                int caretPos = textArea.getCaretPosition();
                String text = textArea.getText();
                if (text.length() > caretPos ) {
                   if (text.charAt(caretPos) != '"') {
                     e.consume();
           public void keyReleased(KeyEvent e) { }
           public void keyTyped(KeyEvent e) { }           
         add(myTA,BorderLayout.CENTER);
      public static void main(String args[]) {
         JFrame frm = new JFrame();
         frm.setSize(450,300);
         frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frm.getContentPane().add(new KeyBoardINputTest());
         frm.setVisible(true);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I fixed the problem by using my keyListener itself
    myTA.addKeyListener(new KeyListener() {
           public void keyPressed(KeyEvent e) {
              JTextArea textArea = (JTextArea) e.getSource();     
              if (textArea.getSelectionStart() == textArea.getSelectionEnd()) {
                if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
                   int caretPos = textArea.getCaretPosition();
                   String text = textArea.getText();
                   if (text.length() > (caretPos - 1) && caretPos != 0) {
                     if (caretPos - 1 != -1) {
                        if (text.charAt(caretPos - 1) != '"') {
                          e.consume();
                } else if (e.getKeyCode() == KeyEvent.VK_DELETE) {
                int caretPos = textArea.getCaretPosition();
                   String text = textArea.getText();
                   if (text.length() > caretPos) {
                     if (text.charAt(caretPos) != '"') {
                        e.consume();
              } else {
                e.consume();
           }

  • 10.6.5 update - 27" iMac, Radeon 5750 odd graphics behaviours?

    I updated my new iMac 27" to OS 10.6.5 today and have seen some odd graphics behaviours.
    1. Dock icon for Activity Monitor becomes transparent. Running AM, hidden showing CPU history
    2. White rectangle at bottom of expanding folder (list view)
    3. OK Button blue/white check mark pattern when configuring VPN. GUI feels "slow"
    I updated using the Software Update tool; noticed these issues and re-updated using the Combo Installer; no change.
    Any ideas or suggestions? Is this just me? I have a MacBook -- no probems at all!

    N Gallagher,
    I had the problem earluer, but it got far worse with 10.6.5, however, I fixed it by updating my wacom tablet driver.
    It wasn't the system update, but an old driver causing the problem.
    Resetting PRAM, SMC and permissions and all the other standard drivel people post is nice sentiments, but it should be clear that the problem is something else because that solution hasn't solved the problem for anyone.
    I have the sneaky suspicion that it's old flash and old drivers for most people.
    See my original post here: http://discussions.apple.com/thread.jspa?messageID=12570261#12570261
    BUT. If you have a Wacom tablet, for to their website and download the latest driver from September 10, 2010.
    That's all it took for all my graphics problems to go away.

  • A recursive, dynamic menu tree in ColdFusion

    Hi
    i want to made a recursive, dynamic menu tree in ColdFusion.
    i search on net menu example, following example
    EXEMPLE
    But there are no file for download. Any one have these files
    for simples.
    Regards !

    Did you try googling the author's name? If you had, you have
    found this:
    http://www.sitepoint.com/article/dynamic-menu-coldfusion
    Bryan Ashcraft (remove brain to reply)
    Web Application Developer
    Wright Medical Technology, Inc.
    Macromedia Certified Dreamweaver Developer
    Adobe Community Expert (DW) ::
    http://www.adobe.com/communities/experts/
    "<< CFMX >>" <[email protected]>
    wrote in message
    news:f411qf$636$[email protected]..
    > Hi
    >
    > i want to made a recursive, dynamic menu tree in
    ColdFusion.
    >
    > i search on net menu example, following example
    >
    http://builder.com.com/5100-6371-5196767.html
    >
    > But there are no file for download. Any one have these
    files for simples.
    >
    > Regards !
    >
    >
    >

  • Odd software behaviour Lumia 720

    I'm the proud owner of a Lumia 720 since July. I'm facing some odd software behaviour recently though. Without notice or any pattern, the current app changes to another one, sometimes four or five times while my phone vibrates like mad. It happens two, or three times a week, and there's no significant pattern but this weird "phone on speed" behaviour always ends in the Bing app. I thought rebooting was the answer but it doesn't. Does someone has any clue?

    Ugura,
    Thanks for your reply. I adjusted the touch sensitivity but that did not do the trick. Last night, I was already sleeping, suddenly my Lumina 720 played a song that I played before many weeks ago. That was quite odd too. With my phone connected to the charger, me asleep and there was that terrible noise from an old U2-song... And I could not stop it, nor could I lower the volume so I had to turn on my computer to find the keys to a soft reset and it was in the middle of the night.
    So I waited till this morning to reset my phone to it's factory-settings. Much to my annoyance- without any external app loaded, the phone went on nuts again. This time, while vibrating taking numerous screen shots... It's like my phone is haunted. A little poltergeist in it. I need some high-tec exorcism I'm afraid.
    Hope someone can help me further!

  • How to add text dynamically in  Tree view list box

    CS3/WIN<br />hi,<br />I am new in plugin development.<br />I have a Tree View List box on a dialog.<br />b I don't want to display text when i load the plugin.<br />b I want to insert text data when i click on "Insert" button on dialog. <br />I have defined  Adapter,Mgr,Observer for list box.it is working fine when i want to display data at loading time itself.but not when i click on insert button.<br />b In dialog observer i have defined this but it is not working<br /><br />b Dialog Observer::Update<br /><br />InterfacePtr<IPanelControlData> panelControlData(this, UseDefaultIID());<br />IControlView* Grid = panelControlData->FindWidget(kESSGridTVWidgetID);<br />InterfacePtr<IStringListControlData> listControlData(Grid,UseDefaultIID());<br />if (theSelectedWidget == kESSInsertButtonWidgetID && theChange == kTrueStateMessage) <br />{<br />listControlData->AddString(strText,kESSListBoxTextWidgetID); <br />}<br /><br />b it is showing error  <br />b operator new returning nil for an allocation size of 486022320 bytes<br />(..\..\..\source\components\memoryallocator\PMNew.cpp (552))<br />b Memory allocation failure<br />(c:\development\cobalt\source\public\includes\K2Allocator.h (131))<br />can any one help to get this..<br />Thanks.

    How to populate list in tree view  dynamically
    Hi,
    I am new to  Indesign Plugin creation.
    I want to create list in tree view dynamically.
    I tried wlistboxcomposite sdk sample in indesign cs4.
    I have some doubts in this.
    1. Can i write my own method in  WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
    If it's possible how can i call this method.
    2. In this example they populating static string in constructor like this
    WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
    K2Vector<PMString> lists;
    for (int32 i = 0; i< 12; i++){
    PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_bac k(name);}
    InterfacePtr<IStringListData> iListData(
    this, IID_ISTRINGLISTDATA);}
    and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
    i achieve this.
    Pls do needful.
    Thanks
    Arun

  • How to create dynamic panel tree view?

    Hello,
         I can create dynamic pallete panel without any problems (from sdk/paneltreeview) , but i can't when it's a panel tree view (from sdk/paneltreeview). I don't know how to initialize it.  Can i call IID_ITREEVIEWWIDGETMGR's impl directly in ActionComponent to create panel widget? and how?
    Thanks in advance.

    solved by self

  • Odd display behaviour

    I just had something odd happen to my macbook display and I'm wondering if it's a defect in Leopard, the display hardware or some weird interplay between my programs.
    I had nine open applications at the time: firefox, thunderbird, terminal, finder, preview, aquamacs, active timer, slife and MS word for mac. While I was reading a pdf in preview, i noticed a small light pink circle (only noticable against the bright white empty margin of the pdf paper I was reading), about 1 cm in diameter. At first I thought it was a smudge on the screen (from what, I don't know), because when i scrolled it stayed put. so i tried to wipe it away, and then I realized it wasn't on the surface of the screen. It also remained when I switched into firefox and there was white background on the webpage that was up. Then, when I switched into thunderbird, where there is a blue tinted background to the folder tree, the pinkish circle disappeared, and in it's place was a tiny white rectangle, about 2mm by 3mm.
    At first I worried it was a dead pixel spot on my display, since it seemed to remain in the same place no matter which programs I switched into, unless it was covered with a white spot (then it reverted back to a pinkish circle). I put my macbook to sleep and woke it up again (hoping it would reset my display). I was just contemplating rebooting my macbook when I noticed the tiny rectangle "jump". It jumped about an inch everytime my mouse cursor got near it. After jumping several times (while I tried to click on it) it eventually disappeared altogether, and I haven't seen it in the past hour or so.
    I'm new to mac, but I've been using PCs for a while, and were this a pc, I'd be immediately convinced I had a virus. But I understand that macs are not subject to most if not all viruses. So, does anyone know what might have just happened to me?

    Cisco has finally figured out the issue.
    The problem was in description tag there was an ampersand sign "R&D1" and "R&D2" when we removed it the phones started working fine.
    I feel like I'm Cisco's beta tester on a daily basis. These are mature devices running on mature software, how do things like this slip through there cracks?!

  • Dynamic add tree node and thread

    Hi,
    I implemented a thread by using SwingWorker class to execute the time-consuming file loading and processing task instead of the event-dispatching thread. However, I need to dynamically add node to a tree by using data returned by the file loader in my project's main frame like following:
    if (source == loadAffyItem) {
        //load affy file data to the application
        loader = new AffyFileLoader();
        //dynamically add node to the tree after data loading
        rawDataNode = treePanel.addObject(null, "Raw Data");
        DefaultMutableTreeNode node = new DefaultMutableTreeNode(new UserData("Pixel",   loader.getPixelMatrix()));
        pixelNode = treePanel.addObject(rawDataNode, node);
        node = new DefaultMutableTreeNode(new UserData("Signal", loader.getSignalMatrix()));
        signalNode = treePanel.addObject(rawDataNode, node);
    }However, I always get a NullPointer error by doing this way since the code to dynamically add node to the tree using data returned from loader, but the loader is executed
    in another thread and not finished yet. How could I make that code executed after the loader class is finished? Hope you could enlight me about this issue?
    thanks in advance!
    Jenny

    You'll have to redesign a bit. You could either have the separate thread add the node when it's finished (using SwingUtilities invokeLater to ensure you're updating the GUI in the Event Dispatch thread), or you could have the separate thread call-back or send an event when it's finished (and your main thread would listen).

  • Dynamic loading tree and data grid

    Hi All,
    I new to java as well as JSF. I am very impressed with the jsf and Sun Java Creator IDE. I made a sample project.
    Now I want to load tree and data grid with dynamic values how can I achieve this.
    Please help to find out some examples.
    Also I need to know who I can use SOAP call using JSF.
    Thanks
    CSCS

    To dynamically load a Basic Table (ui:table) from a database, see http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/databoundcomponents.html
    To dynamically load a Basic Table from other sources of data that are loaded into an array or such, see http://blogs.sun.com/roller/page/divas?entry=table_component_sample_project
    To dynamically CREATE a Basic Table, see http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/createTableDynamically.html and http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/add_component_to_table.html
    To dynamically create an HTML table on the fly, see section 7.5 in Chapter 7 of the Field Guide at http://developers.sun.com/prodtech/javatools/jscreator/learning/bookshelf/index.html
    To dynamically create a tree, see Dynamic Tree example at http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp.
    A tutorial for dynamically creating a tree from a database is work in progress.
    Hope this helps,
    Chris

  • Odd Firefox Behaviour

    I have been trying to develop a small, simple filter for an xml-based artist database and whilst I can get it to work without issue in Safari I seem to be having some odd problems with Firefox ... both on a Mac (Safari 4.04 and Firefox 3.6)
    Page - for reference - is here: http://artperth.com/01-artistsfilter.html
    Ideally I'm trying to get it so a click highlights rather than extracts particular artists but my head has been pulled away by these problems.
    Essentially in Firefox nothing is displayed in regards to the dynamic elements.
    I had thought it might be a problem with my code but discovered an anamoly with the supplied samples.
    The classic example is both online (http://labs.adobe.com/technologies/spry/samples/data_region/DataSetObserver.html) and in the set of files you can download (Spry_1_6_1_022408).
    The online version functions without issue whereas the offline version just returns blanks in Firefox. Both function without issue in Safari.

    Hi... that explains the local part at least - bit nervous about mucking around with such things - but the http://artperth.com/01-artistsfilter.html is also returning blanks online - at my end at least. I had thought it might be a mac/firefox thing but then thought perhaps the online samples use a different set of files.

  • Odd SocketPermission behaviour

    Hi,
    I've been trying to use SocketPermissions to restrict the IP addresses from which a ServerSocket will accept a connection and am getting some wierd behaviour.
    The ServerSocket will reject and close the first connection attempt from a disallowed address. Subsequent connections from the same host (using telnet) are not rejected/accepted or closed - they just 'hang there'.
    The SecurityManager is also really slow at deciding whether a connection can be accepted or rejected.
    Is this usual ? Or is there a way to setup SecurityManager to behave 'nicely' ?
    regards
    Tony Seebregts

    Just spent about an hour playing around with various things and now it seems to have resolved itself. Odd... Marking this topic as answered now.

  • Odd Quicklook behaviour

    Running mavericks 10.9.2 have noticed a small quirk in the behaviour on one of my installs.
    Selecting a group of images (mostly jpegs, sometimes tiffs) and opening quicklook. scrollling through
    and quite randomly some of the images will momentarily flash up then turn blank, if you cycle through to the start and continue
    sometimes those that didn't show, will show and vice versa. if you select the grid option then all will show.
    all images are in either sRGB or RGB in the most part 8 bit, and all without layers or alpha channels.
    there is another hard drive on my machine that has the same version of mavericks
    and does not display this behaviour
    I have also removed the quick look preferences from the users library and restarted but the behaviour continues.
    so i was wondering if anyone has come across this and if they have any ideas as to why this might be happening
    any known issues with third party apps etc.
    any advice would be gratefully received
    thanks in advance.

    Just spent about an hour playing around with various things and now it seems to have resolved itself. Odd... Marking this topic as answered now.

  • Odd return behaviour

    okay, consider the following example:
    public class Oops {
         public static void main(String args[]){
    1:          String oops;
    2:          return;
    3:          System.out.println(oops);
    }we get compile error at 3 saying unreachable statement .. fair enough.
    now, consider this:
    public class Oops {
         public static void main(String args[]){
    1:          String oops;
    2:          if(true) return;
    3:          System.out.println(oops);
    }we have modified two and now there is no errors whats-so-ever.
    However, the odd behaviour hecomes obvious if we comment out line 2 where we will get "variable oops might not have been initialized." ... so it would seem that it can recognize that if(true) return; will not let the program reach 3 and hence doesn't care if oops is initialized but why don't we get a similiar error as in example one?

    I don't see anything bizarre about this question. What
    are you referring to?Perhaps 'bizarre' was a poor choice of words. It's just that I recall silkm posting a rather similar question before (a question about how the compiler/jvm handles thing rather than what API can one use to make foo.
    No, that's not a possibility. The JLS explains exactly
    why this behavior occurs:
    http://java.sun.com/docs/books/jls/second_edition/html/
    tatements.doc.html#236365
    The reason that the second example compiles is so that
    you can have code that is conditionally compiled such
    as debugging statements. It's not bizarre at all, it's
    entirely pragmatic and practical.Yes, of course, makes sense. (Although the possibility of a compiler optimizing it out is flashed there.)

  • Odd SOAMANAGER behaviour

    Ok, I just managed to get my old Dell D610 replaced, but this new laptop has some odd behaviour with some Solman transactions.  I can get into Solman Web Workcenter no problem, but when I try to open SOAMANAGER, I get one blank IE8 window (looks like it's supposed to be hidden), and then a few seconds later a second normal looking IE8 window opens, with a partial URL.  This appears to be a problem with my local profile - I can log in to someone else's machine and it'll work, and a coworker can log into my laptop and it'll also work.
    This is the URL it directs the second window to.. https://<server>.<domain>.com/sap/public/myssocntl?sap-client=100
    whereas this is where it should be going.  https://<server.domain>.com/sap/bc/webdynpro/sap/appl_soap_management?sap-client=100&sap-language=EN
    Anyone have any ideas here?  If I call my help desk they're going to be clueless on this one..  lol..
    thanks.
    bk

    Maybe you can rename your home folder in c:\documents and settings and login again - thereby recreating your local profile.

Maybe you are looking for

  • How to make a webshop in Muse?

    Hi all, A possible new client wants a website with a shop. As I don't have any experience with shopping carts I'm orientating. I wonder for example what's better: integrate an existing html shop in the site or buy a Muse template and stitch them toge

  • Replace MacBook pro keyboard

    Hi, I have a Macbook Pro 15" (still under warranty) that I bought in the US. I am moving to France for a while and I'd like to change my qwerty keyboard to an azerty. I went to the Apple store today and asked if I could buy/order an azerty keyboard (

  • No valuation variant found for valuation area

    Dear Experts When i m clearing or puting the LOt in quality through MB31 with 101 Movment for Production Order Following Error has occured No valuation variant found for valuation area xxxx. Rgds Pankaj Agarwal

  • Error in the update routine

    Dear All, Facing the following error while writing an update routine.Please provide the solution *E:The type of the database table and work area (or internal table)* *"WA_/BIC/AO_FIMTD00" are not Unicode convertible. convertible.* Routine: data : wa_

  • Can't Install WL Plug-in into Apache

    Hi: I not sure if this the write newsgroup to post this question. I am getting this error trying to WL Plug-in into apache bash-2.03$ perl /usr/local/apache/bin/apxs -i -a -n weblogic mod_wl.so apxs:Error: Sorry, no shared object support for Apache a