I need to develop a custom component that will have 2 input text field and one command button.
As per the properties in the jsfc:Component attribute, we can have either component "Component behaves as" Input Component or Command Component.
Can I have input text as well as command button in one component? If yes, how can I do that?
This topic has been locked.
2 replies Latest Post - 2009-12-02T21:57:00Z by Arnav-A
Pinned topic Custom Component having input text and command button together
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2009-12-02T21:57:00Z at 2009-12-02T21:57:00Z by Arnav-A
yurykats 120000FMB92186 PostsACCEPTED ANSWER
Re: Custom Component having input text and command button together2009-12-01T23:02:47Z in response to Arnav-AYou can create a "basic" component and drop your 2 inputs and a button into it.
"behaves as" options generate specific logic into the component class and it's nearly impossible to automatically generate a generic component that correctly acts as UIInput and UICommand at the same time. However, if you know what you are doing, you can tweak the generated component class to suit your needs manually.