Solved

Saving User Preferences

Posted on 2013-01-04
3
338 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 3 50
micro services spring boot application error 3 148
jar file executable 12 43
even odd program using while loop 3 29
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

895 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

12 Experts available now in Live!

Get 1:1 Help Now