Skip to main content
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
  • 151k
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

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
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
  • 136k
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.8k
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

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,845
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

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

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,295
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

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

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
  • 497k
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
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

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

How to query pending server-call actions made from Lightning Controller?

Lightning actions are placed in a queue and are executed during the Aura life cycle. If you call $A.enqueueAction outside of the life cycle, they will remain pending until the next life cycle (e.g. an ...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

Show section of visualforce page on checkbox click

There is an issue when you try to reRender a conditionally rendered outputPanel (because it was never in the DOM to begin with). Add the conditional rendering on the individual fields or a sub tag ...
Glen De Marcos's user avatar
2 votes
Accepted

Rerender of pageBlockSection not working on input field change

You can't rerender an element with the specific ID if it has rendered attribute. Add one more outer apex:outputPanel and rerender it instead. <apex:outputPanel id="advancedSettings"> ...
Oleksandr Berehovskyi's user avatar
1 vote

ActionSupport action not firing when id parameter not set in URL

Since you are using actionSupport with input field as required, thats why if inputfield is blank then actionSupport will not work properly. Just to tell you, properties values are assigned first then ...
Santanu Boral's user avatar
1 vote
Accepted

Controller values not updated with ActionSupport

First, as the default Status I created a SelectOption with key = ''. Second, I initialised both the Period and Status apex:selectList with an empty string like this, which for Period didn't exist in ...
Steven.B's user avatar
  • 500
1 vote

Controller values not updated with ActionSupport

If I take your example and display the values from the selectLists, then I do see the correct values... Visualforce: <apex:page controller="Steven"> <apex:form > <apex:...
Willem Mulder's user avatar
1 vote

How to update particular section using action region

You can use the rerender attribute as you can see here. You just have to specify an id to the section that you want to update on the button click. Here's the "Record details" pageBlock. Like this: &...
Martin Lezer's user avatar
  • 7,295
1 vote
Accepted

<apex:param/> tag seems to always assign the last value on visualforce page, regardless of which event was clicked

The docs state "adds AJAX support to another component" <li id="li1" class="active"> <apex:outPutPanel layout="inline"> <a id="anchor1" href="#tab1" data-toggle="tab"> <...
Eric's user avatar
  • 54.2k
1 vote
Accepted

Rerender based on picklist field

I didn't realize that required fields would prevent rerender from firing. Enclosing the section in actionRegion tags solved the issue: <apex:pageBlockSection id="FlagType"> <apex:...
Starley Flynn's user avatar
1 vote

Rerender based on picklist field

I have tried to modify your code, putting an action at actionSupport and returning back the value from the controller. So from the action it will call dummyActions() method of the controller, then ...
Santanu Boral's user avatar
1 vote
Accepted

inputField onchange does not fire

This is tested code of passing value to Controller with actionSupport and without using actionRegion. Rather than onblur event, you can use onchange. Visualforce <apex:page name="...
Santanu Boral's user avatar
1 vote
Accepted

Visualforce Checkbox Rerender via Ajax - Whats wrong with my code?

I hope that you are changing checkbox values in the controller method. You can wrap pageblock into an outputPanel and rerender the outputPanel from actionSupport call. Display the pageblock based on ...
Santanu Boral's user avatar

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