Shall we create a menu in wicket?

2009-09-16 Thread Gerald Fernando
Shall we create a menu in wicket?if it possible , please tell me how to
create menu

-- 
Thanksregards,
Gerald A


RE: Shall we create a menu in wicket?

2009-09-16 Thread Stefan Lindner
Yes, we should! I started an initial implementation for old Wicket 2.0 in 
wicketstuff. But this was 3 years ago. I still have a simple implementation 
that works with wicket 1.4.
Not much documentation, not very flexible, but it works and may be suitable for 
a quick and dirty solution for you.

-Ursprüngliche Nachricht-
Von: Gerald Fernando [mailto:gerald.anto.ferna...@gmail.com] 
Gesendet: Mittwoch, 16. September 2009 11:54
An: users@wicket.apache.org
Betreff: Shall we create a menu in wicket?

Shall we create a menu in wicket?if it possible , please tell me how to
create menu

-- 
Thanksregards,
Gerald A

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



Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
As far as I remember there was a YUI based Menu component on this project
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/See
for instance

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java

For my projects I use a home grown menu component... which is not that
nice looking but works for me.

Best,

Ernesto

On Wed, Sep 16, 2009 at 11:53 AM, Gerald Fernando 
gerald.anto.ferna...@gmail.com wrote:

 Shall we create a menu in wicket?if it possible , please tell me how to
 create menu

 --
 Thanksregards,
 Gerald A



Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
Hi guys, what's the difference of menu and tabbed panel? Apart from the css?

**
Martin

2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
 As far as I remember there was a YUI based Menu component on this project
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/See
 for instance

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java

 For my projects I use a home grown menu component... which is not that
 nice looking but works for me.

 Best,


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



Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
You mean pure CSS based menus? Well, I guess if you want the Menu working
for all brands/versions of browsers you might have some JavaScript as
well...  E.g. YUI menu allows to put an iframe behind your menu, so that it
display well when it overlaps with a select on IE6. Don't think you can
achieve that with a pure CSS solution... but don't take me for granted as
I'm far from been a CSS/JavaScript guru.
Ernesto

On Wed, Sep 16, 2009 at 12:30 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 Hi guys, what's the difference of menu and tabbed panel? Apart from the
 css?

 **
 Martin

 2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
  As far as I remember there was a YUI based Menu component on this project
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
 
  
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
 See
  for instance
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java
 
  For my projects I use a home grown menu component... which is not that
  nice looking but works for me.
 
  Best,
 

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




Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
I do not mean pure css.. I just mean that Wicket has the tabbedpanel
solution with ajax and without.. What's the difference of a tabbed
panel to menus if you just change the visual outlook...?

**
Martin

2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
 You mean pure CSS based menus? Well, I guess if you want the Menu working
 for all brands/versions of browsers you might have some JavaScript as
 well...  E.g. YUI menu allows to put an iframe behind your menu, so that it
 display well when it overlaps with a select on IE6. Don't think you can
 achieve that with a pure CSS solution... but don't take me for granted as
 I'm far from been a CSS/JavaScript guru.
 Ernesto

 On Wed, Sep 16, 2009 at 12:30 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

 Hi guys, what's the difference of menu and tabbed panel? Apart from the
 css?

 **
 Martin

 2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
  As far as I remember there was a YUI based Menu component on this project
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
 
  
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
 See
  for instance
 
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java
 
  For my projects I use a home grown menu component... which is not that
  nice looking but works for me.
 
  Best,
 

 -
 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



Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Well, your menu might have more than one level (sub-menus) and maybe you
want those to appear and hide as your mouse rolls over selected entries...
It seems to me that would be very difficult to achieve with tabbedpanel
(unless you add a lot CSS/magic, which would not probably work for all
browsers).  If you only want a one level menu  then I agree it is the same
as tabbedpanel with a non tabs CSS.
Ernesto


On Wed, Sep 16, 2009 at 1:03 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 I do not mean pure css.. I just mean that Wicket has the tabbedpanel
 solution with ajax and without.. What's the difference of a tabbed
 panel to menus if you just change the visual outlook...?

 **
 Martin

 2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
  You mean pure CSS based menus? Well, I guess if you want the Menu working
  for all brands/versions of browsers you might have some JavaScript as
  well...  E.g. YUI menu allows to put an iframe behind your menu, so that
 it
  display well when it overlaps with a select on IE6. Don't think you can
  achieve that with a pure CSS solution... but don't take me for granted as
  I'm far from been a CSS/JavaScript guru.
  Ernesto
 
  On Wed, Sep 16, 2009 at 12:30 PM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  Hi guys, what's the difference of menu and tabbed panel? Apart from the
  css?
 
  **
  Martin
 
  2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
   As far as I remember there was a YUI based Menu component on this
 project
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
  
   
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
  See
   for instance
  
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java
  
   For my projects I use a home grown menu component... which is not
 that
   nice looking but works for me.
  
   Best,
  
 
  -
  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




Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
 Well, your menu might have more than one level (sub-menus) and maybe you
 want those to appear and hide as your mouse rolls over selected entries...

I have implemented generic N-LEVEL tabbed panels with Wicket that can
hide or show given elements depending on some parameters
(authorization, for example)... it sounds very similar. The visual
stuff can be changed with css or javascript whatever suits best.

I know it is not good design to have n-level tabs but sometimes it
happens ,) But how it lloks (tabs or menus) depends only on the
markup.

**
Martin

 It seems to me that would be very difficult to achieve with tabbedpanel
 (unless you add a lot CSS/magic, which would not probably work for all
 browsers).  If you only want a one level menu  then I agree it is the same
 as tabbedpanel with a non tabs CSS.
 Ernesto


 On Wed, Sep 16, 2009 at 1:03 PM, Martin Makundi 
 martin.maku...@koodaripalvelut.com wrote:

 I do not mean pure css.. I just mean that Wicket has the tabbedpanel
 solution with ajax and without.. What's the difference of a tabbed
 panel to menus if you just change the visual outlook...?

 **
 Martin

 2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
  You mean pure CSS based menus? Well, I guess if you want the Menu working
  for all brands/versions of browsers you might have some JavaScript as
  well...  E.g. YUI menu allows to put an iframe behind your menu, so that
 it
  display well when it overlaps with a select on IE6. Don't think you can
  achieve that with a pure CSS solution... but don't take me for granted as
  I'm far from been a CSS/JavaScript guru.
  Ernesto
 
  On Wed, Sep 16, 2009 at 12:30 PM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  Hi guys, what's the difference of menu and tabbed panel? Apart from the
  css?
 
  **
  Martin
 
  2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
   As far as I remember there was a YUI based Menu component on this
 project
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
  
   
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
  See
   for instance
  
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java
  
   For my projects I use a home grown menu component... which is not
 that
   nice looking but works for me.
  
   Best,
  
 
  -
  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




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



Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Well, that's what Wicket is about: it's so easy to roll out components that
you end up creating your own stuff and using it even when there are things
out there that already do that you want. I have rolled my own Menu because
I didn't what to depend on YUI. I see Menus as something different than
TabbedPanel... but thats just me. IMHO what is important is to have an
abstraction you are satisfied with...
Ernesto

On Wed, Sep 16, 2009 at 1:32 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

  Well, your menu might have more than one level (sub-menus) and maybe you
  want those to appear and hide as your mouse rolls over selected
 entries...

 I have implemented generic N-LEVEL tabbed panels with Wicket that can
 hide or show given elements depending on some parameters
 (authorization, for example)... it sounds very similar. The visual
 stuff can be changed with css or javascript whatever suits best.

 I know it is not good design to have n-level tabs but sometimes it
 happens ,) But how it lloks (tabs or menus) depends only on the
 markup.

 **
 Martin

  It seems to me that would be very difficult to achieve with tabbedpanel
  (unless you add a lot CSS/magic, which would not probably work for all
  browsers).  If you only want a one level menu  then I agree it is the
 same
  as tabbedpanel with a non tabs CSS.
  Ernesto
 
 
  On Wed, Sep 16, 2009 at 1:03 PM, Martin Makundi 
  martin.maku...@koodaripalvelut.com wrote:
 
  I do not mean pure css.. I just mean that Wicket has the tabbedpanel
  solution with ajax and without.. What's the difference of a tabbed
  panel to menus if you just change the visual outlook...?
 
  **
  Martin
 
  2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
   You mean pure CSS based menus? Well, I guess if you want the Menu
 working
   for all brands/versions of browsers you might have some JavaScript as
   well...  E.g. YUI menu allows to put an iframe behind your menu, so
 that
  it
   display well when it overlaps with a select on IE6. Don't think you
 can
   achieve that with a pure CSS solution... but don't take me for granted
 as
   I'm far from been a CSS/JavaScript guru.
   Ernesto
  
   On Wed, Sep 16, 2009 at 12:30 PM, Martin Makundi 
   martin.maku...@koodaripalvelut.com wrote:
  
   Hi guys, what's the difference of menu and tabbed panel? Apart from
 the
   css?
  
   **
   Martin
  
   2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
As far as I remember there was a YUI based Menu component on this
  project
   
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
   

  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/
   See
for instance
   
   
  
 
 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.1/yui-parent/yui-examples/src/main/java/org/wicketstuff/yui/examples/pages/MenuPage.java
   
For my projects I use a home grown menu component... which is not
  that
nice looking but works for me.
   
Best,
   
  
   -
   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
 
 
 

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




Re: Shall we create a menu in wicket?

2009-09-16 Thread Martin Makundi
I am just trying to learn something new here.. how is your menu
different from tabbedpanel? Maybe I could leverage from that..

Do you have a live demo?

**
Martin

2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
 Well, that's what Wicket is about: it's so easy to roll out components that
 you end up creating your own stuff and using it even when there are things
 out there that already do that you want. I have rolled my own Menu because
 I didn't what to depend on YUI. I see Menus as something different than
 TabbedPanel... but thats just me. IMHO what is important is to have an
 abstraction you are satisfied with...
 Ernesto


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



Re: Shall we create a menu in wicket?

2009-09-16 Thread Ernesto Reinaldo Barreiro
Do not have a life demo. But you can see the code to use it at:
http://code.google.com/p/antilia/source/browse/trunk/
com.antilia.demo.manager/src/com/antilia/demo/manager/Index.java
http://code.google.com/p/antilia/source/browse/trunk/com.antilia.demo.manager/src/com/antilia/demo/manager/Index.java
http://code.google.com/p/antilia/source/browse/trunk/com.antilia.demo.manager/src/com/antilia/demo/manager/MainMenuFactory.java

and the Toolbar classes at:

http://code.google.com/p/antilia/source/browse/trunk/#trunk/com.antilia.web/src/com/antilia/web/toolbar

It is based on this menu.

http://code.google.com/p/antilia/source/browse/trunk/com.antilia.demo.manager/src/com/antilia/demo/manager/MainMenuFactory.java
http://www.gosu.pl/MyGosuMenu/

The result is something like:

http://antilia.googlecode.com/svn/wiki/toolbar1.PNG
http://antilia.googlecode.com/svn/wiki/toolbar2.PNG

As said this is just another Wicket component out there...

Ernesto

On Wed, Sep 16, 2009 at 1:54 PM, Martin Makundi 
martin.maku...@koodaripalvelut.com wrote:

 I am just trying to learn something new here.. how is your menu
 different from tabbedpanel? Maybe I could leverage from that..

 Do you have a live demo?

 **
 Martin

 2009/9/16 Ernesto Reinaldo Barreiro reier...@gmail.com:
  Well, that's what Wicket is about: it's so easy to roll out components
 that
  you end up creating your own stuff and using it even when there are
 things
  out there that already do that you want. I have rolled my own Menu
 because
  I didn't what to depend on YUI. I see Menus as something different than
  TabbedPanel... but thats just me. IMHO what is important is to have an
  abstraction you are satisfied with...
  Ernesto
 

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