NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

java application menu system

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
philmetz



Joined: 03 Oct 2010
Posts: 5

PostPosted: Tue Oct 05, 2010 12:15 am    Post subject: java application menu system Reply with quote

I was wondering what is the basic way to deal with menus in java? I have a bunch of different menus that should be opened when I click on a button. Right now I am using layers for each menu and I show and hide each of them. But this gets complicated with all the setVisibles(). Any other methods I can do?
Back to top
TD
Posted via mailing list.





PostPosted: Wed Oct 06, 2010 12:33 am    Post subject: Re: java application menu system Reply with quote

(I'm assuming, given the mailing list you posted this to and the fact you
are talking about layers that you mean you're writing a web application, of
course, but you don't say that specifically....)


This may not be the answer you are looking for, but my personal rule is
never re-invent the wheel. There are a number of web frameworks out there
that have been written to save YOU having to write all those methods.

Have you looked at IceFaces or PrimeFaces?

They are both frameworks that make it easy to work with rich web
applications .. there are others, but IMO those two are the most mature.
Both work well with jsp or facelets. Both have recently been updated to JSF
2.0, and both are actively supported.

Both come with a number of prebuilt widgets, including menu systems. Both
support menu systems that can be defined at run time through a backing bean
or hard-coded into the jsf/jsp files.

Both can make use of Ajax to increase the responsiveness of the application.
Small learning curve of course, but not insurmountable, and one advantage is
the reduced scripting work needed on the display end.

For my money at the moment, for quick work, PrimeFaces comes out slightly in
the lead merely because it has more pre-built styles to use .. and so far
the company behind it isn't quite as pushy as Icefaces getting you to take
up their commercial offerings. Both frameworks are open source with paid
support available. Documentation for PrimeFaces is a bit better too.

PrimeFaces doesn't have a NB plugin, but configuring it isn't hard. ICEFaces
does have a plugin, but CSS support (as in pre-built styles) is more limited
and it's got fewer open source widgets. However, Ajax support is more
tightly integrated into ICEFaces.

Take your pick :)

Tony

-----Original Message-----
From: philmetz [mailto:address-removed]
Sent: 05 October 2010 01:16
To: address-removed
Subject: [nbj2ee] java application menu system

I was wondering what is the basic way to deal with menus in java? I have a
bunch of different menus that should be opened when I click on a button.
Right now I am using layers for each menu and I show and hide each of them.
But this gets complicated with all the setVisibles(). Any other methods I
can do?
Back to top
forigners



Joined: 04 Oct 2010
Posts: 10

PostPosted: Sat Oct 09, 2010 9:22 am    Post subject: Reply with quote

The frame works of these applications are easy .
I agree with the idea keep it up in future.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo