Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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: 24551
168
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?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic