How to delegate from a Page Fragment to its parent?

View: New views
3 Messages — Rating Filter:   Alert me  

How to delegate from a Page Fragment to its parent?

by Stefan Bley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I would like to use a Page Fragment that contains the buttons [OK], [Cancel] and [Apply].
A click on the OK buttons invokes a call to the btnOK_action() in the Page Fragment's backing bean.
However, since the fragment is included in several pages, I would like to delegate to a btnOK_action() that resides in the backing bean of the parent page.

What is the best way to do this?

Thanks in advance, Stefan

Re: How to delegate from a Page Fragment to its parent?

by Stefan Bley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does nobody have an idea?
I can't imagine people not using page fragments to layout their pages.

Any help would be appreciated.
Stefan

Re: How to delegate from a Page Fragment to its parent?

by Dan Labrecque :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could be wrong, but I don't believe EL expressions can be used in this
way. Multiple pages can provide the same EL expression to a button
action, but there is no parent relationship with the backing bean that
I'm aware of.

Stefan Bley wrote:
> Does nobody have an idea?
> I can't imagine people not using page fragments to layout their pages.
>
> Any help would be appreciated.
> Stefan
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...