Multiple ways

1) Use JBoss-Seam @In/@Out annotations to inject/outject the values
2) Use managed properties in the faces-config.xml to have bean b
always pull the value from bean A for a given property
3) Put the value in the ExternalContext requestMap in bean A and get
it in bean B from the same map
4) Set it directly:

FacesContext facesContext = FacesContext.getCurrentInstance();
ValueBinding vb = facesContext.getApplication().createValueBinding("#{B}");
B b = (B)vb.getValue(facesContext);
b.setPropValue(getPropValue());

Do any of those match what you are looking for?

On 5/18/07, Carlos Ortiz <[EMAIL PROTECTED]> wrote:
Hi
How To use Values from a bean in a other
I'll to do this.

I Have my Bean A
then i like to put the arrtibute xx in a bean B

example
    use the iduser attribute form a session bean in a request bean for a
simple search ,
the request bean has a attribute iduser. but how do i set it to request
iduser = session iduser,
i also need that for request to request bean.

thx


Reply via email to