Primefaces Suggestion to make it more lightweight

UI Components for JSF
Post Reply
cj91
Posts: 96
Joined: 04 Feb 2010, 00:07

16 Dec 2011, 18:26

First off, I've been using primefaces for 2 years now (back when it used YUI!) and have enjoyed the journey. I have a suggestion that will help PrimeFaces live up to it's "lightweight" promise.

I think like DualListModel should be avoided. It couples your Java Code to PrimeFaces components; coupled code is the opposite of lightweight. It's certainly necessary for some components, but it should be used a last ditch option.

This mirrors the strategy of SpringFramework. You can write an entire "Spring Application" without ever importing Java classes from the org.springframework.* package.

Thanks!
-Jonathan

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Dec 2011, 18:31

List<List<?>,List<?>> model then? Isn't it ugly?

I like dualListModel as it defines things fine grained. Get Source and Get Target.

Spring does not have imports in bean but does a hell of imports in your xml.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Dec 2011, 18:32

sourceValue and targetValue seems a better approach but then user needs to define two values in bean.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Dec 2011, 19:03

sourceValue and targetValue would be great!
Will it be accepted for future releases? Then i would create feature request!
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Dec 2011, 19:04

Yes, please do so and we monitor the user votes. 15+ votes is fine from me point of view.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

16 Dec 2011, 19:25

Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Dec 2011, 23:31

What we can do is adding source and target attributes that point to Lists and keep value for sometime to keep backward compatibility as deprecated. Accepted the enhancement request, thanks for your feedback.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 44 guests