Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help for an error I can't understand: "Could not Resolve Variable [Overflow]" while ...

 
Enrico Ascaruta Tangau
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I already wrote here looking for help for my JSF web application jsf, and Now I need again your valuable help for an error that I can not understand.

I'm trying to insert a jsf template custom by my company but, i receive this error at line 1 of code below :

/pages/welcome.jspx @12,73 template="#{templateConfiguration['classicTemplate']}" Could not Resolve Variable [Overflow]: templateConfiguration





can you help me?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17625
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not too sure about the "Overflow" part, but it seems to be saying you don't have a bean defined under the name of "templateConfiguration".
 
Enrico Ascaruta Tangau
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm following a Company wiki about inserting template in jsf web app, but it's incomplete.

i've defined templateConfiguration.propeties file with correct paths of all template pages;

i've mapped it in web.xml file as follow:


i've modified ConfigurationListener class introducing


but they were useless attempts..


alternatively...

I've you a good tutorial about this argument?

 
Tim Holloway
Saloon Keeper
Pie
Posts: 17625
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A context parameter is simply a parameter that's passed into the servlet that it's associated with. You didn't show which servlet that was, but I don't think that the FacesServlet is going to automatically convert a randomly-supplied context parameter into a bean. And a bean is what EL is expecting.

Spring will do something kind of like that, but Spring isn't using web.xml for that. Plus you have to have Spring configured into faces-config before JSF's EL processor can see Spring beans.

In other words, there are ways to do that, but not the way you're set up to do it right now.
 
Enrico Ascaruta Tangau
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not working under Spring,
i'm using WebSphere.

it should be quite different, the problem is that I do not know the mechanisms.
 
Enrico Ascaruta Tangau
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the solution?

recode for zero the ConfigurationListener.java.

the problem was it overrides at all the template configuration listener instead to extends it.
overriding, it can't create the context parameter "templateConfiguration[]"

the mystery remains, why if a context variable/parameter is not defined error of stack overflow is born?
it is quite misleading ...

byez
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic