Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I don't know the specifics of the methods you tried to achieve your goal and hence we cant tell what was wrong with them, but if we consider your code 'as is' you don't have <em>anything</em> that will pass the string you want.</p> <p>Not to repeat ourselves, there are plenty of answers here dedicated to using this or that method, so I will give you the best references, in my opinion, of course.</p> <ol> <li><a href="https://stackoverflow.com/questions/4994458/how-can-i-pass-a-parameter-to-a-commandlink-inside-a-datatable/4994833#4994833">How can I pass a parameter to a commandlink inside a datatable</a>;</li> <li><a href="https://stackoverflow.com/questions/4888942/viewparam-vs-managedpropertyvalue-param-id/4889226#4889226">ViewParam vs @ManagedProperty</a>;</li> <li><a href="https://stackoverflow.com/questions/6377798/what-can-fmetadata-and-fviewparam-be-used-for/6377957#6377957">What can <code>&lt;f:metadata&gt;</code> and <code>&lt;f:viewParam&gt;</code> be used for</a>.</li> </ol> <p>Regarding the usage of back buttons in JSF you could also take a look at my own answer on <a href="https://stackoverflow.com/questions/15130190/how-to-get-back-to-same-jsf-page-on-pressing-of-some-button-from-another-jsf-pag/15135899#15135899">How to get back to the same page in JSF</a>.</p> <p>By the way, using POST for page-to-page navigation is considered to be a bad practice. If all you need is to navigate to another page you'd better use plain <code>&lt;h:link&gt;</code> or <code>&lt;h:button&gt;</code> instead.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload