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

JSF Flow - Implicit navigation doesn't work

I am getting started with JSF Flow. I am doing as stated in this tutorial http://courses.coreservlets.com/Course-Materials/pdf/jsf/jsf2/JSF-2.2-Faces-Flow-1.pdf, pages 6-12. Implicit navigation doesn't work for me, as in the tutorial. When I…
peterpepo
  • 78
  • 5
0
votes
0 answers

How to provide a dowload functionality in a Java EE web application for a file that is generated with PHP

In my Java EE web application I want to provide a download functionality of a file, which is created on the fly. The user clicks a p:commandButton which triggers some action in the underlying CDI ViewScoped bean. (non-AJAX call) From the CDI Bean…
stg
  • 2,757
  • 2
  • 28
  • 55
0
votes
1 answer

load css and js file in JSF

I am trying to load the css and js files as well as the image in the img directory from mainStyle.css but without secuss. I can not load the js file and the obama.jpg from the css stylesheet. I am facing a problem to explain why am I getting Hell…
TheBook
  • 1,698
  • 1
  • 16
  • 32
0
votes
1 answer

Expression must be a value expression but is a method expression error in jsf 2.2

I am new to jsf. I write a simple application to retrive data from the database. I am calling a method in xhtml form but it is giving me the error as follow Expression must be a value expression but is a method expression Here is my code:
Asad
  • 201
  • 1
  • 6
  • 20
0
votes
1 answer

Datatable-Pagination with and Url-Parameters

i am looking for a plain-jsf-solution to handle bookmarkable, parameterbased datatable-pagination. actually i am using an ajax-approach and a cookie to store the active page. when the user hits F5 or clicks a link in a datatable-row and then returns…
Steve
  • 384
  • 1
  • 7
  • 17
0
votes
0 answers

Wildfly Database Module Authentication : How to record logins

Hi I have implemented Wildfly Database Module Authentication for a JSF 2 application running on Wildfly 8. The authentication mechanism works perfectly, but I have a requirement where I need to create a record of the user's log ins. I am supposed…
0
votes
1 answer

JSF 2.2: using results in slow page (re)load

i have a navigation list with pure page-to-page navigation: Products Users Markets the first time i call a page,…
Steve
  • 384
  • 1
  • 7
  • 17
0
votes
1 answer

Get role and user id and save in session in JSF 2

To log ing, get parameter rol and id user: if (httpServletR.getSession().getAttribute("ush_id") != null) { ush_id = httpServletR.getSession().getAttribute("ush_id").toString(); rol_id =…
0
votes
0 answers

Dynamic page loading @ViewScoped beans are not destroyed

I am using JSF with Primefaces to load pages dynamically. all my beans are in @ViewScoped. When I navigate the beans are not destroyed. Here is my code samples My template
0
votes
0 answers

JSF2.2 Multiple field validation message not appearing.. the message is associated to a component

I am trying to validate multiple components in a .xhtml in JSF2.2 I have written a custom validator for the same. I am calling the custom validator from a hidden field . The validator gets called but the message is not appearing on the screen. I…
0
votes
0 answers

Abstract subclass of FacesConverter leads to java.lang.InstantiationException

My Setup: Mojarra 2.2.12 I have an abstractsubclass of a FacesConverter. Sometimes JSF initializes the superclass and sometimes it fails on trying to instantiate the abstract subclass. I allready found a workaround. I removed the abstract keyword…
71m024
  • 86
  • 7
0
votes
1 answer

PrimeFaces Editor not updating value

I have this editor.xhtml where I have editor and a bunch of buttons and confirmdialogs for said buttons. All of this can be used in dialogs in my web application. editor.xhtml:
Steve Waters
  • 3,348
  • 9
  • 54
  • 94
0
votes
1 answer

Primefaces datatable not updated after deleting the last row

Expected function is, I'm deleting a row from my primefaces datatable and adding the deleted list to another datatable. It works fine with the list until it reaches the last row. Actual issue is after deleting the last row it never updates itself…
Swathi
  • 602
  • 4
  • 17
0
votes
0 answers

The method called on an a commandButton's action is not invoked

I don't know why the method called on the action="#{template.questionMB.navigateToQuestionPage()} is not called. I am using JSF 2.2, I have no errors in the output and in h:messages. The logs that I put in the method are does not print into the…
Nelly Junior
  • 556
  • 2
  • 10
  • 30
0
votes
0 answers

Validations are not working except first tab of wizard and data loss between tabs

I am trying to use wizard with Primefaces (ViewScoped) . I created the page with 4 tabs. After navigating first tab, user reaches second tab and user enters some values to the input text fields at this second tab page. When the user goes the…
xxxx
  • 27
  • 2
  • 8