You might be interested in this

https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/services/MultiStatePersistenceStrategyImpl.java

It enables @Persist to use url query parameters. It's possible to make it
the default persist strategy in which case things such as the existing grid
component will have urls such as 

user/report?users;currentPage=1&users;sortAscending=true&users;sortColumnId=id

If you make it the default it's unwise to persist large objects but it will
use value encoders. For example if you are using Hibernate

@Persist
private User user

will put the primary key of the user into the url;

If used correctly this will allow bookmarking grid pages for searches that
use a grid to display.

To make it the default

 public static void contributeFactoryDefaults(MappedConfiguration<String,
Object> configuration) {
        configuration.override(SymbolConstants.PERSISTENCE_STRATEGY,
"multi");
 }

FYI: It would be really nice if the default persist strategy was a chain so
you could decline to persist something.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Query-Parameter-Suggestions-tp5716416p5716445.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to