panel close event... pass parameter

UI Components for JSF
Post Reply
rahuljain9684
Posts: 5
Joined: 06 Jul 2011, 02:32

06 Jul 2011, 02:46

I have a nested panel component with a close behavior enabled. I need to know the panel component which was closed so that I can delete the appropriate component from database. What I am struggling with is to pass the parameter (an Object of custom type) to the listener method. Also, JSF does not support EL in id attribute of panel and therefore I cannot put my id to the panel to link back to my object using Event. Has anyone faced anything similar and have a solution for it? I am struggling on it for 10 days now already without a solution. Any help is deeply appreciated.

I am using Primefaces 3.0 M2, Mojarra 2.1, JDK 1.7 Preview release

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

06 Jul 2011, 08:47

CloseEvent.getComponent() doesn't help?

rahuljain9684
Posts: 5
Joined: 06 Jul 2011, 02:32

07 Jul 2011, 01:13

getComponent gives me a UI Component... but how do I link that to my object in a nested arraylist in my backing bean. I was thinking I can do so by setting my primary key as my panel id but JSF does not support dynamic id's.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests