Salut, j'ai remarqué que mon navigation-rule ne fonctionnait pas
j'ai d'abord un formulaire :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
               <html:form>
                    <fieldset>
                        <legend>Nouvelle catégorie</legend>
                    <html:outputLabel value="Nouvelle catégorie :" for="categorie"></html:outputLabel>
                    <html:inputText value="#{categorie.categorie}" binding="#{categorie.composantCategorie}" size="30" maxlength="100"></html:inputText>
                    <br/>
                    <html:commandButton value="Valider" action="#{categorie.postAdmin()}"></html:commandButton>
                    </fieldset>
                </html:form>
l'action se passe normalement les données sont traitées :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
    public String postAdmin() {
        this.blank();
        this.getPostsAdmin();
        this.verifPostsAdmin();
        this.enregCategorieAdmin();
        this.setStringReturn("success");
        return this.getStringReturn();
    }
Mais mon navigation-rule ne fonctionne pas, car j'ai essayé de mettre des adresses fantaisistes dans <to-view-id> et ça ne change rien la page du formulaire est réaffiché (mais sans le lien vers l'ancre #form) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
    <navigation-rule>
        <from-view-id>/admin/creer-categorie.html</from-view-id>
        <navigation-case>
            <from-action>#{categorie.postAdmin()}</from-action>
            <from-outcome>success</from-outcome>
            <to-view-id>/admin/creer-categorie.html#form</to-view-id>
        </navigation-case>
    </navigation-rule>
J'utilise JSF2.1 et prettyfaces jsf 2.3.3.2 pour la réécriture d'url.
Merci