Forums de discussion

alloy:tabView componet ajax Problem

thumbnail
Stefan Finke, modifié il y a 9 années.

alloy:tabView componet ajax Problem

New Member Publications: 8 Date d'inscription: 03/06/14 Publications récentes
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:


<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?
thumbnail
Neil Griffin, modifié il y a 9 années.

RE: alloy:tabView componet ajax Problem

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
thumbnail
Neil Griffin, modifié il y a 9 années.

RE: alloy:tabView componet ajax Problem

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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
thumbnail
Kyle Joseph Stiemann, modifié il y a 9 années.

Thread Split

Liferay Master Publications: 760 Date d'inscription: 14/01/13 Publications récentes
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.