<?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>Liferay Faces -  portlet:DefineObjects tag is no longer supported</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120683608" />
  <subtitle>Liferay Faces -  portlet:DefineObjects tag is no longer supported</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120683608</id>
  <updated>2026-04-05T05:38:39Z</updated>
  <dc:date>2026-04-05T05:38:39Z</dc:date>
  <entry>
    <title>RE: Liferay Faces -  portlet:DefineObjects tag is no longer supported</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686789" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686789</id>
    <updated>2021-03-15T15:13:02Z</updated>
    <published>2021-03-15T14:59:22Z</published>
    <summary type="html">&lt;p&gt;Hi Vincenzo,&lt;/p&gt;
&lt;p&gt;Thanks for asking this question. I would recommend that you read &lt;a
    href="https://github.com/liferay/liferay-faces-bridge-api/blob/5.0.0-edr3/bridge-spec/src/site/markdown/chapter-6-managing-faces.md#65-expression-language-resolution"&gt;Section
    6.5 of the JSR 378 Specification&lt;/a&gt; titled &amp;quot;Expression
  Language Resolution&amp;quot; to get a good understanding of this topic.&lt;/p&gt;
&lt;p&gt;To make a long story short, you should be able to simply delete the
  &amp;lt;portlet:defineObjects/&amp;gt; tag from the XHTML file, because most
  (if not all) of the objects that you would need are introduced by the
  bridge's ELResolver, which is used by Facelets when resolving EL Expressions.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2021-03-15T14:59:22Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Faces -  portlet:DefineObjects tag is no longer supported</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120683607" />
    <author>
      <name>Vincenzo Malagrinò</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120683607</id>
    <updated>2021-03-12T18:09:03Z</updated>
    <published>2021-03-12T08:19:38Z</published>
    <summary type="html">&lt;p&gt;​&lt;br /&gt;Hello people!&lt;/p&gt;
&lt;p&gt;I'm upgrading a portlet with xhtml files instead of jsp files from
  6.2 to 7.2 liferay version. Requirements are that migrated portlet
  continues to work with xhtml files. I have already
  updated com.liferay.faces dependencies, particularly liferay-faces-bridge-impl to com.liferay.faces.bridge.impl.&lt;/p&gt;
&lt;p&gt;Now in a xhtml file there is the &amp;lt;portlet:defineObjects /&amp;gt; tag.&lt;/p&gt;
&lt;p&gt;This tag, I saw
  into com.liferay.faces.bridge.impl.jar's portlet.taglib.xml, is no
  longer present. In fact when I deploy the portlet I get this
  error: &amp;quot;Tag library supports
  namespace http://java.sun.com/portlet_2_0 but no tag was defined for
  name defineObjects&amp;quot;. How can I solve this issue? Is it safe to
  remove &amp;lt;porlet:defineObjects/&amp;gt; with no other edit?&lt;/p&gt;
&lt;p&gt;For completeness this is the dependency into pom.xml&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;dependency&amp;gt;
    &amp;lt;groupId&amp;gt;com.liferay.faces&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;com.liferay.faces.bridge.impl&amp;lt;/artifactId&amp;gt;
    &amp;lt;scope&amp;gt;runtime&amp;lt;/scope&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And this is the snippet of the involved xhtml file&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-html"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;f:view
    xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;
    xmlns:f=&amp;quot;http://xmlns.jcp.org/jsf/core&amp;quot;
    xmlns:h=&amp;quot;http://xmlns.jcp.org/jsf/html&amp;quot;
    xmlns:ui=&amp;quot;http://xmlns.jcp.org/jsf/facelets&amp;quot;
    xmlns:alloy=&amp;quot;http://liferay.com/faces/alloy&amp;quot;
    xmlns:p=&amp;quot;http://primefaces.org/ui&amp;quot;
    xmlns:liferay-ui=&amp;quot;http://liferay.com/tld/ui&amp;quot;
    xmlns:portlet=&amp;quot;http://java.sun.com/portlet_2_0&amp;quot;
    xmlns:bridge=&amp;quot;http://liferay.com/faces/bridge&amp;quot;&amp;gt;

    &amp;lt;h:head /&amp;gt;

    &amp;lt;portlet:defineObjects/&amp;gt;
    &amp;lt;f:event listener=&amp;quot;#{bean1.onPageRender}&amp;quot; type=&amp;quot;preRenderView&amp;quot; /&amp;gt;

    &amp;lt;h:body&amp;gt;
      &amp;lt;alloy:row&amp;gt;
        &amp;lt;alloy:column&amp;gt;
          &amp;lt;h:form&amp;gt;
            &amp;lt;p:messages autoUpdate=&amp;quot;true&amp;quot; /&amp;gt;
            &amp;lt;alloy:fieldset&amp;gt;
              &amp;lt;alloy:row&amp;gt;
                &amp;lt;alloy:column&amp;gt;
                  &amp;lt;alloy:field label=&amp;quot;visible&amp;quot;&amp;gt;
                    &amp;lt;p:inputTextarea value=&amp;quot;#{bean2.visible}&amp;quot; /&amp;gt;
                  &amp;lt;/alloy:field&amp;gt;
                &amp;lt;/alloy:column&amp;gt;
              &amp;lt;/alloy:row&amp;gt;
            &amp;lt;/alloy:fieldset&amp;gt;

            &amp;lt;p:commandButton action=&amp;quot;#{bean1.submit}&amp;quot; value=&amp;quot;Save&amp;quot; /&amp;gt;
          &amp;lt;/h:form&amp;gt;
        &amp;lt;/alloy:column&amp;gt;
      &amp;lt;/alloy:row&amp;gt;
    &amp;lt;/h:body&amp;gt;
&amp;lt;/f:view&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;​&lt;br /&gt; &lt;/p&gt;</summary>
    <dc:creator>Vincenzo Malagrinò</dc:creator>
    <dc:date>2021-03-12T08:19:38Z</dc:date>
  </entry>
</feed>
