You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Sebastian Komander (JIRA)" <je...@portals.apache.org> on 2005/04/27 10:47:23 UTC
[jira] Created: (JS2-248) How is a portlet connected to a page ?
How is a portlet connected to a page ?
--------------------------------------
Key: JS2-248
URL: http://issues.apache.org/jira/browse/JS2-248
Project: Jetspeed 2
Type: Task
Components: Components Core, PSML, Portlet Factory, Portlet Registry
Versions: 2.0-M2
Environment: Windows XP, Jetspeed-M2 Binary Distribution
Reporter: Sebastian Komander
Hi,
I'm using the Jetspeed PageManagerComponent. I can get all fragments from a page, but how can I get the portlets on the page ? I's there any example ? I can't find a connection between a fragment and a portlet application ?
I only want to show the portlets which are lying on a page, but how do I do that?
PageManager pManager = //get the service from PortletContext
Page p = pManager.getFolder("testfolder").getPage("TestPage");
Fragment frag = p.getRootFragment().getFragment("frg-01");
How can I get the portlets from the Fragment "frag". With the "getProperty"-Method ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Closed: (JS2-248) How is a portlet connected to a page ?
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ http://issues.apache.org/jira/browse/JS2-248?page=all ]
Ate Douma closed JS2-248:
-------------------------
Resolution: Invalid
Closed as an Invalid *non-issue*!
Please don't misuse JIRA for questions which really should be asked on the mailing lists.
For this once I'll answer your question though:
PortletWindow pw = portletWindowAccessor.getPortletWindow(fragment);
PortletDefinition pd = pw.getPortletWindow().getPortletDefinition();
> How is a portlet connected to a page ?
> --------------------------------------
>
> Key: JS2-248
> URL: http://issues.apache.org/jira/browse/JS2-248
> Project: Jetspeed 2
> Type: Task
> Components: Components Core, PSML, Portlet Factory, Portlet Registry
> Versions: 2.0-M2
> Environment: Windows XP, Jetspeed-M2 Binary Distribution
> Reporter: Sebastian Komander
>
> Hi,
> I'm using the Jetspeed PageManagerComponent. I can get all fragments from a page, but how can I get the portlets on the page ? I's there any example ? I can't find a connection between a fragment and a portlet application ?
> I only want to show the portlets which are lying on a page, but how do I do that?
> PageManager pManager = //get the service from PortletContext
> Page p = pManager.getFolder("testfolder").getPage("TestPage");
> Fragment frag = p.getRootFragment().getFragment("frg-01");
> How can I get the portlets from the Fragment "frag". With the "getProperty"-Method ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
[jira] Commented: (JS2-248) How is a portlet connected to a page ?
Posted by "Ate Douma (JIRA)" <je...@portals.apache.org>.
[ http://issues.apache.org/jira/browse/JS2-248?page=comments#action_63891 ]
Ate Douma commented on JS2-248:
-------------------------------
Sorry, if I'm going to answer, I should do it correctly, right?
This should work (if your fragment definition is valid that is):
PortletWindow pw = portletWindowAccessor.getPortletWindow(fragment);
PortletDefinition pd = pw.getPortletEntity().getPortletDefinition();
> How is a portlet connected to a page ?
> --------------------------------------
>
> Key: JS2-248
> URL: http://issues.apache.org/jira/browse/JS2-248
> Project: Jetspeed 2
> Type: Task
> Components: Components Core, PSML, Portlet Factory, Portlet Registry
> Versions: 2.0-M2
> Environment: Windows XP, Jetspeed-M2 Binary Distribution
> Reporter: Sebastian Komander
>
> Hi,
> I'm using the Jetspeed PageManagerComponent. I can get all fragments from a page, but how can I get the portlets on the page ? I's there any example ? I can't find a connection between a fragment and a portlet application ?
> I only want to show the portlets which are lying on a page, but how do I do that?
> PageManager pManager = //get the service from PortletContext
> Page p = pManager.getFolder("testfolder").getPage("TestPage");
> Fragment frag = p.getRootFragment().getFragment("frg-01");
> How can I get the portlets from the Fragment "frag". With the "getProperty"-Method ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org