Base Layout

Post Reply
Melski
Posts: 1
Joined: 21 Jun 2016, 13:24

27 Dec 2016, 11:47

Hi there,

Just a minor thing but your layout zip I thought would work out of the box without any alteration. However a lot of the files have this reference in them (example):
<h:outputStylesheet name="css/layout-#{guestPreferences.layout}.css" library="atlantis-layout" />

GuestPreferences.layout of course doesn't exist as there is no code. It seems odd to assume that someone would code this up. The documentation page didn't mention it and I would have hoped the primefaces.THEME configuration would have been used here instead.

Is this on purpose?

cagatay.civici
Prime
Posts: 17878
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Dec 2016, 10:01

I think we need to add this to the documentation.

User avatar
Melloware
Posts: 670
Joined: 22 Apr 2013, 15:48

28 Dec 2016, 16:13

@Melski

I just purchased this theme and I love it. the one thing that really helped me was looking at their included WAR file. Which is the fully working showcase example.

I then started my project brought in everything from that project and started stripping out what I didn't need. The GuesPreferences.java is in there. The reason they have it like that is to show you how to dynamically control every aspect of the theming from this bean including in the web.xml

Code: Select all

    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>atlantis-#{guestPreferences.theme}</param-value>
    </context-param>
So you might be best off starting with their war and stripping out one feature at a time and styling your app the way you want to. In the end I think you will be really happy with the end result. In less than a week I have a completely professional looking application.

Just my 2 cents!
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 6.2 / PF Extensions 6.2.7

User avatar
aragorn
Posts: 3056
Joined: 29 Jun 2013, 12:38

02 Jan 2017, 12:38

@Melloware, +1 :)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest