Fóruns

Início » Liferay IDE » English

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
JSF portlet development and deployment X Man 31 de Janeiro de 2012 04:31
RE: JSF portlet development and deployment Gregory Amerson 31 de Janeiro de 2012 16:48
RE: JSF portlet development and deployment X Man 1 de Fevereiro de 2012 06:31
RE: JSF portlet development and deployment Jubril Adisa 9 de Fevereiro de 2012 08:54
RE: JSF portlet development and deployment Gregory Amerson 9 de Fevereiro de 2012 16:59
RE: JSF portlet development and deployment Jubril Adisa 9 de Fevereiro de 2012 17:30
RE: JSF portlet development and deployment Gregory Amerson 9 de Fevereiro de 2012 17:39
RE: JSF portlet development and deployment Jubril Adisa 10 de Fevereiro de 2012 06:03
RE: JSF portlet development and deployment X Man 15 de Fevereiro de 2012 02:52
RE: JSF portlet development and deployment William Gosse 15 de Fevereiro de 2012 14:12
RE: JSF portlet development and deployment Gregory Amerson 15 de Fevereiro de 2012 17:14
RE: JSF portlet development and deployment Oliver Bayer 16 de Fevereiro de 2012 01:19
RE: JSF portlet development and deployment Gregory Amerson 16 de Fevereiro de 2012 01:25
RE: JSF portlet development and deployment Oliver Bayer 16 de Fevereiro de 2012 01:50
RE: JSF portlet development and deployment Gregory Amerson 16 de Fevereiro de 2012 01:54
RE: JSF portlet development and deployment X Man 16 de Fevereiro de 2012 04:36
RE: JSF portlet development and deployment William Gosse 16 de Fevereiro de 2012 05:05
RE: JSF portlet development and deployment Gregory Amerson 16 de Fevereiro de 2012 05:20
X Man
JSF portlet development and deployment
31 de Janeiro de 2012 04:31
Resposta

X Man

Ranking: Junior Member

Mensagens: 41

Data de entrada: 5 de Janeiro de 2012

Mensagens recentes

Hello
I developed JSF portlet but when I deploy it and add this portlet to a page I got this Exception:

12:11:13,154 ERROR [render_portlet_jsp:154] javax.faces.FacesException: The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.

If I will change the URL, what will be this change?
How to solve this problem.
Gregory Amerson
RE: JSF portlet development and deployment
31 de Janeiro de 2012 16:48
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

There have been some fixes applied in this area for JSF portlets. See this JIRA ticket: http://issues.liferay.com/browse/LPS-24723

If you look about half way down in the comments you can see Neil Griffin has posted with some workaround for the current version of portal 6.1.0. For 6.1.1 it will contain a fix but until then you can grab a nightly build of the portal. http://releases.liferay.com/portal/nightly/

Also there is a new nightly build of the IDE that also addresses some JSF portlet deployment issues here: http://releases.liferay.com/tools/ide/eclipse/indigo/nightly/
X Man
RE: JSF portlet development and deployment
1 de Fevereiro de 2012 06:31
Resposta

X Man

Ranking: Junior Member

Mensagens: 41

Data de entrada: 5 de Janeiro de 2012

Mensagens recentes

Gregory Amerson,Thank you very much.
Jubril Adisa
RE: JSF portlet development and deployment
9 de Fevereiro de 2012 08:54
Resposta

Jubril Adisa

Ranking: Junior Member

Mensagens: 35

Data de entrada: 9 de Fevereiro de 2012

Mensagens recentes

Your suggestions did not work for me greg, i downloaded a new IDE and i also downloaded the 6.2 but still getting that same error emoticon
Gregory Amerson
RE: JSF portlet development and deployment
9 de Fevereiro de 2012 16:59
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

Hi Jubril,

What version of the Liferay IDE plugins are you using?
Jubril Adisa
RE: JSF portlet development and deployment
9 de Fevereiro de 2012 17:30
Resposta

Jubril Adisa

Ranking: Junior Member

Mensagens: 35

Data de entrada: 9 de Fevereiro de 2012

Mensagens recentes

Hello,
I am using eclipse_Liferay_IDE_1.5.0_v201202080242-linux-x86_64.tar.gz
Gregory Amerson
RE: JSF portlet development and deployment
9 de Fevereiro de 2012 17:39
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

Can you send me an example JSF portlet project that you are having trouble deploying and I can try to replicate on my side.
Jubril Adisa
RE: JSF portlet development and deployment
10 de Fevereiro de 2012 06:03
Resposta

Jubril Adisa

Ranking: Junior Member

Mensagens: 35

Data de entrada: 9 de Fevereiro de 2012

Mensagens recentes

Please find attached project as a zip file
Anexos: rotimi-portlet.zip (5.695,0k)
X Man
RE: JSF portlet development and deployment
15 de Fevereiro de 2012 02:52
Resposta

X Man

Ranking: Junior Member

Mensagens: 41

Data de entrada: 5 de Janeiro de 2012

Mensagens recentes

Hello every one
I think problem solved, you can download the attached file and follow the steps to be able to create JSF portlet
Anexos: CreateLiferayJsfPortlet.docx (403,1k)
William Gosse
RE: JSF portlet development and deployment
15 de Fevereiro de 2012 14:12
Resposta

William Gosse

Ranking: Expert

Mensagens: 262

Data de entrada: 4 de Julho de 2010

Mensagens recentes

The problem is caused by the fact the portlet.xml entry for the portlet that is generated when the project is originally created seems to be incorrect.
This original entry looks something like this:
<portlet>
<portlet-name>icetest3</portlet-name>
<display-name>Icetest3</display-name>
<portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/xhtml/portletViewMode.xhtml</value>
</init-param>
...

Changing the name of the init-param to be the following corrects the issue:
<portlet>
<portlet-name>icetest3</portlet-name>
<display-name>Icetest3</display-name>
<portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/xhtml/portletViewMode.xhtml</value>
</init-param>
...

This is why subsequent JSF portlets added to the project work correctly when deployed. Their init-parm name element is being correctly set to javax.portlet.faces.defaultViewId.view.
Gregory Amerson
RE: JSF portlet development and deployment
15 de Fevereiro de 2012 17:14
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

Correct, and that issue of the initial jsf portlet that is created in the project has been fixed, so with 6.1.1 is release (6.1 GA2) it will include that fix.
Oliver Bayer
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 01:19
Resposta

Oliver Bayer

Ranking: Liferay Master

Mensagens: 887

Data de entrada: 18 de Fevereiro de 2009

Mensagens recentes

Hi Greg,

thanks for the info.

Is there any release date set for the GA2 release? I've seen a lot of important/ critical bug fixes that's why I'm really looking forward to the next CE release.

Greets Oli
Gregory Amerson
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 01:25
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

Hey Oli,

Right now GA2 is schedule for March 23rd.
Oliver Bayer
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 01:50
Resposta

Oliver Bayer

Ranking: Liferay Master

Mensagens: 887

Data de entrada: 18 de Fevereiro de 2009

Mensagens recentes

Ok, thanks for the quick reply. I hope there will be no delays as the end of march is set as deadline for one of our projects emoticon.
Gregory Amerson
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 01:54
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

You should be able to grab nightly builds as the time is approaching the release to get those fixes you need.

Of course, our very next release is the Enterprise Edition for 6.1. 6.1.10, which would of course contain those fixes, but that requires purchasing EE. This does include many other benefits if you haven't checked it out. There will also be a trial download of EE available once it releases next week. Otherwise you should be able to wait until GA2 for community edition.

Good luck with your launch!
X Man
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 04:36
Resposta

X Man

Ranking: Junior Member

Mensagens: 41

Data de entrada: 5 de Janeiro de 2012

Mensagens recentes

Good Job
William Gosse
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 05:05
Resposta

William Gosse

Ranking: Expert

Mensagens: 262

Data de entrada: 4 de Julho de 2010

Mensagens recentes

This would seem to be a fix that needs to be applied to the IDE and not to the 6.1 GA. It seems to be a simple matter of changing the init-parm name element in the portllet.xml file to be correctly set to javax.portlet.faces.defaultViewId.view when a new JSF porlet project is created in the IDE. Am I missing something here?
Gregory Amerson
RE: JSF portlet development and deployment
16 de Fevereiro de 2012 05:20
Resposta

Gregory Amerson

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1032

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

The project templates are from the SDK and the IDE just delegates to SDK to generate the project content so it takes a new SDK to get the fix. However, it is pretty easy to upgrade to the latest SDK even with the current version of the portal.