You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2013/06/10 20:01:06 UTC

Some new features for Wicket viewer in trunk

A few new features recently added to the Wicket viewer...

1. @SortedBy annotation, to allow different sort orders for parented
collections (overriding to the natural sort order; applicable to SortedSet
collections) [1], [2]

2. columns in Wicket viewer's tables are now sortable [3]

3. a new autoComplete prefix can be used (similar to choices), providing
the ability to do context-specific autocompletes. [4],[5],[6],[7]

Enjoy!
Dan

[1] https://issues.apache.org/jira/browse/ISIS-430
[2]
http://isis.apache.org/applib-guide/reference/recognized-annotations/SortedBy.html
[3] https://issues.apache.org/jira/browse/ISIS-432
[4] https://issues.apache.org/jira/browse/ISIS-433
[5] https://issues.apache.org/jira/browse/ISIS-434
[6]
http://isis.apache.org/applib-guide/how-tos/how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html
[7]
http://isis.apache.org/applib-guide/how-tos/how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html

Re: Some new features for Wicket viewer in trunk

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 10 June 2013 20:23, GESCONSULTOR <o....@gesconsultor.com> wrote:

> The @sortedby does not "alter" the query to the object store isn't it?
>


No, it just does an inmemory sort (in EntityCollectionModel).  Also, note:
this annotation goes on (parented) collections.  So, standalone collections
(ie as returned from an action invocation) cannot be influenced / are
untouched by this annotation.



> So If using JDO and wanted the resultset to be returned in order it would
> be needed to also add the proper JDO annotation, wouldn't it?
>
>
Yes.  In this case, presumably the query is as the result of invoking
action, so see above.



> Also, is there any API to specify resultset pagination on Queries?
>
>
There is the beginnings of support, but it is not fully specified, and only
the SQL Objectstore, not the JDO one, support it.



> We have seen paged resultsets on the wicket but I'm not sure if
> It's made in-memory or returned by JDO.
>
>
It's all in-memory, I'm afraid.  The @Paged annotation is used to define
the ranges.


Dan


>
>
> Enviado desde mi iPhone
>
> El 10/06/2013, a las 20:01, Dan Haywood <da...@haywood-associates.co.uk>
> escribió:
>
> > A few new features recently added to the Wicket viewer...
> >
> > 1. @SortedBy annotation, to allow different sort orders for parented
> > collections (overriding to the natural sort order; applicable to
> SortedSet
> > collections) [1], [2]
> >
> > 2. columns in Wicket viewer's tables are now sortable [3]
> >
> > 3. a new autoComplete prefix can be used (similar to choices), providing
> > the ability to do context-specific autocompletes. [4],[5],[6],[7]
> >
> > Enjoy!
> > Dan
> >
> > [1] https://issues.apache.org/jira/browse/ISIS-430
> > [2]
> >
> http://isis.apache.org/applib-guide/reference/recognized-annotations/SortedBy.html
> > [3] https://issues.apache.org/jira/browse/ISIS-432
> > [4] https://issues.apache.org/jira/browse/ISIS-433
> > [5] https://issues.apache.org/jira/browse/ISIS-434
> > [6]
> >
> http://isis.apache.org/applib-guide/how-tos/how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html
> > [7]
> >
> http://isis.apache.org/applib-guide/how-tos/how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html
>

Re: Some new features for Wicket viewer in trunk

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 10 June 2013 20:23, GESCONSULTOR <o....@gesconsultor.com> wrote:

> The @sortedby does not "alter" the query to the object store isn't it?
>


No, it just does an inmemory sort (in EntityCollectionModel).  Also, note:
this annotation goes on (parented) collections.  So, standalone collections
(ie as returned from an action invocation) cannot be influenced / are
untouched by this annotation.



> So If using JDO and wanted the resultset to be returned in order it would
> be needed to also add the proper JDO annotation, wouldn't it?
>
>
Yes.  In this case, presumably the query is as the result of invoking
action, so see above.



> Also, is there any API to specify resultset pagination on Queries?
>
>
There is the beginnings of support, but it is not fully specified, and only
the SQL Objectstore, not the JDO one, support it.



> We have seen paged resultsets on the wicket but I'm not sure if
> It's made in-memory or returned by JDO.
>
>
It's all in-memory, I'm afraid.  The @Paged annotation is used to define
the ranges.


Dan


>
>
> Enviado desde mi iPhone
>
> El 10/06/2013, a las 20:01, Dan Haywood <da...@haywood-associates.co.uk>
> escribió:
>
> > A few new features recently added to the Wicket viewer...
> >
> > 1. @SortedBy annotation, to allow different sort orders for parented
> > collections (overriding to the natural sort order; applicable to
> SortedSet
> > collections) [1], [2]
> >
> > 2. columns in Wicket viewer's tables are now sortable [3]
> >
> > 3. a new autoComplete prefix can be used (similar to choices), providing
> > the ability to do context-specific autocompletes. [4],[5],[6],[7]
> >
> > Enjoy!
> > Dan
> >
> > [1] https://issues.apache.org/jira/browse/ISIS-430
> > [2]
> >
> http://isis.apache.org/applib-guide/reference/recognized-annotations/SortedBy.html
> > [3] https://issues.apache.org/jira/browse/ISIS-432
> > [4] https://issues.apache.org/jira/browse/ISIS-433
> > [5] https://issues.apache.org/jira/browse/ISIS-434
> > [6]
> >
> http://isis.apache.org/applib-guide/how-tos/how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html
> > [7]
> >
> http://isis.apache.org/applib-guide/how-tos/how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html
>

Re: Some new features for Wicket viewer in trunk

Posted by GESCONSULTOR <o....@gesconsultor.com>.
The @sortedby does not "alter" the query to the object store isn't it? 

So If using JDO and wanted the resultset to be returned in order it would be needed to also add the proper JDO annotation, wouldn't it?

Also, is there any API to specify resultset pagination on Queries?

We have seen paged resultsets on the wicket but I'm not sure if
It's made in-memory or returned by JDO.



Enviado desde mi iPhone

El 10/06/2013, a las 20:01, Dan Haywood <da...@haywood-associates.co.uk> escribió:

> A few new features recently added to the Wicket viewer...
> 
> 1. @SortedBy annotation, to allow different sort orders for parented
> collections (overriding to the natural sort order; applicable to SortedSet
> collections) [1], [2]
> 
> 2. columns in Wicket viewer's tables are now sortable [3]
> 
> 3. a new autoComplete prefix can be used (similar to choices), providing
> the ability to do context-specific autocompletes. [4],[5],[6],[7]
> 
> Enjoy!
> Dan
> 
> [1] https://issues.apache.org/jira/browse/ISIS-430
> [2]
> http://isis.apache.org/applib-guide/reference/recognized-annotations/SortedBy.html
> [3] https://issues.apache.org/jira/browse/ISIS-432
> [4] https://issues.apache.org/jira/browse/ISIS-433
> [5] https://issues.apache.org/jira/browse/ISIS-434
> [6]
> http://isis.apache.org/applib-guide/how-tos/how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html
> [7]
> http://isis.apache.org/applib-guide/how-tos/how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html

Re: Some new features for Wicket viewer in trunk

Posted by GESCONSULTOR <o....@gesconsultor.com>.
The @sortedby does not "alter" the query to the object store isn't it? 

So If using JDO and wanted the resultset to be returned in order it would be needed to also add the proper JDO annotation, wouldn't it?

Also, is there any API to specify resultset pagination on Queries?

We have seen paged resultsets on the wicket but I'm not sure if
It's made in-memory or returned by JDO.



Enviado desde mi iPhone

El 10/06/2013, a las 20:01, Dan Haywood <da...@haywood-associates.co.uk> escribió:

> A few new features recently added to the Wicket viewer...
> 
> 1. @SortedBy annotation, to allow different sort orders for parented
> collections (overriding to the natural sort order; applicable to SortedSet
> collections) [1], [2]
> 
> 2. columns in Wicket viewer's tables are now sortable [3]
> 
> 3. a new autoComplete prefix can be used (similar to choices), providing
> the ability to do context-specific autocompletes. [4],[5],[6],[7]
> 
> Enjoy!
> Dan
> 
> [1] https://issues.apache.org/jira/browse/ISIS-430
> [2]
> http://isis.apache.org/applib-guide/reference/recognized-annotations/SortedBy.html
> [3] https://issues.apache.org/jira/browse/ISIS-432
> [4] https://issues.apache.org/jira/browse/ISIS-433
> [5] https://issues.apache.org/jira/browse/ISIS-434
> [6]
> http://isis.apache.org/applib-guide/how-tos/how-to-03-025-How-to-specify-an-autocomplete-for-an-action-parameter.html
> [7]
> http://isis.apache.org/applib-guide/how-tos/how-to-03-015-How-to-specify-an-autocomplete-for-a-property.html