<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Attributes from pe:layoutPane  have no effect</title><link>https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect</link><description>&lt;p&gt;I decided to use pe:layout instead of p:layout because i was having problems re-sizing a p:layoutUnit with an iframe. &lt;/p&gt;
&lt;p&gt;After adding gson-2.2.4.jar to the &amp;lt;designer&amp;gt;\webapps\ivy\WEB-INF\lib folder it started to work. But the attributes size,  initClose, closable, minSize, maxSize have no effect.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;pe:layout fullPage="true" &amp;gt;
&amp;lt;pe:layoutPane  size="800" initClosed="true" closable="true" position="north"&amp;gt;
    &amp;lt;h3&amp;gt;Test&amp;lt;/h3&amp;gt;
&amp;lt;/pe:layoutPane&amp;gt;
&amp;lt;pe:layoutPane position="center"&amp;gt;
    &amp;lt;h:form id="form"&amp;gt;
        &amp;lt;h:panelGrid columns="2" &amp;gt;
            &amp;lt;f:facet name="header"&amp;gt;
                &amp;lt;p:messages&amp;gt;&amp;lt;/p:messages&amp;gt;
            &amp;lt;/f:facet&amp;gt;

            &amp;lt;p:outputLabel for="description" value="Description"/&amp;gt;
            &amp;lt;p:inputText id="description" value=""&amp;gt;&amp;lt;/p:inputText&amp;gt;

            &amp;lt;p:outputLabel for="expire" value="Expire"/&amp;gt;
            &amp;lt;p:calendar id="expire" value="" pattern="dd.MM.yyyy HH:mm" size="16"&amp;gt;
                &amp;lt;f:convertDateTime pattern="dd.MM.yyyy HH:mm" /&amp;gt;
            &amp;lt;/p:calendar&amp;gt;

            &amp;lt;p:commandButton actionListener="#{logic.close}" value="Proceed" update="form" icon="ui-icon-check" /&amp;gt;
        &amp;lt;/h:panelGrid&amp;gt;
    &amp;lt;/h:form&amp;gt;
&amp;lt;/pe:layoutPane&amp;gt;

&amp;lt;pe:layoutPane position="east" size="50%" closable="true"&amp;gt;
    &amp;lt;iframe src="http://answers.axonivy.com/" height="100%" width = "100%"  /&amp;gt;      
&amp;lt;/pe:layoutPane&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;lt;/pe:layout&amp;gt;&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 13 Oct 2015 16:27:06 -0400</lastBuildDate><item><title>Comment by tiago on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect#1513</link><description>&lt;p&gt;Thanks. The update has solved the problem&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tiago</dc:creator><pubDate>Tue, 13 Oct 2015 16:27:06 -0400</pubDate><guid>https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect#1513</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect/1512</link><description>&lt;p&gt;It works for me if I update to the latest primefaces jars.&lt;/p&gt;
&lt;p&gt;In detail modify the &lt;code&gt;webapps/ivy/WEB-INF/lib&lt;/code&gt; folder as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;add &lt;code&gt;gson-2.2.4.jar&lt;/code&gt; or newer&lt;/li&gt;
&lt;li&gt;replace &lt;code&gt;primefaces-extensions-2.0.0.jar&lt;/code&gt; with &lt;code&gt;primefaces-extensions-3.2.0.jar&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;replace &lt;code&gt;primefaces-5.0.4-ivy.jar&lt;/code&gt; with &lt;code&gt;primefaces-5.2.jar&lt;/code&gt;
&lt;img alt="updated lib directory" src="http://answers.axonivy.com/upfiles/latestPrimeFacesExtensionJars.png"&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then the view is renderer like this:
&lt;img alt="browser showing layout" src="http://answers.axonivy.com/upfiles/layoutedView.png"&gt;&lt;/p&gt;
&lt;p&gt;Important is, that you do not forget the &amp;lt; h:head &amp;gt; section in your view. Otherwise javascript errors are logged into the browsers console and therefore the scripts that interpret your failing attributes will not work. So the complete view code that I used is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:ic="http://ivyteam.ch/jsf/component"
    xmlns:p="http://primefaces.org/ui"
    xmlns:pe="http://primefaces.org/ui/extensions"
    xmlns:pm="http://primefaces.org/mobile"&amp;gt;

&amp;lt;h:head /&amp;gt;&amp;lt;!-- required so that pe: can inject java scripts --&amp;gt;

&amp;lt;h:body&amp;gt;
    &amp;lt;pe:layout fullPage="true"&amp;gt;
        &amp;lt;pe:layoutPane size="800" initClosed="true" closable="true"
            position="north"&amp;gt;
            &amp;lt;h3&amp;gt;Test&amp;lt;/h3&amp;gt;
        &amp;lt;/pe:layoutPane&amp;gt;
        &amp;lt;pe:layoutPane position="center"&amp;gt;
            &amp;lt;h:form id="form"&amp;gt;
                &amp;lt;h:panelGrid columns="2"&amp;gt;
                    &amp;lt;f:facet name="header"&amp;gt;
                        &amp;lt;p:messages&amp;gt;&amp;lt;/p:messages&amp;gt;
                    &amp;lt;/f:facet&amp;gt;

                    &amp;lt;p:outputLabel for="description" value="Description" /&amp;gt;
                    &amp;lt;p:inputText id="description" value=""&amp;gt;&amp;lt;/p:inputText&amp;gt;

                    &amp;lt;p:outputLabel for="expire" value="Expire" /&amp;gt;
                    &amp;lt;p:calendar id="expire" value="" pattern="dd.MM.yyyy HH:mm"
                        size="16"&amp;gt;
                        &amp;lt;f:convertDateTime pattern="dd.MM.yyyy HH:mm" /&amp;gt;
                    &amp;lt;/p:calendar&amp;gt;

                    &amp;lt;p:commandButton actionListener="#{logic.close}" value="Proceed"
                        update="form" icon="ui-icon-check" /&amp;gt;
                &amp;lt;/h:panelGrid&amp;gt;
            &amp;lt;/h:form&amp;gt;
        &amp;lt;/pe:layoutPane&amp;gt;

        &amp;lt;pe:layoutPane position="east" size="50%" closable="true"&amp;gt;
            &amp;lt;iframe src="http://answers.axonivy.com/" height="100%" width="100%" /&amp;gt;
        &amp;lt;/pe:layoutPane&amp;gt;

    &amp;lt;/pe:layout&amp;gt;

&amp;lt;/h:body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 13 Oct 2015 14:44:45 -0400</pubDate><guid>https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect/1512</guid></item></channel></rss>