java - Wicket - use map's entry values as objects in a model where I know the key for each component -
i have java map
store data has shown in row in table in web application. using wicket 6.
is there way link wicket labels (which cells in table) string
version of object in map
knowing key each label.
should implement own version of imodel
or there convenience class in wicket 6 libraries? far can see there none, wrong...
you can implement imodel
can implement iconverter<c>
.
to use custom converter override component#getconverter
so:
label lbl = new label("lbl"){ @override public <c> iconverter<c> getconverter(class<c> type) { //return converter here } };
for components label
can implement converttostring
method.
Comments
Post a Comment