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
2
votes
2 answers

How to maintain state of a request scope bean without using a4j:keepAlive in richfaces 3 and seam 2?

I have problem pertaining to the maintaining state of the particular @Request scope bean. I have a Seam Entity List request scope component. And after a particular request i want it to maintain its state and not to be refreshed, a4j:keepAlive do the…
Ellie Fabrero
  • 791
  • 2
  • 16
  • 41
2
votes
1 answer

Injecting FacesContext as managed property of session-scoped managed bean

I had a request-scoped JSF 1.2 managed bean that I needed to refactor to session-scoped bean because it is doing some expensive operation on @PostConstruct and that is being called multiple times which really needs to be done only once. The side…
phewataal
  • 1,107
  • 4
  • 12
  • 23
2
votes
1 answer

Using Facelets instead of JSP results in java.lang.StackOverflowError at javax.servlet.http.HttpServletRequestWrapper.getSession()

I am using JBoss4.2 with the eclipse IDE. When I run the hellojsf program using JSP view technology, it works fine. When I try with Facelets usings the same components, I am getting the below exception: 2012-06-20 12:41:30,941 ERROR…
Ranga
  • 31
  • 1
  • 4
2
votes
2 answers

Backing bean property that should return a string with html code returns empty string

I have a property in my backing bean that returns html code: public String getHtmlPrevisualizar() { return "Hello world."; } What I want to do is show this html code in a iframe. I do this…
Pablo
  • 3,655
  • 2
  • 30
  • 44
2
votes
1 answer

Custom Validator, should I use FacesContext#addMessage() or throw ValidatorException?

I was wondering what is the correct way of implementing the custom Validator in JSF 1.2. In my Validator class' public void validate(FacesContext context, UIComponent component,Object value) throws ValidatorException {} method, I am doing the…
phewataal
  • 1,107
  • 4
  • 12
  • 23
1
vote
1 answer

Is it possible to use custom JSF converter for UISelectOne, depending on value of Bean property or UIInputText value?

I need to get help with a problem. I have an application, which displays data from database. In database I am using one column for identifying an object with changes in time (version of object). I mean that rows have different IDs, but same…
Worsik
  • 57
  • 3
  • 11
1
vote
2 answers

reRender via JS API

I was wondering if there is any JS function in jsf/richfaces which does the same functionality as that of reRendering a component. Also will the reRender work on any component which has display:none style?
Satya
  • 2,094
  • 6
  • 37
  • 60
1
vote
1 answer

How to set focus to h:inputText inside rich:dataTable as one column after pressing a4j:commandButton like (+) in footer of rich:dataTable?

I am using JSF 1.2 and Richfaces 3.3.3 in my sample JSF Application. I have a form with rich:dataTable that having single column with h:inputText and footer having a4j:commandButton with value "add". when I click "add" button then new…
Jagan
  • 129
  • 1
  • 4
  • 14
1
vote
2 answers

a4j:commandbutton not allowing "<" in rendered

this is my code:
Ikthiander
  • 3,917
  • 8
  • 37
  • 54
1
vote
1 answer

How to save all FacesMessages over different requests

I was just wondering to implement a kind of log display to user where in all messages in the application are displayed to user all the time. Since I use JSF 1.2 and RF 3.3.3, wanted to know if it is possible to save all messages be it added by…
Satya
  • 2,094
  • 6
  • 37
  • 60
1
vote
0 answers

Including JS file(s) only in a (some) JSF page(s) when HEAD tag is defined inside a template common to all pages

I'm working on a project where I'm using a template for all JSF pages. The tag is defined in the template, so it's the same for all pages. In this project JS is needed. I know JS files should be imported in the but doing that for all…
avalori
  • 427
  • 2
  • 5
  • 17
1
vote
1 answer

How to pass a parameter to an included page with JSF 1.2

Is this possible to pass a parameter to an included page in JSF1.2 environment? I have a page a.jsp in which b.jsp is included twice (I tested all jsp:include, a4j:include, c:import) once at top of the page and once at the bottom. I want to figure…
Mohsen
  • 3,512
  • 3
  • 38
  • 66
1
vote
2 answers

Long polling (pending request) for JSF

I need to implement long polling or pending request for a chatroom. I tried a4j:push, but it seems doesn't work like a real long polling approach (see the following discussion: https://community.jboss.org/message/16614). The question is: which…
golinko
  • 327
  • 2
  • 3
  • 14
1
vote
1 answer

Using Seam v2.2.2.Final with JSF v1.2 in JBoss v7.1 – JSF tags won't render – why?

I'm currently migrating a larger project which primarily uses Seam 2, Hibernate and JSF 1.2 from JBoss 4.2.x to JBoss 7.1 – and I've managed to solve most problems so far. The application server starts just fine and deployes my EAR project without…
Daniel Bleisteiner
  • 3,190
  • 1
  • 33
  • 47
1
vote
1 answer

Iterate through List of List of Objects in extendedDataTable

Is it possible to loop through an arrayList using c:forEach in rich:extendedDataTable. I have a model like Person { String name; String address; List phoneNum; } The table row should display columns of name, address and comma…
Satya
  • 2,094
  • 6
  • 37
  • 60