File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with "rendered" Flag

 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to show a list of data to the user. My problem is that if I set the 'rendered' flag of <h utputText> to 'false' just the header of the table appears (not the whole information) ... and if I set it to 'true', the page throws an exception.

Here are the codes I have written so far :

This is a part of my jsp code:

Here is the source code of TableData.java :

This part has been taken from faces-config.xml :

& this is my bean class :



please kindly help me,
Thank you,
Maryam
[ June 10, 2007: Message edited by: Maryam Nouhnejad ]
[ June 10, 2007: Message edited by: Maryam Nouhnejad ]
 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're getting an exception with the rendered attribute because when you set it to true, it actually executes the methods of the bean, and there you have the problem.
I didn't look closely at your code, can you post the exception?
Setting rendered =true for the different components will help you to isolate where the problem lies
 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are the exceptions printed in the log console :






Thank you,
Maryam
 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem is over now...
I changed the first code to the second (look at the names of the setters and getters) :

 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, the exception message tells everything:
"Error getting property 'userlog' from bean of type beanPack.UserLogs"
"userlogs" in bean notation is "getUserlogs" and in your bean you had "getUserLogs"
Glad you had it working now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic