Hello everybody!
I have read some issues, but I still not understanding why my code is not working. Could anyone give me some help? Here is my code:
// my JSF page
<p:graphicImage value="#{testeServlet.chartImage}" rendered="#{ports.tipoPorta == 'entrada analogica'}">
<f:param id="_valorLido" name="_valorLido" value="#{ports.valorPorta}"/>
</p:graphicImage>
// my ManagedBean
Map<String,String> map = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
try{
String valor_lido = (String)map.get("_valorLido");
System.out.println("***Valor: "+valor_lido);
}
I tryied solve that using two type os scopes, REQUEST and SESSION scope! But didnt find the solution. I am trying to create a image dynamically by passing parameters due to set values in this image, in my case, I am creating a chart and transforming It in a image!
Thanks in advance!
Problem: trying to use <f:param> with <p:graphicImage>!
-
- Information
-
Who is online
Users browsing this forum: No registered users and 59 guests