i'm trying create navigation case can called backing bean action or outcome link, created in faces-config.xml:
<navigation-case> <from-outcome>curso-list</from-outcome> <to-view-id>/core/curso/curso-list.xhtml</to-view-id> <redirect /> </navigation-case>
this works outcome link didn't work actions. added this:
<navigation-case> <from-action>#{cursodetalhemb.salvar}</from-action> <from-outcome>curso-list</from-outcome> <to-view-id>/core/curso/curso-list.xhtml</to-view-id> <redirect /> </navigation-case>
but outcome didn't work too. noted problem occurs when use ajax inside form. if don't make ajax request action redirect works normally, when make ajax request action redirect don't work.
i found problem don't know how fix. form before ajax request:
<form id="j_idt60" name="j_idt60" method="post" action="/project/core/teste.xhtml" enctype="multipart/form-data">
my form after ajax request:
<form id="j_idt60" name="j_idt60" method="post" action="http://localhost:8080/project/core/teste.xhtml" enctype="multipart/form-data" target="jsfframeid"> <input type="hidden" name="j_idt60" value="j_idt60">
note "target" property, if remove navigation works fine don't know why jsf add property.
Comments
Post a Comment