update html field in JSP from Java (GWT)

2011-04-04 Thread pepgrifell
hi, we are migrating our old website (based on JSP) to GWT. The application is big and we cannot do all the changes at one, so in the application there are some pages in GWT and some pages in JSP. I have a JSP with some fields. One of them is a textarea. When I click in it, a GWT window pops up

Re: update html field in JSP from Java (GWT)

2011-04-04 Thread Alexandre Ardhuin
Hi, Are you sure the textarea contains the good id attribute ? Are you sure to enter the if statement ? You don't have to use JSNI to update the textarea. Use instead : Element element = Document.get().getElementById(fieldId); if (element != null) { GWT.log(found element with id: +

Re: update html field in JSP from Java (GWT)

2011-04-04 Thread pepgrifell
hi, This doesn't work for me. Myabe becasue I didn't explain how we show the JSP. In the root panel we added a toolbar and a LayoutContainer where, depending on the button clicked in toolbar, a different content is shown. In some cases, inside the layoutContainer we place JSP using a Frame. ex: