how to push component state changes to multiple different pages using icefaces -


in project want upload image in 1 page(ie:in 1 view),after uploading image event generated , bean1 executed.please provide solution updating loaded image page(ie second view)in use graphicimage component.how refer second view components in bean1 without generating event second view.

is possible ajax push using icefaces 1.8.2 discussed above.

icefaces uploads file specific path, given by

{application root}/{upload directory}/{session id} 

the upload directory specified in web.xml. session id folder optional, depending on whether specified "uniquefolder" attribute in tag. can set upload path attribute in tag.

you can store file path in string or in session variable through actionlistener inputfile.

to refer path string bean2 without using backing bean, can bind components "#{bean1.pathstring}". if want use backing-bean, can do:

((bean1) gebean("bean1")).getpathstring() 

but if extend abstractpagebean. also, bean1 should session scoped either case.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -