dcorking / google-wave-resources

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

Bug: Annotation around a button gets lost by pressing it. #757

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi everyone!
If you set an annotation like in my case 

blip.first(ElementType.BUTTON,FormElement.restrictByName(button))
            .annotate(name, value);

and thereafter press that button in the wave the Annotation disappears.

Tested in Sandbox and Preview, same behaviour.

Original issue reported on code.google.com by Rotkohle...@gmail.com on 7 May 2010 at 2:26

GoogleCodeExporter commented 8 years ago
Can you post some code that recreates the issue? I just tried this in sandbox 
and the 
annotation did not disappear.

Original comment by joe.gregorio@gmail.com on 13 May 2010 at 1:05

GoogleCodeExporter commented 8 years ago
I used that code to append a button in java:
Blip.all().insertAfter(new FormElement(ElementType.BUTTON,"Btn",value,default));

and thereafter doing the annotation with
Blip.first(ElementType.BUTTON,FormElement.restrictByName("Btn")).annotate("MyApp
.apps
pot.com/Section", "000");

(Btw. I didn't manage to get the BundledAnnotations to work neither with 
BundledAnnotation().listof("Key", "Value") nor with an explicit List. It 
doesn't 
throw an error, but just doesn't annotate anything.)

If I thereafter receive a "onFormButtonClicked" Event of that button the 
Annotation 
is lost right away.
Hope that helps. 

Original comment by Rotkohle...@gmail.com on 16 May 2010 at 7:49

GoogleCodeExporter commented 8 years ago
OK, making the annotation of length 1 and only on the button is what I was 
missing to 
reproduce. I've now confirmed this as a bug, star this issue for further 
updates.

Original comment by joe.gregorio@gmail.com on 27 May 2010 at 3:33