Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the transformation block is not called correctly #1028

Closed
seandenigris opened this issue Aug 3, 2015 · 2 comments
Closed

the transformation block is not called correctly #1028

seandenigris opened this issue Aug 3, 2015 · 2 comments
Milestone

Comments

@seandenigris
Copy link
Contributor

Originally reported on Google Code with ID 1028

When using a transmission with a transformation block, the transformation block is not
called when creating the presentations. The code bellow will show a list from 1 to
10 instead of one from 1 to 20:

browser := GLMTabulator new.
browser row: #row.
browser transmit 
    to: #row; 
    transformed: [ :anInt |  anInt+10 ];
    andShow: [ :aComposite :anInt |
        aComposite list
            display: [ 1 to: anInt ] ].
browser openOn: 10.

The transformation block is only called when populating the port, which happens after
the presentation was created. 

This can be fixed by modifying GLMPresentStrategy>>presentations to use the transformation,
but the the block will be called two times.

Reported by chisvasileandrei on 2013-12-12 14:00:06

@seandenigris
Copy link
Contributor Author

Reported by chisvasileandrei on 2013-12-12 14:00:19

  • Labels added: Component-Glamour

@girba
Copy link
Member

girba commented Jun 9, 2017

This is actually still relevant.

@girba girba added this to the 6.1 milestone Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants