ENHANCEMENT REQUEST: please add p:ajax event="resize|open|close" per pe:layoutPane.
This would be great for nested layout use cases. Why should one have to conditionally render p:ajax event="resize" for p:layout, when you only want that AJAX event for one layoutPane (e.g. west) within one view?
It would be nice to be able to call various bean methods via pe:layoutPane p:ajax, such as follows:
north
Code: Select all
<pe:layoutPane north> <p:ajax event="resize" listener="bean.resizeNorth()"/></pe:layoutPane>
Code: Select all
<pe:layoutPane west> <p:ajax event="resize" listener="bean.resizeWest()"/></pe:layoutPane>
Also, the current p:layout p:ajax event="resize" is not usable/reliable. I cannot rely on the AJAX event argument values at all. If I click the button which hides/shows west pane, it AJAX "resize" event always says that "center" resized.
Providing this enhancement request will eliminate the 'need' or requirement to provide name of layoutPane which was resized. When I click the hide/show layoutPane button, then it should plainly and simply just let me know that the layoutPane is currently hidden or displayed.
I have not attempted to use open/close events yet, but providing p:ajax events for each layoutPane would be a great enhancement to pe:layout component.
Issue 311 in Issue Tracker