Search code examples
windowsmartgwtdynamicform

How to implement a smart gwt Window that has two text item fields and a button item without using a Dynamic form or any other form component


I am using smart gwt version 2.4.

I have to implement a Window(smart GWT) that should contain two TextItem(Smart GWT) fields and a ButtonItem. Is there a way I can add these items to the window without having to use a Dynamic form or any form component for that matter? Having to add these components without using a form seems impossible. Is there a possible workaround for this. It becomes a huge workaround for me if I have to use a form. Please help me out. Thank you.


Solution

  • FormItem are component used to compose a form. You cannot add them directly as members of a layout. Why are you saying "it becomes a huge workaroud for me ....". You declare a DynamicForm objetc add to it your TextItem and ButtonItem and add your form to your layout that's it.