@XmlRootElement
@XmlSeeAlso(ResultDto.class, ResultDtoAnother.class)
public class ServiceResult<T>
public T result;
}
This resolves the issue temporarily until we have a cleaner solution from JaxB
According to the release notes at http://tomcat.apache.org/tomcat-6.0-doc/changelog.html this looks to be implemented only from 6.0.33. Update your tomcat version before you try this configuration change.
Modify your context.xml under tomcat/conf directory by including this extra tag.
<Context>
Recently I was implementing help infrastructure for our application. I wanted to have a help window open as a real popup and not a div popup that can hold smartgwt widgets to show help info.
There was no direct support for this in gwt or smartgwt however this can be achieved with a small hack.
Open a popup window by using the following JSNI script. This opens a new window popup with your own parameters and return the document from JSNI method. This gives you handle to popup’s document element.
private static native Document createWindowPopup() /*-{
var win = window.open("", "win", "width=500,height=300,status=1,resizeable=1,scrollbars=1"); // a window object
win.document.open("text/html", "replace");
win.focus();
return win.document;
}-*/;
If you have handle to this document object you can simply add any widget to this document by
document.appendChild(myWidget.getElement());
Recently when I used Canvas to hold a popup positioned somewhere in the middle, the Canvas was starting from the top left corner of the screen and hiding other elements underneath it. It was really difficult to find how I can position Canvas so that it occupies just the widgets space and not any extra space.
This can be achieved using Canvas.setRect(left, top, width, height);