[
http://www.stripesframework.org/jira/browse/STS-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frederic Daoud resolved STS-607.
--------------------------------
Resolution: Fixed
Fix Version/s: Release 1.6
Release 1.5.1
Fixed in builds 979 and 980. JavaScriptBuilder now more accurately describes an
object by including properties with a value of null instead of omitting the
property altogether.
> JavaScriptResolution ignores properties with null values
> --------------------------------------------------------
>
> Key: STS-607
> URL: http://www.stripesframework.org/jira/browse/STS-607
> Project: Stripes
> Issue Type: Bug
> Affects Versions: Release 1.5
> Environment: Windows XP, Eclipse Ganymede, Java 1.6, Tomcat, Firefox
> Reporter: David Frenkiel
> Assignee: Frederic Daoud
> Fix For: Release 1.5.1, Release 1.6
>
>
> JavaScriptResolution skips null valued properties. So if you try to access
> those properties in javascript you get an error.
> For example, if I have an Address object:
> public class Address() {
> private String street1 = "123 Main Street";
> private String street2 = null;
> // getters/setters, etc...
> }
> Then in javascript, after retrieving an Address object:
> alert(address.street1) properly displays "123 Main Street"
> whereas
> alert(address.street2) results in the error, "address.street2 is
> undefined."
> P.S...
> Stripes is great. I'm migrating away from XWork/WebWork/Velocity and Stripes
> is way, way, way better.
> Thanks.
> David F.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development