Questions tagged [jsf-2.3]

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create HTML form based web applications. 2.3 is the version name.

JavaServer Faces 2.3 is the major JSF upgrade that's part of Java EE 8. It has some significant new features like tighter integration with CDI, support for WebSockets, a component search expression framework and a multi-field validation.

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

160 questions
0
votes
1 answer

Simulating a click on a is not working

I need to upload a file using . I am using the following code: ...
Jucaalpa
  • 310
  • 1
  • 4
  • 15
0
votes
0 answers

Why @Model is @RequestScope not @SessionScope or @ViewScope?

I read this answer on JSF backing bean structure (best practices) and this article about the same subject and I'm really confused. In the answer and the article, model-beans are session scoped but the javax.enterprise.inject.Model @Model annotation…
alibttb
  • 526
  • 4
  • 19
0
votes
1 answer

Multiple in

I am developing a CMS using JSF 2.3. I need to pass a GET parameter to every page indicating the site that the user is managing. To do this I am using in all pages, but I have the following doubts: Is it OK to use multiple…
Jucaalpa
  • 310
  • 1
  • 4
  • 15
0
votes
0 answers

How to display p:calendar and p:dialog with Primefaces 6.2?

I am using Eclipse 2018-09, in addition to Apache Tomcat 9.0.14. I also use PrimeFaces 6.2 and JSF 2.3. The problem is that p:calendar is not displayed in any browser. It appears as a simple p:inputText. I tried in all possible ways with all the…
Alex
  • 159
  • 2
  • 7
0
votes
1 answer

JSF 2.3 on open liberty. Immediate javax.faces.application.ViewExpiredException

I am experimenting with Open Liberty and wanted to try out JSF-2.3 support. I must be doing something silly because when trying implicit navigation I immediately get the exception: javax.faces.application.ViewExpiredException: View…
Daniel
  • 744
  • 8
  • 24
0
votes
0 answers

@Observer not working in JSF @Viewscoped annotated bean

I want to implement CDI event on a managed bean with @ViewScoped this is my example code : CDI managed bean for JSF: @ViewScoped @Named public class SampleBean implements Serializable { public void pushEvent(@Observes String str) { …
mah454
  • 1,571
  • 15
  • 38
0
votes
0 answers

place external JavaScript after CSS file inside head element using JSF 2.3

I use JSF 2.3 for developing web application. As a web developer, I care about the performance of loading speed of a site. As I was exploring on how I could make my site faster, I encountered this post on Stack Overflow. And the quote from the…
tet
  • 1,287
  • 1
  • 17
  • 36
0
votes
0 answers

JSF 2.3 - How to update parts of the view from a backing bean

The application itself is about generating word-search puzzles. On the view (index.xhtml), there is a form collecting parameters such as rows, cols, etc. Clicking the "generate a puzzle" button invokes the "generate" method in the backing bean. The…
Nicole Naumann
  • 1,018
  • 2
  • 10
  • 23
0
votes
0 answers

Java 8 default method throws PropertyNotFoundException

I have a Java 8 interface for managing instances read from the DB, e.g. in a JSF datatable. public interface Manager extends Serializable { public List getEntities(); public void setEntities( List entities ); // another default…
Kawu
  • 13,647
  • 34
  • 123
  • 195
0
votes
2 answers

Why are comopnents of another form validated with JSF 2.3?

I just upgraded to JSF 2.3 & Wildfly 14 (from 2.0 and 13) and primefaces 6.2.5. I noticed a strange behavior when i use a command button. I have 2 forms and when a push the button of the first form, the input of the second form is validated and the…
jobe
  • 325
  • 2
  • 14
  • 25
0
votes
1 answer

JSF memory footprint

I was wondering if there is an 'easy' way to see what the memory footprint is, used by the objects created by JSF. For instance, I have some @SessionScoped objects and some @ViewScoped objects when going to a certain page. I would like to know how…
0
votes
1 answer

Context-root with JSF 2.3 Web Application on GlassFish 5

I have a hard time trying to configure the context-root for my web application consisting of two artifacts, a Web Archive and an EJB.jar (XYZ_war.war and XYZ_ejb.jar) I can reach the application without any problems using localhost/XYZ (or on the…
0
votes
0 answers

Error in JSF f:websocket

Since Primefaces push is deprecated, i want to change to JSF 2.3 with f:websocket. Therefore i added a websocket in my xhtml: function…
kaiser
  • 940
  • 1
  • 10
  • 25
0
votes
0 answers

JSF2.3: ui:include of multiple p:column into two distinct composite components leads to Stackoverflow

Java version: 1.8.0_102; Mojarra: 2.3.0; Primefaces: 6.1.RC2 (community edition); It's always nice when you can genuinely refer to a 'StackOverflow` on Stackoverflow. I have not yet isolated this as a dedicated test case, and the XHTML/JSF code is…
0
votes
1 answer

Extensionless URLs with JSF 2.3

JSF 2.3 Extensionless URLs as explained here not working for my enterprise app. When navigating to url without .xhtml extension, FileNotFoundException exception is thrown: Warning: JSF1091: No mime type could be found for file /pages/najmovi. To…
Nikola
  • 117
  • 7
1 2 3
10
11