Questions tagged [jsf-2.2]

JavaServer Faces 2.2 is the major JSF upgrade that's part of Java EE 7. It has some significant new features like task flows (Faces Flow), a stateless mode, basic theming (resource library contracts), build-in HTML5 support and a much improved "bare HTML" mode (passthrough elements). Starting from this version, JSF formally supports CDI and for some features even depends on CDI.

For the real wiki, please jump over to the wiki: https://stackoverflow.com/tags/jsf/info.

2253 questions
0
votes
1 answer

ViewExpiredException when accesing site via googlebot

On my JSF page (Primefaces) googlebot is causing ViewExpiredException when accessing site. It happens only on POST requests (invalid javax.faces.ViewState?). I'm running on Wildfly 9.0.1.Final, Primefaces 5.3 My web.xml
radzionkow
  • 21
  • 4
0
votes
0 answers

Serving an or similar in the event of a null exception in a file download method

I have a JSF 2.2 xhtml page with a button within a form tag as follows - which enables the download of a file.
anvw
  • 149
  • 3
  • 15
0
votes
1 answer

Is there a better way to update my backing bean without submitting the form?

I have this p:inputTextarea: Since I moved the submitting form button elsewhere, myBean.data stays null when clicking on the button So I did this:
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
0 answers

Avoid prepending id on custom component's inner elements

I am refactoring an existing codebase to use composite components. A lot of the existing logic uses the id on the element. As soon as I extract some html into a custom component and give it an id X, then the id on the inner html changes to X:id.…
vanval
  • 997
  • 1
  • 9
  • 19
0
votes
1 answer

Ajax event not being invoked

One of the pages from my application has a selectOneMenu component with an Ajax event that does not get triggered. I've similar pages, with similar components, that work as expected. One example that works:
EPMS Devteam
  • 273
  • 2
  • 15
0
votes
0 answers

JSF Primefaces: How to reference an ID from one page to another?

Before you mark this as duplicate, I read this post from BalusC but I could not find my answer. I also tried p:component() to reference my component. My use case is really simple: A commandButton on one page should update a dataTable on another…
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
0 answers

h:commandButton not working

I'm having a problem with JSF CommandButton action not working. I have a managed bean merchantController and I'm using following code in controller to display popUpURL page. RequestContext .getCurrentInstance() …
Gaurav
  • 9
  • 4
0
votes
1 answer

JSF Primefaces: Update a dataTable open in another tab?

I have a simple webapp which allows the user to create transactions, and on another page the user can see all past transactions. I would like: To have the dataTable be up-to-date when I open the past transaction page To update the dataTable when I…
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
1 answer

How to make jsf to allow duplicate ID?

We are upgrading JSF 1.2 to 2.2 and we have hundreds of JSF files with duplicate IDs, and those IDs are used in Java code also. If we change these in the JSF files, we will need to change them in so many places. How can we have JSF allow duplicate…
Raj
  • 2,463
  • 10
  • 36
  • 52
0
votes
1 answer

Omnifaces-Exception: CDI BeanManager instance is not available in JNDI

i have problems with deploying my jsf-application on the upserver. starting tomcat results in the following exception: 14-Jul-2016 07:26:52.661 SEVERE [localhost-startStop-1] com.sun.faces.config.ConfigureListener.contextInitialized Critical error…
Steve
  • 384
  • 1
  • 7
  • 17
0
votes
0 answers

Tag Library supports namespace: http://xmlns.jcp.org/jsf/core, but no tag was defined for name: selectedOneMenue

I am trying to test the working of thef:selectedOneMenue tag but when running the code on the server I am getting the error underneath. I just want to show the content of the food arrayList in the ContactBeanTwo as a select button so that the user…
Mr Asker
  • 2,300
  • 11
  • 31
  • 56
0
votes
0 answers

JSF: Set the validation message to english in eclipse

I am lerning JSF framwork and I want to Change the language of the shown validation message to english in Eclipse instead f of my own language. How can I get it to work in Eclipse?
The Time
  • 697
  • 5
  • 12
  • 26
0
votes
0 answers

not showing JTiday parsed data in

I am using JSF 2.2 and RichFaces 4.5.1. In one of the rich:popupPanel I am using h:outputText tag to show HTML data that is parsed by JTidy. Data is the response from one of the web services that we are using. JTidy adds CDATA tag in parsed HTML…
0
votes
1 answer

JSF does not redirect with navigation-case

I am tryint to do the redirection with the aid of the navigation-rule in the faces-config.xml file but I am facing problem I am not being redirected to the welcome.xhtml page from the index.xhtml page after clicking the login button. The login() as…
Mr Asker
  • 2,300
  • 11
  • 31
  • 56
0
votes
1 answer

The class 'com.beans.LoginBean' does not have the property 'message'

I am trying to learn how the @NoneScoped as well as @ManagedProperty work but I am getting the error The class 'com.beans.LoginBean' does not have the property 'message' although I have message as prperty in the LoginBean class. What does that…
The Time
  • 697
  • 5
  • 12
  • 26