That syntax doesn't work for styles. See the WTKX Primer for a complete explanation.
G

On Aug 4, 2009, at 5:50 PM, Scott Lanham wrote:

Howdy,

I am working through the WTKX Primer doc and saw the part about how properties could either be specified as an attribute or as an element. So I thought I would pull the styles property out into an element to see what happens:

<styles>{padding:10, horizontalAlignment:'center',
verticalAlignment:'center'}</styles>

Except this gives a runtime error:

org.apache.pivot.serialization.SerializationException: Unexpected characters
in READ_ONLY_PROPERTY element.

I can't see why this shouldn't work, but that doesn't mean much ;-)

Many Thanks,

Scott.

Reply via email to