Timeline for Is it possible to rerender an outputpanel that's in the parent page from within a component?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 21, 2016 at 18:38 | comment | added | slim | Thanks @Eric. Even if the main page is told to reRender part of its own page? It's just supposed to update the FeedListPanel with the newly posted content. The component I have created was just the posting part of the page, where the user creates a new post. The FeedListPanel is supposed to refresh and have the new post. I know it's reRendering, but the new content isn't shown. | |
Oct 21, 2016 at 16:02 | comment | added | Eric |
@slim - The controller in the main page is separate from the component. If you want to modify data from the main page you need to pass it to the component via the <apex:attribute> if you do not do that then the main page controller data will not be updated.
|
|
Oct 21, 2016 at 15:37 | comment | added | slim | UPDATE: I thought calling the reRender from the component wasn't working, but after putting in a javascript alert with counter, it looks like it is actually being reRendered. The reason I thought it wasn't working is because the data in the "FeedListPanel" wasn't refreshing with the newest data. Why is it that when I broke out the section into a component, the reRender isn't pulling the latest data? | |
Oct 21, 2016 at 14:17 | comment | added | Eric | @slim actionfunction and command button no difference. Take my example and start adding in your actionfunction little by little verifying it works. When it breaks as you add your stuff you will know why. | |
Oct 21, 2016 at 14:15 | comment | added | slim | Thanks Eric, but is there a way to invoke it without a commandButton? Take a look at my actionFunction code. That's where I'd like the reRender to trigger. | |
Oct 19, 2016 at 22:25 | history | answered | Eric | CC BY-SA 3.0 |