Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic indexed properties

 
Janis Olex
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what is standard approach of Struts framework to add dynamically some properties to the FormBean?
My FormBean has "skills" properties which is List!
I have "Add Skill" button on my form which I want to add one element to this form! The problem is that each time I redirect to the page constructor is called for my FormBean (which is logical as it's lifecycle is one request) and I can't add those skills as the next time Struts will seek for my added skills property it won't find it as it is recreated on each construction of this FormBean!
How can I make the FormBean remember it's collection?
Also how do I fill up FormBean before it shows up with some data from my persistence layer?
 
Junilu Lacar
Bartender
Pie
Posts: 7317
45
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See my reply in this thread
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic