org.directwebremoting.help.html Maven / Gradle / Ivy
Fixing Issues
Warning: No Converter for XXX.
dwr.xml does not have an allow entry that enables conversion of this type to
Javascript. The most common cause of this problem is that XXX is a java bean
and bean marshalling has not been enabled. Bean marshalling is disabled by
default for security reasons.
To enable marshalling for a given bean add the following line to the allow
section of your dwr.xml file:
<convert converter="bean" match="XXX"/>
It is also possible to enable marshalling for an entire package or hierachy
of packages using the following:
<convert converter="bean" match="package.name.*"/>
Warning: overloaded methods are not recommended
Javascript does not support overloaded methods, so the javascript file
generated from this class will contain two methods the second of which will
replace the first. This is probably not what you wanted.
It is best to avoid overloaded methods when using DWR.
Warning: methodName() is excluded:
The methods may be excluded explicitly with an <exclude> element in
dwr.xml or excluded implicitly by not being mentioned in an <include>
element. Or the method may be defined in java.lang.Object
-
methods defined here may not be exported.
If methods are excluded using <include> or <exclude> then no
JavaScript proxy will be generated. To allow testing of methods that should
not be accessible, add an init-param to WEB-INF/web.xml with the name/value
allowImpossibleTests=true.