You need to sign in to do that
Don't have an account?
Alx Mr
reRender attribute does not work onChange of SelectOptions box
Hello.
reRender attribute does not work at all. Even when blank outputPanel (nothing inside the container) used.
This is the only element which is rerendered on the page. What can be the problem?
The paragraphs are rendered correctly on Load, 'rerender' results in general error on page.
I used same methods on the page when new record created worked fine as well, when existing record loaded to be updated there is always an issue.
Can you advise on possible reasons, please. Why reRender attribute is not binded properly on the page?
reRender attribute does not work at all. Even when blank outputPanel (nothing inside the container) used.
This is the only element which is rerendered on the page. What can be the problem?
The paragraphs are rendered correctly on Load, 'rerender' results in general error on page.
<p> <apex:outputPanel> <apex:selectList value="{!lSoftware}" size="1" multiselect="false" > <apex:selectOptions value="{!SoftwareMulti}"/> <apex:actionSupport event="onchange" reRender="f3"/> </apex:selectList> </apex:outputPanel> </p> <p>Database<br/> <apex:outputPanel> <apex:selectList value="{!lDataBase}" size="1" id="f3"> <apex:selectOptions value="{!DataBase2Multi}"/> </apex:selectList> </apex:outputPanel> </p>
public List<SelectOption> getDataBase2Multi(){ List<SelectOption> lSO_DataBases = new List<SelectOption>(); ldatabase = ''; return lSO_DataBases; }Even the most basic scenario causing the issue.
I used same methods on the page when new record created worked fine as well, when existing record loaded to be updated there is always an issue.
Can you advise on possible reasons, please. Why reRender attribute is not binded properly on the page?
Can you try rerendering the parent container. In this case please add an id to the outputpanel surronding the selectlist and try re-rendering it instead of the selectlist element.
<apex:outputPanel id="f3">
</apex:outputPanel>
i changed the 2nd paragraph to the most primitive way. Same error is still fired.
When is your getDataBase2Multi called? Just by looking at it i think your code should be
Notice the changes
1) added action method for actionsupport
2) moved the id from selectoptions to outputpanel.
If this doesnt work let me know, i will try with a simple example of rerender using picklist and paste the code for your reference.
By any chance are you using this page on salesforce sites? or this is a page for internal users. Can you also share the error screenshot
I pass id parameters in address line and every public user having unique link can submit application, and thus create/update records in salesforce db.
Please refer to the below link and try out the steps mentioned here to debug the issue. Since its a public page its very hard to pinpoint the issue by looking at the code.
http://www.tgerm.com/2010/10/debugging-sites-authorization-required.html
https://salesforcemann.wordpress.com/2016/11/06/part-0-visualforce-rendering-woes/