This content has been marked as final.
Show 2 replies
-
1. Re: Adding original SelectItem to ClientSelectItem
bleathem Jul 28, 2011 12:45 PM (in response to bleathem)Also a concern, is what happens when this ClientSelectItem is passed to javascript uusing the cdk:scriptOption tag? How will the SelectItem be represented in javascript? Simply as a toString()hash that we can ignore?
-
2. Re: Adding original SelectItem to ClientSelectItem
nbelaevski Jul 29, 2011 12:13 AM (in response to bleathem)Brian,
From what I see, it's not stored anywhere, but used for encoding only.
Note that some instances of SelectItem are not coming from the user's model, but created for SelectItems by factory method.
On the JavaScript question - ClientSelectItem implements special ScriptString interface. What cdk:scriptOption tag does is just putting object into options map, so this means that toScript() method of CSI will be called when the container map object is serialized