p:link in right-panel

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
quevaig
Posts: 7
Joined: 07 Nov 2018, 10:46

27 Jun 2019, 18:58

I'm trying to put a <p:link> on the right panel but when I click on link it does do nothing.

Code: Select all

<div class="layout-right-panel">
			<ui:repeat value="#{ultimaVisitaController.uv}" var="uv">
				<div class="status-title">
					<p:link outcome="/contacte/visualitzaContacte" value="#{uv.nom}">
						<f:param name="id" value="#{uv.codi}" />
					</p:link>
				</div>
			</ui:repeat>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

08 Jul 2019, 09:04

Fixed for next version. Please make the following changes in layout.js for now;

Code: Select all

_initrightPanel: function() {
        var $this = this;

        this.rightPanelButton = $('.layout-right-panel-button');
        this.rightPanel = $('.layout-right-panel');

        this.rightPanelButton.off('click').on('click', function(e) {
            $this.rightPanel.toggleClass('layout-right-panel-active');
            $this.rightPanelClick = true;
            e.preventDefault();
        });

/********* Please check the following codes **************/
        this.rightPanel.off('click').on('click', function (e) {
            $this.rightPanelClick = true;

            var target = e.target;
            if (!(target.nodeName === "A" && target.getAttribute('href') !== '#')) {
                e.preventDefault();
            }
        });
    },

quevaig
Posts: 7
Joined: 07 Nov 2018, 10:46

18 Jul 2019, 10:35

It works. thanks a lot !

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

19 Jul 2019, 07:56

Glad to hear, thanks a lot for the update!

Post Reply

Return to “Roma - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests