Skip to content

Instantly share code, notes, and snippets.

@lfryc
Last active December 20, 2015 12:29
Show Gist options
  • Save lfryc/6131693 to your computer and use it in GitHub Desktop.
Save lfryc/6131693 to your computer and use it in GitHub Desktop.
<s:chart>
<r:repeat value="#{persons}" var="person">
<s:series type="line">
<r:repeat value="#{person.points}" var="p">
<s:point x="#{p.x}" y="#{p.y}"/>
</r:repeat>
</s:series>
</r:repeat>
</s:chart>
<s:chart>
<s:series type="line" value="#{persons}" var="person">
<s:points x="#{p.x}" y="#{p.y}" value="#{person.points}" var="p">
</s:series>
</s:chart>
@bleathem
Copy link

bleathem commented Aug 1, 2013

Re: the map of datamodel objects to client-side objects, the pick and ordering lists simply re-calculate the map on every request, see: https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/select/SelectManyRendererBase.java#L58

Stateless FTW!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment