Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/566600/#msg_566600
in UI. If you use it as a dynamic object, as said Erdal, you need a specific
data provider. There is an example in our test project under the package
org.eclipse.e4.xwt.tests.databinding.dataprovider.custom.
Best regards
Yves YANG
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hh47nm$7ho$1@build.eclipse.org...
> If a HashMap is passed as the DataContext, how can it be declared in XWT
> using databinding ?
>
>
> Thanks
> - Walter G. Prabhakar.]]>Yves YANG2009-12-25T23:22:55-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505081/#msg_505081
in UI. If you use it as a dynamic object, as said Erdal, you need a specific
data provider. There is an example in our test project under the package
org.eclipse.e4.xwt.tests.databinding.dataprovider.custom.
Best regards
Yves YANG
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hh47nm$7ho$1@build.eclipse.org...
> If a HashMap is passed as the DataContext, how can it be declared in XWT
> using databinding ?
>
>
> Thanks
> - Walter G. Prabhakar.]]>Yves YANG2009-12-25T23:22:55-00:00XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505065/#msg_505065
using databinding ?
Thanks
- Walter G. Prabhakar.]]>Walter Mising name2009-12-26T05:42:14-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505067/#msg_505067
Though, there are many more use cases where a map-like structure could be used as data context, thus, a data provider for those structures would be very handy as well.]]>Erdal Karaca2009-12-26T07:13:29-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/566551/#msg_566551
Though, there are many more use cases where a map-like structure could be used as data context, thus, a data provider for those structures would be very handy as well.]]>Erdal Karaca2009-12-26T07:13:31-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505110/#msg_505110
A transfer object could be used to request data from a relational database (e.g. sql select) and wrap the result set.
in legacy code:
transferObject.get("user")
in xwt:
{Binding path=user}
I would suggest not to use dynamic emf, since this will add extra overhead to your transfer object (memory and performance?).
Providing a data provider will be the right way, imo.
[1] http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html]]>Erdal Karaca2009-12-26T19:02:28-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/566627/#msg_566627
A transfer object could be used to request data from a relational database (e.g. sql select) and wrap the result set.
in legacy code:
transferObject.get("user")
in xwt:
{Binding path=user}
I would suggest not to use dynamic emf, since this will add extra overhead to your transfer object (memory and performance?).
Providing a data provider will be the right way, imo.
[1] http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html]]>Erdal Karaca2009-12-26T19:02:28-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505145/#msg_505145
yves
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hh6lav$qch$1@build.eclipse.org...
> That is precisely what I would like to achieve.
>
> - Thanks.
>
> "Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
> news:hh685f$8st$1@build.eclipse.org...
>>I guess, Walter is referring to the transfer object pattern [1].
>> A transfer object could be used to request data from a relational
>> database (e.g. sql select) and wrap the result set.
>>
>> in legacy code:
>> transferObject.get("user")
>>
>> in xwt:
>> {Binding path=user}
>>
>> I would suggest not to use dynamic emf, since this will add extra
>> overhead to your transfer object (memory and performance?).
>> Providing a data provider will be the right way, imo.
>>
>> [1]
>> http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html
>]]>Yves YANG2009-12-27T03:43:20-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/566686/#msg_566686
yves
"Walter Prabhakar" <kwchess@gmail.com> wrote in message
news:hh6lav$qch$1@build.eclipse.org...
> That is precisely what I would like to achieve.
>
> - Thanks.
>
> "Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
> news:hh685f$8st$1@build.eclipse.org...
>>I guess, Walter is referring to the transfer object pattern [1].
>> A transfer object could be used to request data from a relational
>> database (e.g. sql select) and wrap the result set.
>>
>> in legacy code:
>> transferObject.get("user")
>>
>> in xwt:
>> {Binding path=user}
>>
>> I would suggest not to use dynamic emf, since this will add extra
>> overhead to your transfer object (memory and performance?).
>> Providing a data provider will be the right way, imo.
>>
>> [1]
>> http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html
>]]>Yves YANG2009-12-27T03:43:20-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/505114/#msg_505114
- Thanks.
"Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
news:hh685f$8st$1@build.eclipse.org...
>I guess, Walter is referring to the transfer object pattern [1].
> A transfer object could be used to request data from a relational database
> (e.g. sql select) and wrap the result set.
>
> in legacy code:
> transferObject.get("user")
>
> in xwt:
> {Binding path=user}
>
> I would suggest not to use dynamic emf, since this will add extra overhead
> to your transfer object (memory and performance?).
> Providing a data provider will be the right way, imo.
>
> [1]
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html]]>Walter Mising name2009-12-27T03:46:41-00:00Re: XWT + DataBinding +HashMap
https://www.eclipse.org/forums/index.php/mv/msg/159868/566653/#msg_566653
- Thanks.
"Erdal Karaca" <erdal.karaca.de@googlemail.com> wrote in message
news:hh685f$8st$1@build.eclipse.org...
>I guess, Walter is referring to the transfer object pattern [1].
> A transfer object could be used to request data from a relational database
> (e.g. sql select) and wrap the result set.
>
> in legacy code:
> transferObject.get("user")
>
> in xwt:
> {Binding path=user}
>
> I would suggest not to use dynamic emf, since this will add extra overhead
> to your transfer object (memory and performance?).
> Providing a data provider will be the right way, imo.
>
> [1]
> http://java.sun.com/blueprints/corej2eepatterns/Patterns/Tra nsferObject.html]]>Walter Mising name2009-12-27T03:46:41-00:00