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

"Response has already been committed...", when responseSendError is called from f:viewAction

I try to send a 404 response in a viewAction using Prettyfaces for URL rewriting. The application is deployed to a glassfish 4 server. If i request the index-view with http://foo.bar/home, i get the following WARNING: Response has already been…
71m024
  • 86
  • 7
0
votes
1 answer

ViewScoped bean recreated instead of calling form action

I have a managed bean, which is ViewScoped. In this bean I need to send a form (using h:commandButton). This works fine, except when I change my dropdown menu entry (which fires an event and update the page). After changing the dropdown menu's…
lesurp
  • 343
  • 4
  • 19
0
votes
1 answer

Weird issue with h:selectOneRadio on Apache Tomee 7.0.1

I can not get an f:ajax listener working on a simplest JSF 2.2 page. Values are assigned, but the listener is deaf. Strangely, the very same code is working perfectly fine if I replace h:selectOneRadio with h:selectOneMenu. Here is the html:
andbi
  • 4,426
  • 5
  • 45
  • 70
0
votes
0 answers
0
votes
1 answer

How to use h:outputLink without destroying the bean

Im using a especial protocol (SIP) to open a softphone trough my xhtml page using something like this But is destroying my bean, leaving the page useless, is there a workaround for this? any ideas would be…
PaulMB
  • 457
  • 1
  • 4
  • 17
0
votes
0 answers

how to update JSF page after database operation?

I have primefaces p:tree element. In my backing bean I have a field 'root' which holds all the tree structure. I populate this 'root' field in init method which is annotated with @PostConstruct annotation. When I perform some CRUD operation, like…
eek
  • 47
  • 6
0
votes
0 answers

SessionScoped bean created several times

I work with Eclipse Mars.2, the system has Java 1.8 update 102 for 64bits but this project uses Java 1.7, JSF Mojarra 2.2, Primefaces 6.0 and Tomcat 7.0.53/7.0.54/8.0.1/8.0.11. I have created the smallest test project in order to show the…
Jesus Schneider
  • 103
  • 1
  • 11
0
votes
1 answer

Primefaces 5.2 dialog form not submitting

I am using primefaces 5.2 dialog framework to popup a dialog from my backing bean. That dialog with a simple login form. main.xhtml as: ......
cidy.long
  • 417
  • 12
  • 35
0
votes
0 answers

Programatically and Dynamically change ajax update property in jsf

I have an AccordionPanel created programatically inside which an AJAX event is defined (also programatically) now i want to change UPDATE property of ajax dynamically on tab change event defined in above AJAX. i have tried to change using…
saurabhiitr
  • 47
  • 1
  • 7
0
votes
0 answers

JSF add parameter from bean

I working with JSF 2.1 and primefaces 6.0. I have a commandButton in page A like this: In the backingbean function: public String clickSearchButton() { DateFormat…
Jesus Schneider
  • 103
  • 1
  • 11
0
votes
0 answers

JSF tag handler limitation?

I think there is a limitation to the usage of a tag handler: a tag handler cannot be safely added to a c:forEach tag. I can understand that this type of construct may look strange, but I faced a situation where the number of custom changes made to a…
Stéphane Appercel
  • 1,427
  • 2
  • 13
  • 21
0
votes
1 answer

Passing a converter to a composite component

After some experimenting and reading up, I found the same solution as How to reference component inside a composite component when using a converter The problem however is that I have two IDs for the valueholder and according to the documentation I…
Limnic
  • 1,826
  • 1
  • 20
  • 45
0
votes
2 answers

How to open multiple component in p:inplace at once

i need to make all component editable when i clicked on h:commandLink This my code
salah atwa
  • 86
  • 11
0
votes
0 answers

How to run eager loaded Application scoped Bean with dependencies?

I´m starting my Bean when the application starts with the following Bean: ... @ManagedBean(eager = true) @ApplicationScoped public class LoadBean implements Serializable { ... It Works as expected, the problem is (I suppose) that dependencies used…
juanmorschrott
  • 573
  • 5
  • 25
0
votes
1 answer

JSF client-side event framework to reduce coupling and network traffic

A Web Page contains both 'static' HTML elements (they will never be updated) and 'dynamic' elements, which are updated by some JavaScript code. In server-side technologies like JSF, it's quite easy and convenient to let the server regenerate entire…
Stéphane Appercel
  • 1,427
  • 2
  • 13
  • 21