Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing bean instance as param to a facelet. Using seam  RSS feed

 
Jakim Rachev
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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.
 
Naveen Sampra
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • 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.

http://www.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.

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!