Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 756 by
[hidden email]: Glamour: errors when updating panels
http://code.google.com/p/moose-technology/issues/detail?id=756* Type-Defect
* Component-Mondrian
After modifying the data on one panel I update several other panels, that
are not necessarily connected together. The data is correctly updated, but
not the presentations.
Based on the example below:
#when: in the second list does not react.
* If you start with an empty collection, the list does not appear (ok),
then if you add an element the list does not appear either.
* if you start with some elements, the list is there, but after removing
all the elements the list does not disappear, and instead you have a
SubscriptOutOfBounds error because of a tab index
Example to reproduce the problem:
| browser collection |
collection := GLMAnnouncingCollection new.
collection add: 1.
browser := GLMTabulator new.
browser column: #automatic; column: #menu.
browser act: [:b | b entity add: (b entity size + 1) ] entitled: 'Add an
item in the collection'.
browser act: [:b | b entity removeLast ] entitled: 'Remove last item from
the collection'.
browser act: [:b | b update ] entitled: 'Update complete browser'.
browser transmit to: #automatic; andShow: [ :a |
a title: 'Updated automatically'.
a stackedArrangement.
a list title: [:x | 'List: ', x size printString ];
shouldValidate: true;
updateOn: GLMItemAdded from: #yourself;
updateOn: GLMItemRemoved from: #yourself ].
browser transmit to: #menu; andShow: [ :a |
a title: 'Updated via menu'.
a list title: 'List';
when:[ :e| e size > 0 ];
act: [:p | p update ] entitled: 'Update'.
a text title: 'Text'; act: [:p | p update] entitled: 'Update'. ].
browser openOn: collection
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev