<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>primefaces treeTable not work in liferay portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=61079471" />
  <subtitle>primefaces treeTable not work in liferay portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=61079471</id>
  <updated>2026-04-05T17:33:51Z</updated>
  <dc:date>2026-04-05T17:33:51Z</dc:date>
  <entry>
    <title>RE: primefaces treeTable not work in liferay portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61315939" />
    <author>
      <name>Juan Gonzalez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61315939</id>
    <updated>2015-10-20T09:16:00Z</updated>
    <published>2015-10-20T09:16:00Z</published>
    <summary type="html">Hi Mallex,&lt;br /&gt;&lt;br /&gt;although Liferay Faces portlet bridge makes your JSF portlets working without knowing any portlet internals, they doesn&amp;#39;t have to work without changing anything if coming from a non portlet environment.&lt;br /&gt;&lt;br /&gt;Please take a look on the &lt;a href="https://github.com/liferay/liferay-faces/tree/master/demos"&gt;demo portlets&lt;/a&gt; to see what are the needed changes for web.xml, and liferay-portlet.xml.&lt;br /&gt;&lt;br /&gt;Additionally, be careful about which Liferay Faces are you using. Read this &lt;a href="https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/understanding-the-liferay-faces-version-scheme"&gt;Liferay Faces version scheme&lt;/a&gt; so you can ensure your portlet will work as it should on your Liferay environment. &lt;br /&gt;&lt;br /&gt;To say an example about one of the changes you have to do, in portlet environments you have to use &amp;lt;f:view&amp;gt; instead of &amp;lt;html&amp;gt;, due to the portlet environment own characteristics.</summary>
    <dc:creator>Juan Gonzalez</dc:creator>
    <dc:date>2015-10-20T09:16:00Z</dc:date>
  </entry>
  <entry>
    <title>Moved to Liferay Faces category</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61315849" />
    <author>
      <name>Juan Gonzalez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61315849</id>
    <updated>2015-10-20T09:09:48Z</updated>
    <published>2015-10-20T09:09:48Z</published>
    <summary type="html">Moved to Liferay Faces category</summary>
    <dc:creator>Juan Gonzalez</dc:creator>
    <dc:date>2015-10-20T09:09:48Z</dc:date>
  </entry>
  <entry>
    <title>primefaces treeTable not work in liferay portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61079470" />
    <author>
      <name>Mallex Mallex</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=61079470</id>
    <updated>2015-10-16T12:08:53Z</updated>
    <published>2015-10-16T12:08:53Z</published>
    <summary type="html">Hi Liferay-Developer !&lt;br /&gt;&lt;br /&gt;I developed a Primeface-treeTable based on the Primeface example. This treeTable works in a normal Web-Application outside a portlet. I deployed this WebApplication (no portlet) on the liferay tomcat. It works fine. If I klick in a row, the sub rows will be shown. &lt;br /&gt;&lt;br /&gt;I copy the same classes, jsf-views, css-Files, and js-files into a Liferay portlet and start the portlet. The treeTable will be shown and no errors are printed in the log files. &lt;strong&gt;If I click in a row (small triangle) the subrows will not shown. &lt;/strong&gt; Where is the problem?&lt;br /&gt;&lt;br /&gt;I see in the firefox console log, that a http request was send to the server.&lt;br /&gt;&lt;strong&gt;The Request:&lt;/strong&gt;&lt;br /&gt;_EmailClient_WAR_emailcli...	&lt;br /&gt;_EmailClient_WAR_emailclientjsfportlet_:form&lt;br /&gt;_EmailClient_WAR_emailcli...	&lt;br /&gt;_EmailClient_WAR_emailclientjsfportlet_:form:j_idt9&lt;br /&gt;_EmailClient_WAR_emailcli...	&lt;br /&gt;2&lt;br /&gt;javax.faces.ViewState	&lt;br /&gt;-7278044843963633805:-504317009044774931&lt;br /&gt;javax.faces.encodedURL	&lt;br /&gt;http://localhost:10080/web/...&lt;br /&gt;javax.faces.partial.ajax	&lt;br /&gt;true&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Respone:&lt;/strong&gt;&lt;br /&gt;&amp;lt;partial-response id=&amp;#34;_EmailClient_WAR_emailclientjsfportlet_&amp;#34;&amp;gt;&amp;lt;changes&amp;gt;&amp;lt;update id=&amp;#34;_EmailClient_WAR_emailclientjsfportlet_&lt;br /&gt;:javax.faces.ViewState:0&amp;#34;&amp;gt;&amp;lt;![CDATA[3113752891300741342:-2864814770497568017]]&amp;gt;&amp;lt;/update&amp;gt;&amp;lt;/changes&amp;gt;&amp;lt;/partial-response&lt;br /&gt;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The XHTML:&lt;/strong&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34; encoding=&amp;#34;UTF-8&amp;#34; ?&amp;gt;&lt;br /&gt;&amp;lt;ui:composition&lt;br /&gt;	template=&amp;#34;/META-INF/templates/emailClientTemplateInPortlet.xhtml&amp;#34;&lt;br /&gt;	xmlns=&amp;#34;http://www.w3.org/1999/xhtml&amp;#34;&lt;br /&gt;	xmlns:h=&amp;#34;http://xmlns.jcp.org/jsf/html&amp;#34;&lt;br /&gt;	xmlns:ui=&amp;#34;http://xmlns.jcp.org/jsf/facelets&amp;#34;&lt;br /&gt;	xmlns:mg=&amp;#34;http://at.irian/mygourmet&amp;#34; xmlns:p=&amp;#34;http://primefaces.org/ui&amp;#34;&lt;br /&gt;	xmlns:f=&amp;#34;http://java.sun.com/jsf/core&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;	&amp;lt;ui:param name=&amp;#34;title&amp;#34; value=&amp;#34;#{msgs.mytitle}&amp;#34; /&amp;gt;&lt;br /&gt;&lt;br /&gt;	&amp;lt;ui:define name=&amp;#34;mycontent&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;		&amp;lt;h:form id=&amp;#34;form&amp;#34; enctype=&amp;#34;multipart/form-data&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;p:treeTable value=&amp;#34;#{basicView.root}&amp;#34; var=&amp;#34;doc&amp;#34;&amp;gt;&lt;br /&gt;&lt;br /&gt;				&amp;lt;p:column headerText=&amp;#34;Name&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;h:outputText value=&amp;#34;#{doc.name}&amp;#34; /&amp;gt;&lt;br /&gt;				&amp;lt;/p:column&amp;gt;&lt;br /&gt;				&amp;lt;p:column headerText=&amp;#34;Size&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;h:outputText value=&amp;#34;#{doc.size}&amp;#34; /&amp;gt;&lt;br /&gt;				&amp;lt;/p:column&amp;gt;&lt;br /&gt;				&amp;lt;p:column headerText=&amp;#34;Type&amp;#34;&amp;gt;&lt;br /&gt;					&amp;lt;h:outputText value=&amp;#34;#{doc.type}&amp;#34; /&amp;gt;&lt;br /&gt;				&amp;lt;/p:column&amp;gt;&lt;br /&gt;&lt;br /&gt;			&amp;lt;/p:treeTable&amp;gt;&lt;br /&gt;&lt;br /&gt;		&amp;lt;/h:form&amp;gt;&lt;br /&gt;&lt;br /&gt;	&amp;lt;/ui:define&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/ui:composition&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Template:&lt;/strong&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;&amp;lt;h:body&amp;gt;&lt;br /&gt; 	&amp;lt;h:outputScript library=&amp;#34;scripts&amp;#34; name=&amp;#34;primeFacesLoc.js&amp;#34; target=&amp;#34;head&amp;#34; /&amp;gt;&lt;br /&gt;	&amp;lt;h:outputStylesheet name=&amp;#34;styles/my.css&amp;#34; /&amp;gt;&lt;br /&gt;	&amp;lt;div id=&amp;#34;mycontainerid&amp;#34;&amp;gt;&lt;br /&gt;		&amp;lt;div id=&amp;#34;mycontentid&amp;#34;&amp;gt;&lt;br /&gt;			&amp;lt;ui:insert name=&amp;#34;mycontent&amp;#34;&amp;gt;Default content&amp;lt;/ui:insert&amp;gt;&lt;br /&gt;		&amp;lt;/div&amp;gt;&lt;br /&gt;	&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/h:body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;</summary>
    <dc:creator>Mallex Mallex</dc:creator>
    <dc:date>2015-10-16T12:08:53Z</dc:date>
  </entry>
</feed>
