It does help!
Thank you!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Feb 4, 2015 at 4:47 PM, Dan Haywood <[email protected]>
wrote:

> Martin...
>
> dunno if it helps, but you could get a string representation by
> objectAdapterMemento.getObjectAdapter().titleString() or something similar,
> ie the TitleFacet of the underlying ObjectAdapter.
>
>
>
>
>
> On 4 February 2015 at 14:45, Martin Grigorov (JIRA) <[email protected]>
> wrote:
>
> >
> >     [
> >
> https://issues.apache.org/jira/browse/ISIS-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305178#comment-14305178
> > ]
> >
> > Martin Grigorov commented on ISIS-1011:
> > ---------------------------------------
> >
> > There are several "problems" here. The problem is that it seems this is
> by
> > design.
> >
> > E.g.
> >
> https://github.com/apache/isis/blob/master/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/widgets/valuechoices/ValueChoicesSelect2Panel.java#L191
> > always returns all mementos.
> >
> >
> >
> https://github.com/apache/isis/blob/master/component/viewer/wicket/ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/reference/ReferencePanel.java#L416
> > does the same.
> >
> > And the problem is that we have a term (String) and a collection of
> > ObjectAdapterMementos. It is not OK to use
> ObjectAdapterMemento#asString()
> > because #asString() is not used for the rendering.
> > For example: #asString() returns "IsisSecurityApplicationRole:L_4", while
> > we really need ApplicationRole#getName().
> >
> > > Select2 component doesn't filter the suggestions
> > > ------------------------------------------------
> > >
> > >                 Key: ISIS-1011
> > >                 URL: https://issues.apache.org/jira/browse/ISIS-1011
> > >             Project: Isis
> > >          Issue Type: Bug
> > >          Components: Viewer: Wicket
> > >    Affects Versions: viewer-wicket-1.7.0
> > >            Reporter: Martin Grigorov
> > >            Assignee: Martin Grigorov
> > >            Priority: Minor
> > >             Fix For: viewer-wicket-1.8.0
> > >
> > >
> > > In Security module when trying to add a new package to a role if I type
> > "org" the suggestions are not filtered.
> > > Additionally if I press ENTER with typed 'org' in the text field it
> > still selects 'com' (because it is the first suggestion).
> >
> >
> >
> > --
> > This message was sent by Atlassian JIRA
> > (v6.3.4#6332)
> >
>

Reply via email to