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
0
votes
0 answers

f:viewParam and f:viewAction not called with *.faces and *.jsf mapping, but only with *.xhtml

I have a strange behaviour in my webapp. I have bound *.faces, *.jsf and *.xhtml to my Faces Servlet. All my pages are reachable about this mappings, but with *.faces and *.jsf endings the setter of my and the method of my…
marcel
  • 412
  • 2
  • 10
0
votes
0 answers

Convert query string parameter to entity

I'm trying to do some of the most basic scenario i think. On starting page there is a list of categories from database and after i click on category there should be a page with some details about that category (maybe print it name and some product…
Yavin
  • 445
  • 3
  • 15
0
votes
1 answer

Enable\Disable commandbutton depending on URL parameter

JSF 2 allows to init URL parameter using tag. For example: and then use this parameter in the backing bean to load some objects using…
0
votes
1 answer

Primefaces poll triggers message from f:viewParam

First post here, so bare a bit with me. Searched a lot, but either because I was to blind or because I just didn't use the correct search strings, I haven't found any answer relevant to my problem. Basically, I have a web application written in…
0
votes
0 answers

f:viewParam not reading url on session lost

I am accessing my jsf page using and My page is accessing fine where parameter is read from url and getter and setter are accessed My problem is that when this page session is lost and i refresh the page to rerun i will…
bob-cac
  • 1,272
  • 2
  • 17
  • 35
0
votes
0 answers

not setting value to bean

I want to implement a simple PRG approach which for some reason is not working as per my expectation. Please help. 1) I do a POST from firstpage.xhtml
0
votes
0 answers

How to set and get viewparameter in jsf?

Im trying to send data from one jsf page to another, but without success. firstPage.xhtml Column 1
walves
  • 2,026
  • 6
  • 28
  • 46
0
votes
1 answer
0
votes
0 answers

"#{rolebean.roleId}": Target Unreachable, identifier 'roleBean' resolved to null

This is my xhtml This is my code in @ManagedBean(name =…
Deploying
  • 1
  • 1
0
votes
1 answer

f:viewparam not set in bean

I have a list of objects and each entry has a link to the object's detail view. The code for the link is
Francesco
  • 2,350
  • 11
  • 36
  • 59
0
votes
1 answer

How to use view-params with JSP?

I would like to use view parameters to get bookmarkable URLs with JSF 2, but I use JSPs and all the help and examples I can find, uses facelets. Here is want I have done so far: search.jsp (calling page):
Tim Büthe
  • 62,884
  • 17
  • 92
  • 129
0
votes
1 answer

JSF Access viewParams from within a component

I have a component to display a entry. This component can appear multiple times within the same page, and therefore just takes an entity, passes it to the component's backing bean where all the magic happens. The component's appearence can be…
dognose
  • 20,360
  • 9
  • 61
  • 107
0
votes
2 answers

Can't read accented character from query string

I set value from queryString into managedBean's property with the help of .If I print the value of property it works properly for normal character. But when queryString contain accented characters, after set value into managedBean's…
Diganta
  • 671
  • 3
  • 11
  • 27
0
votes
3 answers

Retrieving first part of two-part params[:id] in rails

I'm sure this has been answered before but I've looked everywhere, so I apologize in advance. When I run: <%= params %> I get back: {"controller"=>"spree/taxons", "action"=>"show", "id"=>"women/long-sleeve"} I'm trying to access the :id in the show…
0
votes
0 answers

JSF - bean property validation similar to viewParam?

Is there something similar to f:viewParam that can check if a given property is existent, and if not print a message? For example I have a shopping cart site where the User gets redirected to. The cart resides in session scope. On a second site a…
djmj
  • 5,579
  • 5
  • 54
  • 92