You need to sign in to do that
Don't have an account?

custom component - accepting form input...
hello. i have to ceate a bunch of survey pages in vf - each survey has a handful of questions - some of the questions are repeated between surveys.
what i would love to do is have a vf page with the form tag for the whole survey, create the frequently-repeated questions as vf components, and then drop them into the vf form as necessary. so this is where i have a disconnect with custom components. i've played with this, and when i submit (the form and submit button are in the "outer" vf page), the values from the component don't make it to my instance of the controller. (i found that if i put the button inside a component and click that button, then the input values are in the controller.)
so my question is: is there a way to do what i want to do (create a snippet that will accept input - that i can drop into a page)? seems that components are great for displaying frequently-used bits, but it's a little more complicated when input is involved...
thanks for your time.
chris
what i would love to do is have a vf page with the form tag for the whole survey, create the frequently-repeated questions as vf components, and then drop them into the vf form as necessary. so this is where i have a disconnect with custom components. i've played with this, and when i submit (the form and submit button are in the "outer" vf page), the values from the component don't make it to my instance of the controller. (i found that if i put the button inside a component and click that button, then the input values are in the controller.)
so my question is: is there a way to do what i want to do (create a snippet that will accept input - that i can drop into a page)? seems that components are great for displaying frequently-used bits, but it's a little more complicated when input is involved...
thanks for your time.
chris
I wrote a blog post on this at : http://bobbuzzard.blogspot.co.uk/2011/05/updating-attributes-in-component.html
All Answers
I wrote a blog post on this at : http://bobbuzzard.blogspot.co.uk/2011/05/updating-attributes-in-component.html
chris