• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Passing bean instance as param to a facelet. Using seam

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have this problem. In a facelet composition I have declare some links that should certain action from a bean,
which bean I want to specify from another facelet which uses the composition. Here is my code.
The Composition paging.xhtml:



and the client page client.xhtml



It is strange because when there are no more pages the relevant links becomes disabled and and the images do change, but when I any of the links(which are not disabled of course) an exception rises:

Exception during request processing:
Caused by javax.el.PropertyNotFoundException with message: Target Unreachable, identifier 'bean' resolved to null



So why comes that my code works for the state of the links, but does not for the action invocation? And how should I fix it? Thanks in advance.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This issue is same as the one I posted earlier today. Looks like no one was able to answer this upto now.

https://coderanch.com/t/519780/JSF/java/Invoking-bean-included-JSF-page


Can anyone give input as to how underlying JSF framework handles an include.

Also the problem we are running into seems like a common design issue. i.e How to abstract bean invocation from a common include file.

 
Saloon Keeper
Posts: 28493
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you actually defined a managed bean and named it "NewElectronicStatementsAction"? And if so, why did you capitalize the first letter of the name?
 
Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic