Spark + p:panelGrid

Locked
baldo
Posts: 14
Joined: 25 May 2015, 16:01

03 Nov 2015, 14:56

Hello, guys!

I read other posts regarding how to remove p:panelGrid borders but it isn't working for me.
I inspected the css output with chrome and I saw that Spark css is overriding the css class "ui-panelgrid-blank".
In the code bellow the first panelGrid renders without border and the second one renders with border.

When the panelGrid is inside <div class="layout-portlets-box"> the border is always shown.

I'm using PrimeFace 5.3, JSF 2.2, Spark 1.3.1.
I did not test it with Spark 2.0 yet.

How to solve this problem? Thank you!

Code: Select all

<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
    xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:h="http://xmlns.jcp.org/jsf/html"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    template="/WEB-INF/template.xhtml">
    
    <ui:define name="content">
        <p:panelGrid id="idPG1" layout="grid" columns="1" styleClass="ui-panelgrid-blank">
            <p:outputLabel id="idLabel1" value="Label 1" for="idInput1" styleClass="Fs14" />
            <p:inputText id="idInput1" value="" />
                    
            <p:outputLabel id="idLabel2" value="Label 2" for="idInput2" styleClass="Fs14" />
            <p:inputText id="idInput2" value="" />
        </p:panelGrid>
		
        <div class="layout-portlets-box">
            
        	<p:panelGrid id="idPG2" layout="grid" columns="1" styleClass="ui-panelgrid-blank">
            	<p:outputLabel id="idLabel3" value="Label 3" for="idInput3" styleClass="Fs14" />
				<p:inputText id="idInput3" value="" />
                    
				<p:outputLabel id="idLabel4" value="Label 4" for="idInput4" styleClass="Fs14" />
				<p:inputText id="idInput4" value="" />
			</p:panelGrid>
            
        </div>
        
    </ui:define>
    
</ui:composition>

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

03 Nov 2015, 15:53

We added ui-panelgrid-blank class in new release. (compatibility with 5.3) Please try with Spark 2.0. It works fine for me.
New releases are available; http://blog.primefaces.org/?p=3656

baldo
Posts: 14
Joined: 25 May 2015, 16:01

03 Nov 2015, 17:26

Thank you, Aragorn!
I'll try it now.

Is the upgrade process the same as specified before?
- Update spark-layout.css and spark-layout-{color}.css files.
- Replace theme jar with the new jar.

Thank you!

baldo
Posts: 14
Joined: 25 May 2015, 16:01

03 Nov 2015, 17:55

Aragorn,

I have just tested with Spark 2.0.
It is working as expected.

Thank you!

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

04 Nov 2015, 09:33

Glad to hear, thanks Baldo;)

Locked

Return to “Spark”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests