• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Problem with "rendered" Flag

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 376
Scala Monad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
These are the exceptions printed in the log console :






Thank you,
Maryam
 
Maryam Nouhnejad
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 376
Scala Monad
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic