Dynaform and PFS

Community Driven Extensions Project
Post Reply
AjitRaushan_NBAD
Posts: 1
Joined: 11 Apr 2016, 15:08

06 Oct 2016, 13:40

Hi,

I have a dynaform with multiple selectOneMenu. For certain type of dynaControl I want to update the next SelectOneMenu using PFS.

I have tried to use:

Code: Select all

update="@(closest('tr').next().find(".select))"
but it throws Invalid Expression found in Firebug. If I use

Code: Select all

update="@parent:@parent @(.a:first)"
then it updates the whole form.

Does primefaces support all the jQuery selector?

Primary SelectOneMenu:

Code: Select all

<pe:dynaFormControl type="selectParentMandatory" for="selSectorParentMandatory" styleClass="select select-parent">
	<p:selectOneMenu value="#{data.value}">
			<f:selectItems value="#{data.lookUpValues}" />
				<p:ajax partialSubmit="true" process="@this" update="@parent:@parent @(.a:first)" 
                                            listener="#{bean.selectedParent(data)}" />
	</p:selectOneMenu>
</pe:dynaFormControl>
Dependent SelectOneMenu:

Code: Select all

<pe:dynaFormControl type="selectParentMandatory" for="selSectorParentMandatory" styleClass="select select-child">
	<p:selectOneMenu value="#{data.value}">
			<f:selectItems value="#{data.lookUpValues}" />
				<p:ajax partialSubmit="true" process="@this" update="@none" 
                                            listener="#{bean.selectedChild(data)}" />
	</p:selectOneMenu>
</pe:dynaFormControl>

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

07 Oct 2016, 18:14

PFS only accepts string expression like @(.blub > .myChild) and no methods.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests