Loving playing with Sencha GXT 3. Great job everyone involved.
I have a fairly simple requirement. A team in our company has put together a very simple html form (among many other pages). I would like to hook into that html form (contained within its current html layout ) and insert fields / widgets into specified places and handle them as I would any normal GXT app.
Therefore I have used the following techniques after inserting the GWT code on the relevant page.
This works very well in terms on displaying elements in the relevant position.
Element myElement= DOM.getElementById("myid"); //element containing the layout i need
HtmlLayoutContainer con = new HtmlLayoutContainer(myElement.getInnerHTML());
TextField field1 = new TextField();
con.add(field1, new HtmlData(".locationid1"));
My question : Is there a better way of doing this instead of "grabbing" the innerhtml and rewriting it? I.e. can i bind a HtmlLayoutContainer to an existing DOM element?
This technique would be hugely beneficial to us as it would allow one team to fully design and build the html and its layout and allow us to implement the business logic independently.
Any thoughts would be greatly appreciated.