Hi all,
I am new to CAF development. I have a application which has 2 portlets configured in a page. I am doing some business logic, and based on the business logic, i want to refresh second portlet. I dont want to refresh whole page for doing so.
The Designer help documentation briefly describes the procedure in the “User Interface Controls Concepts / Control ID Reference” section like this:
[quote]
External Portlet References
Some controls can accept a reference to another control outside of the current view, in an external portlet on the same portal page. An external portlet reference begins with the URI of, or an alias to, the portlet, followed by a pound sign (#), followed by the absolute control ID reference (sans leading colon). For example, say the “myPanel
Thanks for the reply Eric,
My requirement is somewhat different.
I have to check whether a user is entitled to do access any functions in my application. if not, i have to redirect to error page.
I am checking for entitlements in my header portlet, and now i have to redirect the contents to some other page.
I am not sure whether this approach is correct or not. Could you tell me how to achieve the same?
If you are talking about redirecting during the rendering of your header portlet, then you will probably have to do a client-side redirect from javascript. A server-side redirect may not work since the page has already been partially rendered.
Add a Script Block control to your CAF view to change the current page whose value is something like this: