A bug in the second MVP tutorial

8 views
Skip to first unread message

Russ Abbott

unread,
Aug 28, 2011, 2:20:18 PM8/28/11
to google-we...@googlegroups.com
The second MVP tutorial example produces an incorrect display. I believe that the line at the end of ContactsViewImpl<T>.setRowData( ) that reads

contactsTable.setHTML(table.getInnerHTML());  

should read as follows.


contactsTable.setHTML("<table>" + table.getInnerHTML() + "</table>");  

The problem is that getInnerHTML( ) gets the HTML inside the <table> ... </table> tags but does not return those tags themselves.

 
-- Russ 

Reply all
Reply to author
Forward
0 new messages