Hi,

On 9/12/06, David Sean Taylor <[EMAIL PROTECTED]> wrote:
Edgar Poce wrote:
> Could anyone help me to implement the following method with j2 api or
> portlet api?:
>
>     /**
>      * resolves the path for the given request
>      *
>      * @param request
>      *            the portlet request
>      * @return the path to the portlet entity
>      */
>     public String getPath(PortletRequest theRequest);

Let me understand, you want to make the URL available to portlets and
then return "the path to the portlet entity"?

Im not sure if I follow...


Sorry I wasn't clear, let me try again :). I'd like the portlet to
know the path where it's deployed in the portal site hierarchy. The
above method should return the path to the fragment of type portlet
where the portlet was added. E.g. if I deploy a wysiwyg portlet at
/default.psml I'd like to get the path to the fragment of type portlet
where the portlet is shown. Something like "/default.psml/twocolumns
fragment-id1/portlet fragment-id12/".

With this path I can integrate the content of the wysiwyg portlet to
the portal site hierarchy and users might access the content from
other interfaces than the portal, e.g. via webdav, with a URL
consistent with the portal.

If fragments had names the http URL to edit the content via webdav
would look like: http://myjetspeed.com/default.psml/App and help in
two columns/help/content.html

>
> One more question, is there any way to add a custom portlet mode in
> j2?, I'd like to add a "content" mode to my portlet.

Look into how we implemented the custom Print Mode.
See jetspeed.properties for starters where extended portlet modes and
window states are defined.


thanks for your help,
edgar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to