dcorking / google-wave-resources

Automatically exported from code.google.com/p/google-wave-resources
0 stars 0 forks source link

Unable to remove form element #675

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the latest Java Robot API. When a robot is initially added, it 
dynamically adds a gadget and a form button element. When that form button is 
pushed I try to remove that form element from the blip but nothing happens. 
The logs are showing that it can find the element just fine and is removing 
it from the element map, but the UI is not reflecting that change.

Original issue reported on code.google.com by ChrisDRo...@gmail.com on 7 Mar 2010 at 9:32

GoogleCodeExporter commented 9 years ago

Original comment by pamela.fox on 7 Mar 2010 at 10:18

GoogleCodeExporter commented 9 years ago
I tried this myself and it worked fine for me:

    @Override
    public void onWaveletSelfAdded(WaveletSelfAddedEvent event) {
        event.getBlip().append(new FormElement(ElementType.BUTTON, "foo", "bar"));
    }

    @Override
    public void onFormButtonClicked(FormButtonClickedEvent event) {
      BlipContentRefs all = event.getBlip().all(ElementType.BUTTON).delete();
    }

Can you attach some code to this bug that reproduces the issue?

Original comment by joe.gregorio@gmail.com on 17 Mar 2010 at 11:29

GoogleCodeExporter commented 9 years ago
Cannot be reproduced.  If you need more help with this, please post your code 
to the 
forum.  Thanks.

Original comment by austin.c...@gmail.com on 24 Mar 2010 at 11:37