Fórumok

Nyitólap » Liferay Portal » English » 3. Development

Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
How to create a JSF 2.0 portlet in Liferay 6.05? Vu Tran 2010. november 15. 0:15
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2010. november 17. 6:21
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Madhura Raut 2011. január 18. 21:26
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Madhura Raut 2011. január 18. 21:27
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. január 20. 8:16
RE: How to create a JSF 2.0 portlet in Liferay 6.05? ly tm 2011. január 23. 18:21
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. január 24. 13:23
RE: How to create a JSF 2.0 portlet in Liferay 6.05? ly tm 2011. január 24. 18:09
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. január 27. 6:49
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Madhura Raut 2011. február 2. 23:25
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. február 3. 7:43
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Madhura Raut 2011. június 10. 5:16
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. június 10. 7:20
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Thiago Leão Moreira 2011. június 10. 21:25
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Neil Griffin 2011. június 11. 5:21
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Thiago Leão Moreira 2011. június 11. 8:53
RE: How to create a JSF 2.0 portlet in Liferay 6.05? Madhura Raut 2011. június 13. 0:32
Vu Tran
How to create a JSF 2.0 portlet in Liferay 6.05?
2010. november 15. 0:15
Válasz

Vu Tran

Rangsorolás: New Member

Hozzászólások: 3

Csatlakozás dátuma: 2010. november 14.

Legújabb hozzászólások

Hi all,

I only developed extension plugins in Liferay using jsp portlet but the others in my new company only know about jsf 2.0. So I'm finding a document about creating jsf 2.0 portlet in liferay portal 6.05 step by step, can you help me?
What's the best and quick technology for developer develop portlet in Liferay 6.05?
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2010. november 17. 6:21
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

Yep, that's what the PortletFaces-Bridge project is all about: http://www.portletfaces.org/projects/portletfaces-bridge

There's some example portlets there at the website for JSF 2.0 and ICEfaces. Just click on the Examples link.
Madhura Raut
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 18. 21:26
Válasz

Madhura Raut

Rangsorolás: Junior Member

Hozzászólások: 41

Csatlakozás dátuma: 2010. november 11.

Legújabb hozzászólások

Hey Neil,

Can you tell me how to use the <liferay:..> or <aui:..> tags with JSF 2.0? I want to use the liferay and aui tags for many functionalities provided by liferay like popup, pagination, sorting etc...
Madhura Raut
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 18. 21:27
Válasz

Madhura Raut

Rangsorolás: Junior Member

Hozzászólások: 41

Csatlakozás dátuma: 2010. november 11.

Legújabb hozzászólások

sorry I forgot to tell you that I am using liferay 6.0.4 with JSF 2.0 and using .xhtml files for JSF 2.0
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 20. 8:16
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

Yes, we're working on two new projects at portletfaces.org: AlloyFaces and LiferayFaces. There's no official documentation right now, but the following post has some information:
http://www.portletfaces.org/community/forums/-/message_boards/message/48007#_19_message_50574
ly tm
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 23. 18:21
Válasz

ly tm

Rangsorolás: New Member

Hozzászólások: 13

Csatlakozás dátuma: 2010. december 12.

Legújabb hozzászólások

- Hi Neil Griffin!
- I'am newbie in liferay portal.
- I was now integrated into Liferay JSF and RichFaces and error when using javascript to get the id of the JSF control.
- Please, Neil Griffin help me in the shorted time!
- Thanks so much!
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 24. 13:23
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

I'm not aware of any other users on the liferay.com or portletfaces.org forums trying the PortletFaces Bridge with RichFaces. You might be one of the first trying this.
ly tm
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 24. 18:09
Válasz

ly tm

Rangsorolás: New Member

Hozzászólások: 13

Csatlakozás dátuma: 2010. december 12.

Legújabb hozzászólások

- Thanks Neil Griffin!
- I'm a student come from VietNam!
- I'm studying about Richface framework!
- I had got a problem in JSF(Richface) Portlet when I used JavaScript!
That problem is : I could not get a value into a <h:inputText /> with JavaScript!
Can you help me?
This is my code:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<f:view>
<script type="text/javascript">
function check() {
var result = document.getElementById("myform:form").value;
alert(result);
}
</script>
<h:form id="myform">
<h3>Hello :</h3>
<h:inputText value="" id="form" />
<h:commandButton value="OK" onclick="check();"/>
</h:form>
</f:view>
</ui:composition>
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. január 27. 6:49
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

I recommend that you read this thread: http://www.portletfaces.org/community/forums/-/message_boards/message/51121
Madhura Raut
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. február 2. 23:25
Válasz

Madhura Raut

Rangsorolás: Junior Member

Hozzászólások: 41

Csatlakozás dátuma: 2010. november 11.

Legújabb hozzászólások

hey Neil,

I am working on JSF 2 + Liferay Portal + Glassfish v2.1.1 and I am new to these technologies. I really need your help for clearing some of my concepts related to JSF lifecycle and portal development.


Objective: resolving queries on certain Liferay Concepts and issues faced during development.

So far, I have had success in doing the following with some research and development, as well as trial & error:
1. IPC within two WAR files
2. Downloading files, facing problems with filetypes such as PDF/XLS
3. Left Hand Menu (tree view control) and Portlet Navigation through tree view menu



Problem Statements and queries:
While doing the above, I faced the following problems:
1. While portal development I always face certain issue for few functionalities like IPC withing two different .war files, downloading PDF/XLS, Left hand Navigation menu etc. While developing these things I need my backing bean to extend GenericFacesPortlet and override serveResource actionResponse, processEvent, doView methods etc. But whenever I do that I always face many problems like commandLink stops working when I am using it in dataTable or I get null pointer exception when at FacesContext.getExternalContext etc.
2. Also I am confused about which method of GenericFacesPortlet is invoked during which phase and when my own methods get called and how.
3. Do the overridden methods of GenericFacesPortlet affect my own written methods?
4. How the portlet lifecycle and JSF lifecycle interact with each other?
5. Is there any standard architecture which I should follow while portlet development along with GenericFacesPortlet.

The answers to these question will help me to develop my code in a proper way so that none of my business logic gets disturbed.
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. február 3. 7:43
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

Rather than extend GenericFacesPortlet to do IPC between two WAR files (Portlet 2.0 Events IPC), I think it's better to use the JSR 329 standard mechanism for doing that via the PortletFaces Bridge. Here's an example of how to do it: http://www.portletfaces.org/portletfaces-bridge/examples/jsf-2.0-events-ipc
Madhura Raut
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 10. 5:16
Válasz

Madhura Raut

Rangsorolás: Junior Member

Hozzászólások: 41

Csatlakozás dátuma: 2010. november 11.

Legújabb hozzászólások

Hey Hi,

Can you tell me how to use Liferay-ui search container using LiferayFaces?
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 10. 7:20
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

The LiferayFaces project currently doesn't have a liferay-ui:search-container tag. This is because JSF developers typically use an h:dataTable or ice:dataTable instead.

Along those lines, I just committed an example ICEfaces 2 CRUD portlet to the portletfaces.org SVN repository that might be of help to you:
http://svn.portletfaces.org/svn/portletfaces/portlets/examples/icefaces2-crud-portlet/trunk/

It shows how to use an ice:dataTable with ajaxified pagination, etc.
Thiago Leão Moreira
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 10. 21:25
Válasz

Thiago Leão Moreira

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1194

Csatlakozás dátuma: 2007. október 10.

Legújabb hozzászólások

Hey Neil,

I tried to build the project using mvn clean package but it failed at

1
2[ERROR]   The project org.portletfaces.examples:icefaces2-crud-portlet:6.0.0.1-SNAPSHOT (/home/tmoreira2020/projects/test/icefaces2-crud-portlet/pom.xml) has 1 error
3[ERROR]     Non-resolvable parent POM: Could not find artifact org.portletfaces:portlet-parent:pom:1.0.0-ALPHA1-SNAPSHOT in maven2-repository-portletfaces.org (http://repository.portletfaces.org/content/repositories/portletfaces-releases) and 'parent.relativePath' points at wrong local POM @ line 3, column 10 -> [Help 2]
Neil Griffin
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 11. 5:21
Válasz

Neil Griffin

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1416

Csatlakozás dátuma: 2005. július 26.

Legújabb hozzászólások

Ooops, sorry about that. emoticon

This one hasn't had an official release yet like the other examples at portletfaces.org

I just removed the parent entry from the pom.xml -- if you do an svn update it should work. Please give it another try. emoticon
Thiago Leão Moreira
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 11. 8:53
Válasz

Thiago Leão Moreira

LIFERAY STAFF

Rangsorolás: Liferay Legend

Hozzászólások: 1194

Csatlakozás dátuma: 2007. október 10.

Legújabb hozzászólások

Fixed, thanks!
Madhura Raut
RE: How to create a JSF 2.0 portlet in Liferay 6.05?
2011. június 13. 0:32
Válasz

Madhura Raut

Rangsorolás: Junior Member

Hozzászólások: 41

Csatlakozás dátuma: 2010. november 11.

Legújabb hozzászólások

Hi Neil

Thanks for your reply.