-
1. Re: ListWidget and binding
edewit Jun 19, 2013 12:51 PM (in response to magick93)1 of 1 people found this helpfulHi Anton,
You don't need to extend the ListWidget to use it. There is a producer that can produce differenent list types: OrderdList, UnOrderdList or a Generic one if you don't specify a qualifier.
Below an example:
{code}
@Inject //will create a new listwidget for you
@DataField
@OrderedList //orderd list
ListWidget<Rule, RuleWidget> rules;
...
@PostConstruct
public void buildWidget() {
ruleService.call(new RemoteCallback<List<app.client.shared.datamodel.Rule>>() {
@Override
public void callback(List<app.client.shared.datamodel.Rule> response) {
rules.setItems(response);
rowContainer.add(rulesWidget);
}).getRules();
}
{code}
Hope that helps,
Erik Jan
-
2. Re: ListWidget and binding
magick93 Jul 18, 2013 7:03 AM (in response to edewit)Hi Erik
I have upgraded to 2.4 beta1, primarily to take advantage of your work on lists.
Its a very elegant way of working with lists - nice work!
I have a few questions:
Is there documentation yet on this feature?
In a template, should I add the <ul> tags or does Errai do that?