Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » XMLBinding of a ListProperty - Removing container XML tag
XMLBinding of a ListProperty - Removing container XML tag [message #760704] Sun, 04 December 2011 13:39 Go to next message
Roded Bahat is currently offline Roded BahatFriend
Messages: 152
Registered: August 2011
Senior Member
Hi,
I have the following scenario:

IValueA:
Contains a ImpliedElementProperty of IValueB (XML Bound to tag)

IValueB:
Contains a ListProperty of IValueC.

The objects of type IValueC should take care of their own XML binding.
I would like to have the ListProperty in IValueB not leave and traces in the XML as the tags should be added by IValueA and IValueC.
Can't figure out how to do it with @CustomXmlListBinding as there is no write().
Can anyone shed some light on the matter?
Many thanks,
Roded
Re: XMLBinding of a ListProperty - Removing container XML tag [message #760890 is a reply to message #760704] Mon, 05 December 2011 14:18 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 962
Registered: July 2009
Senior Member
In ListBindingImpl, add() and remove() methods take place of write().

If I understand what you are trying to do, I do not believe that you will be able to achieve it (at least not without great difficulties). When you perform an add on a list property and before you set any of that object's properties, something must happen in the XML document to reflect the addition.

- Konstantin
Re: XMLBinding of a ListProperty - Removing container XML tag [message #761239 is a reply to message #760890] Tue, 06 December 2011 07:03 Go to previous message
Roded Bahat is currently offline Roded BahatFriend
Messages: 152
Registered: August 2011
Senior Member
I changed my design a bit, so this is no longer relevant for my case.
Thanks for the clarification.
Roded
Previous Topic:HowTo Make Data rendered as a combobox editiable
Next Topic:Property content based content assist
Goto Forum:
  


Current Time: Sat Dec 20 10:26:17 GMT 2014

Powered by FUDForum. Page generated in 0.02367 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software