jsf 2.2 - JSF 2.2: request-param in navigation-rule not found -


I have face-config.xml that has many navigation rules but I am not able to get a redirect - my page But the ultimate

I have searched a lot about this issue but I have not received any help.

detail.xhtml:

  & lt; P: command link action = "# {bean.delete ()}" & gt; & Lt; F: setPropertyActionListener target = "# {bean.deletionSuccess}" value = "true" /> & Lt; P: Confirmation header = "Confirmation" message = "Are you sure?" & Lt; / P: commandLink & gt;   

faces-config.xml:

  & lt; Navigation-Rules & gt; & Lt; Se-view-id & gt; /myDetailPage.xhtml< / To-view-id & gt; & Lt; Navigation-case & gt; & Lt; From-result & gt; From-result & gt; DeletionSuccess & LT; & Lt; Two-View-ID & gt; /myOverviewPage.xhtml< / To-view-id & gt; & Lt; Redirect / & gt; & Lt; / Navigation-case & gt; & Lt; / Navigation rules & gt;   

Java-Bean:

  Private string extinction success; Public string removal () {// some refund "delete success"; } Public Zero Set Delegation Success (String Deletion Success) {this.deletionSuccess = deletionSuccess; } Public string getDeletionSuccess () {extinction removal success; }   

overview.xhtml:

  & lt; F: metadata & gt; & Lt; F: Visitor Param Name = "Deletion Success" Value = "# {Bean Deal Success}" /> & Lt; F: visual action action = "# {bean.init}" /> & Lt; / F: Metadata & gt; ... & lt; H: form id = "main form" class = "form-horizontal overview" role = "form" method = "post" & gt; & Lt; H: Panel Group style class = "row" provided = "# {! Empty homeplugin.dillability capability}" & gt; ...   

What am I doing wrong? Or how can I get redirect-param in my xhtml page?

Thank you very much for your help!

This will not work in this way.

First of all you & lt; F: viewParam & gt; > Will have to define myOverviewPage.xhtml facelet, such as:

  & lt; F: metadata & gt; & Lt; F: Visitor Param Name = "Deletion Success" Value = "# {Bean Deletion Success}" /> & Lt; / F: Metadata & gt;   

I think you had defined it.


The way to pass the parameter is simple & lt; H: button & gt; or & lt; H: link & gt; myDetailPage.xhtml face on , eg:

  & lt; H: Button result = "deleted attempt" & gt; & Lt; F: Ultimate name = "Deletion success" value = "# {true}" /> & Lt; / H: button & gt;   

but delete public string () method has no call.

So if you want to redistribute and invite this method, & lt; H: commandButton & gt; or & lt; H: commandLink & gt; For example:

  & lt; H: commandButton value = "submit" action = "# {bean.lete}" & gt; & Lt; F: setPropertyActionListener target = "# {bean.deletionSuccess}" value = "# {true}" /> & Lt; / H: CommandButton & gt;   

--- Update
Please keep the correct file name in the Navigation Rule

  & lt; Navigation-Rules & gt; & Lt; Se-view-id & gt; /detail.xhtml< / To-view-id & gt; & Lt; Navigation-case & gt; & Lt; From-result & gt; From-result & gt; DeletionSuccess & LT; & Lt; Two-View-ID & gt; /overview.xhtml< / To-view-id & gt; & Lt; Include redirects - view-params = "true" /> & Lt; / Navigation-case & gt; & Lt; / Navigation rules & gt;   

and please add to detail.xhtml :

  & lt; P: confirmDialog global = "true" showEffect = "fade" & gt; & Lt; P: command button value = "yes" type = "button" style class = "ui-confirmdialog-yes" icon = "ui-icon-check" /> & Lt; p: Command Button Value = "No" Type = "Button" Style Class = "ui-confirmdialog-no" icon = "ui-icon-close" /> & Lt; / P: confirmDialog & gt;   

or and

confirm: header = "confirmation" message = "Are you sure?" /> to & lt; P: commandLink & gt; ; Tags

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -