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

Change event lost on re-rendering dependent radio button

Given: one input and one clickable input (e.g. radio button). Change of a re-renders b.
0
votes
0 answers

Bean method invoked without explicitly called

I'm learning how to write a JSF application with Shiro but running into some issue with the login page that I made. In debug mode, it seems to be invoking a bean method before I even called it via a HTML command button. The method is not being…
MooCow
  • 367
  • 2
  • 6
  • 24
0
votes
1 answer

Dynamic Menu works fine, but when responsive, stop working

I got a dynamic menu on my website, which comes trough options previously update on the database. Inside each options, there's a list of sub-options. When I click in a sub-option, it should bring the stores for that sub-option from the database. So…
0
votes
1 answer

Reading return value of JSF action method in JS

I've got a simple commandbutton which fires an action method in a backing bean. This method returns a string. In some cases null, in some cases an explicit navigation.
Steven De Groote
  • 2,187
  • 5
  • 32
  • 52
0
votes
0 answers

Create TreeTable programmatically

I need arbitrary nested TreeTable's, so I created them programmatically by: TreeNode r=new DefaultTreeNode("R",null), s=new DefaultTreeNode("S",r), t=new DefaultTreeNode("T",s); s.setExpanded(true); t.setExpanded(true); TreeTable treeTable=new…
Marc Dzaebel
  • 425
  • 4
  • 12
0
votes
0 answers

Export PrimeFaces PanelGrid

I'm trying to export a PanelGrid(xls/pdf), not possible via DataExporter (specific for DataTable type parameter), is it possible using a CustomExporter ? Do I have to use a non primefaces mean (eg JQuery) or do I have to change my code to ensure…
JCE
  • 11
  • 4
0
votes
0 answers

Apache shiro: Unable to start application after configuring shirofilter

I'm developing a maven based JSF webapp with PrimeFaces 6.0 and Apache Shiro 1.3.1 under TomEE 7.0.1. The IDE is NetBeans 8.1. pom.xml javax
Deepak Marur
  • 537
  • 1
  • 13
  • 27
0
votes
1 answer

spring,jsf and hibernate application : controller and managedbean approch

What is the difference beetween implementing a spring,jsf and hibernate application using managedbean and controller. I'm working on a project using spring hibernate controller approach and i whould to integrate the jsf to handle the view part but…
kourouma_coder
  • 1,078
  • 2
  • 13
  • 24
0
votes
0 answers

How can I efficiently compare a list of objects' fields and display in JSF

I have a list of quite detailed objects to compare: List objectsToCompare; In the objects there are many fields which could be another Object, String, int, list, etc. I need to present to the user a table representation of these objects…
Mark W
  • 5,824
  • 15
  • 59
  • 97
0
votes
0 answers

Highlight p:datatable row by mouseover, but can not get the highlighted row value

This is a primefaces showcase on official website: http://www.primefaces.org/showcase/ui/data/datatable/contextMenu.xhtml when you move your mouse over the datatable, and right click, you can not get the row object which you highlighted by mouse…
Jack Chan
  • 23
  • 10
0
votes
1 answer

In what context is "msg" a reserved keyword?

The following dataTable shows "???messageId???" instead of the correct id:
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
1 answer

Disable selection in datatable

I'm using Primefaces 5.3, and I'm filling a datatable with some records from the database if the length of records is lower than 10 I complete it with empty records so the datatable always diplays 10 rows. My datatable looks like this :
Renaud is Not Bill Gates
  • 1,684
  • 34
  • 105
  • 191
0
votes
1 answer

Set scope of returned instance in custom ELResolver

I have written an custom ELResolver wich returns an instance of an Session Bean. I look up a bean by JNDI. The getValue method looks like this: @Override public Object getValue(ELContext ctx, Object base, Object prop) { if (null == base) { …
0
votes
1 answer

JSF optional converter in composite component

JSF2.2, primefaces 4, omnifaces 1.8.11. In a composite component, how to to declare and use a converter as an attribute which is optional (that is to say it could be not used). For a exemple interface
jpl
  • 347
  • 3
  • 11
0
votes
1 answer

blocked threads on a jsf app running on glassfish 4.1.1

I have a JSF 2.2 spring 4.x running on a glassfish 4.1.1 server. The server is proxyed by an apache 2.4 which sends all the requests to glassfish via ajp protocol. The AJP listener is mapped on a thread pool with min 50 and max 150 threads. Lately I…
Videanu Adrian
  • 972
  • 3
  • 16
  • 41