Component does not set the Java property
cacelis Aug 10, 2011 3:46 PMHi there.
I have the next code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"">
<ui:composition template="/layout/template.xhtml">
<ui:define name="body">
<rich:panel id="panel">
<f:facet name="header">
<h:outputText value="Report BIRT Generaton" />
</f:facet>
<table>
<tr>
<td>Select one menu example:</td>
<td><h:selectOneMenu value="#{report.pruebaParameter}">
<f:selectItem itemValue="0" itemLabel="Seleccione..." />
<f:selectItem itemValue="5" itemLabel="5" />
<f:selectItem itemValue="10" itemLabel="10" />
<f:selectItem itemValue="15" itemLabel="15" />
<f:selectItem itemValue="20" itemLabel="20" />
<f:selectItem itemValue="25" itemLabel="25" />
<f:selectItem itemValue="30" itemLabel="30" />
<f:selectItem itemValue="35" itemLabel="35" />
<f:selectItem itemValue="40" itemLabel="40" />
<f:selectItem itemValue="45" itemLabel="45" />
<f:selectItem itemValue="50" itemLabel="50" />
</h:selectOneMenu></td>
</tr>
</table>
<s:button value="Generar reporte" action="#{report.generateReport()}"></s:button>
</rich:panel>
</ui:define>
</ui:composition>
</html>Navigation rule is defined like as:
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://jboss.com/products/seam/pages" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
login-required="false">
<navigation from-action="#{report.generateReport()}">
<rule if-outcome="REPORT">
<redirect view-id="/distribution/report/medium.xhtml" />
</rule>
</navigation>
</page>The problem is: the value selected in selectOneMenu component is not calling the method getPruebaParameter() in ReportBackingBean.java (report).
Can you help me? Please.
Thanks in advance.