Stripes

Character/char should be considered as scalar type in JavaScriptBuilder

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: Release 1.5.1
  • Fix Version/s: Release 1.5.2, Release 1.6
  • Component/s: None
  • Labels:
    None

Description

Alsongside the already existing Java primitive types, also Character should be considered as a scalar type in net.sourceforge.stripes.ajax.JavaScriptBuilder.
Right now, (Release 1.5.1) character fields in a Java-object are treated as objects (non scalars) which results in an unusable output in the JSON representation.
Instead they should be treated just like the other scalar values, croncetely the string value of the character should be enclosed in single quotes in the JSON object.

Activity

Hide
Frederic Daoud added a comment - 17/Sep/09 4:33 PM

Fixed in revision 1148. Please test! Thanks.

Show
Frederic Daoud added a comment - 17/Sep/09 4:33 PM Fixed in revision 1148. Please test! Thanks.
Hide
Christian Praher added a comment - 18/Sep/09 2:46 AM

Works perfectly - Thanks!

Show
Christian Praher added a comment - 18/Sep/09 2:46 AM Works perfectly - Thanks!

People

Vote (0)
Watch (1)

Dates

  • Created:
    16/Sep/09 4:33 PM
    Updated:
    04/Jan/11 2:59 PM
    Resolved:
    17/Sep/09 4:33 PM