Timeline for Visualforce Component Getter/Setters from a Base Class
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11, 2015 at 0:30 | vote | accept | Xtremefaith | ||
Dec 11, 2015 at 0:30 | comment | added | Xtremefaith |
Although I am not a fan of @bigassforce's super attribute approach the understanding that the setter is not set during the constructor makes much more sense now, so thank you both very much. PS. Any of you have luck with, resources for, or suggestions about using Interface classes within Controllers?
|
|
Dec 11, 2015 at 0:20 | history | edited | Matt and Neil | CC BY-SA 3.0 |
added 9 characters in body
|
Dec 11, 2015 at 0:19 | comment | added | sfdcfox♦ | @Xtremefaith Yes, you can set it yourself in your constructor, but since it's assigned a value in Visualforce, it'll be clobbered during the setter phase. In other words, if you wanted to know what the value was, you'd do so in a setter function, as you stated in your answer. | |
Dec 11, 2015 at 0:15 | history | edited | Matt and Neil | CC BY-SA 3.0 |
added 12 characters in body
|
Dec 11, 2015 at 0:15 | comment | added | Xtremefaith | @sfdcfox - So from the constructor (of both the base and child class), I cannot even retrieve the value that was sent by the component? Or I can retrieve it but it won't be SET but perhaps I could set it myself? | |
Dec 11, 2015 at 0:14 | history | edited | Matt and Neil | CC BY-SA 3.0 |
added 559 characters in body
|
Dec 11, 2015 at 0:08 | history | edited | Matt and Neil | CC BY-SA 3.0 |
added 559 characters in body
|
Dec 11, 2015 at 0:08 | comment | added | sfdcfox♦ | We can, however, guarantee that constructors will be called before setters, thus any value you debug in a constructor for that same class will be null. | |
Dec 11, 2015 at 0:01 | history | edited | Matt and Neil | CC BY-SA 3.0 |
added 426 characters in body
|
Dec 10, 2015 at 23:54 | comment | added | Xtremefaith | So I can tell it to assign to a variable and it could not assign it because of its agreement? | |
Dec 10, 2015 at 23:53 | comment | added | Xtremefaith | What does that mean for me? How should I be doing this? Essentially passing a string that I will use with Reporting API to provide data for a component to render a visual. | |
Dec 10, 2015 at 23:49 | history | answered | Matt and Neil | CC BY-SA 3.0 |