Dashboard/Panel - listeners not fired

UI Components for JSF
Post Reply
dan
Posts: 3
Joined: 21 Dec 2010, 19:35

21 Dec 2010, 19:45

My code looks following:

Code: Select all

	<p:dashboard model="#{welcomeDialog.model}" reorderListener="#{welcomeDialog.widgetsReordered}">
		<p:panel id="panel3" header="WIDGET3" toggleable="true" closable="true"
				closeListener="#{welcomeDialog.widgetClosed}"
				toggleListener="#{welcomeDialog.widgetToggled}">
			<div>
				<p>Widget3</p>
			</div>
		</p:panel>
	</p:dashboard>
The problem is that listeners are not fired - reorder, close, toggle.
The AJAX request is sent, but the managed bean method is not called.

My Setup:
MyFaces 1.2.7
Facelets 1.1.14
PrimeFaces 1.1
RichFaces 3.3.3RC1 - Could it cause the problem?
Tomahwak 1.1.8

TIA
Leszek
Last edited by dan on 22 Dec 2010, 14:01, edited 1 time in total.
Leszek

dan
Posts: 3
Joined: 21 Dec 2010, 19:35

22 Dec 2010, 14:00

The problem is the PartialViewRoot class. It overrides the getChildren() method and keeps the children objects in its own variable (children),
but does not override the getFacetsAndChildren() method, which accesses the property from the base class (UIComponentBase._childrenList).
Later when getFacetsAndChildren() is called, you get an empty list.

Workaround is to big to present it here.
Leszek

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Dec 2010, 20:29

That class does not exist in PrimeFaces 2, as PrimeFaces 1 for JSF 1.2 is dropped I cannot present a workaround as PF 1.x is not developed anymore.

dan
Posts: 3
Joined: 21 Dec 2010, 19:35

03 Jan 2011, 19:07

I have a workaround already, but maybe a bug fix release ;-)
Leszek

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests