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

Using arquillian with Google Guice 4.0 and JSF 2.2

I would like to use arquillian to do some more specific tests. The application is a jsf 2.2 web application which uses google guice 4.0 for DI. In my web.xml i've defined a custom injection provider:
user3726033
  • 125
  • 2
  • 10
0
votes
1 answer

Migration from Icefaces to Primefaces JavascriptContext.applicationFocus(FacesContext.getCurrentInstance(), "");

I am migrating from old Icefaces to the newest Primefaces 5.3.5 and I need to migrate this JavascriptContext.applicationFocus(FacesContext.getCurrentInstance(), "reportSettingsForm:pageOrientationRd:_1"); How can it be migrated, please? Thanks in…
Skyware
  • 352
  • 1
  • 7
  • 16
0
votes
1 answer

How to pass value from managed bean to custom jsf component?

I have created a custom JSF component with the following code: @FacesComponent("MainMenu") public class MenuComponent extends UIComponentBase { private List items; private String title; public MenuComponent() { } …
0
votes
1 answer

JSF2 Primefaces datatable subtable or ui:repeat table

My data structure is like this: ObjectA contains Strings varA, varB and a List of 24 ObjectBs. ObjectB contains Strings varC,varD,varE. I now have a List of ObjectAs. I am trying to use a Primefaces datatable to get an output like this (in a table).…
user972391
  • 321
  • 1
  • 4
  • 20
0
votes
1 answer

primefaces graphicimage CDI bean doesn't work

i had some problem showing images retrieved by my db. View caller:
Marco
  • 169
  • 6
  • 19
0
votes
0 answers

Expression Error: Named Object: org.omnifaces.component.validator.ValidateEqual not found

I want to use JSF 2.2 with Omnifaces 2.3. I added omnifaces 2.3 jar in /WEB-INF/lib and I added POM.xml configuration: org.glassfish javax.faces
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

Click on h:panelgroup

I am struggling to get the click event on h:panelgroup which will call a method in my managedbean. I don't want binding as it is only for property. Also can someone explain the function of below line.
Farooq Arshed
  • 1,984
  • 2
  • 17
  • 26
0
votes
0 answers

Update primefaces datatable from actionListener

I have a primefaces datatable, where I added an empty line to the end. I would like to add a new empty line automatically when the last line was modified. I put the logic to the onRowEdit listener, but the datatable is not updated with the new empty…
fuqsha
  • 73
  • 1
  • 6
0
votes
0 answers

How to render current time in JSF every second by @Schedule

My problem is that i don't know how to render current time in jsf every second. I have a bean: @Schedule(second="*",minute="*",hour="*") public void showTime() { date = new Date(); } public Date getDate() { return date; } public void…
Trance
  • 1
0
votes
1 answer

JSF outputLink not appearing as a clickable URL link

I have a URL as a string stored as an attribute in a class, and I am trying to retrieve it through EL in the outputLink like below:
Kingamere
  • 9,496
  • 23
  • 71
  • 110
0
votes
0 answers

Good practice of ui:remove in JSF

We use a lot of ui:remove in our xhtml (a lot in loop also) to leave some informative comments (not to comment out some code). Saying in that, I was wondering if there is a good reason to use this if it's not to comment out code? Since I'm working…
Rapster
  • 484
  • 1
  • 5
  • 23
0
votes
0 answers

Is there a way to ajax update head tag?

There are some questions on SO on that already but most of them are quite old, I even found a mail archive from 2011 explaining that the issue was being worked on by myfaces. So, is there a way to ajax update head tag ? Can I have an http responce…
Ced
  • 15,847
  • 14
  • 87
  • 146
0
votes
0 answers

JSF @ViewScoped - @Postconstruct called multiple times

My CDI-managed @Named bean's postConstruct method is being invoked multiple times per view on page refresh in browser. However, @PreDestroy is never called. @Postconstruct method called multiple times in a CDI-managed @Viewscoped bean is an old…
Pavel Pscheidl
  • 334
  • 3
  • 11
0
votes
0 answers

Using multiple inputs file in jsf 2.2

I have the situation, that users have to fill in a formular where they have to upload multiple files. I know that there is multiple upload component in Primefaces but this doesn't fit to my requirement, since I want to know which file is either the…
0
votes
0 answers

Upgrade JSF application package without downtime

I'm interested can I upgrade JSF application without downtime. For example I can store user sessions in database using specific Apache Shiro configuration. But what about the web pages? Can I upgrade web pages without downtime?
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
1 2 3
99
100