<?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 8 &amp; Liferay 7.3</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120542971" />
  <subtitle>Primefaces 8 &amp; Liferay 7.3</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120542971</id>
  <updated>2026-06-11T18:43:41Z</updated>
  <dc:date>2026-06-11T18:43:41Z</dc:date>
  <entry>
    <title>Primefaces 8 &amp; Liferay 7.3</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120542970" />
    <author>
      <name>Nhuan Luong</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120542970</id>
    <updated>2021-08-17T16:38:10Z</updated>
    <published>2021-01-07T09:59:23Z</published>
    <summary type="html">&lt;p&gt;​hi,&lt;/p&gt;
&lt;p&gt;I'm developing portlets based on&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Liferay Portal CE 7.3&lt;/li&gt;
  &lt;li&gt;JSF 2.2  &lt;/li&gt;
  &lt;li&gt;Primefaces 8.0&lt;/li&gt;
  &lt;li&gt;com.liferay.faces.bridge.ext 6.1.0&lt;/li&gt;
  &lt;li&gt;com.liferay.faces.bridge.api / impl: 4.2.0&lt;/li&gt;
  &lt;li&gt;com.liferay.faces.portal 4.1.0&lt;/li&gt;
  &lt;li&gt;com.liferay.portal.kernel 9.12.2&lt;/li&gt;
  &lt;li&gt;com.liferay.faces.util 3.4.0&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;I'm having trouble using autocomplete component with dropdown and
  selectOneMenu component and I don't how to debug portlet in IntelliJ
  IDEA 2020.x x64 (installed liferay plugin)&lt;/p&gt;
&lt;p&gt;
  &lt;em&gt;First of all, The JSF's problems (Primefaces) only happen when
    deploying on Liferay&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Issue with Autocomplete.&lt;/strong&gt;
  &lt;br /&gt; When clicking on the button dropdown, nothing happens. No error
  in the console&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;The issue with SelectOneMenu.&lt;/strong&gt;
  &lt;br /&gt; Cannot submit a form with a null value:&lt;/p&gt;
&lt;p&gt;I tried:&lt;/p&gt;
&lt;p&gt;&amp;lt;f:selectItem itemLabel=&amp;quot;Select One&amp;quot;
  itemValue=&amp;quot;&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;or &lt;/p&gt;
&lt;p&gt;&amp;lt;f:selectItem itemLabel=&amp;quot;&amp;quot; itemValue=&amp;quot;#{null}&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;or &lt;/p&gt;
&lt;p&gt;&amp;lt;f:selectItem itemLabel=&amp;quot;&amp;quot; itemValue=&amp;quot;#{null}&amp;quot; noSelectionOption=&amp;quot;true&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;console error:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;09:55:30,132 ERROR [ExceptionHandlerBridgeImpl:78] java.lang.NullPointerException
javax.faces.FacesException: java.lang.NullPointerException
	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:86)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	at com.liferay.faces.bridge.internal.BridgePhaseResourceImpl.execute(BridgePhaseResourceImpl.java:265)
	at com.liferay.faces.bridge.internal.BridgeImpl.doFacesRequest(BridgeImpl.java:175)
	at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:675)
	at com.liferay.portlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:146)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;
  &lt;a href="https://drive.google.com/file/d/1btsQrY7nbpQdIMmMfkHD-WwTP084USb9/view?usp=sharing"&gt;detail&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but when use JSF selectOneMenu instead of Primefaces it works normally.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;How can I debug portlet use IntelliJ IDEA 2020.x x64?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I used to Liferay Portal CE 6.2, easy debug portlet by deploy the
  .xml to Liferay's deploy folder and start JRebel (use Maven build tool).&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;&amp;lt;Context docBase=&amp;quot;D:\web-dashboard\target\web-dashboard&amp;quot;
         reloadable=&amp;quot;true&amp;quot;
         path=&amp;quot;/web-dashboard&amp;quot;/&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;But in 7.3 in debug mode:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;SEVERE [main] com.sun.faces.config.ConfigureListener.contextInitialized Critical error during deployment: 
	com.sun.faces.config.ConfigurationException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: org/osgi/framework/BundleContext
		at com.sun.faces.config.ConfigManager.getConfigDocuments(ConfigManager.java:764)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When I started Liferay not use debugging and deploy portlet by
  uploading portlet in Liferay's App Manager. Portlets work normally.
  How can I debug portlet? I know that JSF it's just a normal
  application and no need for an OSGi bundle. What am I wrong?&lt;/p&gt;
&lt;p&gt;I tried with Developer Studio but too hard to run many services serve
  for portlets at the same time.&lt;/p&gt;
&lt;p&gt;Thanks for your help or any suggestions.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Nhuan Luong</dc:creator>
    <dc:date>2021-01-07T09:59:23Z</dc:date>
  </entry>
</feed>
