Issue Details (XML | Word | Printable)

Key: BCMS-47
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Savvas Triantafyllou
Reporter: Gregory Chomatas
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
BetaCMS

BetaCMS WebUI presents different form input components for xs:int and xs:integer properties (the definition of a content object property in the XSD schema)

Created: 08/May/09 08:53 PM   Updated: 08/May/09 10:58 PM
Component/s: betacms-repository, betacms-webui
Affects Version/s: 2.1.0.CR1
Fix Version/s: 2.1.0.CR1

Time Tracking:
Not Specified


 Description  « Hide
Content Object Properties defined either as xs:int or xs:integer are treated as equivalent (definition wise). They are saved as jcr properties of type Long and are rendered as Longs inside java objects. However the betacms web-ui forms present different input components for each of the two definitions.

This may mean that:
Either the repository module while interpreting as equal the two definitions it renders different java types for each one.
Or there is some problem in the web-ui module when it generates the appropriate form ui components according to each property type.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Savvas Triantafyllou added a comment - 08/May/09 10:58 PM
Committed revision 2690.

There was a bug in CmsPropertyVisitor which used instead of type xs:integer, its super type xs:decimal in order to create a CmsPropertyDefinition. Therefore instead of creating a LongPropertyDefinition, it created a DoublePropertyDefinition which resulted in different component rendering in BetaCMS administration form