4 votes
Accepted

actionSupport rerender not working as expected

I got something similar to work in my org just by making the event name all lower-case: <apex:actionSupport event="onchange" reRender="taskOneCallOutcomeOPPanelId"/>
martin's user avatar
  • 12.5k
4 votes
Accepted

ActionSupport rerender not working

There were two problems: You need to wrap rating in actionRegion since Account name is mandatory. Also you have placed ! at wrong place in redered condition. I have made corrections. Please check ...
Kiran Machhewar's user avatar
4 votes
Accepted

How do I know if a request to my Apex controller originated from an XHR request or not?

I guess you could add this to the part of your page where the method is called again: <apex:actionSupport event="onchange" action="{!UpdateWhatId}" reRender="inf_whatId,if_location"> <...
Eric's user avatar
  • 53.9k
4 votes
Accepted

apex:actionsupport event not firing

You have to nest the <apex:actionSupport> tag within the tag whose action you are trying to support. You have it inverted. Correct <a ...> <apex:actionSupport ... /> </a> ...
Adrian Larson's user avatar
  • 149k
3 votes
Accepted

Rerender Typeahead Custom Component

That component sets up the jQuery code using: j$(document).ready(function(){ j$('#{!searchBoxId}').typeahead({ minLength: {!minSearchLength}, hint: true, ...
Keith C's user avatar
  • 134k
3 votes
Accepted

Can I access an apex:inputField onchange value in my controller/extension without saving the record?

Few changes in your code <apex:inputField value="{!caseRec.AssetID}"> <apex:actionSupport event="onchange" action="{!determinePageBlock}" reRender="{!pageBlockList}" /> </apex:...
Ratan Paul's user avatar
  • 22.5k
3 votes
Accepted

<apex:actionSupport> event not firing in <apex:selectRadio> group

The problem in your code is that the outputPanel is never rendered by default. That is it ID is not accessible by the actionSupport. To solve this you will need a "wrapper" outputPanel and rerender it....
Sergej Utko's user avatar
  • 21.9k
3 votes

actionSupport rerender not working as expected

The problem is that "onChange" is to be specified as "onchange" as javascript is case-sensitive. Change your code as:- <apex:actionSupport event="onchange" reRender="taskOneCallOutcomeOPPanelId"/&...
Anshul's user avatar
  • 2,599
3 votes
Accepted

SOQL not returning any rows on action:support call

Sid, as you've asked 3 questions in the last 24 hours on this same code, I have a few suggestions for you. At present, you seem rather lost and are looking for others to debug your code for you. That'...
crmprogdev's user avatar
  • 40.8k
3 votes
Accepted

ActionSupport: Pass record Id to Controller from apex:repeat

To pass the value from actionSupport to controller method, follow these steps: use apex:param with assignTo attribute to pass values to controller correctly use reRender attribute with actionSupport ...
Santanu Boral's user avatar
3 votes

Call actionFunction from actionSupport onComplete

I think your ultimate goal is to pass selected lookup value to the controller and you have taken a complicated route. Here is the simple way to achieve the functionality leveraging action attribute ...
Santanu Boral's user avatar
3 votes
Accepted

How is apex:actionSupport connected to the event DOM element

The problem is that you are telling it to do a re-render of an element that isn't there. The target element you want to be re-rendered isn't on the page, so it can't be re-rendered. If you remove ...
William Young's user avatar
3 votes
Accepted

apex:actionSupport not working as expected

The apex:actionSupport is working fine. The issue is, in the PageNumber getter setter, you are setting the earlier value in get method. So you are getting 1 whenever you are putting any value and it ...
Saroj Bera's user avatar
  • 14.5k
3 votes

Visualforce components disappeared after an action

I'm not sure about the "why" your problem happens, but I would try solving it by narrowing the scope of the rerender, e.g. try to rerender a panel around your <table> element: <apex:...
Francesco Pitzalis's user avatar
2 votes
Accepted

apex:inputField breaking onchange binding?

I bet one of those are a required field which is causing an error. Since you have no ID on the pagemessages and you are not rerendering it then you cannot see the error. Resolution: Add a ID to ...
Eric's user avatar
  • 53.9k
2 votes
Accepted

Action support on html table

Edit Small change whenever you are using rerender never use same element for rendered attribute. It will always refresh the below elemnts. like this <apex:page controller="HidePanelCtrl"> ...
Ratan Paul's user avatar
  • 22.5k
2 votes

How do I know if a request to my Apex controller originated from an XHR request or not?

The environment doesn't tell you directly. However, you could build a private function and up to two public functions (depending on how the initial calling happens). Like so: void doAction(Boolean ...
sfdcfox's user avatar
  • 476k
2 votes

Data Driven Visualforce Page

So basically issue in your ActionSupport attribute rerender Currently in your code set<string> outputPanelId = new set<string>(); asu.rerender=outputPanelId; You are not passing Id. You ...
Ratan Paul's user avatar
  • 22.5k
2 votes
Accepted

actionSupport, retrieving records and rerendering a picklist

You've made the problem harder than it has to be as most of the work can be done directly in the getters public with sharing class AttendanceEntry { public Id selectedSite { get; set; } public ...
cropredy's user avatar
  • 69.1k
2 votes
Accepted

Problem with ActionSupport and Param

A better way is to skip the param at all. public pagereference AfficherRemplacant(){ system.debug('Le ID transmet est = '+mission.remplace1__c); listHabilitation = [select id,poste__r.name ...
Fernando Gavinho's user avatar
2 votes
Accepted

Visualforce Required Fields and rerender

Try specifying immediate="true" on your actionSupport tag. Without that attribute, the visualforce page will try to submit the form to the server, which will trigger the page validation. Specifying ...
battery.cord's user avatar
  • 8,726
2 votes

Hide/Show Button On VisualForce Page

Hi this is my first answer!!! I have just done this in my org using <apex:actionSupport/> This is a very simple code: VF Page: <apex:page controller="DisplayButtononCheckboxEvent"&...
Rishabh Seth's user avatar
2 votes

Making rerender faster when getting data from controller

Retrieving from a map will be faster than running a soql query, but may run into viewstate issues if the number of records you are storing in the map is very large. So, if your number of records ...
IllusiveBrian's user avatar
2 votes

Call apex class method immediate after input text

<script src="//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script> window.$j = jQuery.noConflict(); $j(document).ready(function(){ $j('input[id$=Rep]')....
Martin Lezer's user avatar
  • 7,298
2 votes

Call apex class method immediate after input text

You can use onKeyPress, as said. But you may want to consider to make it smarter than making a SOQL query on each key that was pressed. For example using javascript you can wait to make a call (remote ...
Nielsm's user avatar
  • 2,084
2 votes
Accepted

Conditionally make a text box appear on selection of a Radio Button

It certainly does work. You haven't shared your code, but this is simple enough that a demonstration should illuminate what went wrong: <apex:page controller="dynSelect"> <apex:form id="...
sfdcfox's user avatar
  • 476k
2 votes

Rerendering conditionally required fields in VF - how to make field 'unrequired' upon rerender?

When form contains mandatory fields immediate="true" will not work for ActionSupport. Secondly, when form has mandatory fields, as per execution logic setters will fire first and then action methods ...
Santanu Boral's user avatar
2 votes
Accepted

Explanation of apex:commandButton with apex:actionSupport

When use <apex:commandButton/> it actually submits the page. You could see the HTML button actually type is submit. Refer documentation A button that is rendered as an HTML input element ...
Santanu Boral's user avatar
2 votes
Accepted

How to use 2 pageblockTable values in 1 pageBlocktable?

Here the VF page is having 3 variables that is controlling the visibility of the tables/sections: "NoMatch", "Match" and "SerchMatch". Match is used to show the table which you want to displace ...
Partha Sarathi Mandal's user avatar
2 votes

Rerender on inputfield checkbox

Wrap actionSupport inside apex:inputField or apex:inputcheckbox Secondly, you should rerender the panel or pageBlockItem which is not getting rendered by some other conditions. Check this sample ...
Santanu Boral's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible