Topic
2 replies Latest Post - ‏2009-12-02T21:57:00Z by Arnav-A
Arnav-A
Arnav-A
86 Posts
ACCEPTED ANSWER

Pinned topic Custom Component having input text and command button together

‏2009-12-01T22:30:23Z |
Hi
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?

Thanks
Updated on 2009-12-02T21:57:00Z at 2009-12-02T21:57:00Z by Arnav-A
  • yurykats
    yurykats
    2186 Posts
    ACCEPTED ANSWER

    Re: Custom Component having input text and command button together

    ‏2009-12-01T23:02:47Z  in response to Arnav-A
    You 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.
  • Arnav-A
    Arnav-A
    86 Posts
    ACCEPTED ANSWER

    Re: Custom Component having input text and command button together

    ‏2009-12-02T21:57:00Z  in response to Arnav-A
    Thanks Yury. It worked