users@javaserverfaces.java.net

Re: A form do not execute the navigation rule

From: Doug Donahue <Douglas.Donahue_at_Sun.COM>
Date: Sun, 09 Dec 2007 09:16:23 -0500

Are you getting any errors at all?

can you provide teh bean itself, or at least the method?

    dougd

uess85 wrote:
> Hi everybody, I'm new in this mailing list and I hope that I can find all the
> aid I need. I will explain my problem.
> I have a JSF page with these tags:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
>
> <html>
> <head>
> <title>Dettaglio elementi conoscenza</title>
> </head>
> <f:view>
> <h:form id="dati">
> <h:panelGrid columns="2">
>
> <h:outputText value="Nome" />
> <h:inputText value="#{dettaglioElementoConoscenzaBean.corrente.nome}"/>
>
> </h:panelGrid>
>
> <h:selectOneRadio
> value="#{dettaglioElementoConoscenzaBean.tipo_selezionato}"
> layout="pageDirection" >
> <f:selectItems value="#{dettaglioElementoConoscenzaBean.lista_tipi}"/>
> </h:selectOneRadio>
>
> <h:commandButton id="salva_modifica" value="Salva modifica"
> action="#{dettaglioElementoConoscenzaBean.saveEditedElemento}"/>
>
> <h:inputHidden value="#{dettaglioElementoConoscenzaBean.old_nome}" />
> <h:inputHidden value="#{dettaglioElementoConoscenzaBean.old_tipo}" />
>
> <f:verbatim>
> </f:verbatim>
> <h:outputLink value="lista_elementiconoscenza.jsf">
> <f:verbatim>Annulla</f:verbatim>
> </h:outputLink>
>
> </h:form>
>
> </f:view>
> </html>
>
> When I click on the button, the method saveEditedElemento isn't call. I
> don't know why. Can you tell me what is wrong? Thaks to all.
>