A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An component must be a child of an component.

learn more… | top users | synonyms

1
vote
1answer
66 views

ActionFunction not rendering to create a Javascript Function

Create a dynamic search custom using the ActionFunction for rendering the JS function to post the values to controller. The search is not working. Here is my code: Controller: public class ...
3
votes
2answers
62 views

<apex:actionFunction> may not be used within an iterable component

I am trying to send the selected Id to the controller class from VF page and getting error inside the action function method : Here I want to pass parameters to the controller Error: may not be ...
3
votes
0answers
34 views

Visualforce Page redirect not working from apex actionfunction

I have used actionfunction to redirect visualforce page to another page but the page is not redirecting into another. VF Page: <apex:commandButton value="Create" onclick="createfunction()" /> ...
0
votes
0answers
26 views

actionFunction with oncomplete and status attributes not working with Internet Explorer

I have an actionFunction with oncomplete and status attributes (please see the code below). The oncomplete has javascript that finishes our workflow, and the status starts and stops an ajax overlay ...
0
votes
0answers
11 views

ActionFunction rerender with only standardController: data is not re-queried?

I have a VF page that uses only a standardController (the work is mainly done in Javascript and Ajax Toolkit). After the js uploads some child records to the main record associated with the page, I ...
0
votes
1answer
65 views

oncomplete does NOT work when used with <apex:ActionFunction>

<apex:actionFunction name="submitExpJS" action="{!submitExpenses}" oncomplete="refreshMe();" reRender="messagePanel"/> <script> function ...
1
vote
0answers
49 views

Visualforce: ReRender <apex:repeat> $Component passed through controller

I have a typical form with <apex:repeat> for some fields. The <apex:inputText> elements have an onChange attribute that references a script that then calls an <apex:actionFunction>, ...
1
vote
1answer
34 views

<apex:actionFunction> tag does NOT work as expected without reRender attribute

I was trying to find out what was wrong with the actionFunction tag since half a day only to realise that it does not work without the attribute reRender, which is not documented anywhere. ...
8
votes
3answers
132 views

Can apex:param pass null for Integers?

I'm trying to reset an Integer value to null, but it is converted to 0. <apex:actionFunction action="{!doSomething}" name="doSomething" rerender="nothing"> <apex:param name="indexValue" ...
1
vote
1answer
53 views

Actionfunction - rerender - redirect - ssl

I have a problem in a Visualforce page for a site page... The process involve: Html + css + jquery ActionFunction => with rerender, with parameters Redirect from a https tio a http jquery ...
2
votes
3answers
38 views

Calling actionFunction from JS

I'm working on a vf page/controller. All of the code at this point is about 800 lines so I wont post it all but I have posted the items that are relevant. Basically, there are 4 forms on the VF page. ...
2
votes
1answer
36 views

Used html button instead of apex command button,controller action not updating new values?why

Used html button instead of apex command button, but only old values are passing to contrller action method why? Its working fine for commandbutton!! <apex:actionFunction ...
1
vote
1answer
22 views

On Account field value change, need address values to change also

I have a master detail relation with Account(master) and Address_vod__c (child). I am showing Account as apex input field. Now on change of Account field , address values also need to changed. Please ...
3
votes
2answers
77 views

apex:commandButton updated by apex:actionFunction

I am trying to disable my button from being pressed twice. When this happens, a self-registration user is only created once - but multiple 'account' records are created (person accounts) for each ...
0
votes
1answer
33 views

How to call method using onblur

i am trying to call a method using onblur, whether it is even possible or not, in my controller i m having search function that i want to call after when i typed any text inside input box and click ...
0
votes
0answers
25 views

Can we have ActionFunction wrapped in OutputPanel?

I need your help. Here the goal is to set "xyz" literal in "someOutputPanel" from methodOne action. Apparently, it's not working. My question is that can we have actionfunction within outputpanel as ...
0
votes
4answers
73 views

reRender problem: variable changes in controller, but not on the VF page

(I am building upon this question and the helpful answers there: Re-rendering section on picklist value change - picklist value is always null.) Requirement: On a Visualforce page, I have a picklist ...
1
vote
0answers
77 views

PageRef or ActionMethod problem

I'm trying to add functionality to a JQuery mobile app someone else wrote and encountering problems with either the action method or the page reference class when trying to construct another page to ...
0
votes
0answers
33 views

Method being referenced in action function is not being called

Hey I was trying out kendo where I was trying to pass the value of the picklist to my controller. The values of the picklists are being captured but my method in the action function is not being ...
3
votes
1answer
85 views

Visualforce actionFunction not working when used with jQuery

I'm developing a visualforce page and using jQuery in it to identify if the user has scrolled through a div to its bottom (scrolling down is assumed as a confirmation that the user has read all the ...
0
votes
2answers
26 views

Question about Visualforce/Save Action Usage

We use campaigns to build letters that go out annually, and the members of that campaign represent the "main" address and the "CC" contacts. As a result, we have hundreds of campaigns, each with 2-5 ...
0
votes
0answers
65 views

Internal Server Error calling visualforce page actionFunction from child component

I have a visualforce page and it has a child component to render part of the page. In my visualforce page I have a picklist that when I change it's value a function from the child component is invoked ...
0
votes
1answer
95 views

apex:actionfunction not rendering the apex:ouputpanel?

I have an apex:actionfunction which rerenders the apex:outputpanel.In that output panel i have input check box. Every time action:fucntion calls this input check must refreshed ,but it's not ...
0
votes
2answers
227 views

Action Function Javascript Page Rerendering

I'm trying call this: <apex:actionFunction name="doCallout" action="{!callout}" /> From javascript like this: <script> window.onload=function() { doCallout(); } </script> ...
0
votes
0answers
75 views

Action function rerender not working sometimes

I have a outputpanel in visualforce page which has scripts opens up modal dialog. I call the action function on close of the dialog which rerender the outputpanel to get the value '{!shortListString}' ...
0
votes
0answers
37 views

Method call on commandbutton not called when actionfunction is set an a form field

I have a apex:select which calls a actionfunction and rerenders an output panel. In the same form i also have commandbutton which in turn calls another method. When i have the actionfunction setup ...
2
votes
1answer
34 views

Add a job to the joblist in Visualforce page

I am having a list of jobs in the Visualforce controller. And in the page, I have a button called Add job, which adds another job into the list. What it current did is using an actionFunction for ...
0
votes
0answers
55 views

Rerender pageblocktable after record insert

I would like to rerender a pageblocktable after a new record is inserted. Is this functionality available for tables? Any help is appreciated. Rerender works on the output panel with id "hidden", but ...
0
votes
0answers
47 views

Use onComplete and page redirection of action function

I have a simple question. Can I use action function to redirect to a new page using controller code and also at the same time use onComplete of the action function so that onComplete gets called ...
0
votes
0answers
17 views

Merge Leads Counter for Leads Record

I have a use case that we want to make Lead Counter when a lead is merged and should have a counter like for e.g 1,2,3 times it has been merged with an existing lead. So please suggest some ideas how ...
1
vote
1answer
37 views

How to shuffle on images using output link and pass value to controller

I have a requirement. I have 4 images (or) icons on my VF page. I have a NEXT and PREV buttons. So it is like, based on a {!level} value These images gets highlighted from step 1 .. step 4 based ...
5
votes
1answer
1k views

OnComplete Javascript to pop up alert and Redirect to a record page

I'm stuck with onclick and oncomplete. looking for a solution on this. I have a controller that simply saves a Case record. I want to display a Message to User that 'Your case is saved with ...
1
vote
1answer
263 views

Action function not rerendering

Here is the visual force page: <apex:page controller="MyNotesController" showHeader="false" sidebar="false" > <apex:includeScript value="/support/console/25.0/integration.js"/> ...
2
votes
0answers
179 views

How to display alert pop up for inserted record Id and redirect the VF page to another VF page

I have a custom VF page 'HOMEPAGECOMMUNITY'. I would like to Navigate to 'LANDINGCOMMUNITY'. I have a commandButton 'Submit' which is associated with couple of Rerender Id's for PageErrorMessages and ...
3
votes
2answers
87 views

actionFunction behavior differ for inputCheckbox and inputText

Have some inputText fields and I'm doing some calculations with the values of these(inputFields are inside a pageblocktable, having wrapper items). VF : <apex:actionFunction ...
2
votes
0answers
34 views

Reload Page for new Page Message

I have below page snippet where after facet execution to "stop" , I need a page reload. Currently it's not happening hence retaining older page message. Can someone please guide me? Page Snippet: ...
1
vote
0answers
31 views

Display related fields based on change to lookup

This is a simplified example of the problem I'm having, using minimum data. I've created 2 objects, branch and leaf. Each leaf has a lookup to branch. I put a button on the leaf list to create a ...
0
votes
1answer
105 views

apex:inputField breaking onchange binding?

I have an <apex:selectList> whose onchange event rerenders an <apex:outputPanel> through an <apex:actionSupport>. While I was busy celebrating the magic of Visualforce, I noticed ...
0
votes
1answer
44 views

How to write testmethod for geopointe.actionHandler

I have a few classes written that implements Geopointe's action handler, but I don't know how to go about writing a test class for them. All I can find are test classes written for the schedulable ...
0
votes
1answer
48 views

URL Parameters not showing up on browser URL with Action function

I have an action function that fires on a select list change: <apex:selectList label="Select View" id="viewFilter" value="{!viewFilter}" size="1"> <apex:actionSupport event="onchange" ...
3
votes
1answer
677 views

apex:selectList always passing older value on onchange..?

I am using apex:selectList..I want to get the value on onchange of the selectlist..But for first time when i am debugging the value..Its blank..ID comes when i change it again(Second time)..But its ...
2
votes
1answer
235 views

Visualforce component on page - not rerendering after onclick event

I'm attempting to rerender an apex:outputPanel containing a visualforce component. When I click the panel containing the onclick code to call the controller method to change values and rerender, ...
2
votes
1answer
76 views

I am calling apex class method from vf page using actionFunction , but it is not working because of mandatory field

I am calling apex class method from vf page using actionFunction, but it is not working because on my page i am having mandatory fields, so i want that their an error should be shown like "please fill ...
0
votes
2answers
61 views

Javascript compare set with string in apex page

I have below apex page snippet where javascript fails to execute and errors out whole page because of failing to compare. Can someone help me here? Here intersects come from controller which I checked ...
0
votes
0answers
36 views

separate sections to display in apex page function

I have below code snippet where I need to split records to display in two separate sections (say A & B) in javascript box. If a set value matches with field Survey_vod_r.Name in the record put in ...
0
votes
1answer
35 views

pop up show blank

I have below piece of code where the function opens a new pop up with blank. But it should display headers atleast ( like Account Demographics:). Can someone give an idea why this happens. In a ...
1
vote
1answer
101 views

Action method is not invoked in Action Method

In my button click, action method is not invoking in action function and directly going to oncomplete method.Below is the code. Controller - function cheValidation(){ callService(); } function ...
3
votes
1answer
636 views

Visualforce - ActionFunction and ActionSupport not calling action methods

today i'm having some issues with actionFunction and actionSupport visualforce tag. This is my example page: <apex:page controller="TestLookupActionFunctionCtrl"> <apex:form id="myform"> ...
1
vote
2answers
344 views

Visualforce page reloads itself after actionFunction call

I would like to use the component apex:actionFunction to set a variable from a custom controller but after the call, the Visualforce page reloads itself. :/ I use return false; on the outputLink ...
1
vote
1answer
187 views

Facing issue in action function

I've this simple VF page, which is populating today's date on change of value of Picklist(Active__c field as mentioned below): This is done with help of action function which refreshes an outputText. ...