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
15
votes
4 answers

Input fields hold previous values only if validation failed

I came up with a strange problem. I tried to isolate the problem so following is my simplified code. public class MyBean { private List dataList; Data selectedData; public MyBean() { dataList = new ArrayList(); …
prageeth
  • 7,159
  • 7
  • 44
  • 72
14
votes
4 answers

#{...} is not allowed in template text

When we are using this code, the server throws an exception with the message #{...} is not allowed in template text How is this caused and how can I solve it?
Sanat Pandey
  • 4,081
  • 17
  • 75
  • 132
13
votes
1 answer

action is only invoked on second click

I want to submit a data table on a button click, but that action is not called on the first click. Here is my code:
Harshit Shah
  • 319
  • 1
  • 2
  • 11
12
votes
3 answers

How to correctly access the data field in an a4j:jsFunction result

I am currently trying to validate some front-end values with some server-side methods (as a group) and am running into issues dealing with the result. Here is the XHTML for the button that starts it all:
Ben
  • 7,692
  • 15
  • 49
  • 64
9
votes
2 answers

Sending a callback to JSF a4j:jsFunction oncomplete event

I am trying to make call to JSF functions in my app more dynamic. Instead of static way of writing callback functions to oncomplete event by hand, I wish to send a callback function as a parameter and make it's invoke inside oncomplete event of the…
Nik Sumeiko
  • 8,263
  • 8
  • 50
  • 53
9
votes
3 answers

IE11 Changes DOM structure on JSF rerender

Ok bit of a strange one here, Iv not seen any other reports of this, we have had some UI bugs reported from IE11 users recently, after doing some testing I realised that after performing a reRender (I am using A4J) IE11 is putting HTML elements in…
DaveB
  • 2,953
  • 7
  • 38
  • 60
9
votes
1 answer

List of possible values of event attribute of tag a4j:ajax in RichFaces

I flipped through two RichFaces reference guides and did not find this information. Where else can I search for it?
Dmitriy Korobkov
  • 867
  • 1
  • 11
  • 25
9
votes
1 answer

Disable `` after clicked, but action should be fired

I have a in my XHTML page. I want the button to be disabled as soon as I click the button. Then the button should call the action. My button gets disabled as I expect but the problem is that the action is not fired.…
prageeth
  • 7,159
  • 7
  • 44
  • 72
7
votes
1 answer

a4j:support tag not found using JSF 2

just trying to integrate this commandLink
Blanca Hdez
  • 3,513
  • 19
  • 71
  • 93
7
votes
2 answers

RichFaces tabPanel with switchType ajax and a4j:status

What I try to achieve I've got a rich:tabPanel with switchType="client" and one of the tabs has set its switchType to ajax because loading its data is an expensive operation. When I click on this Ajax Tab I want its title to be changed to Loading...…
Markus Ratzer
  • 1,292
  • 3
  • 19
  • 29
6
votes
3 answers

How to pass a parameter value to a4j:jsFunction

On my page I have a button that opens a list of items in a popup. When I select 1 item in the list, I want to pass the id of the item to the backingbean of my first page. Is it possible? It tried to do it with a4j:jsFunction and a4j:param but it…
roel
  • 2,005
  • 3
  • 26
  • 41
6
votes
4 answers

How to use

I'm trying to use: I call the function like this:
Michael
  • 1,152
  • 6
  • 19
  • 36
6
votes
4 answers

Using a4j:support to update the model and view, ready for the next button/submit action

The Problem We have a swing based front end for an enterprise application and now are implementing a (for now simpler) JSF/Seam/Richfaces front end for it. Some of the pages include fields that, when edited, should cause other fields to change as a…
Gyan aka Gary Buyn
  • 12,242
  • 2
  • 23
  • 26
6
votes
2 answers

Skip form validation on command button

I have a JSF page that includes a tree form tag which is rendered depending on some bean property. There are two buttons for next and previous page. I want to skip form validation on the button which goes to the previous page. I tried the following…
ayengin
  • 1,606
  • 1
  • 22
  • 47
6
votes
2 answers

open a new window in a4j:commandButton

Using A4J, Richfaces in a web application, I need to open a new browser window when the user clicks on the . I think I will have to use window.open(URL, ...). Where should I put it? My looks like…
Danilo Piazzalunga
  • 7,590
  • 5
  • 49
  • 75
1
2 3
33 34