aspose file tools*
The moose likes JSF and the fly likes Help for an error I can't understand: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Help for an error I can Watch "Help for an error I can New topic
Author

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

Enrico Ascaruta Tangau
Greenhorn

Joined: Aug 23, 2010
Posts: 11
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

Joined: Jun 25, 2001
Posts: 16142
    
  21

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".


Customer surveys are for companies who didn't pay proper attention to begin with.
Enrico Ascaruta Tangau
Greenhorn

Joined: Aug 23, 2010
Posts: 11
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

Joined: Jun 25, 2001
Posts: 16142
    
  21

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

Joined: Aug 23, 2010
Posts: 11
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

Joined: Aug 23, 2010
Posts: 11
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
 
subject: Help for an error I can't understand: "Could not Resolve Variable [Overflow]" while ...