Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Pushpinder Singh
Invoke portlet without adding to any page
31 de Maio de 2012 14:40
Resposta

Pushpinder Singh

Ranking: Junior Member

Mensagens: 73

Data de entrada: 21 de Julho de 2010

Mensagens recentes

Version: 6.0.x

Hi all,
I have simple portlet (multiple instance = true), which need to be invoked/called without adding in any page/layout.
It will be invoked through click on anchor.
I wonder whether this can be achieved. I will appreciate any hint or link.

Regards
Singh
Subhash Shah
RE: Invoke portlet without adding any page
31 de Maio de 2012 01:22
Resposta

Subhash Shah

Ranking: Junior Member

Mensagens: 76

Data de entrada: 29 de Novembro de 2011

Mensagens recentes

I think it is not possible to use portlet without adding to the page/layout but still not sure.

I had developed a similar functionality (opening a portlet in new window when the user clicks on a link) by adding the portlet on the hidden page.
I had also observed that without adding it to the page, it wasn't displayed in the new window.
Pushpinder Singh
RE: Invoke portlet without adding any page
31 de Maio de 2012 14:39
Resposta

Pushpinder Singh

Ranking: Junior Member

Mensagens: 73

Data de entrada: 21 de Julho de 2010

Mensagens recentes

The reason we want to avoid adding portlet to any page (even hidden) is that our website is changing quite often and we like to avoid situation where someone may remove page and leaving external links pointing to removed portlet instance. We already have experienced this and want to avoid same situation again.
Hitoshi Ozawa
RE: Invoke portlet without adding to any page
31 de Maio de 2012 14:47
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 8000

Data de entrada: 23 de Março de 2010

Mensagens recentes

It will be invoked through click on anchor.


Are you thinking about catching the liferay event? I have a daily batch portlet that runs on the backround so if you are going to catch some liferay's event, I think you'll be able to do it but it may be have to be a ext plugin instead of a regular portlet.
Pushpinder Singh
RE: Invoke portlet without adding to any page
31 de Maio de 2012 16:13
Resposta

Pushpinder Singh

Ranking: Junior Member

Mensagens: 73

Data de entrada: 21 de Julho de 2010

Mensagens recentes

Our requirement is like this:
1. Portlet will be added to different department page in the organization, each department having their own preferences.
2. External parties calling same portlet as sort of a widget call.