You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-user@portals.apache.org by Vladimir Figurov <VF...@asia-soft.kz> on 2009/11/27 12:54:47 UTC

WebContent - wherefore output "[Refresh Page]" link in VIEW mode ?

Hi

I want place a static content into some Jetspeed portal's pages.
For that I usage a Web Content portlet.
I am not understand - wherefore output "[Refresh Page]" link in VIEW mode ?
It's interfere with my "disign" :-D   ...and is excite a user's
curiosity ...


-- 
Vladimir




Re: WebContent - wherefore output "[Refresh Page]" link in VIEW mode ?

Posted by David Sean Taylor <d....@onehippo.com>.
On Nov 27, 2009, at 3:54 AM, Vladimir Figurov wrote:

> Hi
>
> I want place a static content into some Jetspeed portal's pages.
> For that I usage a Web Content portlet.
> I am not understand - wherefore output "[Refresh Page]" link in VIEW  
> mode ?
> It's interfere with my "disign" :-D   ...and is excite a user's
> curiosity ...

Look at the file WebContentPortlet.java

      PrintWriter writer = response.getWriter();
         writer.print("<block>");
         if (history.hasPreviousPage())
         {
             PortletURL prevAction = response.createActionURL() ;
             prevAction.setParameter(BROWSER_ACTION_PARAM,  
BROWSER_ACTION_PREVIOUS_PAGE);
             writer.print(" [<a href=\"" + prevAction.toString()  
+"\">Previous Page</a>] ");
         }
         PortletURL refreshAction = response.createActionURL() ;
         refreshAction.setParameter(BROWSER_ACTION_PARAM,  
BROWSER_ACTION_REFRESH_PAGE);
         writer.print(" [<a href=\"" + refreshAction.toString()  
+"\">Refresh Page</a>] ");
         if (history.hasNextPage())
         {
             PortletURL nextAction = response.createActionURL() ;
             nextAction.setParameter(BROWSER_ACTION_PARAM,  
BROWSER_ACTION_NEXT_PAGE);
             writer.print(" [<a href=\"" + nextAction.toString()  
+"\">Next Page</a>] ");
         }
         writer.print("</block><hr/>");