掲示板

alloy:tabView componet ajax Problem

thumbnail
9年前 に Stefan Finke によって更新されました。

alloy:tabView componet ajax Problem

New Member 投稿: 8 参加年月日: 14/06/03 最新の投稿
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
9年前 に Neil Griffin によって更新されました。

RE: alloy:tabView componet ajax Problem

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
9年前 に Neil Griffin によって更新されました。

RE: alloy:tabView componet ajax Problem

Liferay Legend 投稿: 2655 参加年月日: 05/07/27 最新の投稿
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
9年前 に Kyle Joseph Stiemann によって更新されました。

Thread Split

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
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.