<p:layoutUnit> attribute setting

UI Components for JSF
Post Reply
User avatar
bardu
Posts: 293
Joined: 30 Dec 2009, 08:27
Location: Canada

10 Nov 2010, 00:10

I have a use case where it would be more convenient to set an attribute of a <p:layoutUnit> client side rather than binding the value to a backing bean.

However, it seem this is not working out:

Code: Select all

<ui:define name="resources">
        <script type="text/javascript" >
            jQuery(document).ready(function() {
               jQuery('#right').attr('collapsible', 'false');
            });
        </script>
    </ui:define>
and this neither:

Code: Select all

<ui:define name="resources">
        <script type="text/javascript" >
            jQuery(document).ready(function() {
                document.getElementById('right').setAttribute('collapsible', 'false');
            });
        </script>
    </ui:define>
JSF-2.0, mojarra-2.1 | PrimeFaces-3.0-M1 | GFv3.1 | NetBeans 7 | Ubuntu 11.04
www.yukonlive.ca
www.yukonlive.de


User avatar
bardu
Posts: 293
Joined: 30 Dec 2009, 08:27
Location: Canada

10 Nov 2010, 00:50

Thanks.
JSF-2.0, mojarra-2.1 | PrimeFaces-3.0-M1 | GFv3.1 | NetBeans 7 | Ubuntu 11.04
www.yukonlive.ca
www.yukonlive.de

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests