Hi Dan,
Further to my previous email, I have done a little exploring, and have
realised that "ScalarPanelTextFieldAbstract" might be a place to start
looking.
As an experiment, I put a hook into "addSemantics":
final List<ObjectAdapter> choices = scalarModel.getChoices();
if (choices.size() > 0) {
// return null;
choiceCount = choices.size();
}
And I get a hit with my domain's value property's choicesXXX method.
Am I heading in the right direction? I would assume that somewhere
in here I could start providing the viewer with an alternate rendering
(dropdown list) when choiceCount > 0 is detected.
Regards,
Kevin
On 7 Jul 2011 at 16:03, Kevin Meyer - KMZ wrote:
> Hi Dan,
>
> I've created a JIRA ticket:
> https://issues.apache.org/jira/browse/ISIS-105
>
> I've created a factory and added it to the
> ComponentFactoryListDefault, but I can't get the "appliesTo" method
> to ever be called...
>
> I think I am missing something somewhere else in the initialisation /
> in(tro)spection, to catch value types..
>
> Any additional suggestions?
>
> Regards,
> Kevin
>
>
> On 7 Jul 2011 at 8:17, Dan Haywood wrote:
>
> > Have a look at the DropDownChoicesForObjectAdapterMementos class, and
> > how it is currently used to render choices for references (the
> > EntityLink class). Also have a look at EntityLink.html which shows the
> > corresponding markup into which this drop-down component goes.
> >
> > But I'm a bit rusty with the Wicket viewer myself, so can't tell you
> > much more than that without drilling into it for an hour. Have a go
> > yourself, but if you end up going round in circles then come back to me
> > and I'll try to delve into it a little more deeply myself.
> >
> > Cheers
> > Dan
> >
> > On 04/07/2011 19:30, Kevin Meyer - KMZ wrote:
> > > Hi Dan,
> > >
> > > I'd like to have a go at getting the Wicket viewer to fetch value type
> > > choices for parameters, etc.
> > >
> > > Would you give me a heads-up as to where to start looking?
> > >
> > > Regards,
> > > Kevin