You need to sign in to do that
Don't have an account?
t.deepthi05
Visual Force Page Refresh
Hi,
Can I know how to refresh the entire Visual force or Part of the page when a component is modified(i.e. when a command link action is performed by the component).
Thanks & Regards
You can do that by specifying "rerender=xxx" on commandbutton or link..
here xxx is the ID of a section in VF say pageblock or so
do like
<apex:commandLink value="click here to refresh" onclick="window.location.href='/apex/VFPageName" />
How can i rerender the id of vf page in the component on button click
I added the onclick action in the command link but it didnt work
To rerender a portion of the page do some thing like
My requirement is I have command link in apex:component and I am using that component in my vf page.
When I perform an action by clicking the link I want rerender an outputpanel of VF page automatically.
Code provided by dipak is one way to do.You can also do this by initializing a boolean data type. supply this boolean variable to the output panel you want to,default value of boolean variable is false so it is in hidden state. on click/action the variable value should change to true, which displays the output panel
Above code is not the exact one, it is just for your reference.
I have the command link in the component I am referring the component in my page and on click the rerender the page and refresh the content of the page.
On click it deletes the records and have refresh the page content
I tried to implement your requirement.
Below is code
Component - MyComp:
Page:
The panel is rerender but the values are not getting updated in the page until i manually refresh the page again or performing an action again on the list. The list contains check box field which has to unchecked on performing the action using command link
Can you post your code so that we can go through it ?
I am posting a sample code below
<apex:component controller="componentcontroller">
<attribute .....>
<apex:comandLink value="{somevalue}" action="{sample}"/>
</apex:Component>
<apex:page controller="PageController">
<c.Component>
<apex:repeat value="{Hello}" var="h" id="repeat"/>
</apex:repeat>
</apex>
i want to rerender the above repeat panel on click on command link
i able to rerender but unable get the updated values in the list until i refresh the page manually.
You can try below code.
Class:
Component:
Page:
<apex:page standardController="Drawing__c">
<flow:interview name="Update_Drawing_Name_To_Each_Item">
...
</flow:interview>
<script>
self.close();
window.parent.location.href='/{!Drawing__c.Id}';
</script>
</apex:page>