Questions tagged [viewparams]

JSF tag to declare a GET parameter.

"View parameters" is a JSF specific term for GET request parameters which can be set on the model by the <f:viewParam> JSF UI component on the view. They follow the same lifecycle as regular UIInput components, complete with support for declarative conversion and validation and message handling.

Frequently asked questions

108 questions
1
vote
1 answer

Issue when converting GET request parameters on viewParam

I'm trying to convert GET request parameters passed from another view like this:
NoElles
  • 13
  • 3
1
vote
1 answer

GET parameters not being passed to ViewScoped ManagedBean

I have a p:dataTable with p:contextMenu and some p:menuitems. One of these menu items should pass on an id to another view which is read like pointed out here. The thing is the converter throws the required message like the id wasn't sent - and it…
synti
  • 67
  • 7
1
vote
1 answer

JSF - built-in methods that create url query string from f:param and includeViewParams

Most of my page navigation uses get requests and now I have a form where the parameters should be included as query-string parameters using f:param inside h:commandButton or checking attributes for includeViewParams to use UIViewParameter. I do not…
djmj
  • 5,579
  • 5
  • 54
  • 92
1
vote
1 answer

f:viewParam lost after ajax call

I have this f:viewParam to set value and do search in back bean in view: ... Back…
Eric Garcia
  • 190
  • 1
  • 1
  • 8
1
vote
1 answer

h:commandLink f:ajax action not called when page has f:viewParam required="true"

In my web app, JSF2 (mojarra 2.1.20), there is a strange behaviour on a page having a component with the following snippet:
maxqua72
  • 391
  • 1
  • 9
  • 25
1
vote
1 answer

JSF Templating: f:event works, f:viewParam doesn't

Following the example of the spec, I have a template and a template client. default.xhtml (template):
riha
  • 2,270
  • 1
  • 23
  • 40
1
vote
2 answers

JSF ViewParams not being passed

I am finding view params will not be passed from a page where the backing bean is different on the target page. How can I pass the product param from test1.xhtml to test2.xhtml? test.xhtml
DD.
  • 21,498
  • 52
  • 157
  • 246
1
vote
1 answer

when exactly is the setter for invoked

I have defined an f:metadata section on my xhtml page as shown below with a f:viewParam as shown in the below excrept:
Marcus Junius Brutus
  • 26,087
  • 41
  • 189
  • 331
1
vote
1 answer

Dynamicly included page form first submit fails

I got a strange behaviour on dynamicly included page My first page has a combo to choose from different pages to include :
Gauthier Peel
  • 1,438
  • 2
  • 17
  • 35
1
vote
1 answer
0
votes
1 answer

How to send Entity in API DELETE with HTTP-CLIENT

I have to call a DELETE Method inside one of the APIS of a client. This shouldn´t be a problem but I am struggling with the framework that my company currently uses and I hope I can get some info that hopefully will help me solve the problem: First…
Grismak
  • 192
  • 16
0
votes
1 answer

IllegalArgumentException: Unsupported rows per page value, in datagrid primefaces

Good Morning,Im new in jsf,Im tring to put into the datagrid the product that belong to a Marca(Brand) passed by a viewparam this is some jsf code
pierp
  • 33
  • 6
0
votes
1 answer

NumberFormatException:null when change page in datagrid

Good evening,Im new in jsf,Im tring to put into the datagrid the product that belong to a Marca(Brand) passed by a viewparam this is some jsf code
pierp
  • 33
  • 6
0
votes
0 answers

how can i pass an url parameter between two xhtml pages?

i am trying to pass a parameter between two pages in the bean i have this string with getters and setters outcome is the function to run with the button @Named("MeubleBean") @ManagedBean @SessionScoped @RequestScoped public class MeubleBean…
0
votes
0 answers

JSF: reloading page via p:button using "?includeViewParams=true" results in %2C for integer GET param in new URL

I have a page that has two GET params: round = [some integer] group = [some string] See URL above. These are the two components of the group's PK, an INT + a VARCHAR. Facelet code:
Kawu
  • 13,647
  • 34
  • 123
  • 195