Hi Sebastien,

the alias bean is provided only during encoding of jsf components, this
means that, if your t:aliasBean is inside a component which
rendersChildren=true, any layouting panel component e.g., the bean is
not accessible from jsp code.

Regards,
  Volker

Sebastien Boutte wrote:
> Hi all,
> 
> I would like to access an alias bean from a jsp code how can i do that ?
> Any Ideas ?
> 
> Thanks a lot
> 
> Sébastien Boutte
> 
> My first page is :
> 
> <t:aliasBean alias="#{monbean2}" value="#{monbean1}">
>    <jsp:include page="page2.jsp">
> </t:aliasBean>
> 
> My second Page:
> 
> <%
>   Object value = retrieveMethod("monBean2");
> %>
> jsf code
> 
> I try several methods but all return null value:
> 
> 1.
> 
> FacesContext ctx = FacesContext.getCurrentInstance();
> ValueBinding actualBean =
> ctx.getApplication().createValueBinding("#{bean}")
> Object value = actuabean.getValue(...);
> 
> 2.
> 
> (String)
> FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(bean);
> 
> 3.
> 
> FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(bean);
> 
> 
> 4.
> 
> FacesContext.getCurrentInstance().
> getExternalContext().getRequestParameterMap().get(bean);
> 
> 
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to