Problem installation with guestPreferences

Post Reply
deni.arianto1606
Posts: 2
Joined: 18 Feb 2019, 17:06

19 Feb 2019, 18:09

Hi, i just used primefaces and really looking forward to using this theme. It's the first that I have ever purchased.

I tried to use spring boot and I'm having some issues getting it installed. Per the directions page, I :

1. Put morpheus-theme-1.0.0.jar on my class path
2. Set primefaces.THEME to morpheus-blue in the application.yml.
3. Copied the morpheus-layout directory and all its subdirectories to the resources directory of my web app directory
4. Copied the prime faces-morpheus-tablib.xml to my WEB-INF directory
5. Copied all xhtml sample to my resources/META-INF/resources

My project directory looks like :
Image
(sorry, don't know why the image not loaded, but it found if opened in a new tab)

And my application.yml :
jsf:
primefaces:
theme: primefaces-morpheus-green
font-awesome: true
facelets-libraries: /WEB-INF/primefaces-morpheus.taglib.xml
project-stage: development
faces-servlet:
load-on-startup: 1
and I got this error :
2019-02-19 22:46:07.972 ERROR 20948 --- [nio-8080-exec-1] j.e.resource.webcontainer.jsf.context : JSF1073: javax.el.ELException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=Could not Resolve Variable [Overflow]: guestPreferences
2019-02-19 22:46:07.979 ERROR 20948 --- [nio-8080-exec-1] j.e.resource.webcontainer.jsf.context : Could not Resolve Variable [Overflow]: guestPreferences

javax.el.ELException: Could not Resolve Variable [Overflow]: guestPreferences
at com.sun.faces.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:108) ~[javax.faces-2.3.7.jar:2.3.7]
at com.sun.faces.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:104) ~[javax.faces-2.3.7.jar:2.3.7]
then if I hardcoded the '${guestPreferences.theme}' to something like layout-blue.css, and it produces error :
2019-02-19 22:59:32.035 ERROR 21089 --- [nio-8080-exec-1] j.e.resource.webcontainer.jsf.context : JSF1073: javax.el.ELException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=Could not Resolve Variable [Overflow]: com.sun.faces.facelets.tag.js._TRACKED_IDS
2019-02-19 22:59:32.044 ERROR 21089 --- [nio-8080-exec-1] j.e.resource.webcontainer.jsf.context : Could not Resolve Variable [Overflow]: com.sun.faces.facelets.tag.js._TRACKED_IDS

javax.el.ELException: Could not Resolve Variable [Overflow]: com.sun.faces.facelets.tag.js._TRACKED_IDS
at com.sun.faces.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:108) ~[javax.faces-2.3.7.jar:2.3.7]
Is there something miss or wrong in my setup project ?
I'have tried to follow this thread but still the error is same viewtopic.php?f=52&t=49442

Thanks in advice

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

20 Feb 2019, 12:25

Copied all xhtml sample
GuestPreferences Bean is a simple session scoped bean to keep the user customizations of the layout, template xhtml files refer to this bean to dynamically change their behavior such as menu mode or theme. This bean is not necessary to run the Morpheus and only used for demo purposes. Please search #{guestPreferences in your project and remove/change it.

deni.arianto1606
Posts: 2
Joined: 18 Feb 2019, 17:06

20 Feb 2019, 16:39

Thanks for the response.

I've tried to do your response, and change #{guestPreference to green (refer to green theme), but it lead to error
2019-02-20 21:34:20.562 ERROR 29184 --- [nio-8080-exec-4] j.e.resource.webcontainer.jsf.context : JSF1073: javax.el.ELException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=Could not Resolve Variable [Overflow]: com.sun.faces.facelets.tag.js._TRACKED_IDS
2019-02-20 21:34:20.571 ERROR 29184 --- [nio-8080-exec-4] j.e.resource.webcontainer.jsf.context : Could not Resolve Variable [Overflow]: com.sun.faces.facelets.tag.js._TRACKED_IDS
any suggestion ?
Thanks in advice


Post Reply

Return to “Morpheus - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest