sbelt wrote:
> 
> public class HTMLFQPortlet extends FileWatchPortlet {
> 
> I have...
> 
> String makeFQHrefs =
> (String)this.getPortletConfig().getInitParameter("makeFQHrefs");
> 

This should work (I assume getInitParameter instead of getInitParameters is a typo)

> I logged this value to turbine.log and find the value is null.
> 
> In portletRegistry.psml I have...
> 
>         <entry type="abstract" name="htmlFile">
> 
> <classname>org.apache.jetspeed.portal.portlets.HTMLFQPortlet</classname>
>             <parameter name="makeFQHrefs" value="true"/>
>             <parameter name="makeFQActions" value="false"/>
>         </entry>
> 
> BTW - what is the significance of the type-attribute. Should I be using
> instance instead of abstract?
> 

Type "abstract" means that this portlet defintion may not be instanciated
without further parameters. In your application, I assume this is the correct
setting since your portlet would fail without an <url> parameter.

To use your portlet you need to define another entry in the registry, like

<entry type="ref" base="htmlFile" name="Home">
        <url>/content/index.html</url>
</entry>

and in PSML you should use

<entry ref="Home">
        ...
</entry>

If you still can't find your initParameters try defining them in the "ref" entry
in the registry instead of the "abstract", it may be a bug introduced by the
"abstract" feature...

--
Raphael Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to