Questions tagged [jsf-1.2]

JSF 1.2 is the latest release of the JSF 1.x specification and it works with Servlet 2.5 and JSP 2.1.

JavaServer Faces (JSF) is a user interface (UI) framework for Java web applications.

JSF 1.2 is a specification driven by the JSR-252 expert group under the Java Community Process (JCP).JSF became part of Java EE with this 1.2 release.

Unified Expression Language (EL) a major change in this specification , deprecates the Faces EL of its predecessors.

At a fundamental level, JSF is a way to get values from the user, into the model tier for processing.

See for more information.

JSF 1.2 API Spec

Migrating from JSF 1.2 to JSF 2.0: here

846 questions
3
votes
1 answer

Static Servlet Context variable

I have read from the question How to gain access to a ServletContext instance from any method? that if I want to access the Servlet Context from any class in my Java web project I can declare a static field that points to the ServletContext from…
Luiggi Mendoza
  • 85,076
  • 16
  • 154
  • 332
3
votes
1 answer

Is there a way to avoid JSF catching Exceptions raised in Bean validation methods and handle them just like Exceptions raised in other Bean methods?

In the JSF project I'm working Exceptions thrown by Beans are usually handled by JSF redirecting the user to an error page, but when they are raised inside a Bean validation method, JSF handles them displaying in the relative tag the…
avalori
  • 427
  • 2
  • 5
  • 17
3
votes
1 answer

NumberFormat localization issues

I have a monetary amount that is entered by a user and want to validate it. I have written a JSF validator but am having trouble getting this to work in all circumstances. Here is my scenario: I have users in different Locales and therefore I need…
bluesky
  • 33
  • 2
  • 4
3
votes
1 answer

Rich TabPanel's getters invoked when tab content not rendered

I have a question about RichFace's (3.3.3) TabPanel. I have worked on two projects that have used the TabPanel. On each project, I have noticed that components that are on tabs that are not visible still have their "getter" methods called. For…
Steve
  • 646
  • 1
  • 9
  • 23
3
votes
1 answer

Get session-scoped bean from GenericFacesPortlet

Is it somehow possible to accesse a sesssion-scoped bean in a class extending the GenericFacesPortlet? Is a portlet even aware of the FacesContext? What do I want to achieve? I want to serve a file through the serveResource() method. The file's…
user321068
3
votes
1 answer

Where has a4j:support to be embedded to be working?

When I emebed a a4j:support tag inside a rich:panel tag, AJAX is working. When it's not embedded in it, AJAX it's not working. When I emebed a a4j:support tag inside a h:panel tag, AJAX is not working. When it's embedded in a na4j:form tag, it's not…
user321068
3
votes
2 answers

JSF Siteminder logout

Environment Richfaces 3.3.3 JSF 1.2 Siteminder Requirement User enters the required application address. Siteminder intercepts and asks for username and password. Client provides with credentials. Clients uses application and clicks on logout/exit…
Pradeep Kumar
  • 79
  • 1
  • 10
3
votes
2 answers

Is there a XPages equivalent of the JSF tag?

In JSF there is a tag that renders to the screen the component tree representing the View (page) on the server. It also has the session scope variables. I know about the XPages Toolbar (use it everyday). However, it does not give me the component…
xpagesbeast
  • 776
  • 1
  • 10
  • 21
3
votes
2 answers

cannot access rich components in java script using #{rich:component(Id)} or RichFaces.$(Id)

Newbie at javascript here. Trying to access the internals of RichFaces components with examples I find on the web, without much luck. RichFaces 3.3 and JSF 1.2, jboss server, Chrome, ant. I've seen examples…
Rose
  • 35
  • 8
3
votes
1 answer

JSF1.2 - richFaces progressBar - the simple demo is not working

I'm trying to use the simple demo from the richfaces progressBar page. When i go to the page, it's rendering the start button, after pressing the button the progressbar is showing up, showing 0% - and instead of counting until 100 is shows -1 and…
Joergi
  • 1,527
  • 3
  • 39
  • 82
3
votes
1 answer

JSF 1.2 Life Cycle understanding: Executing the ValueChangeListener #2

I am using JSF v1.2 for my application. This is a sort-of-similar question to this thread (answered by BalusC) which I marked as answered some days back. JSF 1.2 Life Cycle understanding: Executing the ValueChangeListener method in…
user182944
  • 7,897
  • 33
  • 108
  • 174
3
votes
2 answers

#{facesContext} EL expression not resolved at runtime

I am working on JSF 1.x On an example stated in JavaServer Faces in Action. My EL expression of 'Faces Context' is not executing at run time in command button on retrieving the image. My Project Structure is as follows: I have not used any Java…
bali208
  • 2,257
  • 7
  • 40
  • 43
3
votes
2 answers

Richfaces 3 dynamic columns datatable

I'm trying to create a page where you click a button and it populates a richfaces datatable with a dynamic number of columns (eventually this will be a lookup, but for now i'm just trying to get a button to populate hardcoded data); The problem is…
Catfish
  • 18,876
  • 54
  • 209
  • 353
3
votes
4 answers

How to trigger input type button by pressing Enter key

In JSF 1.2 and I'm using h:commandButton type="button" but the button does not trigger when I tab on it and press enter. I tried using onkeypress="keyEnter(event)" function keyEnter(eve){ if (eve.keyCode == 13) { …
Victor
  • 59
  • 1
  • 6
3
votes
1 answer

Iterating over a list in JSF 1.2

Is there any way of iterating over a list in JSF 1.2 without using any third party components? I know I can do it using Tomahawk. I also know that it can be done using JSTL, but I am keeping that as my last resort. Also I cannot use
RegisteredUser
  • 400
  • 7
  • 19