Hi kameron,
Thanks a lot for the reply.
I got the anwer to the question i raised .
I will explain again the problem and answer as how i achieved it.
Question:
--------------------------------------------------------------------------
In my case,I have a portal page.And two portlets on it.The first portlet is
a search window.When i give some search info and press search button,the the second portlet which is hiding should appear with search results.
--------------------------------------------------------------------------
Answer:
--------------------------------------------------------------------------
The concept i used is "backing file".This file is simply a
java file.
If we attach this backing file to the second portlet.Then before rendering the second portlet, the java file is executed.In the java file as per the value set by first portlet,i can make the second portlet show or hide.
-------------------------------------------------------------------------
I am using weblogic portal8.1 SP5.
the backing file i used is :
------------------------------------------------------------------------
public class MyBackingFile extends AbstractJspBacking
{
public boolean preRender(HttpServletRequest request, HttpServletResponse response)
{
PortletBackingContext context = PortletBackingContext.getPortletBackingContext(request);
System.out.println("**inside backing file**");
if(request.getSession().getAttribute("NAVIGATION_KEY") == null)
{
context.setVisible(false);
}
else {
context.setVisible(true);
return true;
}
return false;
}
}
------------------------------------------------------------------------
I am new to the portal development,but i m a quick learner.