Re: [Wicket-user] Developing Wicket Menu Widgets
Yep. Though we are limited in what we can except for extensions as we agreed on keeping the licence ASF 2 for that. Set something up in wicket-stuff if you want. I think the bottle neck to really make such a thing flying is someone taking charge and putting a lot of energy in it to make it succeed (thus not only the building, but also regularly bringing out releases, harmonize efforts, keeping track of the quality, doing some marketing, etc). Eelco usually widgets start incubation as a wicket-contrib-widget project and once they mature we move them into extensions. this happened to quiete a few things already the repeaters package (dataview/datatable/etc) the upload progress bar the palette component etc etc -Igor On 6/14/06, Troy MacNeil [EMAIL PROTECTED] wrote: These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for. http://www.alistapart.com/articles/dropdowns http://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, which could be good or bad depending on your goals. It works for me;) There may be better ways, using AJAX for instance, but this should give you a place to start at least. Troy On Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or Javascript. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
More on wicket widgets,Now how powerful is the RenderedDynamicImageResource System?Because from what i am thinking, isnt it possible to leverage the map tag in HTML specs to make small widgets? How nice can it get and as a rough thought sketch...we haveimg name=menuWidget src="" width=500 height=500 border=0 id=hotspot usemap="" alt= / map name=m_hotspot id=m_hotspot area wicket:id=menu1 shape=rect coords=x1,y1,w1,h1 href="" alt= / area wicket:id=menu2 shape=rect coords=x2,y2,w2,h2 href="" alt= / new RenderedDynamicImageResource(40, 600) { protected boolean render(Graphics2D graphics) { graphics.drawXXXMenuBars graphics.drawXXXMenuRegions //pass Menu Dimensioning to map area tags to auto map your menu spot as hotspots } }));I will draw the widget using RenderedDynamicImageResource and then use the mapping and area tags to define hot spot zones so that when it renders on the browser, an Image based Widget is ready and I think this idea may even be more useful than just menu widgets? What du u guys thinkOn 6/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep. Though we are limited in what we can except for extensions as weagreed on keeping the licence ASF 2 for that. Set something up in wicket-stuff if you want. I think the bottle neck to really make sucha thing flying is someone taking charge and putting a lot of energy init to make it succeed (thus not only the building, but also regularly bringing out releases, harmonize efforts, keeping track of thequality, doing some marketing, etc).Eelco usually widgets start incubation as a wicket-contrib-widget project and once they mature we move them into extensions. this happened to quiete a few things already the repeaters package (dataview/datatable/etc) the upload progress bar the palette component etc etc -Igor On 6/14/06, Troy MacNeil [EMAIL PROTECTED] wrote: These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for. http://www.alistapart.com/articles/dropdowns http://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, which could be good or bad depending on your goals. It works for me;) There may be better ways, using AJAX for instance, but this should give you a place to start at least. Troy On Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or _javascript_. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Developing Wicket Menu Widgets
Its you guys fault :) , you guys made something so wonderful that keeps sparking creativity in people :)aah eelco, its okay...i feel the pressure on you guys anyway and we hope to bring in our support. Wicket deserves a community. Infact because of wicket, i have gone to register in sf.net so that i can be a committer in wicket-stuff at least in my own little way. :) you see when i raise an issue like dat, its just for you or igor to say that its possible and then give one or two concepts to getting started and then the head starts working here :) anyway thanksOn 6/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote: We're all for that. Such a project needs someone to pull it though. We(the core devs) simply don't have time for it besides the normalWicket development, bookwriting, etc. If someone (you?) wants to startthat initiative... you can get access to wicket-stuff (maybe even admin access if you plan on taking a project leader role) and off yougo! And of course, when such an initiative comes off the ground, we(core team again) would be happy to support it where we can.Eelco On 6/14/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or _javascript_. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubarul li wicket:id=Menua wicket:id=MenuItem/a/lili wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul/div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
I'm not sure whether I get what you are after? Anyway, I think for most widgets, you typically want any images etc. to be created upfront (by a designer/ downloaded from somewhere). Good for preview-ability and possibly for scalability too.I would go for reusing some of the things the _javascript_/css folks put on the web, such as http://www.dynamicdrive.com/style/csslibrary/category/C1/ (awesome site btw).Do you have a list of widgets you'd like to see in the project you are thinking about?EelcoOn Jun 16, 2006, at 1:54 AM, Ayodeji Aladejebi wrote:More on wicket widgets,Now how powerful is the RenderedDynamicImageResource System?Because from what i am thinking, isnt it possible to leverage the map tag in HTML specs to make small widgets? How nice can it get and as a rough thought sketch...we haveimg name="menuWidget" src="" width="500" height="500" border="0" id="hotspot" usemap="" alt="" / map name="m_hotspot" id="m_hotspot" area wicket:id="menu1" shape="rect" coords="x1,y1,w1,h1" href="" alt="" / area wicket:id="menu2" shape="rect" coords="x2,y2,w2,h2" href="" alt="" / new RenderedDynamicImageResource(40, 600) { protected boolean render(Graphics2D graphics) { graphics.drawXXXMenuBars graphics.drawXXXMenuRegions //pass Menu Dimensioning to map area tags to auto map your menu spot as hotspots } }));I will draw the widget using RenderedDynamicImageResource and then use the mapping and area tags to define hot spot zones so that when it renders on the browser, an Image based Widget is ready and I think this idea may even be more useful than just menu widgets? What du u guys thinkOn 6/14/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep. Though we are limited in what we can except for extensions as weagreed on keeping the licence ASF 2 for that. Set something up in wicket-stuff if you want. I think the bottle neck to really make sucha thing flying is someone taking charge and putting a lot of energy init to make it succeed (thus not only the building, but also regularly bringing out releases, harmonize efforts, keeping track of thequality, doing some marketing, etc).Eelco usually widgets start incubation as a wicket-contrib-widget project and once they mature we move them into extensions. this happened to quiete a few things already the repeaters package (dataview/datatable/etc) the upload progress bar the palette component etc etc -Igor On 6/14/06, Troy MacNeil [EMAIL PROTECTED] wrote: These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for. http://www.alistapart.com/articles/dropdowns http://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, which could be good or bad depending on your goals. It works for me;)There may be better ways, using AJAX for instance, but this should give you a place to start at least. Troy On Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote:I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors neededto enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar("web-app-menu", ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilitiesMenus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so ispent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more timewith Java than cracking thier heads on how to do common stuffs with CSS or _javascript_. Therefore I think encouraging widgets contribution will also be fine.I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser ScrollingMenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and ineed cross browser CSS for vertical drop down menu, Something like this div wicket:id="MenuBar" class="menubar" ulli wicket:id="Menu"a wicket:id="MenuItem"/a/li li wicket:id="MenuSeperator"/li li wicket:id="Menu"a wicket:id="MenuItem"imgwicket:id="MenuImage"/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where
Re: [Wicket-user] Developing Wicket Menu Widgets
2 thumbs up and 8 fingers forward for http://www.dynamicdrive.com/style/and igor by wicket widgets, i mean those custom controls that operate on client side using JS and CSS and not specifically ajax anyway however also i really want to know how best to achieve client side _javascript_ callback to Wicket using Wicket generated JS AJAX engine. Why I asked this has to do with a way to integrate a call from my own custom _javascript_ wrapped with my widget to wicket generated JS. Example, i create a custom behavior for my custom widget (panel or border based) and i need the behavior (CSS or _javascript_ based) to render fully on the client side before even initiating an AJAX call to populate content or whatever, if wicket can provide a JS callback mechanism that custom widgets can reuse somehow to do AJAX, it will be nice and if there is already a way, please educate me. It could be a Client activated Wicket Behavior so that i can tell the server, Ok my animation or custom widget is finished with all its rendering special effects, go on and send the data.For now, i could decide to use Timing behavior to do this but in cases where for whatever reason the browser slows down or something happens, the server may not know about this and then goes ahead to update via AJAX thanks and meanwhile i like to appreciate the effort of the wicket team for the great 1.2 release cuz wicket gives some of us a reason to ENJOY doing J2EE. On 6/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: here is a great site with all kinds of css menues, etchttp://www.dynamicdrive.com/style/ as far as wicket-widgets, we have such a project already - its called wicket-extensions :) usually widgets start incubation as a wicket-contrib-widget project and once they mature we move them into extensions. this happened to quiete a few things alreadythe repeaters package (dataview/datatable/etc) the upload progress barthe palette componentetc etc-IgorOn 6/14/06, Troy MacNeil [EMAIL PROTECTED] wrote:These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for.http://www.alistapart.com/articles/dropdowns http://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, whichcould be good or bad depending on your goals. It works for me;)There may be better ways, using AJAX for instance, but this should give you a place to start at least.TroyOn Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or _javascript_. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
On 6/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: 2 thumbs up and 8 fingers forward for http://www.dynamicdrive.com/style/and igor by wicket widgets, i mean those custom controls that operate on client side using JS and CSS and not specifically ajax anyway these are welcome in extensions as well however also i really want to know how best to achieve client side _javascript_ callback to Wicket using Wicket generated JS AJAX engine. Why I asked this has to do with a way to integrate a call from my own custom _javascript_ wrapped with my widget to wicket generated JS. Example, i create a custom behavior for my custom widget (panel or border based) and i need the behavior (CSS or _javascript_ based) to render fully on the client side before even initiating an AJAX call to populate content or whatever, if wicket can provide a JS callback mechanism that custom widgets can reuse somehow to do AJAX, it will be nice and if there is already a way, please educate me. It could be a Client activated Wicket Behavior so that i can tell the server, Ok my animation or custom widget is finished with all its rendering special effects, go on and send the data. there are a couple of ways to do it. first of all we do not guarantee the stability of _javascript_ in wicket-ajax.js so you should not depend on that directly. what you should depend on are callbacks generated by our ajax behaviors. so first is to get the url - this can be done once a behavior is added to the component so it knows how to route the url. the problem in 1.2 is that the url cannot be built until all components are linked together and markupid of the component be obtained - this is the problem remedied by the 2.0 constructor refactor. so the behavior has to append the url in some event - like after component renders.second is where to put the script so that it runs after component is rendered. there are two options imho: option one is somewhat hackish, write out the script tags with the callback script in html after the component - that way after it renders the call is madeoption two is to add the callback script to body's onload which is called after the page has rendered which is a better option - see how timer behaviors work because this is exactly what they do - and this solves the problem of retrieving the callback url because this delays the need for it until render time hope this gets you started-Igor ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
also see my response to Yuri Magrisso's question, same approach might work for you.-Igor On 6/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: 2 thumbs up and 8 fingers forward for http://www.dynamicdrive.com/style/and igor by wicket widgets, i mean those custom controls that operate on client side using JS and CSS and not specifically ajax anyway these are welcome in extensions as well however also i really want to know how best to achieve client side _javascript_ callback to Wicket using Wicket generated JS AJAX engine. Why I asked this has to do with a way to integrate a call from my own custom _javascript_ wrapped with my widget to wicket generated JS. Example, i create a custom behavior for my custom widget (panel or border based) and i need the behavior (CSS or _javascript_ based) to render fully on the client side before even initiating an AJAX call to populate content or whatever, if wicket can provide a JS callback mechanism that custom widgets can reuse somehow to do AJAX, it will be nice and if there is already a way, please educate me. It could be a Client activated Wicket Behavior so that i can tell the server, Ok my animation or custom widget is finished with all its rendering special effects, go on and send the data. there are a couple of ways to do it. first of all we do not guarantee the stability of _javascript_ in wicket-ajax.js so you should not depend on that directly. what you should depend on are callbacks generated by our ajax behaviors. so first is to get the url - this can be done once a behavior is added to the component so it knows how to route the url. the problem in 1.2 is that the url cannot be built until all components are linked together and markupid of the component be obtained - this is the problem remedied by the 2.0 constructor refactor. so the behavior has to append the url in some event - like after component renders.second is where to put the script so that it runs after component is rendered. there are two options imho: option one is somewhat hackish, write out the script tags with the callback script in html after the component - that way after it renders the call is madeoption two is to add the callback script to body's onload which is called after the page has rendered which is a better option - see how timer behaviors work because this is exactly what they do - and this solves the problem of retrieving the callback url because this delays the need for it until render time hope this gets you started-Igor ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
yeah sure thanks...one can always count on initiatives from youOn 6/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote:also see my response to Yuri Magrisso's question, same approach might work for you.-Igor On 6/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 6/15/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: 2 thumbs up and 8 fingers forward for http://www.dynamicdrive.com/style/and igor by wicket widgets, i mean those custom controls that operate on client side using JS and CSS and not specifically ajax anyway these are welcome in extensions as well however also i really want to know how best to achieve client side _javascript_ callback to Wicket using Wicket generated JS AJAX engine. Why I asked this has to do with a way to integrate a call from my own custom _javascript_ wrapped with my widget to wicket generated JS. Example, i create a custom behavior for my custom widget (panel or border based) and i need the behavior (CSS or _javascript_ based) to render fully on the client side before even initiating an AJAX call to populate content or whatever, if wicket can provide a JS callback mechanism that custom widgets can reuse somehow to do AJAX, it will be nice and if there is already a way, please educate me. It could be a Client activated Wicket Behavior so that i can tell the server, Ok my animation or custom widget is finished with all its rendering special effects, go on and send the data. there are a couple of ways to do it. first of all we do not guarantee the stability of _javascript_ in wicket-ajax.js so you should not depend on that directly. what you should depend on are callbacks generated by our ajax behaviors. so first is to get the url - this can be done once a behavior is added to the component so it knows how to route the url. the problem in 1.2 is that the url cannot be built until all components are linked together and markupid of the component be obtained - this is the problem remedied by the 2.0 constructor refactor. so the behavior has to append the url in some event - like after component renders.second is where to put the script so that it runs after component is rendered. there are two options imho: option one is somewhat hackish, write out the script tags with the callback script in html after the component - that way after it renders the call is madeoption two is to add the callback script to body's onload which is called after the page has rendered which is a better option - see how timer behaviors work because this is exactly what they do - and this solves the problem of retrieving the callback url because this delays the need for it until render time hope this gets you started-Igor ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
I think you might actually have a good point here - it might be nice to have a Wicket Widgets project strictly for custom widgets. It would be a nice way to organize extra widgets. On 6/14/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or Javascript. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for. http://www.alistapart.com/articles/dropdowns http://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, which could be good or bad depending on your goals. It works for me;) There may be better ways, using AJAX for instance, but this should give you a place to start at least. Troy On Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or Javascript. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Developing Wicket Menu Widgets
here is a great site with all kinds of css menues, etchttp://www.dynamicdrive.com/style/as far as wicket-widgets, we have such a project already - its called wicket-extensions :) usually widgets start incubation as a wicket-contrib-widget project and once they mature we move them into extensions. this happened to quiete a few things alreadythe repeaters package (dataview/datatable/etc) the upload progress barthe palette componentetc etc-IgorOn 6/14/06, Troy MacNeil [EMAIL PROTECTED] wrote:These articles seem to address your CSS needs. The mark-up structure is very similar to what you're aiming for.http://www.alistapart.com/articles/dropdownshttp://alistapart.com/articles/hybrid Background images and divider images are specified in the CSS, whichcould be good or bad depending on your goals. It works for me;)There may be better ways, using AJAX for instance, but this should give you a place to start at least.TroyOn Wed, 2006-06-14 at 03:08 -0800, Ayodeji Aladejebi wrote: I know of Wicket Extensions and Wicket Stuff etc but I look forward to Wicket Widgets Stuff where users can donate all sorts of resuable widgets to wicket community that carry all sorts of behaviors needed to enrich Web user experience As an example, i have been trying to create Wicket Menu bar component by trying to reduce my effort to something close to Swing I am not talking of something like echo2 now, I am talking of all those common stuffs in web development packaged in a cross browser reusable wicket components. MenuBar bar = new MenuBar(web-app-menu, ...) MenuBar will be a customizable markupcontainer that will have vertical drop down capabilities Menus and MenuItem will simply be Wicket Links instances. My major headache started when i realized how horrible CSS can be across IE breeds and Mozilla and other browsers, IE expecially so i spent more time trying to sort out making cross browser CSS vertical menus for my wicket project. Now that should not be because for me if wicket were to fulfil its vision, developers should spend more time with Java than cracking thier heads on how to do common stuffs with CSS or _javascript_. Therefore I think encouraging widgets contribution will also be fine. I am not a cross browser CSS expert but there a lot out there willing to donate reusable CSS codes for creating common widgets on the browser Scrolling MenuBar etc... Anyway for me, it boils down to one thing, I am trying to create MenuBar, Menu and MenuItem for my project and i need cross browser CSS for vertical drop down menu, Something like this div wicket:id=MenuBar class=menubar ul li wicket:id=Menua wicket:id=MenuItem/a/li li wicket:id=MenuSeperator/li li wicket:id=Menua wicket:id=MenuItemimg wicket:id=MenuImage/img/a/li /ul /div But i am scared of the CSS hell out there and i dont even know where to start digging for good cross browser CSS to use for this, so please who has a reference to the CSS library that can make this life easy Thanks :) ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user