History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: PSL-24
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Jens Halm
Reporter: Nico Zimmermann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Parsley - Spicelib

processor-template always passes same attribute value

Created: 05/Mar/08 11:12 AM   Updated: 20/Sep/09 10:38 PM
Component/s: Parsley IOC Container
Affects Version/s: 1.0.RC1
Fix Version/s: 1.0.0


 Description  « Hide
<processor-template tag-name="screen">
<init-method name="registerScreen">
<object-ref id="${@name}" />
</init-method>
</processor-template>

<object id="screenView" type="com.powerflasher.niczim.parsleytest1.ScreenView">
<ui:screen name="homeScreen" />
<ui:screen name="historyScreen" />
</object>

The value of ${@name} is both times "homeScreen". But in the second time it should be "historyScreen"

 All   Comments   Change History      Sort Order:
Jens Halm - 05/Mar/08 02:53 PM
Apparently this cannot be reproduced with all types of child nodes. It happens with object-ref in the example above, but not with string or other simple value tags for example. Maybe a caching problem.

Jens Halm - 05/Mar/08 03:19 PM
Had to disable caching of evaluated attribute values.