Questions tagged [jsf-2]

JavaServer Faces (JSF) is a model-view-presenter framework typically used to create web applications. Version 2.x is a major step ahead compared to JSF 1.x, significantly expanding the standard set of components and component libraries.

JavaServer Faces 2.x is a major step ahead as compared to JSF 1.x, significantly expanding the standard set of components and component libraries. Facelets (which was designed specifically for JavaServer Faces) was adopted as the official view technology for JSF 2.x. This eliminates the life-cycle conflicts that existed with JSP, forcing workarounds by Java developers. Lot of things which are hardly possible in JSF 1.x can be done more elegantly in JSF 2.x.

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

15731 questions
4
votes
2 answers

Pretty Faces: Generic URL mapping

Using Pretty Faces 3, I have some mappings like these:
sinuhepop
  • 20,010
  • 17
  • 72
  • 107
4
votes
1 answer

Set focus on an element that has been partially rendered

I have a form with an input element that updates a panel containing form elements on a blur event. I want the user to be able to navigate using the tab key. So leaving the first input using the tab should give focus to the first form element of the…
Sydney
  • 11,964
  • 19
  • 90
  • 142
4
votes
3 answers

Changes in .xhtml file not reflected in browser, restart and build needed

If I make changes in my .xhtml file, the changes are not getting reflected on the screen in my browser. To get it to work, I have to restart the server everytime. This seems unwieldy to me. I have added the following context parameters in my…
C4CodeE4Exe
  • 3,840
  • 8
  • 39
  • 46
4
votes
1 answer

JSF with facelets in Tomcat7

I am trying to deploy a JSF 2.0 application with Facelets 1.1.14 to Tomcat7. I am getting the following exceptions: INFO: Initializing Mojarra 2.0.0 (FCS b23) for context '/AdminUI' 3 Aug, 2011 7:44:32 PM com.sun.faces.spi.InjectionProviderFactory…
Gnanam
  • 513
  • 2
  • 10
  • 21
4
votes
1 answer

JSF Static Bean Variable Scope

So, I've seen this post: JSF - session scoped bean shared by browsers on different machines But this was a question from two years ago, so I don't know if there have been any updates in the world of JSF since then, and I also have some more…
user470714
  • 2,858
  • 1
  • 28
  • 34
4
votes
2 answers

Prevent accessing restricted page without login in Jsf2

I have a problem. I want to prevent a user from accessing a page without login in jsf2. When a user directly write restricted page url into browser, s/he should not see the page. Thats like above circumstance come about, s/he has to be redirected to…
olyanren
  • 1,448
  • 4
  • 24
  • 42
4
votes
1 answer

PrimeFaces 3.0 - Exception in node selection when tree is in a

This question is mainly directed at the PrimeFaces dev team but maybe someone else knows a workaround. I can't upload screenshots on the PrimeFaces support forums but I can link to my question here. Reported in PrimeFaces support forums:…
Jim Tough
  • 14,843
  • 23
  • 75
  • 96
4
votes
2 answers

How to validate a date from a Calendar

I have tried the following code (I have followed an example) to test a date choosen from a calendar. If the date don't exist in my database, then a validation error message should be shown to the enduser. However, the error does not end up in the…
rym
  • 545
  • 6
  • 12
  • 36
4
votes
1 answer

h:dataTable inside ui:repeat, how specify render id from f:ajax?

I have: #{project.id}
tostao
  • 2,803
  • 4
  • 38
  • 61
4
votes
1 answer

How to validate the maximum amount of checked values of a selectManyCheckbox based on the current selection of a selectOneMenu?

I am using JSF 2.0 and PrimeFaces. I have a selectOneMenu and a selectManyCheckbox. I want to achieve this scenario: When an user chooses: option1(PieChart), then the user is allowed to check max one checkbox option2(BarChart), then the user is…
rym
  • 545
  • 6
  • 12
  • 36
4
votes
2 answers

JSF 2.0 Injecting managed bean with a different scope

I have a controller that is stateless which takes care of processing forms. This is defined as ApplicationScoped. On my page I have a form associated to a backing bean defined as a ViewScoped. The error I got when I want to process the…
Sydney
  • 11,964
  • 19
  • 90
  • 142
4
votes
1 answer

jsf 2.0 Custom Component/Tag NOT COMPOSITE

Ok. I've looked everywhere for a simple example on how to create a custom jsf 2.0 custom component. Basically, I am trying to create a tag that I can use, for example, inside panelGrid, series. etc.. that will display my own javasript. everything I…
user858010
  • 41
  • 1
  • 3
4
votes
2 answers

dynamic CSS in JSF

I read this article about dynamic CSS. I would like to generate CSS based on db parameters. Something similar to What is the best way to implement it in JSF? I am…
Dejell
  • 13,947
  • 40
  • 146
  • 229
4
votes
1 answer

f:ajax listener not called for h:selectBooleanCheckbox

With code like this : The method…
Bertie
  • 17,277
  • 45
  • 129
  • 182
4
votes
1 answer

Start conversation on page load

I'm a beginner in Java EE 6 and was recently playing with conversations. I was not able to find out how to start conversation immediately as JSF page is loaded (as in Seam). Is this doable?
Michal
  • 53
  • 4
1 2 3
99
100