Solved

Saving User Preferences

Posted on 2013-01-04
3
337 Views
Last Modified: 2013-02-27
I am currently using Spring Framework MVC for a Web Application. We have a requirement for storing and loading user preferences.

Are there any common open-source / trusted frameworks for the same?

User Preference Example - Screen with Multiple data filtering drop downs. On loading the screen, if the preferences are previously saved, they would be used and data is automatically filtered and displayed. If the preferences are NOT saved previously, user is forced to select the filters before displaying the data.

Preferences should be saved per user, per screen and widget.

I guess one of the options is building something using Java Preference API.
Any ideas?
0
Comment
Question by:jagadeesh_motamarri
  • 2
3 Comments
 
LVL 37

Expert Comment

by:zzynx
ID: 38750595
>> I guess one of the options is building something using Java Preference API.
Using the Preferences API is indeed how we do it.
It's nothing more than storing and retrieving (and applying) key-value pairs in registry/ini-files
0
 
LVL 10

Accepted Solution

by:
jagadeesh_motamarri earned 0 total points
ID: 38918728
I am implemented a custom solution which involves storing the preferences as key value pairs in database by serializing the objects into JSON structure. Had to do this way based on the requirements and complexity of the preferences.
0
 
LVL 10

Author Closing Comment

by:jagadeesh_motamarri
ID: 38933243
No other appropriate solutions were posted.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now