java - How to transfer data between spring flows? -
i have set of data not necessary store in database.
@javax.persistence.entity @table(name = "users") public class userentity extends entity { private static final long serialversionuid = -7807480090652491368l; @transient private set<long> productsids = new linkedhashset<long>(); }
also, have 2 flows: cabinet:
<secured attributes="role_user" /> <on-start> <evaluate expression="userservice.loaduserentitybyemail(currentuser.name)" result="flowscope.user" /> </on-start> <view-state id="cabinet" view="main.xhtml"> <transitions... </view-state> <view-state id="cart" view="cart.xhtml"> <transitions... </view-state> <end-states...
content:
<on-start> <evaluate expression="currentuser!= null ? userservice.loaduserentitybyemail(currentuser.name) : null" result="flowscope.user"> </evaluate> </on-start> <view-state id="content" view="content.xhtml"> <transitions... </view-state> <end-states...
i need transfer data set<long> productsids
content
cabinet
(and vice versa, not main).
also use jsf 2.1, javascript, servlet. maybe easier transfer data help
Comments
Post a Comment