• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My checkbox will not stay checked

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi guys, I have a checkbox like



The above code is enclosed in richface modal panel. However, only when I open the window the first time, the check box is pre-checked and on subsequent window opening, the checkbox is no longer checked. I have try to replace "true" with "#(variableFromBean}" and set that variableFromBean everytime someone click a button to open that modal panel. That just simply don't even check the box at all. I am using JSF 1.1, very frustrated with the stupid crap this framework keep throwing me. Please, if you know something that can help me solve this issue, greatly appreciated.
 
Saloon Keeper
Posts: 27762
196
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
Blanking out of values usually comes from defining a property's scope too narrowly. Generally that means giving "request" scope, since request scope objects get destroyed and re-created between postbacks.

Interesting that the hard-coded constant "true" would blank out, but not impossible. You're supposed to use a read/write property when using input controls.
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic