Questions tagged [ajax4jsf]

Ajax4JSF is part of the RichFaces framework. It helps to add Ajax behaviour to JSF pages.

Ajax4JSF is part of the RichFaces framework. It helps to add Ajax behaviour to JSF pages.

It was initially developed as a standalone component library. Later it was taken over by RichFaces and integrated in RichFaces. The original Ajax4JSF components are still referenced by the <a4j:xxx> namespace.

Related tag info pages

505 questions
6
votes
1 answer

a4j:support - Value retrieved from h:selectOneMenu is always NULL

There's a datatable with a h:selectOneMenu in each row. I want to be able to retrieve the value selected in the selectOneMenu in the bean. I'm using richfaces a4j:support tag to make AJAX calls to the backing bean. You can see the code…
jguilhermemv
  • 769
  • 3
  • 11
  • 28
6
votes
1 answer

Migrating JSF 1.1 with Ajax4jsf 1.x to JSF 2

We are migrating JSF 1.1 (MyFaces) project to JSF 2. The idea is to migrate periodically by keeping both JSP and XHTML together for some time. We use many ajax4jsf-1.1.1 tags in JSP pages. We don't use RichFaces. After configuring the system to JSF…
Phani Kumar
  • 440
  • 1
  • 5
  • 16
6
votes
1 answer

RichFaces a4j:support should update the model in the context, but not the entity

i have an h:inputTextarea with some a4j:support to update the model on demand
Joergi
  • 1,527
  • 3
  • 39
  • 82
6
votes
4 answers

How to re-render a RichFaces component after a4j link is invoked

Hoping someone can help me with a slight hurdle I've come up against in regards to re-rendering of RichFaces components after an a4j link/button has performed it's action. A simplified version of my problem is as follows: I have 2 output components…
Aaron Chambers
  • 1,354
  • 2
  • 12
  • 27
5
votes
1 answer

Manage back and forward in Richfaces

I'm using RichFaces component library and I want to manage the history of Ajax navigation, so the enduser can use the browser back and forward buttons. Is there any clean way to do it, design pattern, library, etc?
imrabti
  • 285
  • 4
  • 11
5
votes
1 answer

Passing JavaScript values to Bean with a4j:param

My objective is to get the screen width, height, etc., into a session bean in JSF. According to the examples I've found, the way to do this is add a param to a commandButton with a value that is javascript. The value is then transferred to the…
wjr
  • 324
  • 1
  • 3
  • 14
5
votes
1 answer

How to render a panelGroup with a h:commandLink and f:ajax

I want to render a when the user clicks on a . I can make it work without ajax, but the whole page is refreshed. When I try to use , then the action is not invoked. How is this caused and how can I solve…
Fjouatte
  • 145
  • 2
  • 8
5
votes
0 answers

a4j commandlink not working after rerender

The text with id=txt is inserted outside the commandlink after rerendering. And therefore the link is broken. A refresh of the page gets it back. Could somebody please help?
4
votes
4 answers

How can I call a JavaScript function after every a4j AJAX response?

I am working on a web app using JSF w/Seam. I want to be able to call a JavaScript function after every ajax response. I'm looking for a way to do this without putting an oncomplete attribute on every commandLink/commandButton on every page. I think…
iandisme
  • 6,346
  • 6
  • 44
  • 63
4
votes
1 answer

Passing parameters to a4j:ajax method

I am trying to use to feed a method with a value just entered on the form;
user969743
  • 57
  • 1
  • 5
4
votes
1 answer

Richfaces a4j:loadScript clears jQuery plugins on ajax calls

I'm loading jQuery embedded into RichFaces with: Next, I'm loading the FancyBox jQuery plugin with: