ui-panel-titlebar-icon prevents <a> from navigating

UI Components for JSF
Post Reply
rosière
Posts: 92
Joined: 28 Nov 2012, 15:55
Contact:

20 Apr 2016, 11:21

Hello,
I'm using custom actions in panel.
My links in action facet can't navigate to its target even if its HTML is all right. It happens since I upgraded my Primefaces from 5.1.6 to 5.3.4 and my Primefaces Extensions from 3.0.0 to 4.0.0.

Code: Select all

<a href="../myNewFolder/myNewPage.xhtml" title="****" class="ui-panel-titlebar-icon ui-corner-all ui-state-default">
                            <span class="ui-icon ui-icon-star"></span>
                        </a>
                        
Here is my XHTML snippet:

Code: Select all

   <p:panel id="xxx" >
                    <f:facet name="actions">
                        <a href="../myNewFolder/myNewPage.xhtml" title="***" class="ui-panel-titlebar-icon ui-corner-all ui-state-default">
                            <span class="ui-icon ui-icon-star" />
                        </a>
                    </f:facet><br/>
***
</p:panel>
I find that navigation is possible again, if I remove the class ui-panel-titlebar-icon from the <a> element. However by doing this the icon is no longer on the right top corner.

If I keep class ui-panel-titlebar-icon, I can only navigate by opening the link in a new window or a new tab. But I can't browse the link by clicking it on the same page.

Here is the class' definition that I found with Firebug's inspector:

Code: Select all

.ui-panel .ui-panel-titlebar-icon {
    cursor: pointer;
}

So what is wrong with this class?
JDK: 1.8
Operating system: Windows 10
server: 4.1.1.171 #badassfish (build 136)
IDE: NetBeans 11.2
primefaces : version 6.0
primefaces extensions : 4.0.0
Apache Poi: 3.15


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests