- in yr backing bean: via the External Context
(FacesContext.getCurrentInstance().... --> session)
- in yr page: have a look here: http://wiki.apache.org/myfaces/
InvokingJsfPagesWithStandardUrls
good luck,
-- Wolf
On 24 Aug 2006, at 18:06, Wdiaz wrote:
Hi.
How can I use a variable that this in session?
I have this:
<% String estilo = "001";
%>
I try to use the variable like that
<h:commandButton id="boton" value="Show more" action="" image="../
images_#{estilo}/ico_lim.gif"/>
but it does not work, The html remains like that
<input id="frmPro:panelTabbedPane1:boton"
name="frmPro:panelTabbedPane1:boton" type="image" src="../images_/
ico_lim.gif" />
And it should remain like that
<input id="frmPro:panelTabbedPane1:boton"
name="frmPro:panelTabbedPane1:boton" type="image" src="../images_001/
ico_lim.gif" />
How I do?
--
Cordialmente
William Diaz Pabón
Coordinador Técnico de Desarrollo
Vicerrectoría de Gestión y Desarrollo Tecnológico
Universidad de Pamplona