Foren
alloy:tabView componet ajax Problem
Stefan Finke, geändert vor 9 Jahren.
alloy:tabView componet ajax Problem
New Member Beiträge: 8 Beitrittsdatum: 03.06.14 Neueste Beiträge
Hello,
following Problem using alloy faces tabView component from git master branch (Liferay 6.2 with JSF 2.2, yesterdays commit)
On my portlet is a simple alloy:inputText component with ajax like this:
Everything works fine. During UPDATE_MODEL_VALUES phase the setter for attribute givenname is called (supposed component value has changed).
But the same code enclosed in alloy:tabView like
failes to update the model. Setter method is not being called through UPDATE_MODEL_VALUES phase.
(Hint: same thing enclosed in <p:tabView> component from primefaces5 does work)
Any Ideas? Am i doing something wrong or is this due to early beta state of the alloy faces components i'm using?
following Problem using alloy faces tabView component from git master branch (Liferay 6.2 with JSF 2.2, yesterdays commit)
On my portlet is a simple alloy:inputText component with ajax like this:
<h:form>
<alloy:outputlabel for="givenname" value="#{i18n['first-name']}" />
<alloy:inputtext id="givenname" value="#{personalData.givenname}">
<f:ajax />
</alloy:inputtext>
</h:form>
Everything works fine. During UPDATE_MODEL_VALUES phase the setter for attribute givenname is called (supposed component value has changed).
But the same code enclosed in alloy:tabView like
<alloy:tabview>
<alloy:tab label="Test">
<h:form>
<alloy:outputlabel for="givenname" value="#{i18n['first-name']}" />
<alloy:inputtext id="givenname" value="#{personalData.givenname}">
<f:ajax />
</alloy:inputtext>
</h:form>
</alloy:tab>
</alloy:tabview>
failes to update the model. Setter method is not being called through UPDATE_MODEL_VALUES phase.
(Hint: same thing enclosed in <p:tabView> component from primefaces5 does work)
Any Ideas? Am i doing something wrong or is this due to early beta state of the alloy faces components i'm using?
Neil Griffin, geändert vor 9 Jahren.
RE: alloy:tabView componet ajax Problem
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Stefan,
First, thanks so much for trying out the new Liferay Faces Alloy components we have been developing. We are approaching M2 (or perhaps BETA1) status in the next month or two.
We have been able to reproduce the problem you mentioned with f:ajax and have identified the problem. We are working on it today and I'll report back here when we have more information.
Thanks again,
Neil
First, thanks so much for trying out the new Liferay Faces Alloy components we have been developing. We are approaching M2 (or perhaps BETA1) status in the next month or two.
We have been able to reproduce the problem you mentioned with f:ajax and have identified the problem. We are working on it today and I'll report back here when we have more information.
Thanks again,
Neil
Neil Griffin, geändert vor 9 Jahren.
RE: alloy:tabView componet ajax Problem
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
Hi Stefan,
The problem is fixed now in our master branch. Also, we developed a new "Wizard" use-case in the Liferay Faces Showcase to test that it works correctly.
Also, I wanted to mention that the <h:form> (or <alloy:form>) needs to be outside the <alloy:tabView> component tag. For more info, see the tabView.xhtml showcase source code.
Kind Regards,
Neil
The problem is fixed now in our master branch. Also, we developed a new "Wizard" use-case in the Liferay Faces Showcase to test that it works correctly.
Also, I wanted to mention that the <h:form> (or <alloy:form>) needs to be outside the <alloy:tabView> component tag. For more info, see the tabView.xhtml showcase source code.
Kind Regards,
Neil
Anhänge:
Kyle Joseph Stiemann, geändert vor 9 Jahren.
Thread Split
Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Please start a new thread when asking a new question.
The new thread can be found at https://www.liferay.com/community/forums/-/message_boards/view_message/46433245.
The new thread can be found at https://www.liferay.com/community/forums/-/message_boards/view_message/46433245.