Re: Wicket and Menu support

2012-04-08 Thread Daniel Neugebauer
Depending on how your menus are supposed to be defined, you could
statically put them into your markup or dynamically create them by using
a ListView or similar.

A nested HTML list structure, as already suggested, usually works best.
There are a lot of ready-to-use CSS examples and JavaScript libraries to
handle such menus, if you don't want to write it yourself.

On 04/08/2012 07:52 AM, msalman wrote:
 I thought that the idea behind Wicket is to take care of these things for
 Java programmers.  I would appreciate if some basic form of menu is made
 part of wicket core.

Wicket is one of the few frameworks that leave you in full control of
your markup, which means that it does not provide a lot of
ready-to-include components that include markup and a full style.
Instead it works more like casting your markup to Java components, so
your HTML code becomes accessible from Java.

There are of course some ready-to-use components in wicket-stuff etc.
but less in Wicket core. This way, you are not forced to follow an HTML
structure or CSS classes someone else wrote that may clash with the
design you had in mind (modal dialogs are one exception, apart from that
and trees I can't think of many standard components that use a
noticeable amount of their own HTML/CSS).

If you want to avoid HTML/CSS as far as possible, other frameworks may
fit better. For example, you can avoid HTML/CSS almost completely with
Vaadin or GWT if you don't need any custom layout (if you do, it can be
a lot of work to style it). And then there are a lot of frameworks that
are easier to style but require you to write some HTML/CSS yourself.

If you want to stay with Wicket, you should get more comfortable with
HTML and CSS (which will take a lot of exercise to get it right) or
leave writing templates up to a web designer, which (due to a good
separation of templates and code) is far easier in Wicket than with
other frameworks. In most cases, you can simply take a design, add
Wicket XML tags/attributes to it and start using that template from your
code.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and Menu support

2012-04-08 Thread Paolo
Alle domenica 08 aprile 2012, Daniel Neugebauer ha scritto:
 Depending on how your menus are supposed to be defined, you could
 statically put them into your markup or dynamically create them by using
 a ListView or similar.
 

 If you want to avoid HTML/CSS as far as possible, other frameworks may
 fit better. For example, you can avoid HTML/CSS almost completely with
 Vaadin or GWT if you don't need any custom layout (if you do, it can be
 a lot of work to style it). And then there are a lot of frameworks that
 are easier to style but require you to write some HTML/CSS yourself.
 
 If you want to stay with Wicket, you should get more comfortable with
 HTML and CSS (which will take a lot of exercise to get it right) or
 leave writing templates up to a web designer, which (due to a good
 separation of templates and code) is far easier in Wicket than with
 other frameworks. In most cases, you can simply take a design, add
 Wicket XML tags/attributes to it and start using that template from your
 code.

I suggest jquery menu, they are very simple to use. You could find a lot of 
those on google search.
I used with satisfaction jquery.treeview.js with 3 level menu and wicket:link 
statically
http://docs.jquery.com/Plugins/Treeview

P.S.
Jquery now, with wicket 6, is internally supported by wicket core.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and Menu support

2012-04-08 Thread msalman
Thanks to every one for all of your comments and suggestions.

Great to know that wicket core will include jquery.

Alle, I would appreciate very much if you can please share your code for
using jquery tree.  It would give me a good start.  

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Menu-support-tp4540516p4541287.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket and Menu support

2012-04-08 Thread Tom Eugelink


Is there any documentation on this jquery support in wicket 6? I'm setting up a 
new project ARM and instead of including all kinds of side kick projects, core 
support is preferable.

Tom




On 2012-04-08 19:55, msalman wrote:

Thanks to every one for all of your comments and suggestions.

Great to know that wicket core will include jquery.

Alle, I would appreciate very much if you can please share your code for
using jquery tree.  It would give me a good start.

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Menu-support-tp4540516p4541287.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org