NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
philmetz
Joined: 03 Oct 2010 Posts: 5
|
Posted: Tue Oct 05, 2010 12:15 am Post subject: 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 |
|
 |
TD Posted via mailing list.
|
Posted: Wed Oct 06, 2010 12:33 am Post subject: Re: java application menu system |
|
|
(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
|
Posted: Sat Oct 09, 2010 9:22 am Post subject: |
|
|
The frame works of these applications are easy .
I agree with the idea keep it up in future. |
|
| Back to top |
|
 |
|
|
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
|
|