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

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -