Fórum

alloy:comandlink and alloy:selectoneradio not workin inside alloy:accordion

ramathulasi kudumula, modificado 8 Anos atrás.

alloy:comandlink and alloy:selectoneradio not workin inside alloy:accordion

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi

alloy:comandlink and alloy:selectoneradio not working inside alloy:accordion component.

Details are given below:

Liferay 6.2 EE with (liferayfacesalloy 3.2.5 ga6 + jsf 2.1)

Sample portlet is attached. Please help on the same.
thumbnail
Neil Griffin, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
We have been able to reproduce this problem and are working on a solution. We should have a FACES issue posted in our issue tracker soon. I'll report back here when we do. Thanks.
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Ramathulasi,
I have created FACES-2348 to track this issue, and I am currently working to fix this. Please click the watch link if you would like to be updated on the progress of this issue.

- Kyle
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Kyle,

We have checked the status of FACES-2348 and found out that it is fixed. Please let us know the location to download the jars for liferay faces 3.2.x.

Regards,
Thulasi
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Ramathulasi,
FACES-2348 is indeed fixed, but our continuous integration server is down, so the SNAPSHOT jars are not available unless you want to build the master branch from source. Otherwise, I will alert you when the jars are ready.

- Kyle
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Kyle/Neil,

As our project is stuck with the above issue to be fixed, we are awaiting for the updated jars for Liferay faces 3.2.x

Please let us know the location to download the updated jars so that we can start using the same.

Regards
Ramathulasi
thumbnail
Juan Gonzalez, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Seems the SNAPSHOT isn't published to those repositories yet.

If you are in a hurry, you can build from source to use that as Kyle said.
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Juan,

We were unable to build the jar from the source as mentioned on the tutorial and hence not able to proceed on the same. So please help us in this regard.

Regards,
Thulasi
thumbnail
Neil Griffin, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Hi Thulasi,

We had a JUnit test that is failing on our CI server, which was may have been preventing you from building the source as well. The test was failing because the CI server runs Linux and the test is scanning the classpath at runtime a little differently that on other operating systems. I just commented-out the test so that the CI server (which is now back online) will rebuild the jars. You should see the jars in the Snapshot Repository shortly.

Kind Regards,

Neil
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Neil,

Thanks for the reply.

Kindly let us know once jars are updated in the repository.

Regards
Thulasi
thumbnail
Juan Gonzalez, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Legend Postagens: 3089 Data de Entrada: 28/10/08 Postagens Recentes
Hi ramatulashi,

as you are in a hurry, try to get from this OSS SNAPSHOT repository:

https://oss.sonatype.org/content/repositories/snapshots/com/liferay/faces/

Remember to get those from 3.2.5-ga6-SNAPSHOT version and let us know how it goes.
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Juan,

We have taken the updated liferay-faces-3.2.6-ga6 jars from https://oss.sonatype.org/content/repositories/snapshots/com/liferay/faces/ and tried to execute the same sample project given my post. But however still we were unable to call the action method inside alloy:accordion component.

Kindly help us in this regard


Regards
Thulasi
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Neil/Juan/Kyle,

I have taken the latest jars from repository location given by Juan and have tested the same and found out that alloy:command link is working inside accordion but alloy:selectoneradio and alloy:selectbooleancheckbox are not working inside alloy:accordion component.

Attaching the portlet for the same for better understanding of the issue. The action methods are not getting called inside the accordion.

For better understanding i have put one form outside accordion where the action methods are getting called onclick of radio button,
but the same not getting called inside accordion component.

Please look in to the issue and Kindly do help on the same.

Regards,
Thulasi
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Thanks so much for following up, Thulasi!

I have created FACES-2352 to track this issue. Please watch the issue to follow my progress.

- Kyle
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
I've fixed the issue. Please download and try the newest SNAPSHOT jars.
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Kyle,

Thanks so much for the support. We have tested the same with the latest snapshot jars and its working fine.

Will get back to you incase of any other issues.

Regards
Thulasi
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Neil/Kyle,

We have taken the latest jars for liferayfaces-3.2.x and found out that ajax loading is not happening on clicking a link inside the accordion.

For better understanding of the actual issue, we have placed one form outside accordion and one form inside accordion.

On selecting one radio button and clicking on the link the ajax behaviour is working outside accordion but not inside the accordion.

Attaching the portlet for the same.

Request you to look into the issue and do the needful.

Regards
Thulasi
thumbnail
Neil Griffin, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Legend Postagens: 2655 Data de Entrada: 27/07/05 Postagens Recentes
Hi Thulasi,

Please try it with alloy:form on the outside of the alloy:accordion, but without a form as a child of any of the alloy:tab components.

We have a similar limitation with alloy:tabView, which is why the alloy:form component is shown on the outside of alloy:tabView in the Wizard use-case of the Liferay Faces Showcase.

Thanks,

Neil
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Neil,

Small update on my post. The form is outside accordion component. But on click of the link inside the accordion, ajax call to backend bean is not happening, but when clicking the link outside the accordion component, the backend bean action is being called and the updation of the form is happening as expected.

The attached portlet as per my previous post contains the code related to it. Please refer to it and help us in this regard.

Regards
Thulasi.
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Thulasi,
I cannot reproduce your issue with our latest source code. Could you post the shortest xhtml that will reproduce this latest issue?

Thanks,
Kyle
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Hi Kyle,

Please refer to the view.xhtml for the frontend code and RecordBean.java for the backend code in my attachment.

Regards
Thulasi
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Kyle Joseph Stiemann:
I've fixed the issue. Please download and try the newest SNAPSHOT jars.


Hi Kyle,

After downloading the jars from above link, the command link works fine inside alloy:accordion.
But the tabExpandListener & tabCollapseListener is not working in alloy:accordion now.
The same was working with the jars before the fix of alloy:command link.

Kindly do the needful.

Regards
Thulasi
thumbnail
Kyle Joseph Stiemann, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Liferay Master Postagens: 760 Data de Entrada: 14/01/13 Postagens Recentes
Hi Thulasi,
This is due to a recent change where we removed event listener attributes from our components. You will need to make a change to the following code:

<alloy:accordion value="#{recordBean.list}" var="panel"
tabExpandListener="#{recordBean.tabExpandListener}"
tabCollapseListener="#{recordBean.tabCollapseListener}">
<f:ajax event="tabCollapse" render=":testForm" />
<f:ajax event="tabExpand" render=":testForm" />


Instead you should do this:

<alloy:accordion value="#{recordBean.list}" var="panel">
<f:ajax event="tabCollapse" listener="#{recordBean.tabCollapseListener}" render=":testForm" />
<f:ajax event="tabExpand" listener="#{recordBean.tabExpandListener}" render=":testForm" />


You also need to change your listener methods in your bean to take an AjaxBehaviorEvent:

public void tabCollapseListener(AjaxBehaviorEvent ajaxBehaviorEvent) {
TabCollapseEvent tabCollapseEvent = (AjaxBehaviorEvent) ajaxBehaviorEvent;
/* Your code here... */
}

- Kyle
ramathulasi kudumula, modificado 8 Anos atrás.

RE: alloy:comandlink and alloy:selectoneradio not workin inside alloy:accor

Junior Member Postagens: 51 Data de Entrada: 06/10/11 Postagens Recentes
Thank you so much Kyle emoticon

Its working fine.

Regards
Thulasi