[ 
https://issues.apache.org/jira/browse/ISIS-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15681663#comment-15681663
 ] 

Martin Grigorov commented on ISIS-932:
--------------------------------------

Playing around with the sorting and navigation links in 
StandaloneCollectionPage leads to url changed to:
http://localhost:18080/wicket/collection/standalone/DemoObject?25&sortDirection=ASCENDING&sortColumn=blob&pageNumber=0

org.apache.isis.viewer.wicket.model.models.EntityCollectionModel#setHint() 
doesn't store anything because getEntityModel() returns null. [~danhaywood] How 
is this supposed to work ?

Looking at the HintStore functionality I see that the hints are stored in the 
HTTP session 
(org.apache.isis.viewer.wicket.viewer.services.HintStoreUsingWicketSession). 
That means if they were stored then they would be "active" even in other pages, 
e.g. for some parented collection elsewhere, or a standalone collection for 
another entity. 
Maybe the hint keys should be namespaced, e.g. "standalone.collection.xyz" ?! 
This will solve the "issue" with the parented collection.
But imagine user sorts by "propertyX" in StandaloneCollection for Entity1. 
Opening StandaloneCollection for Entity2 will attempt to set this sorting hint 
but most probably there won't be "propertyX" in it. So the namespace should 
include the Entity type too.

> Use HTML5 history API so that the address URL reflects the object being 
> viewed (including any sorting, view selection etc).
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISIS-932
>                 URL: https://issues.apache.org/jira/browse/ISIS-932
>             Project: Isis
>          Issue Type: New Feature
>          Components: Core: Viewer: Wicket
>    Affects Versions: viewer-wicket-1.7.0
>            Reporter: Dan Haywood
>            Priority: Minor
>             Fix For: 1.14.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to