Ajax4Jsf portlet support

View: New views
1 Messages — Rating Filter:   Alert me  

Ajax4Jsf portlet support

by Zsoldos Balázs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am a developer at a company that decided to use Liferay
and JSF together. I created some modification for Ajax4Jsf
to be able to work together with Liferay platform about 2
months ago. I managed to upload my patch to the issue but I
had no rights to comment it. I sent a letter for the guy who
created the issue but he did not answer.

I think Ajax+Jsf+Portlet is the future. I am using these in
many portlets with Liferay 4.2.1. It is hard to keep up with
the new releases because I often have custom modifications.
I could not comment the issue 8 so I could not write there
the outstanding issues that I had.
I created an issue on support JIRA of Liferay. If you google
"ajax4jsf portlet" that will be the first result :). It is
the http://support.liferay.com/browse/LEP-1909
There need to be some modifications in Liferay, too, to make
this thing work. Based only on the portlet spec. I think it
is impossible to process ajax requests.

The patch made it possible for me to start working with
Ajax4Jsf in Liferay but at that time I knew that there was
still a problem. I had now time investigate and found out
the cause of it:

In the class AjaxContext the reponseComplete function is
called on the facesContext. It is ok if the next request
calles the process phase of Jsf but in case of a portal it
does not happen every time. For example if you change the
page and change back then only the render phase is called.
Then no new facesContext is generated and due to the state
of responseComplete flag nothing will be rendered.
I commented this line because I knew that it would not cause
any problem in my environment. However I think that there
should be a context-parameter that says if the
responseComplete should be called or not depending on the env.

I asked for Observer membership that I got. I thought that
with it I could comment the issue of Ajax4Jsf but not. Shall
I ask for a higher privilage or write only my thoughts onto
the mailing lists?

I think in the very next future that portal will carry the
flag which has a support for such a great technology like this.

I would have other ideas concerning to this project when I
have some time (Actually I do not have any).

Regards,
Balazs  Zsoldos

______________________________________________________________________
Könyvszerda a Gabo, Akkord, Talentum, Ciceró Kiadókkal!
Több mint 700 féle könyv 30% kedvezménnyel!
http://www.bookline.hu/control/news?newsid=397&affiliate=frekszkar3435

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price!