portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ate Douma <...@douma.nu>
Subject Re: struts portlet "help page"
Date Tue, 30 Nov 2004 20:23:32 GMT
Fixed.
Thanks for pointing this out.

Regards, Ate

Thiwanka Wimalasuriya wrote:
> problem: struts portlet bridge did not support help mode
> 
> i fixed this. would somebody apply this patch to CVS
> 
> fix :
> 
> Index: StrutsPortlet.java
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apach
> e/portals/bridges/struts/StrutsPortlet.java,v
> retrieving revision 1.7
> diff -u -r1.7 StrutsPortlet.java
> --- StrutsPortlet.java 27 Nov 2004 01:04:12 -0000 1.7
> +++ StrutsPortlet.java 30 Nov 2004 06:06:08 -0000
> @@ -43,6 +43,10 @@
>   *
>   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
>   * @version $Id: StrutsPortlet.java,v 1.7 2004/11/27 01:04:12 ate Exp $
> + *
> + * @author2 <a href="mailto:thiwanka@srilogic.com">thiwanka
> wimalasuriya</a>
> + * 2004/11/30
> + *
>   */
>  public class StrutsPortlet extends GenericPortlet
>  {
> @@ -142,6 +146,9 @@
>          this.defaultCustomPage = getCustomPageParameter(config);
>          this.defaultEditPage = getEditPageParameter(config);
>          this.defaultViewPage = getViewPageParameter(config);
> +  this.defaultHelpPage = getHelpPageParameter(config);
> +
> +
>          if (this.defaultViewPage == null)
>          {
>              // A Struts Portlet is required to have at least the
> @@ -191,6 +198,12 @@
>      {
>          return config.getInitParameter(PARAM_VIEW_PAGE);
>      }
> +
> + protected String getHelpPageParameter(PortletConfig config)
> + {
> +  return config.getInitParameter(PARAM_HELP_PAGE);
> + }
> +
> 
>      public void doEdit(RenderRequest request, RenderResponse response)
>              throws PortletException, IOException
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
> 
> 
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message