a4j « Development « JSF Q&A

Home
JSF Q&A
1.API
2.Bean
3.Component
4.Control
5.Data
6.database
7.Datatable
8.Development
9.Exception
10.Facelets
11.Form
12.Glassfish
13.HTML
14.IceFaces
15.Internationalization
16.JPA
17.JSP
18.MyFaces
19.openfaces
20.Page
21.Portlet
22.PrimeFaces
23.RichFaces
24.Seam
25.Security
26.Servlet
27.Session
28.Tag
29.Test
30.Tomcat
31.validation
32.Web Service
JSF Q&A » Development » a4j 

1. Duplicate Id. JSF    stackoverflow.com

I have a problem with JSF. Can anyone say why this doesn't work?

<h:selectOneListbox
  id="lang" size="5"
  value="#{MbInstitution.node.lang}"
  valueChangeListener="#{MbInstitution.changeLanguage}"
  rendered="#{MbInstitution.view}"
  >
 <a4j:support event="onchange" reRender="shortDesc, fullDesc"/>
 <f:selectItems value="#{MbInstitution.languagesByInstitute}"/>
</h:selectOneListbox>
<h:selectOneListbox
  ...

2. JSF - 2 a4j:actionParam in one commandlink bug    stackoverflow.com

I have such structure in my jsp:

<h:commandLink action=#{docbean.save}>
    <a4j:actionParam name="somename" value="bill_all" assignTo="#{billdoc.billType}"/>
    <a4j:actionParam name="somename" value="bill_document" assignTo="#{docbean.doctype}"/>
</h:commandLink>
While debugging i saw, that billdoc.billtype and docbean.doctype have the ...

3. New line in a4j:commandbutton value is removed after reRender'ed    stackoverflow.com

:) Hi all, this is my first post after searching through the forum for similar posts I have buttons that look like this: http://img.villagephotos.com/p/2006-10/1223248/pc3.JPG (Sorry but it said that new user ...

4. Prevent onclick when ondblclick is triggered    stackoverflow.com

I have h:panelGrid, containing some elements. I want to trigger an action when user clicks it and I want to trigger another action when use double clicks it. I have the following code ...

5. a4j:jsfunction for jsf2?    stackoverflow.com

I'm starting up a new jsf2/jQuery project, and would like to use the a4j:jsfunction in the ajax4jsf library. The problem is that ajax4jsf is not supported for jsf2. So I have ...

6. Difference between a4j:commandLink and h:commandLink    stackoverflow.com

Title says everything. What is the difference between a4j:commandLink and h:commandLink?

7. jsf with Ajax having issues with mapping    stackoverflow.com

I have the following method in the manager which is called on blur of the patientId text field on a jsf page

private Patient patientData; //also have get and set 

public void ...

8. Using HtmlAjaxRegion in encode method    stackoverflow.com

Can i use HtmlAjaxRegion in encode method of a jsf custom component? The problem is follow: i 've created a custom jsf component than is composed by an HtmlAjaxCommandButton and a ...

9.  doesn´t start the action    stackoverflow.com

I need to use the a4j:commandButton instead of h:commandButton because of its reRender option. When I'm using h:commandButton, it works fine (but off course without reRender):

<h:commandButton id="save" action="#{bean.save}" value="#{conf.buttonSave}"/>
And the same ...

10. JSF 2 valuechangeListener on checkbox works only for uncheck    stackoverflow.com

<a4j:ajax render="tree">
<h:selectBooleanCheckbox id="checkEntry" value="#{bean.selected}" immediate="true"  disabled="false" valueChangeListener="#{bean.changeActive}"/>
  </a4j:ajax>
My checkbox for JSF is triggering the event "bean.changeActive", when I uncheck my checkbox..but when rechecking it, it doesn't trigger The form tag ...

11. How to render a4j:outputPanel programmatically    stackoverflow.com

Is it possible to rerender a a4j:outputPanel programmatically from java method?

12. What is the a4j event sequence?    stackoverflow.com

What is the event sequence of a a4j:commandLink or a4j:commandButton? Is it right: onclick->actionListner->oncomplete->reRender? Is reRender comes before oncomplete? When action happens?

13. Focus disappears when a4j:support is used    stackoverflow.com

I use JSF and I have 2 input texts on the page.

<h:inputText id="xxx" value="#{file.xxx}" maxlength="12" >
    <a4j:support event="onchange" reRender="datePanel1" 
      onchange="validateXXX();"  
 ...

14. How to disable a4j:commandLink    stackoverflow.com

I have an a4j:commandLink and I want to disable it when it is clicked. I write the code like this:

    <a4j:commandLink id="link"
       ...

15. a4j command button    coderanch.com

16. problem using h:selectOneRadio & a4j:support    coderanch.com

hi ranchers, I am facing a little problem when using a4j support for h:selectOneRadio. everything else is working fine, the action associated with a4j is also getting invoked but the re rendering of the dataTable is giving me problem. When I select between ...

17. a4j:commandLink + f:param    coderanch.com

18. doubt abt a4j:region    coderanch.com

"Dudes"? :roll: I've got a suspicion that you didn't read our rules on using real names (http://www.javaranch.com/name.jsp), but I'll let someone else worry about that. The a4j tags are for AJAX-enabled RichFaces support. An a4j:region is simply a block of page source that can be made the target of an AJAX operation such as partial page refresh. Except for the AJAX, ...

19. Need Help for a4j:support    coderanch.com

20. Please help with a4j:mediaOutput    coderanch.com

Hello, I have a a4j:mediaOutput which I use in order to render a captcha. I would like for that a4j:mediaOutput to be reRendered upon each a4j:form submission whether or not validation succeeds or fails. I tried using the reRender attribute of a4j:form and a4j:commandButton and putting the a4j:mediaOutput in a ajaxRendered output panel but it only reRenders when the form submission/validation ...

21. How to disable a4j:commandButton    coderanch.com

22. a4j    coderanch.com

23. a4j and javascript interaction    coderanch.com

24. a4j panelGrid rerender problem    coderanch.com

Hi, I have a problem in rerendering a panelgrid which contains jsp scriptlet. I was using Tomcat 5.5 and the code was working fine rerendering a panelgrid which contains scriptlets whose values get changed on the a4j event. I had to switch to WAS 6.1 and the code doesnt work anymore. I have some other components which gets rerendered correctly for ...

25. StateVar in a4j:repeat    coderanch.com

28. a4j is not defined    coderanch.com

I just want to add something more in this post. I have all the library files in my application because if i run that file echo.jsf single handedly it works fine. with the url : http://localhost:8080/apps/echo.jsf But if i first call struts action and then call to this jsf file it appears but richfaces example does not work as it gives ...

29.     coderanch.com

30. a4j rerendering problem.    coderanch.com

31. A4j issue    coderanch.com

Hello, I am facing 1 problem while using a4j:region tag actually i am having a h:form in which i want one textField to be included only when user click a link so i put that textField in a4j:region and rendering that component on click of that link. till now it is working fine but the problem is that i have set ...

32. Confused about a4j:loadbundle    coderanch.com

33. a4j:support inputtext    coderanch.com

Hi I have the above code and want to achieve functionality wherein 1. the amount that is entered in the field will get converted to a double when the focus is lost on the field. the use case calls for allowing mnemonics m/M for million etc. So 10M will get converted to 10000000 and so ...

35. Problem with a4j button    coderanch.com

I have an a4j button and i need it to function in two different ways, depending upon a value from the bean. If i have true in the bean, i need to use a4j button by onclick="xxx", else i need to use it by action="xxx". How is it possible to realize it?

37. duplicate id's in a4j:support    coderanch.com

Hi all, I have encountered a duplicate id error in a page I'm building. I have minimized the page to the following code: I have two drop-down menus (t:selectOneMenu), a selection in the first automatically selects a value in the second. Problem is, I get a duplicate id on "support1", which is obviously unique. Any idea what could be the problem ...

38.  data cached?    coderanch.com

40. (Begginer on JSF) need help with a4j:support and c:forEach    coderanch.com

Its possible make an a4j:support tag re-render a html tableuma built with c:forEach? For example, I have a menu which calls a bean method each time the user changed it so it alters the table below:

41. Displaying user feedback with a4j:?    coderanch.com

43. a4j:support and IE8    coderanch.com

Hi All, I am using ajax4jsf 1.1.1 and myfaces in my project. The screens were working fine in IE6, but now i need to upgrade to ie8. In IE8, i am getting javascript errors, when using a4j. When i change the ...

44. Play video on JSF with a4j:mediaOutput?    coderanch.com

Hi, guys. I need to play video from database on a jsf web page. I found the embed solution, but I need to do it with a4j:mediaOutput. I know how to load images, but not video. Anyone has render video on web page with this tag?. Can provide me an example, please?.

46. How to avoid a4j:support in a4j:commandLink?    coderanch.com

Hello everybody. Someone told me that I dont need a4j:support inside a a4j:commandLink because support is already included in commandLink. The thing is that im new to richfaces, and I dont know how to include in the commandLink the support that I actually have in my code (see below) . ...

48.  stops working after I put     coderanch.com

I have a basic program on where I have a dropdown list, an input field and a command button. I use a4j:support for the dropdown list cos I need the input field to be disabled if the user hasn't selected any values from the list. At first if you click the command button repeatedly it will work but when you select ...

49. a4j:support oncomplete="xyz()" - Two phase data loading problem    coderanch.com

Hi there. I am using JSFv1.2 and A4J. 1. I have a page with a button/links which when clicked makes an AJAX call and introduces new elements into the DOM. 2. Some of these elements are drop downs and text inputs, and they are populated on the client side to reduce network load - for eg. country list. So the tag ...

50. question on a4j:commandButton    coderanch.com

51. help required on a4j commandButton    coderanch.com

52. a4j is not found    coderanch.com

53. a4j:support onchange event not firing    coderanch.com

54. a4j command button not functioning    coderanch.com

55. a4j function versus javascript function    coderanch.com

58. A4j:Support Problem    coderanch.com

Hi All I have Form In which User is entering his address details Country State City Area PIN this all fields are drop down list ( h:selectOneMenu ) When i select county it populates State and on selection of State It populates City so on I am using a4j:support to call function. My problem is user should be able to select ...

59. a4j:keepalive    coderanch.com

Hi all, I want to gather the experience of you all with the use of . I am getting surprising behavior with the use of it. I am at this point where if I don't use it, certain parts of the page don't work, and if I use it, some other parts don't work. Like to hear experience (sugggestions/alternatives/pros/cons) from ...

60. a4j:repeat and generated Id problem    coderanch.com

So I have the following problem. I am trying to set an id for a component in a a4j:repeat but my settings are overwritten. My code looks something like: ..... Now, all of this is within a form and the required attribute works perfectly, but I also want to mark the ...

61.  or     coderanch.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.