Code: Select all
<h:body>
<pe:layout id="fullPage" options="#{fullLayoutController.layoutOptions}"
stateCookie="true" widgetVar="fpLayoutWidget">
<pe:layoutPane position="north" rendered="true" >
<ui:insert name="north">
<ui:include src="/north.xhtml"/>
</ui:insert>
</pe:layoutPane>
I tried to update my PF and PF-extensions and no I got a message that there is no size attribute anymore in pe:layoutPane. How can I change the size of the North pane for instance? If I want it to be 50 pixels or 20 % or something like that?
Cheers,
Sami
EDIT: I see i see, there is no options anymore in layoutPane. Is there tutorial or handbook for new PR Ext?
I tried to implement a new managed bean to configure layout like that:
Code: Select all
@ManagedBean (name = "fullLayoutController")
@ViewScoped
public class FullLayoutController implements Serializable {
private static final long serialVersionUID = 20120925L;
private LayoutOptions layoutOptions;
@PostConstruct
protected void initialize() {
System.out.println("*****************TEST");
layoutOptions = new LayoutOptions();
// options for all panes
LayoutOptions panes = new LayoutOptions();
panes.addOption("slidable", false);
panes.addOption("spacing", 6);
panes.addOption("resizeWhileDragging", false);
layoutOptions.setPanesOptions(panes);
// options for north pane
LayoutOptions north = new LayoutOptions();
north.addOption("size", 100);
layoutOptions.setNorthOptions(north);
}
Here is the sample code though:
http://fractalsoft.net/primeext-showcas ... Layout.jsf