adding param to commandLink /w ice:graphicImage
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
adding param to commandLink /w ice:graphicImage  XML
Forum Index -> General Help
Author Message
hrBaer

Joined: 25/04/2009 00:00:00
Messages: 47
Offline


Hi everybody,

I'm trying to add a param to a link.
The normal behaviour looks like this:

Code:
 <ice:commandLink actionListener="#{bean.link}" value="Details">
 	<f:param name="xyz" value="1" />
 </ice:commandLink>
 


In the next step I replaced the value of the link by an image but without any params:
Code:
 <ice:commandLink actionListener="#{bean.link}">
 	<ice:graphicImage url="image.gif" />
 </ice:commandLink>
 


So far so good. But in a further step I would like to add the param attribute to the link:
Code:
 <ice:commandLink actionListener="#{bean.link}">
 	<ice:graphicImage url="image.gif">
 		<f:param name="xyz" value="1" />
 	</ice:graphicImage>
 </ice:commandLink>
 


My problem is, that I don't get any params in my managed bean. Any ideas?

Thanks in advance!
hrBaer

Joined: 25/04/2009 00:00:00
Messages: 47
Offline


I also tried the following code but without any success:
Code:
  <ice:commandLink actionListener="#{bean.link}">
  	<ice:graphicImage url="image.gif" />
 	<f:param name="xyz" value="1" />
  </ice:commandLink>
 


Maybe s.o. knows what to do?!
hrBaer

Joined: 25/04/2009 00:00:00
Messages: 47
Offline


omg ... maybe I should use a commandButton with f:attribute instead ;)

- close -
ljcollazos

Joined: 09/10/2009 00:00:00
Messages: 32
Offline


I use <img> instead of <ice:graphicImage> and it works:

<ice:commandLink action="#consultaUsuEntBean.borrarUsuario}" styleClass="celdaPaginador" rendered="#{registro.fechaBaja == null}" onclick='if (!confirm("¿Desea dar de baja el usuario \"#{registro.usuario}\"?")){return false;}'>
<img src="../imagenes/eliminar.gif" border="0" ></img>
<f:param name="usuarioSeleccionado" value="#{registro.usuario}"/>
</ice:commandLink>
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team