Re: [IE7] Shrinked popup calendar when inside a table
On Mon, 25 Aug 2008 09:32:33 +0200 Federico Fanton [EMAIL PROTECTED] wrote: On Fri, 22 Aug 2008 15:26:03 +0200 Federico Fanton [EMAIL PROTECTED] wrote: Should I open a JIRA issue? I have a quickstart ready. If nobody has something against it, I'll go on and open it ^^ Done, https://issues.apache.org/jira/browse/WICKET-1803 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding panel markup
shetc wrote: Is it possible to give a newbie some pointers on how this extension would work? Just create a class MyPanel.java class MyPanel extends Panel { // constructors, custom methods etc... } and a markup file MyPanel.html: html body wicket:extend !-- MyPanel specific markup goes here -- /wicket:extend /body /html That's all :) HTH -- View this message in context: http://www.nabble.com/Overriding-panel-markup-tp14642196p19157016.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
Theres one now in white, but I could'mt find a fitted on in black:( The Wicket circle should be lower I guess for a better beer belly fit:) Eelco Hillenius wrote: Neato. Hey, would it be possible to have 'fitted' T-shirts as well besides 'standard' fit? I like to show off my beer belly when I can. Eelco On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
I'd be more interested in getting this lady to showcase our merchandize: http://digg.com/celebrity/A_Salute_to_Alice_the_Snorg_Tee_Girl_PICS She's experienced in wearing tees. Imagine getting a promo round on digg.com for a week Martijn On Tue, Aug 26, 2008 at 9:54 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Theres one now in white, but I could'mt find a fitted on in black:( The Wicket circle should be lower I guess for a better beer belly fit:) Eelco Hillenius wrote: Neato. Hey, would it be possible to have 'fitted' T-shirts as well besides 'standard' fit? I like to show off my beer belly when I can. Eelco On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
Ryan Gravener wrote: I like the idea of a professional shirt, something you can wear in the office to show your support for wicket. However, I don't know about you Europeans but http://images.cafepress.com/product/297944696v9_240x240_Back.jpg would repel the girls in the states. Would it be possible to only have the front logo on the golf shirt? I did'nt think you in the us could have a relationship with girls in the office:) Seriously though, it's a problem because in the free cafepress store you can only have one of each product. But what about now with the smaller logo? On Mon, Aug 25, 2008 at 5:54 PM, Eelco Hillenius [EMAIL PROTECTED]wrote: Neato. Hey, would it be possible to have 'fitted' T-shirts as well besides 'standard' fit? I like to show off my beer belly when I can. Same here, except I want the 6pack protruding through Eelco On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Links Issue with TinyMce
Yes I introduced those dependencies. So people are really still using stone age java versions. I will have a look at it later this week. For now, you could of course just check out the latest snapshot from svn, and build against java 1.4. The only thing you need to change is the SetComponent textArea member of TinyMCESettings. The other stuff (including the dependencies you list below) should compile fine against 1.4, except for the testcases. (If UUID really is available in Java5 only: just remove the UUID member, you won't need it for your project). On Mon, 25 Aug 2008 15:28:17 -0700 (PDT), rajdhan [EMAIL PROTECTED] said: I got the latest TinyMce-SNAPSHOT.jar, but couldn't compile my project as the distributed jar was compiled with JDK 1.5 and we are having to use 1.4 (other project dependencies). So, Checked-out the latest from SVN to try compiling with 1.4 and sure enough, there were 1.5 dependencies, and the compile failed as well. The dependencies I found: UUID in TinyMceSettings.java StringBuilder TinyMceBehavior.java Any recommendations as to how I can work around this? pointbreak+wicketstuff wrote: FWIW, I cannot reproduce your problem in the latest tinymce snapshot. The latest snapshot has tinymce updated to version 3.1.0.1, so that might solve your problem. Otherwise you may have more luck posting your problem in the tinymce forums, as the plugin really doesn't do anything special to plugins and setup of tinymce. And I guess posting your problem once is more than enough ;-). On Mon, 25 Aug 2008 10:24:41 -0700 (PDT), rajdhan [EMAIL PROTECTED] said: Hi All, We are using TinyMce to post Rich Text onto a website with the possibility of providing hyper links. We are having issues posting links into the Text Area, example issue below: When I paste something like http://localhost:8080/doc?id=093102ce8004ffeell=f into the Text area, I see the following as the link URL if I highlight the text and click on the link button. doc?id=093102ce8004ffeell=f The posted text appears on the page http://localhost:8080/mypage when we submit from the TinyMce panel. If I hover on the link on the posted text, I see the hyper link as http://localhost:8080/mypage/doc?id=093102ce8004ffeell=f which is not right. To correct this, we are having the users edit the hyperlink manually by changing it to either /doc?id=093102ce8004ffeell=f Or http://localhost:8080/doc?id=093102ce8004ffeell=f Has anybody come across this issue? Is it possible to eliminate the manual step of adjusting the Link URL value? Thanks, Raj -- View this message in context: http://www.nabble.com/Links-Issue-with-TinyMce-tp19148029p19148029.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Links-Issue-with-TinyMce-tp19148029p19152856.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application scope objects in Wicket
Firstly I hope you are enjoying building your first Wicket web app. Is this application scope object immutable? What is the data structure? IMHO, if it's immutable then it's OK to use composition within your WebApplication by adding this object as a field within WebApplication. I would just make it final so it never gets incorrectly pointed to a different object once initialized. However if this has mutable shared data, then do not use the WebApplication's intrinsic lock as you will jeopardize its throughput to process requests. For example: public class FooBarApplication extends WebApplication { private MyAppScopeObject appScopeObject; public synchronized MyAppScopeObject getAppScopeObject(){ return appScopeObject; } public synchronized void setAppScopeObject(MyAppScopeObject appScopeObject) { this.appScopeObject = appScopeObject; } } Instead, use your application-scope object's intrinsic lock or use a suitable mutex in the Java 5/6 API. Best, James. On Mon, Aug 25, 2008 at 12:04 PM, Marvan Spagnolo [EMAIL PROTECTED] wrote: Hi all, I'm new to Wicket and developing my first Wicket website. I have some temporary objects created inside a users' session but needed by a parallel process which uses them outside the user session and I would like to avoid temporarily persisting them into a database. I'm looking at using application scope objects but I'm not sure how to do it best in Wicket. I guess I should override the get() method of WebApplication mimicking the pattern used for custom Session objects. public class WicketApplication extends MyWebApplication { private Object applicationScopeObject; public WicketApplication() { setApplicationScopeObject( init value ); } @Override public static WicketApplication get() { return (WicketApplication) WebApplication.get(); } public Object getApplicationScopeObject(){ return this.applicationScopeObject; } public void setApplicationScopeObject( Object applicationScopeObject ){ this.applicationScopeObject = applicationScopeObject; } [...] } public class PageInsideUserSession { public PageInsideUserSession(){ [...] // object has already been initialized WicketApplication.get().setApplicationScopeObject( object ); } } public class PageOutsideUserSession { public PageOutsideUserSession(){ Object object = WicketApplication.get().getApplicationScopeObject(); [...] } } In my case synchronizing the access to the application scope object should not be needed. Is this approach correct (and efficient) or is there a better solution ? Should I maybe use a separate parent class (parent of WicketApplication and child of WebApplication) for overriding the get() method (in case the override interferes with something else in the framework) ? Cheers, Marvan -- Reza Marvan Spagnolo SW Engineer - Freelancer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Convenience
hi following a pattern i´ve read anywhere (can´t remember), especially when chaining calls, i´d love to be able to: new TextField(..).setRequired().setVisible().setEnabled() instead of having to new TextField(..).setRequired(true).setVisible(true).setEnabled(true) what do you think ? cu uwe PS: just in case: i know about the defaults as well as RequiredTextField, which is not the point ;) -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Displaying HTML formatted text (raw markup) from String
Hi I would need to display HTML formatted text inside my page. The text is stored in the database, so i would need to display it through component. Is there a way to do this? I did not find any specific component for that. Maybe I could Override the renderAll(MarkupStream markupStream) method of MarkupContainer? Thanks: Bence -- View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158563.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying HTML formatted text (raw markup) from String
use a label or a multilinelabel for that and setEscapeModelStrings to false hope that helps regards, Michael btakacs wrote: Hi I would need to display HTML formatted text inside my page. The text is stored in the database, so i would need to display it through component. Is there a way to do this? I did not find any specific component for that. Maybe I could Override the renderAll(MarkupStream markupStream) method of MarkupContainer? Thanks: Bence - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158567.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying HTML formatted text (raw markup) from String
setEscapeModelStrings on your Label francisco On Tue, Aug 26, 2008 at 11:29 AM, btakacs [EMAIL PROTECTED] wrote: Hi I would need to display HTML formatted text inside my page. The text is stored in the database, so i would need to display it through component. Is there a way to do this? I did not find any specific component for that. Maybe I could Override the renderAll(MarkupStream markupStream) method of MarkupContainer? Thanks: Bence -- View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158563.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convenience
Hi Uwe, new TextField(..).setRequired().setVisible().setEnabled() instead of having to new TextField(..).setRequired(true).setVisible(true).setEnabled(true) what do you think ? nah - you're just lazy. ;-) Not more convenience-methods, there are already too many... Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convenience
While I like the language, I think it is a wrong path, because the number of methods would explode: new TextField().setRequired().setInvisible().isDisabled(); For each setFoo action you would get a setNotFoo action, and corresponding isNotFoo query. Martijn On Tue, Aug 26, 2008 at 11:40 AM, Jan Kriesten [EMAIL PROTECTED] wrote: Hi Uwe, new TextField(..).setRequired().setVisible().setEnabled() instead of having to new TextField(..).setRequired(true).setVisible(true).setEnabled(true) what do you think ? nah - you're just lazy. ;-) Not more convenience-methods, there are already too many... Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
Hi Johan, OK, so I need to override the LocationString to also include my unique prefix somehow? Where should I do that? -- Edvin Johan Compagner skrev: put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
Hi again, Johan, I've found something disturbing: MarkupCache#onMarkupNotFound calls putIntoCache(cacheKey, Markup.NO_MARKUP), but putIntoCache has arguments (final String locationString, Markup markup). In my book that seems like the concepts of cacheKey and locationString are mixed. Is this really correct? protected Markup onMarkupNotFound(final String cacheKey, final MarkupContainer container) { if (log.isDebugEnabled()) { log.debug(Markup not found: + cacheKey); } // flag markup as non-existent return putIntoCache(cacheKey, Markup.NO_MARKUP); } protected Markup putIntoCache(final String locationString, Markup markup) { if (locationString != null) { if (markupCache.containsKey(locationString) == false) { markupCache.put(locationString, markup); } else { // We don't lock the cache while loading a markup. Thus it may // happen that the very same markup gets loaded twice (the first // markup being loaded, but not yet in the cache, and another // request requesting the very same markup). Since markup // loading in avg takes less than 100ms, it is not really an // issue. For consistency reasons however, we should always use // the markup loaded first which is why it gets returned. markup = (Markup)markupCache.get(locationString); } } return markup; } Johan Compagner skrev: put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
the locationString comes from the markup If that is not given by the markup stream it will fallback to the cache key and it would be very strange in my eyes if 1 stream (the same) has multiply locations at least the default MarkupStreams (based on files) johan On Tue, Aug 26, 2008 at 11:53 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi Johan, OK, so I need to override the LocationString to also include my unique prefix somehow? Where should I do that? -- Edvin Johan Compagner skrev: put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
as i just replied in another email if the location string cant be extracted from the stream, which is the case when nothing is found... then the cacheKey is used johan On Tue, Aug 26, 2008 at 12:02 PM, Edvin Syse [EMAIL PROTECTED] wrote: Hi again, Johan, I've found something disturbing: MarkupCache#onMarkupNotFound calls putIntoCache(cacheKey, Markup.NO_MARKUP), but putIntoCache has arguments (final String locationString, Markup markup). In my book that seems like the concepts of cacheKey and locationString are mixed. Is this really correct? protected Markup onMarkupNotFound(final String cacheKey, final MarkupContainer container) { if (log.isDebugEnabled()) { log.debug(Markup not found: + cacheKey); } // flag markup as non-existent return putIntoCache(cacheKey, Markup.NO_MARKUP); } protected Markup putIntoCache(final String locationString, Markup markup) { if (locationString != null) { if (markupCache.containsKey(locationString) == false) { markupCache.put(locationString, markup); } else { // We don't lock the cache while loading a markup. Thus it may // happen that the very same markup gets loaded twice (the first // markup being loaded, but not yet in the cache, and another // request requesting the very same markup). Since markup // loading in avg takes less than 100ms, it is not really an // issue. For consistency reasons however, we should always use // the markup loaded first which is why it gets returned. markup = (Markup)markupCache.get(locationString); } } return markup; } Johan Compagner skrev: put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: Convenience
Yeah, I agree.. Leaving it at chaining are probably best fit.. Martijn Dashorst wrote: While I like the language, I think it is a wrong path, because the number of methods would explode: new TextField().setRequired().setInvisible().isDisabled(); For each setFoo action you would get a setNotFoo action, and corresponding isNotFoo query. Martijn On Tue, Aug 26, 2008 at 11:40 AM, Jan Kriesten [EMAIL PROTECTED] wrote: Hi Uwe, new TextField(..).setRequired().setVisible().setEnabled() instead of having to new TextField(..).setRequired(true).setVisible(true).setEnabled(true) what do you think ? nah - you're just lazy. ;-) Not more convenience-methods, there are already too many... Best regards, --- Jan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
Johan Compagner skrev: the locationString comes from the markup If that is not given by the markup stream it will fallback to the cache key Aha. OK, that makes sense :) The database-backed page is a basepage extended by other pages, so let's say DbPage is loaded from a database, but MyPage which extends DbPage is always the same (from the filesystem). DbPage will get the instanceid/ prefix for the cachekey, as it has no locationString, but MyPage will be cached using the file-location-string. Since MyPage is supposed to show different content depending on the markup of BasePage, I guess I can't put that in the cache at all then? -- Edvin and it would be very strange in my eyes if 1 stream (the same) has multiply locations at least the default MarkupStreams (based on files) johan On Tue, Aug 26, 2008 at 11:53 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi Johan, OK, so I need to override the LocationString to also include my unique prefix somehow? Where should I do that? -- Edvin Johan Compagner skrev: put into cache gets the LocationString not the markupCacheKey Because MarkupCache uses 2 maps CacheKey-LocationString LocationString-Markup so that we dont get multiply markup objects for the same markup file. (location) johan On Tue, Aug 26, 2008 at 11:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Med vennlig hilsen Edvin Syse Programutvikler www.sysedata.no / [EMAIL PROTECTED] Tlf: 333 49700 / Faks: 333 49701 Adresse: Møllegaten 12, 3111 Tønsberg Syse Data AS -Profesjonelle IT-tjenester - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying HTML formatted text (raw markup) from String
yeah you can also see the ancient bbcode component I wrote once for reference, http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-bbcodecomponent btakacs wrote: Hi I would need to display HTML formatted text inside my page. The text is stored in the database, so i would need to display it through component. Is there a way to do this? I did not find any specific component for that. Maybe I could Override the renderAll(MarkupStream markupStream) method of MarkupContainer? Thanks: Bence -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convenience
Martijn Dashorst schrieb: hi martijn For each setFoo action you would get a setNotFoo action, and corresponding isNotFoo query. i was not thinking about unsetFoo() methods, really. and !isVisible() is afaik clearer than isNotVisible(), i would not suggest that. i´d be perfectly alright with just adding void setX(){setX(true);} and keep the rest the way it is. cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E [EMAIL PROTECTED] www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convenience
Jan Kriesten schrieb: nah - you're just lazy. ;-) i thought it was a good thing. ;) Not more convenience-methods, there are already too many... good point, in a way... cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Save CSS/Stylesheet in Database
hi, i want to save all the CSS Data for each component in the database. That's no problem, i save the key and values for the component in a table. But, i don't know how i can provide the Page and the components the CSS Information. Is there an easy way to have a complete dynamic Stylesheet which gets the Data from the database? thanks markus
Re: Wicket merchandise take 2
You need to provide a warning in your messages when you're going to say something like that! My monitor can't take having that much coffee spit on it! That was freakin' hilarious! Perhaps we should have a Wicket t-shirt with a picture of Eelco on the front in his fitted Wicket t-shirt! On Mon, Aug 25, 2008 at 5:54 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: Neato. Hey, would it be possible to have 'fitted' T-shirts as well besides 'standard' fit? I like to show off my beer belly when I can. Eelco On Mon, Aug 25, 2008 at 7:42 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I guess we should link to the merchandise page from the wiki also? James Carman wrote: The proceeds should benefit the ASF, not a random charity. On Mon, Aug 25, 2008 at 5:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Displaying HTML formatted text (raw markup) from String
Thanks, it works. Michael Sparer wrote: use a label or a multilinelabel for that and setEscapeModelStrings to false hope that helps regards, Michael btakacs wrote: Hi I would need to display HTML formatted text inside my page. The text is stored in the database, so i would need to display it through component. Is there a way to do this? I did not find any specific component for that. Maybe I could Override the renderAll(MarkupStream markupStream) method of MarkupContainer? Thanks: Bence -- View this message in context: http://www.nabble.com/Displaying-HTML-formatted-text-%28raw-markup%29-from-String-tp19158563p19158802.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
On Mon, Aug 25, 2008 at 6:18 PM, Ryan Gravener [EMAIL PROTECTED] wrote: I like the idea of a professional shirt, something you can wear in the office to show your support for wicket. However, I don't know about you Europeans but http://images.cafepress.com/product/297944696v9_240x240_Back.jpg would repel the girls in the states. Would it be possible to only have the front logo on the golf shirt? +1, for work environment, folks would expect there only to be a logo on the front of the t-shirt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implement LabeledLink and ImageLink components - what is the most elegant way?
For something like this, you probably want to avoid having markup files at all. Seeing as you want something that is both a Link and a Label, a good starting point might be to look at the source code for both. You should be able to extend the Link class, and override onComponentTagBody() in much the same way that Label does. Alastair 2008/8/26 Michael Sparer [EMAIL PROTECTED]: yes, you're right, that's a very common scenario :-) we use an AbstractLinkPanel as base-class, markup goes like this: [wicket:panel] [a href=# wicket:id=link][span wicket:id=linkTitle]Label[/span][/a] [/wicket:panel] and then in java pass the label via constructor. and provide an abstract method to return the link ... and add the link in the onbeforerender method ... e.g. new AbstractLinkPanel(id, new ResourceModel(label)) { protected AbstractLink getLink(id) { return new Link(id) { // snip } } } for bookmarkablepagelinks with labels we just subclass AbstractLinkPanel, return a BookmarkablePageLink there and pass the params _and_ the title in the constructor. e.g. new BookmarkablePageLinkPanel(id, new ResourceModel(label), FooPage.class, FooPage.getParams(pojo)); well that's our approach, works pretty well ... but, as you said, would be great to have out-of-the box. but maybe that's already too specific to be in the wicket-core, as we as wicket-users are expected to implement exactly such components that fit our needs ... would be interesting to hear a developer's opinion about that. regards, Michael PS: I'd be happy to share the above mentioned code with anybody interested, just mail me AbstractLink pixologe wrote: Hi everybody, Perhaps I am just temporarily dumb, but I do not seem to be able to find an elegant solution for the following use case. I constantly create Links with just a single Label or a single Image in it. It would be convenient for me to create a LabeledLink or ImageLink, taking a content string/model or URL as param. (btw: I would LOVE to see something like this by default in wicket) My first idea was to inherit from BookmarkablePageLink and use wicket:extend to add markup - this does not work because markup file is ignored. This is understandable because wicket probably would not know where exactly to place the additional markup, because BPL does not have a wicket:child tag. So what is the best way to do this? I thought about inheriting from Panel, adding link and label, setting the panel's setRenderBodyOnly to true (to avoid useless markup) and override both the panel's and the link's onComponentTag method in order to adopt the original tag's attributes nevertheless... would work, but is definitely far away from being elegant... There is no way to inherit from a component and add markup when there's no wicket:child, right? Thanks for inspiration :) - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Implement-LabeledLink-and-ImageLink-components---what-is-the-most-elegant-way--tp19147651p19158566.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
build from the wicket-1.4-m3 source failing
Hi, when i try to build the wicket from the wicket-1.4-m3 source its failing with the following message \wicket-1.4-m3\wicket\src\main\java\org\apache\wicket\util\tester\FormTester.java:[600,20] inconvertible types found : org.apache.wicket.markup.html.form.FormComponentcapture of ? required: org.apache.wicket.markup.html.form.upload.FileUploadField Can someone help me with what is going wrong please? Regards Dipu
Re: Save CSS/Stylesheet in Database
why do you want to do this? why not using HeaderContributors and css files analog to your html files? Markus Haspl wrote: hi, i want to save all the CSS Data for each component in the database. That's no problem, i save the key and values for the component in a table. But, i don't know how i can provide the Page and the components the CSS Information. Is there an easy way to have a complete dynamic Stylesheet which gets the Data from the database? thanks markus - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Save-CSS-Stylesheet-in-Database-tp19159504p19160485.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No get method defined for expression recorder when using Palette and CompoundPropertyModel
I have also the same problem, because my backend bean collection attributes sometimes is null. I have some client logic bind to this attribute a I need that it will be null. I understand that is not so good when Pallete creates some List impl. But I thought about it and I see solution in Palette's method for example called: protected List getDefaultList(). Everyone who need to have bean attribute null and if also need use this attribute for Palette component can override this method a return default the List impl, which need. Can you please think about it? It's my wrong ? Thanks you very much! Dave igor.vaynberg wrote: i dont know if it is by design or not. it makes sense to me that you pass in a model with at least an empty collection, otherwise palette has to create an instance of some collection which isnt as clean. -igor On 8/23/07, Federico Fanton [EMAIL PROTECTED] wrote: On Fri, 6 Jul 2007 08:48:56 -0700 Igor Vaynberg [EMAIL PROTECTED] wrote: Thanks for the tip but I absolutly need a compoundPropertyModel. https://issues.apache.org/jira/browse/WICKET-723 I had the same issue, thanks! Now I'm using beta3.. Another question though: I see that Recorder.initIds() assumes that getPalette().getModelCollection() is never null.. Is this by design? Should I check my backing bean for null collections before passing it to the CompoundPropertyModel? (Or maybe I could override CompoundPropertyModel.AttachedCompoundPropertyModel.getObject() so that it creates the empty collection when needed.. X-) ) Many thanks in advance! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Re%3A-No-get-method-defined-for-expression-recorder---when-using-Palette-and-CompoundPropertyModel-tp12293607p19160596.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
But how should people know what it's about when you run away? :) Okay i'll adjust then.. James Carman wrote: On Mon, Aug 25, 2008 at 6:18 PM, Ryan Gravener [EMAIL PROTECTED] wrote: I like the idea of a professional shirt, something you can wear in the office to show your support for wicket. However, I don't know about you Europeans but http://images.cafepress.com/product/297944696v9_240x240_Back.jpg would repel the girls in the states. Would it be possible to only have the front logo on the golf shirt? +1, for work environment, folks would expect there only to be a logo on the front of the t-shirt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Image - Java Image
Sounds to me like you're somewhat confused. ;-) Load the image from the classpath into a bufferedimage as you would outside of Wicket (Foo.class.getResourceAsStream() or whatever it is). Draw text, etc. on it as you see fit. Display it with Wicket if you want to via a BufferedDynamicImageResource. If you don't want the overhead of storing the image in the session, use a RenderedDynamicImageResource and load the classpath resource image in the render method. These things are always a trade-off between having to do the graphics drawing operations every time you render the page, and keeping the image hanging around which takes up space. Your choice. Regards, Al 2008/8/22 insom [EMAIL PROTECTED]: Sorry, it took me a bit to get back to this problem. Do you mean I can do this: org.apache.wicket.markup.html.image.Image wicketImage; wicketImage = new Image(img, new ResourceReference(ImageAnchor.class, image.png)); RenderedDynamicImageResource wicketImageResource; wicketImageResource = new RenderedDynamicImageResource(1013,1276, png) { protected boolean render(Graphics2D graphics) { graphics.drawString(user.getName(), 443, 215); return true; } }; wicketImageResource.render(/* Somehow get wicketImage's Graphics attribute in here */); add(new Image(theImage, wicketImageResource)); As you can tell, my difficulty is still in how I can grab the Image using the ResourceReference and then draw a String onto it. I hope this clarifies where I'm having trouble. Thanks again for your help. jwcarman wrote: You can use Graphics2D's drawImage() method can't you? -- View this message in context: http://www.nabble.com/Wicket-Image--%3E-Java-Image-tp19034138p19099200.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
The bib are back up.. Yiannis Mavroukakis wrote: Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Save CSS/Stylesheet in Database
because every component has his own css styles, but the users (registered users in the database) should change the look feel of their own page. On Tue, Aug 26, 2008 at 1:53 PM, Michael Sparer [EMAIL PROTECTED]wrote: why do you want to do this? why not using HeaderContributors and css files analog to your html files? Markus Haspl wrote: hi, i want to save all the CSS Data for each component in the database. That's no problem, i save the key and values for the component in a table. But, i don't know how i can provide the Page and the components the CSS Information. Is there an easy way to have a complete dynamic Stylesheet which gets the Data from the database? thanks markus - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Save-CSS-Stylesheet-in-Database-tp19159504p19160485.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Localization issue
Hi I have a page with a TabPanel with a ListView of BookmarkableLinks, and with some contents. I would need to reload the TabPanel, and the contents after changing the locale. I tried the following, but haven't succeeded: add(new Link(enSwitch) { @Override public final void onClick() { Locale locale = new Locale(en); this.getSession().setLocale(locale); setResponsePage(this.getPage()); } }); My Tab implementation is the following: public class MenuTab extends AbstractTab { Panel panel; public MenuTab(IModel title) { super(title); } public MenuTab(IModel title, Panel panel) { super(title); this.panel=panel; } @Override public Panel getPanel(String panelId) { return panel; } } My View implementation inherits the ListView, and overrides only the populateItem method. Do you have any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19160932.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket resources (css, js and images)?
I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
Aaah thanks..too bad I ordered the tee's first I could have done without the extra $5 shipping charge :P Nino Saturnino Martinez Vazquez Wael wrote: The bib are back up.. Yiannis Mavroukakis wrote: Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Overriding panel markup
Excellent! Thanks for your help. -- View this message in context: http://www.nabble.com/Overriding-panel-markup-tp14642196p19161133.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
too impatient:) I cant even delay it or merge orders:( Yiannis Mavroukakis wrote: Aaah thanks..too bad I ordered the tee's first I could have done without the extra $5 shipping charge :P Nino Saturnino Martinez Vazquez Wael wrote: The bib are back up.. Yiannis Mavroukakis wrote: Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
YUP, I wrote something about a cache technique on my blog, http://ninomartinez.wordpress.com/2008/08/25/java-caching/ Maybe something could be taken from that and generalized? Im thinking on the part where you automatically add a keyword parameter (cache) to the url.. UMMM NG always reminds me on startrek..:) Maybe Wicket should have the the catching phrase prepare to be assimilated , I guess too nerdy:) Martijn Dashorst wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implement LabeledLink and ImageLink components - what is the most elegant way?
Thanks for your opinion on this... I think this is a similar approach to what I had in mind with the panel. What I do not like about those Panel solutions is that the link has to be wrapped and thus in itself is not a subclass of Link anymore. I think a really elegant solution should inherit from Link or one of its subclasses... I agree with you in what you said about implementing components fitting to our needs ourselves. However, there are less common components in core as well as in extensions... Anyway - it is okay to it it by oneself. I was just hoping that there was a more elegant way to extend wicket components with additional markup than wrapping it into a Panel or fiddling about too much with the component tag body... -- View this message in context: http://www.nabble.com/Implement-LabeledLink-and-ImageLink-components---what-is-the-most-elegant-way--tp19147651p19161875.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Implement LabeledLink and ImageLink components - what is the most elegant way?
Thanks for the hint... I did look into the source code and could figure out the onComponentTagBody trick, too... replacing this with text is one thing... but wrapping other components would not be as easily done (as far as I am able to grasp this - correct me if I am wrong) - that's why I brought up the ImageLink use case, too. Is it a good idea to add child component tags to the component tag body programmatically and adding the component instances later on, in onBeforeRender? Cheers :) Al Maw wrote: For something like this, you probably want to avoid having markup files at all. Seeing as you want something that is both a Link and a Label, a good starting point might be to look at the source code for both. You should be able to extend the Link class, and override onComponentTagBody() in much the same way that Label does. Alastair 2008/8/26 Michael Sparer [EMAIL PROTECTED]: yes, you're right, that's a very common scenario :-) we use an AbstractLinkPanel as base-class, markup goes like this: [wicket:panel] [a href=# wicket:id=link][span wicket:id=linkTitle]Label[/span][/a] [/wicket:panel] and then in java pass the label via constructor. and provide an abstract method to return the link ... and add the link in the onbeforerender method ... e.g. new AbstractLinkPanel(id, new ResourceModel(label)) { protected AbstractLink getLink(id) { return new Link(id) { // snip } } } for bookmarkablepagelinks with labels we just subclass AbstractLinkPanel, return a BookmarkablePageLink there and pass the params _and_ the title in the constructor. e.g. new BookmarkablePageLinkPanel(id, new ResourceModel(label), FooPage.class, FooPage.getParams(pojo)); well that's our approach, works pretty well ... but, as you said, would be great to have out-of-the box. but maybe that's already too specific to be in the wicket-core, as we as wicket-users are expected to implement exactly such components that fit our needs ... would be interesting to hear a developer's opinion about that. regards, Michael PS: I'd be happy to share the above mentioned code with anybody interested, just mail me AbstractLink pixologe wrote: Hi everybody, Perhaps I am just temporarily dumb, but I do not seem to be able to find an elegant solution for the following use case. I constantly create Links with just a single Label or a single Image in it. It would be convenient for me to create a LabeledLink or ImageLink, taking a content string/model or URL as param. (btw: I would LOVE to see something like this by default in wicket) My first idea was to inherit from BookmarkablePageLink and use wicket:extend to add markup - this does not work because markup file is ignored. This is understandable because wicket probably would not know where exactly to place the additional markup, because BPL does not have a wicket:child tag. So what is the best way to do this? I thought about inheriting from Panel, adding link and label, setting the panel's setRenderBodyOnly to true (to avoid useless markup) and override both the panel's and the link's onComponentTag method in order to adopt the original tag's attributes nevertheless... would work, but is definitely far away from being elegant... There is no way to inherit from a component and add markup when there's no wicket:child, right? Thanks for inspiration :) - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Implement-LabeledLink-and-ImageLink-components---what-is-the-most-elegant-way--tp19147651p19158566.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Implement-LabeledLink-and-ImageLink-components---what-is-the-most-elegant-way--tp19147651p19161989.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
yepp, but that's server-side caching isn't it? stefan wrote some interesting blog entries about merging resources and interface speed-up in general on http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html ... an RFE will follow after the last post of the series; might be a good idea to look at that as well Nino.Martinez wrote: YUP, I wrote something about a cache technique on my blog, http://ninomartinez.wordpress.com/2008/08/25/java-caching/ Maybe something could be taken from that and generalized? Im thinking on the part where you automatically add a keyword parameter (cache) to the url.. UMMM NG always reminds me on startrek..:) Maybe Wicket should have the the catching phrase prepare to be assimilated , I guess too nerdy:) Martijn Dashorst wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/Wicket-resources-%28css%2C-js-and-images%29--tp19160980p19161991.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
is it also possible to have the letters on the back and the logo on the front (or visa versa)? i think i would like to have to logo on the back and the letters on the front. johan On Tue, Aug 26, 2008 at 3:01 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: too impatient:) I cant even delay it or merge orders:( Yiannis Mavroukakis wrote: Aaah thanks..too bad I ordered the tee's first I could have done without the extra $5 shipping charge :P Nino Saturnino Martinez Vazquez Wael wrote: The bib are back up.. Yiannis Mavroukakis wrote: Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Change style of TreeNode
Hi everybody, I have some question regarding my existing wicket tree: 1. How can I change the style or css class of one or more TreeNodes? 2. How can I specify custom icons for some nodes? 3. How can i change the name, that will be shown in the tree, without changing the name of the userObject? Has somebody any ideas? Kai
IClusterable -- When should it be used?
Some of the Wicket examples have classes that implement the IClusterable interface. Could the experts offer some guidelines as to when this interface should be used? Thanks! -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19163261.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IClusterable -- When should it be used?
wicket uses it as a tagging interface that it is clusterable/serializeable this is used in Terracotta for example to know what objects they can cluster johan On Tue, Aug 26, 2008 at 4:34 PM, shetc [EMAIL PROTECTED] wrote: Some of the Wicket examples have classes that implement the IClusterable interface. Could the experts offer some guidelines as to when this interface should be used? Thanks! -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19163261.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mounting parameters on homepage
Hi, I have a simple search form on my homepage and would like to mount the search parameter, eg. to have host/?term=foo instead of host/?x=faniwfani35gfsge353 (when using CryptedUrlWebRequestCodingStrategy). I can't figure out a way to configure the strategy used to mount the homepage. This throws an IllegalArgumentException(The mount path '/' is reserved for the application home page): mount(new QueryStringUrlCodingStrategy(/, Homepage.class)); Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy) isn't an option, as that method is final. Is there any way to achieve this? Thanks Jörn
Link inside DataTable - PropertyColumn with Link
Hi All, I looked at the following http://cwiki.apache.org/WICKET/adding-links-in-a-defaultdatatable.html to create a column with hyperlinks. Also added the following for the markup public IResourceStream getMarkupResourceStream(MarkupContainer container, Class containerClass) { return new StringResourceStream(wicket:panel \#\ div wicket:id=\label\[Component Name ]/div /wicket:panel); } Now: Question is : I want to be able to get the value of the label on which I clicked and use that value and get Blob from DB. But when I access item.getModelObject() it always returns NULL as model is already detached (btw, I am using LoadableDetachableModel while populating DataTable). How to get back the label(text) on which I clicked.I am adding the reusable component(PropertyColumn with Link) like this columns.add(new LinkPropertyColumn(new Model(Generated Image Id),SortProperty,PropertyExpression) { @Override public void onClick(Item item, String componentId, IModel model) { //HOWTO: Get the value of the link on which I clicked ?? // model.getObject() returns NULL // item.getModelObject() returns NULL } Thanks for any suggestions -- View this message in context: http://www.nabble.com/Link-inside-DataTable---PropertyColumn-with-Link-tp19163807p19163807.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?
On Sun, Aug 24, 2008 at 4:11 AM, jpswain [EMAIL PROTECTED] wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts of my app. I can't comment on Guide as it's not something I've evaluated yet however I do like some of its idiosyncrasies. I use Spring/Hibernate as my stack and I find it fits perfectly with Wicket and my domain models. I personally think Spring offers rich transaction management with its transaction managers, DAO template classes and generic DAO exception hierarchy. I don't have any experience with Spring or Java EE or EJB, but have been avoiding Spring because of what I have read and seen online with so much XML-coding. Is it possible to use spring transaction module by itself and without too much XML? I'd really appreciate hearing what y'all are you guys using for your transactional needs. As of Spring 2.5, you can configure your beans with non-evasive, fine grained annotations. It's declarative transaction model is now annotation based (as of Spring 2.0) so you can make your methods transactional using the @Transactional annotation and it can even be declared on an interface. The propagation and isolation can also fine tuned like: @Transactional(propagation=Propagation.NOT_SUPPORTED, readOnly=false) void updateOrderLineQuantities(ListOrderLine orderLines); Read this chapter to understand how Spring does transaction management: http://static.springframework.org/spring/docs/2.5.x/reference/transaction.html Best, James. If anyone has recommendations on where to get started with transactions, that would be great too. Thanks! J -- View this message in context: http://www.nabble.com/My-Wicket-%2B-Hibernate-project--Transaction-solutions--Java-EE-w--Wicket--tp19127403p19127403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket merchandise
I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise take 2
It could. But for now the shop are closed..:( Lets take it up if it open again. Johan Compagner wrote: is it also possible to have the letters on the back and the logo on the front (or visa versa)? i think i would like to have to logo on the back and the letters on the front. johan On Tue, Aug 26, 2008 at 3:01 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: too impatient:) I cant even delay it or merge orders:( Yiannis Mavroukakis wrote: Aaah thanks..too bad I ordered the tee's first I could have done without the extra $5 shipping charge :P Nino Saturnino Martinez Vazquez Wael wrote: The bib are back up.. Yiannis Mavroukakis wrote: Nice, two t-shirts winging themselves my way already :-) What happened to the bib by the way, I wanted one for my youngster! Nino Saturnino Martinez Vazquez Wael wrote: I haven't heard anything from prc @ apache that we could not do this, so im gonna take this as silent approval. So any profit from merchandise could be donated following these rules, if 1's full then 2 etc (providing the people want it): 1. Provide the core team with merchandise (might be the ordinary stuff with a comitter stamp on) 2. Provide the wicket stuffers with merchandise (might be the ordinary with a stuffer comitter stamp on) 3. Merchandise for critical patchers 4. Random Charity So without further restraints, I now declare the shop open: http://www.cafepress.com/apachewicket You can now surprise your loved one with a teddy bear, and later with the wonderful Apache Wicket boxer shorts. Btw: if you find any problems with some of the merchandise please write me. Input are welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
Michael Sparer wrote: yepp, but that's server-side caching isn't it? Yup. stefan wrote some interesting blog entries about merging resources and interface speed-up in general on http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html ... I read it:) And it compliments my article very well:) an RFE will follow after the last post of the series; might be a good idea to look at that as well :) Nino.Martinez wrote: YUP, I wrote something about a cache technique on my blog, http://ninomartinez.wordpress.com/2008/08/25/java-caching/ Maybe something could be taken from that and generalized? Im thinking on the part where you automatically add a keyword parameter (cache) to the url.. UMMM NG always reminds me on startrek..:) Maybe Wicket should have the the catching phrase prepare to be assimilated , I guess too nerdy:) Martijn Dashorst wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Michael Sparer http://talk-on-tech.blogspot.com -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Image - Java Image
Confused? Who, me? Okay, I confess, graphics are a gaping hole in my Java knowledge. Here's the working solution I came up with in the end, using a BufferedDynamicImageResource. I'll have to do some more figuring to see how to do it with a RenderedDynamicImageResource. BufferedDynamicImageResource resource = new BufferedDynamicImageResource(); BufferedImage image; try { image = ImageIO.read(((WebApplication) Application.get()).getServletContext().getResourceAsStream(/WEB-INF/classes/images/image.png)); Graphics graphics = image.getGraphics(); graphics.drawString(user.getName(), 443, 215); } catch (IOException ioe) { // ... } resource.setImage(image); add(new Image(bothCardImage, resource)); Al Maw wrote: Sounds to me like you're somewhat confused. ;-) Load the image from the classpath into a bufferedimage as you would outside of Wicket (Foo.class.getResourceAsStream() or whatever it is). Draw text, etc. on it as you see fit. Display it with Wicket if you want to via a BufferedDynamicImageResource. If you don't want the overhead of storing the image in the session, use a RenderedDynamicImageResource and load the classpath resource image in the render method. These things are always a trade-off between having to do the graphics drawing operations every time you render the page, and keeping the image hanging around which takes up space. Your choice. Regards, Al -- View this message in context: http://www.nabble.com/Wicket-Image--%3E-Java-Image-tp19034138p19164891.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Calls to MarkupCache#putIntoCache does not use the key provided by MarkupCacheKeyProvider
i would just let the base cms page implement imarkupcachekeyprovider -igor On Tue, Aug 26, 2008 at 2:28 AM, Edvin Syse [EMAIL PROTECTED] wrote: Hi, I have a virtualhosted CMS written in Wicket 1.3 where some of the pages are loaded from the database. This is done using a custom ResourceStreamLocator, configured in the Application#init method. This works good. Different users have different templates loaded for the same Wicket page, so I need to provide a custom cache key so that instance #2 doesn't get the template loaded for instance #1. Therefore I have overriden the MarkupCache class to be able to override the MarkupCacheKeyProvider. This also works, my CacheKeyProvider is consulted, but not always used for MarkupCache#putIntoCache(). Shouldn't the key returned from the CacheKeyProvider always be used when calling putIntoCache()? Here is my MarkupCache implementation: public class TornadoMarkupCache extends MarkupCache { private IMarkupCacheKeyProvider markupCacheKeyProvider; public TornadoMarkupCache(Application application) { super(application); } protected Markup putIntoCache(String locationString, Markup markup) { System.out.println(Putting + locationString + into cache); return super.putIntoCache(locationString, markup); } public IMarkupCacheKeyProvider getMarkupCacheKeyProvider(MarkupContainer container) { if (container instanceof IMarkupCacheKeyProvider) { return (IMarkupCacheKeyProvider)container; } if (markupCacheKeyProvider == null) { markupCacheKeyProvider = new TornadoMarkupCacheKeyProvider(); } return markupCacheKeyProvider; } } And here is my CacheKeyProvider: public class TornadoMarkupCacheKeyProvider extends DefaultMarkupCacheKeyProvider { public String getCacheKey(MarkupContainer container, Class clazz) { String key = TornadoSession.get().getInstanceId() + / + super.getCacheKey(container, clazz); System.out.println(Setting key + key); return key; } } I typically see things like this: Setting key 1/no.sysedata.wicket.components.InfoPanelnohtml Putting file:/C:/Users/edvin/projects/tornado/target/classes/no/sysedata/wicket/components/InfoPanel.html into cache .. so it seems the CacheKeyProvider is consulted, but the key is not used for MarkupCache#putInfoCache() Can someone point me to what I'm missing? Thanks! -- Edvin Syse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mounting parameters on homepage
Jörn Zaefferer wrote: Hi, I have a simple search form on my homepage and would like to mount the search parameter, eg. to have host/?term=foo instead of host/?x=faniwfani35gfsge353 (when using CryptedUrlWebRequestCodingStrategy). I can't figure out a way to configure the strategy used to mount the homepage. This throws an IllegalArgumentException(The mount path '/' is reserved for the application home page): mount(new QueryStringUrlCodingStrategy(/, Homepage.class)); why not /front or something? Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy) isn't an option, as that method is final. Is there any way to achieve this? Thanks Jörn -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
is WANG going to be CHUNG compatible? Martijn Dashorst wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Wicket-resources-%28css%2C-js-and-images%29--tp19160980p19165655.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
CHEECH and CHUNG? Or just Korean Clear? Jonathan Locke wrote: is WANG going to be CHUNG compatible? Martijn Dashorst wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?
On Tue, Aug 26, 2008 at 5:17 PM, James Perry [EMAIL PROTECTED]wrote: On Sun, Aug 24, 2008 at 4:11 AM, jpswain [EMAIL PROTECTED] wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts of my app. I can't comment on Guide as it's not something I've evaluated yet however I do like some of its idiosyncrasies. I use Spring/Hibernate as my stack and I find it fits perfectly with Wicket and my domain models. I personally think Spring offers rich transaction management with its transaction managers, DAO template classes and generic DAO exception hierarchy. I don't have any experience with Spring or Java EE or EJB, but have been avoiding Spring because of what I have read and seen online with so much XML-coding. Is it possible to use spring transaction module by itself and without too much XML? I'd really appreciate hearing what y'all are you guys using for your transactional needs. As of Spring 2.5, you can configure your beans with non-evasive, fine grained annotations. It's declarative transaction model is now annotation based (as of Spring 2.0) so you can make your methods transactional using the @Transactional annotation Same here: no experience with Guice, but Spring's @Transactional (with the Connection and TransactionStatus being bound to the current thread etc) is working just great. Also the spring helper-classes for junit (or testng) that rollback your transaction after every test are very convenient. and it can even be declared on an interface. Yes, but note this: The Spring team's recommendation is that you only annotate concrete classes with the @Transactional annotation, as opposed to annotating interfaces. You certainly can place the @Transactional annotation on an interface (or an interface method), but this will only work as you would expect it to if you are using interface-based proxies. Maarten The propagation and isolation can also fine tuned like: @Transactional(propagation=Propagation.NOT_SUPPORTED, readOnly=false) void updateOrderLineQuantities(ListOrderLine orderLines); Read this chapter to understand how Spring does transaction management: http://static.springframework.org/spring/docs/2.5.x/reference/transaction.html Best, James. If anyone has recommendations on where to get started with transactions, that would be great too. Thanks! J -- View this message in context: http://www.nabble.com/My-Wicket-%2B-Hibernate-project--Transaction-solutions--Java-EE-w--Wicket--tp19127403p19127403.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getForm() on a component inside 2nd level Fragment returns null?
Hi, I have a Page which contains Fragment (A) and which in turn contains Fragment (B). Fragment B has a button. In Fragment B class if I do button.getForm() I get null. I also tried button.getParent().getParent() which should be a form - but it returns null as well. Here is the markup body wicket:extend div class=subColumnHolder div wicket:id=feedbackPanel/div div wicket:id=viewCartContainer[Cart Contents here]/div /div wicket:fragment wicket:id=cartContenttsFragment h2Your Shopping Cart/h2 pPlease review your shopping cart and press checkout to proceed with your order/p form wicket:id=cartForm div class=actionButtons wicket:id=cartHeaderToolbar/div -Fragment cartActionToolbar /form /wicket:fragment wicket:fragment wicket:id=cartActionToolbar input wicket:id=checkoutButton type=submit value=Checkout lt;lt; class=button floatRight/ /wicket:fragment I have corresponding java code to add components properly - can post if needed. -- View this message in context: http://www.nabble.com/getForm%28%29-on-a-component-inside-2nd-level-Fragment-returns-null--tp19166943p19166943.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
Hi, I haven't announced yet publicly but for some time I was working on Ajax implementation for 1.5. The work is available in /repos/asf/wicket/sandbox/knopp/experimental/wicket I will put together a wiki page when I have some free time. I have of course considered jquery. I gave it a proper look but I decided to go with YUI instead because I like it's approach more. Also some functionality that YUI provides in core (dom manipulations) is only available as plugin to Jquery. New Wicket Ajax the is based on YUI3 which provides new node module that allows method chaining and kinda feels like jquery. Also personally I consider YUI source code much more readable than jquery -Matej On Tue, Aug 26, 2008 at 6:10 PM, Scott Swank [EMAIL PROTECTED] wrote: Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mounting parameters on homepage
I dont think you need to explicitly mount a home page to /. Your application has the home page reference and application mounts that page to /. What you probably need is create a SearchPage.java, have it mounted as mixed param coding strategy and let SearchPage provide PageParameter constructor taking the search term as parameter. You can mount SearchPage with whatever string you want, form submission on the home page should setResponsePage(SearchPage.class, new PageParameter(searchterm_etc)) will do it. Jörn Zaefferer-2 wrote: Hi, I have a simple search form on my homepage and would like to mount the search parameter, eg. to have host/?term=foo instead of host/?x=faniwfani35gfsge353 (when using CryptedUrlWebRequestCodingStrategy). I can't figure out a way to configure the strategy used to mount the homepage. This throws an IllegalArgumentException(The mount path '/' is reserved for the application home page): mount(new QueryStringUrlCodingStrategy(/, Homepage.class)); Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy) isn't an option, as that method is final. Is there any way to achieve this? Thanks Jörn -- View this message in context: http://www.nabble.com/Mounting-parameters-on-homepage-tp19163461p19167106.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket frame and tree
Generally it's not a good idea to use frames for things like this. Especially with a stateful framework like wicket. Are you absolutely necessary you need frames? Why? -Matej On Tue, Aug 26, 2008 at 3:45 PM, fish3934 [EMAIL PROTECTED] wrote: Hi, I have a web application that required to use frames. The left Frame is a tree. when clicking the node,some content will be show in the right frame. showed as below: --- | | |top frame | || | || | || | || | || | | left frame | right frame| |(tree) | | || | || | || | || | || | || | I have tried to put the frame example and tree example in wicket-example together,I failed.I did not now how to add link to the node.could please some one help me,or privide me an example. thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DefaultDataTable and tfoot
hi i got empty footers from DefaultDataTable the validators (tidy et al) complain about. is there a simple way to get them out if empty ? cu uwe - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[announce] Openlayers contrib upgraded to 1.4-SNAPSHOT
So there it are for your pleasure.. I've smoke tested it manually, and it seems to be working. However it seems there are a problem with the map provider, it's there on http://openlayers.org/ too. But i've previously experienced it to be unstable. Feel free to come with propositions on howto apply generics where I haven't (remember it were a 1.5 project from the begining). Or any other ideas are welcome. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change style of TreeNode
Kai Schubert-Altmann skrev: Hi everybody, I have some question regarding my existing wicket tree: 1. How can I change the style or css class of one or more TreeNodes? If you override the populateTreeItem() method, you can add an AbstractBehaviour to the item and override the onComponentTag method. From there you can do tag.put(class, yourValue). 2. How can I specify custom icons for some nodes? Override the getNodeIcon() method of the tree. 3. How can i change the name, that will be shown in the tree, without changing the name of the userObject? I guess the simple solution would be to provide a toString() method on your userObject that returns the desired value :) Alternatively you could override the renderNode method of the Tree, which by default does: protected String renderNode(TreeNode node) { return node.toString(); } Just get your userObject from the node and return the string you want from there :) -- Edvin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
+1 for YUI -igor On Tue, Aug 26, 2008 at 10:57 AM, Matej Knopp [EMAIL PROTECTED] wrote: Hi, I haven't announced yet publicly but for some time I was working on Ajax implementation for 1.5. The work is available in /repos/asf/wicket/sandbox/knopp/experimental/wicket I will put together a wiki page when I have some free time. I have of course considered jquery. I gave it a proper look but I decided to go with YUI instead because I like it's approach more. Also some functionality that YUI provides in core (dom manipulations) is only available as plugin to Jquery. New Wicket Ajax the is based on YUI3 which provides new node module that allows method chaining and kinda feels like jquery. Also personally I consider YUI source code much more readable than jquery -Matej On Tue, Aug 26, 2008 at 6:10 PM, Scott Swank [EMAIL PROTECTED] wrote: Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getForm() on a component inside 2nd level Fragment returns null?
Please post the Java-code. -- Edvin Ritesh Trivedi skrev: Hi, I have a Page which contains Fragment (A) and which in turn contains Fragment (B). Fragment B has a button. In Fragment B class if I do button.getForm() I get null. I also tried button.getParent().getParent() which should be a form - but it returns null as well. Here is the markup body wicket:extend div class=subColumnHolder div wicket:id=feedbackPanel/div div wicket:id=viewCartContainer[Cart Contents here]/div /div wicket:fragment wicket:id=cartContentsFragment h2Your Shopping Cart/h2 pPlease review your shopping cart and press checkout to proceed with your order/p form wicket:id=cartForm div class=actionButtons wicket:id=cartHeaderToolbar/div -Fragment cartActionToolbar /form /wicket:fragment wicket:fragment wicket:id=cartActionToolbar input wicket:id=checkoutButton type=submit value=Checkout lt;lt; class=button floatRight/ /wicket:fragment I have corresponding java code to add components properly - can post if needed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[announce] Wicket Contrib input events upgraded to 1.4 snapshot
For your pleasure:) Now you can enjoy hot keys easy again :) Smoke tested with FF2 and safari on mac.. I correctly some spelling error in the package name, so it's changed to groupIdorg.wicket-stuff/groupId -- groupIdorg.wicketstuff/groupId rest remains the same.. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localization issue
Hi, depends on browser you use, I think for IE you have to start a new Broswer, for Firefox you can try this: getSession().invalidate(); and than set up new Locale Best regards Łukasz Lipka 2008/8/26 btakacs [EMAIL PROTECTED] Hi I have a page with a TabPanel with a ListView of BookmarkableLinks, and with some contents. I would need to reload the TabPanel, and the contents after changing the locale. I tried the following, but haven't succeeded: add(new Link(enSwitch) { @Override public final void onClick() { Locale locale = new Locale(en); this.getSession().setLocale(locale); setResponsePage(this.getPage()); } }); My Tab implementation is the following: public class MenuTab extends AbstractTab { Panel panel; public MenuTab(IModel title) { super(title); } public MenuTab(IModel title, Panel panel) { super(title); this.panel=panel; } @Override public Panel getPanel(String panelId) { return panel; } } My View implementation inherits the ListView, and overrides only the populateItem method. Do you have any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19160932.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WANG–Wicket Ajax Next Genera tion–being based on YUI (MD)
Matej, What are the implications of the decision to base Wicket Ajax Next Generation on YUI in terms of choosing a Javascript library for future Wicket based web front ends? We too were tending towards jQuery, mainly because + code based on jQuery can be quite terse yet still easy to read and elegant. + it doesn't require any great Javascript expertise (in particular, no obvious cross-browser issues to worry about so far). + it's got a small footprint and seems to be fast enough, even using the (really useful) CSS selectors. + there's huge number and variety of jQuery plugins for those special occasions. + there's a big developer community/interest with plenty of reference material, blogs etc... + the lack of any licensing concerns. + it's really easy to use and it just works. Since you have no doubt carefully looked at the options and chosen YUI as the most appropriate for Wicket 1.5 (or, shall we just call it Wicket 5), and having seen the magic you have performed with your inmethod grids, I imagine that most of the above can be said for YUI too, and then some. So ... would it make more sense to start preferring YUI for use in new Wicket applications or will it not make any real difference which Javascript library is used by the application developer? Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Matej Knopp-2 wrote: Hi, I haven't announced yet publicly but for some time I was working on Ajax implementation for 1.5. The work is available in /repos/asf/wicket/sandbox/knopp/experimental/wicket I will put together a wiki page when I have some free time. I have of course considered jquery. I gave it a proper look but I decided to go with YUI instead because I like it's approach more. Also some functionality that YUI provides in core (dom manipulations) is only available as plugin to Jquery. New Wicket Ajax the is based on YUI3 which provides new node module that allows method chaining and kinda feels like jquery. Also personally I consider YUI source code much more readable than jquery -Matej On Tue, Aug 26, 2008 at 6:10 PM, Scott Swank [EMAIL PROTECTED] wrote: Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/%22WANG%E2%80%93Wicket-Ajax-Next-Generation%E2%80%93being-based-on-YUI%22-%28MD%29-tp19168620p19168620.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localization issue
This isn't a browser setting. This is overriding the locale via code rather than using the browser default. This wiki page outlines all you need to know about i18n in Wicket: http://cwiki.apache.org/WICKET/i18n.html 2008/8/26 Łukasz Lipka [EMAIL PROTECTED]: Hi, depends on browser you use, I think for IE you have to start a new Broswer, for Firefox you can try this: getSession().invalidate(); and than set up new Locale Best regards Łukasz Lipka 2008/8/26 btakacs [EMAIL PROTECTED] Hi I have a page with a TabPanel with a ListView of BookmarkableLinks, and with some contents. I would need to reload the TabPanel, and the contents after changing the locale. I tried the following, but haven't succeeded: add(new Link(enSwitch) { @Override public final void onClick() { Locale locale = new Locale(en); this.getSession().setLocale(locale); setResponsePage(this.getPage()); } }); My Tab implementation is the following: public class MenuTab extends AbstractTab { Panel panel; public MenuTab(IModel title) { super(title); } public MenuTab(IModel title, Panel panel) { super(title); this.panel=panel; } @Override public Panel getPanel(String panelId) { return panel; } } My View implementation inherits the ListView, and overrides only the populateItem method. Do you have any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19160932.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localization issue
Hi, All The question is: after getSession().setLocale(locale); running and successfully changing the locale (I checked in debug mode) when running setResponsePage(this.getPage()); why the locale changes does not apply to the components? They apply only after I click on a bookmarkable link. Now it does not seem to be a Localization issue: it's some kind of reload issue... Any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19169188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localization issue
Try setRedirect(true). The locale for the current request is probably already established. On Tue, Aug 26, 2008 at 3:56 PM, btakacs [EMAIL PROTECTED] wrote: Hi, All The question is: after getSession().setLocale(locale); running and successfully changing the locale (I checked in debug mode) when running setResponsePage(this.getPage()); why the locale changes does not apply to the components? They apply only after I click on a bookmarkable link. Now it does not seem to be a Localization issue: it's some kind of reload issue... Any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19169188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getForm() on a component inside 2nd level Fragment returns null?
public class ViewCartPage { // Add feedback panel add(new FeedbackPanel(feedbackPanel, new ComponentFeedbackMessageFilter(ViewCartPage.this))); ShoppingCart cart = ShoppingCartWorkerEx.getShoppingCart(); int cartSize = cart.size(); if (cartSize == 0) add(new Label(viewCartContainer, new ResourceModel(Cart.empty.label, Your Shopping Cart is empty))); else add(new CartDetailsFragment(viewCartContainer, cartDetailsFragment, this)); } public class CartDetailsFragment extends Fragment { public static final long serialVersionUID = 1L; private ListCartItemVo _cartItemVoList = FastList.CartItemVo newInstance(); public CartDetailsFragment(String id, String fragmentId, MarkupContainer markupProvider) { super(id, fragmentId, markupProvider); populate(); } private void populate() { _cartItemVoList = ShoppingCartWorkerEx.getCartItemVoListFromSession(); Form cartForm = new Form(cartForm, new Model(new ViewCartWrapperModelObject(new ShippingOptionByCriteria( null, null), _cartItemVoList))); add(cartForm); // Cart Header Toolbar cartForm.add(new CartActionToolbar(cartHeaderToolbar, cartActionToolbar, ViewCartPage.this, cartForm)); .. } // end cart detail fragment private class CartActionToolbar extends Fragment { public CartActionToolbar(String id, String markupId, MarkupContainer markupProvider) { super(id, markupId, markupProvider); populate(); } public void populate() { // Checkout button Button checkoutButton = new Button(checkoutButton, new ResourceModel(CartForm.checkoutButton)) { public static final long serialVersionUID = 1L; @Override public void onSubmit() { ... setResponsePage(CheckoutPage.class); } }; add(checkoutButton); LOG.info( Checkout button parent + checkoutButton.getParent() + grand parent + checkoutButton.getParent().getParent() + getForm() + checkoutButton.getForm() + path + checkoutButton.getPath()); checkoutButton.getForm().setDefaultButton(checkoutButton); Edvin Syse wrote: Please post the Java-code. -- Edvin Ritesh Trivedi skrev: Hi, I have a Page which contains Fragment (A) and which in turn contains Fragment (B). Fragment B has a button. In Fragment B class if I do button.getForm() I get null. I also tried button.getParent().getParent() which should be a form - but it returns null as well. Here is the markup body wicket:extend div class=subColumnHolder div wicket:id=feedbackPanel/div div wicket:id=viewCartContainer[Cart Contents here]/div /div wicket:fragment wicket:id=cartContentsFragment h2Your Shopping Cart/h2 pPlease review your shopping cart and press checkout to proceed with your order/p form wicket:id=cartForm div class=actionButtons wicket:id=cartHeaderToolbar/div -Fragment cartActionToolbar /form /wicket:fragment wicket:fragment wicket:id=cartActionToolbar input wicket:id=checkoutButton type=submit value=Checkout lt;lt; class=button floatRight/ /wicket:fragment I have corresponding java code to add components properly - can post if needed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/getForm%28%29-on-a-component-inside-2nd-level-Fragment-returns-null--tp19166943p19169316.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IClusterable -- When should it be used?
I guess my real questions was: What objects in a Wicket application should be marked as clusterable? (Or did you already answer that? :confused: ) -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19169507.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WANG–Wicket Ajax Next Generation–being based on YUI (MD)
Hi, On Tue, Aug 26, 2008 at 9:24 PM, jWeekend [EMAIL PROTECTED] wrote: Matej, What are the implications of the decision to base Wicket Ajax Next Generation on YUI in terms of choosing a Javascript library for future Wicket based web front ends? actually, there really are none. The use of YUI will be more or less internal to Wicket, so you can continue using jQuery, YUI2 or whatever else you are using. Everything in Wicket (and YUI) is namespaced so there are no conflicts. We too were tending towards jQuery, mainly because + code based on jQuery can be quite terse yet still easy to read and elegant. I think same goes for YUI, especially with YUI3 Node class. + it doesn't require any great Javascript expertise (in particular, no obvious cross-browser issues to worry about so far). I don't see how this is different than what YUI does + it's got a small footprint and seems to be fast enough, even using the (really useful) CSS selectors. CSS selectors are of no use for Wicket Ajax, of course they might be useful for the actual application or other components. However YUI also have CSS selectors, even though i haven't profiled them. Anyway, in general i don't think that CSS selector speed matters too much. For anything really have you would have to cache the results somehow (like i did for grid). + there's huge number and variety of jQuery plugins for those special occasions. Unfortunately the quality of plugins varies. For actual wicket ajax implementation i prefer to stick with the core thing, and that's where YUI definitely beats jquery. I don't say that there are no plugins for jQuery that covers YUI functionality. Question is how well are those plugins supported and maintained. + there's a big developer community/interest with plenty of reference material, blogs etc... + the lack of any licensing concerns. + it's really easy to use and it just works. Again, I don't see why this wouldn't apply to YUI as well. Since you have no doubt carefully looked at the options and chosen YUI as the most appropriate for Wicket 1.5 (or, shall we just call it Wicket 5), and having seen the magic you have performed with your inmethod grids, I imagine that most of the above can be said for YUI too, and then some. Could be :) So ... would it make more sense to start preferring YUI for use in new Wicket applications or will it not make any real difference which Javascript library is used by the application developer? Really it won't. I used YUI because i liked it more. I went through the jQuery source code when I was evaluating it and I found YUI to be much more readable. This is a personal opinion though. It's more about the approach. I like YUI approach to things. I like the way the YUI API is designed. It like the things that are in YUI core and that only are available as plugin to jquery. Anyway, as I say, this doesn't make any implication to Wicket users or 3rd party components. The reason why wicket ajax is based on another framework is to get rid of most of the low level browser specific code we have currently so that I wouldn't have to maintain it :) -Matej Matej Knopp-2 wrote: Hi, I haven't announced yet publicly but for some time I was working on Ajax implementation for 1.5. The work is available in /repos/asf/wicket/sandbox/knopp/experimental/wicket I will put together a wiki page when I have some free time. I have of course considered jquery. I gave it a proper look but I decided to go with YUI instead because I like it's approach more. Also some functionality that YUI provides in core (dom manipulations) is only available as plugin to Jquery. New Wicket Ajax the is based on YUI3 which provides new node module that allows method chaining and kinda feels like jquery. Also personally I consider YUI source code much more readable than jquery -Matej On Tue, Aug 26, 2008 at 6:10 PM, Scott Swank [EMAIL PROTECTED] wrote: Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To
Re: IClusterable -- When should it be used?
if you have objects that would be kept in the session, you have to use Serializable. at the moment you use that you can choose for IClusterable so that when you use terracotta it will be clustered johan On Tue, Aug 26, 2008 at 10:14 PM, shetc [EMAIL PROTECTED] wrote: I guess my real questions was: What objects in a Wicket application should be marked as clusterable? (Or did you already answer that? :confused: ) -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19169507.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
i dont have to have anything for free! And i think that stuff should be able to sell just fine. So i guess the problem is that it says Apache on the shirt?? johan On Tue, Aug 26, 2008 at 9:24 PM, James Carman [EMAIL PROTECTED]wrote: I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IClusterable -- When should it be used?
Right now there really isn't any practical reason for having IClusterable at all. Even terracotta uses regular serialization to get pages over cluster. -Matej On Tue, Aug 26, 2008 at 10:26 PM, Johan Compagner [EMAIL PROTECTED] wrote: if you have objects that would be kept in the session, you have to use Serializable. at the moment you use that you can choose for IClusterable so that when you use terracotta it will be clustered johan On Tue, Aug 26, 2008 at 10:14 PM, shetc [EMAIL PROTECTED] wrote: I guess my real questions was: What objects in a Wicket application should be marked as clusterable? (Or did you already answer that? :confused: ) -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19169507.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IClusterable -- When should it be used?
both ways of doing it? i think there are 2 now right? the one that was made up first and now the one that is just the pagestore? On Tue, Aug 26, 2008 at 10:30 PM, Matej Knopp [EMAIL PROTECTED] wrote: Right now there really isn't any practical reason for having IClusterable at all. Even terracotta uses regular serialization to get pages over cluster. -Matej On Tue, Aug 26, 2008 at 10:26 PM, Johan Compagner [EMAIL PROTECTED] wrote: if you have objects that would be kept in the session, you have to use Serializable. at the moment you use that you can choose for IClusterable so that when you use terracotta it will be clustered johan On Tue, Aug 26, 2008 at 10:14 PM, shetc [EMAIL PROTECTED] wrote: I guess my real questions was: What objects in a Wicket application should be marked as clusterable? (Or did you already answer that? :confused: ) -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19169507.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IClusterable -- When should it be used?
Ah, so it's Terracotta-specific. I'm working with WebSphere, which I presume won't take notice of the IClusterable hint. Thanks very much, Johan! -- View this message in context: http://www.nabble.com/IClusterableWhen-should-it-be-used--tp19163261p19169841.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
James Carman wrote: I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. Well true, but it incurs more administration.. I also really liked the idea that we could give t-shirts to patchers or wicketstuff projects etc.. People feel much more appreciated and it would make good conversation at work.. But I guess it could remain the same with the paypal solution.. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getForm() on a component inside 2nd level Fragment returns null?
Your CartActionToolbar#markupProvider is infact your form, so you can do ((Form)markupProvider).setDefaultButton(checkoutButton), or you could make the cartForm a private field in ViewCartPage and just access it with cartForm.setDefaultButton(checkoutButton). For the first approach you'll need to assign the markupProvider to a private field in CartActionToolbar, or make markupProvider final in the constructor. Does that help? -- Edvin Ritesh Trivedi skrev: public class ViewCartPage { // Add feedback panel add(new FeedbackPanel(feedbackPanel, new ComponentFeedbackMessageFilter(ViewCartPage.this))); ShoppingCart cart = ShoppingCartWorkerEx.getShoppingCart(); int cartSize = cart.size(); if (cartSize == 0) add(new Label(viewCartContainer, new ResourceModel(Cart.empty.label, Your Shopping Cart is empty))); else add(new CartDetailsFragment(viewCartContainer, cartDetailsFragment, this)); } public class CartDetailsFragment extends Fragment { public static final long serialVersionUID = 1L; private ListCartItemVo _cartItemVoList = FastList.CartItemVo newInstance(); public CartDetailsFragment(String id, String fragmentId, MarkupContainer markupProvider) { super(id, fragmentId, markupProvider); populate(); } private void populate() { _cartItemVoList = ShoppingCartWorkerEx.getCartItemVoListFromSession(); Form cartForm = new Form(cartForm, new Model(new ViewCartWrapperModelObject(new ShippingOptionByCriteria( null, null), _cartItemVoList))); add(cartForm); // Cart Header Toolbar cartForm.add(new CartActionToolbar(cartHeaderToolbar, cartActionToolbar, ViewCartPage.this, cartForm)); .. } // end cart detail fragment private class CartActionToolbar extends Fragment { public CartActionToolbar(String id, String markupId, MarkupContainer markupProvider) { super(id, markupId, markupProvider); populate(); } public void populate() { // Checkout button Button checkoutButton = new Button(checkoutButton, new ResourceModel(CartForm.checkoutButton)) { public static final long serialVersionUID = 1L; @Override public void onSubmit() { ... setResponsePage(CheckoutPage.class); } }; add(checkoutButton); LOG.info( Checkout button parent + checkoutButton.getParent() + grand parent + checkoutButton.getParent().getParent() + getForm() + checkoutButton.getForm() + path + checkoutButton.getPath()); checkoutButton.getForm().setDefaultButton(checkoutButton); Edvin Syse wrote: Please post the Java-code. -- Edvin Ritesh Trivedi skrev: Hi, I have a Page which contains Fragment (A) and which in turn contains Fragment (B). Fragment B has a button. In Fragment B class if I do button.getForm() I get null. I also tried button.getParent().getParent() which should be a form - but it returns null as well. Here is the markup body wicket:extend div class=subColumnHolder div wicket:id=feedbackPanel/div div wicket:id=viewCartContainer[Cart Contents here]/div /div wicket:fragment wicket:id=cartContentsFragment h2Your Shopping Cart/h2 pPlease review your shopping cart and press checkout to proceed with your order/p form wicket:id=cartForm div class=actionButtons wicket:id=cartHeaderToolbar/div -Fragment cartActionToolbar /form /wicket:fragment wicket:fragment wicket:id=cartActionToolbar input wicket:id=checkoutButton type=submit value=Checkout lt;lt; class=button floatRight/ /wicket:fragment I have corresponding java code to add components properly - can post if needed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
Johan Compagner wrote: i dont have to have anything for free! No, but I think it would be nice... And i think that stuff should be able to sell just fine. So i guess the problem is that it says Apache on the shirt?? For now it are (I think also the logo it self are trademarked), but I'll hopefully get to an agreement with PRC, the guy I talked to seem to be pretty straight forward.. johan On Tue, Aug 26, 2008 at 9:24 PM, James Carman [EMAIL PROTECTED]wrote: I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket resources (css, js and images)?
Hi, A few months back I started work on a slightly different method of adding resources to a page, where, it works out what resources are added on the page, combines them together with the yui javascript compressor, caches the result, and serves it. Unfortunately I haven't had any time to work on it as my new job has taken me away from wicket, but I am happy to share my rough code with anyone that wants it. resources are added like so: HeaderContribManager.add(new ResourceReference(...), getPage()); and in each page add HeaderContribManager.getHeaderContributor(this.class, localString, styleString); in both cases put in the onBeforeRender method (the panels and such need to be added to the page before you can use getPage() afaik) Like I said its very rough, but it does have the advantage of producing a js file for each page, hopefully taking into account local and style, and should work when a panel adds javascript, and you use that panel in multiple pages. http://www.nabble.com/file/p19170189/HeaderContribManager.java HeaderContribManager.java [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Wicket-resources-%28css%2C-js-and-images%29--tp19160980p19170189.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: datepicker visibility problem
ok, i tried, and in fact, i had a bad understanding of my probleme. in fact, i use ajax to refresh the datepicker, and it doesnt refresh the datepicker binded to the datetextfield. i could of course refresh all the form, but it's a little overkill. (and my form is pretty heavy) i can't see how to refresh the datepicker cause it's a behavior and not a component. if someone can see a solution. On Fri, Aug 22, 2008 at 12:13 AM, Julien Gaucher [EMAIL PROTECTED] wrote: ok, i understand this time and i definitively try this tomorow morning ;) thank you very much On Fri, Aug 22, 2008 at 12:08 AM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Sorry again - must be quitting time for me, too - to clarify, here's the contents of DatePicker's isEnabled(): @Override public boolean isEnabled(Component component) { return component.isEnabled() component.isEnableAllowed(); } So, setEnableAllowed(false) on the COMPONENT (sorry) is what should do it for you. Combine that with setVisibilityEnabled(false) on the component for it to disappear, and you should (in theory) be good to go. On Thu, Aug 21, 2008 at 4:59 PM, Julien Gaucher [EMAIL PROTECTED]wrote: hum, well, in fact, there is no setEnable on datePicker, just isenable ! On Thu, Aug 21, 2008 at 11:51 PM, Julien Gaucher [EMAIL PROTECTED] wrote: i'll try that tomorrow morning when i'lle get back to work ;) thank you for the hint On Thu, Aug 21, 2008 at 11:44 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Sorry, wasn't thinking and didn't have the code in front of me. It seems like if you are calling setVisibilityAllowed, that the behavior should not be rendered at all. But, either way, have you tried calling setEnabled(false) on the DatePicker behavior? This should definitely stop it from rendering. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Aug 21, 2008 at 4:25 PM, Julien Gaucher [EMAIL PROTECTED] wrote: i use setvisibility on DateTextField, there is no setVisibility() method on the datePicker . On Thu, Aug 21, 2008 at 10:58 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Which one are you setting visibility to false on? On Thu, Aug 21, 2008 at 3:29 PM, Julien Gaucher [EMAIL PROTECTED] wrote: hi i have a problem with datepicker visibility (perhaps a newb problem ;) ) in my application, i have some conditional form element and i switch them with setVisibility(true/false) and it works perfectly well except for the datepicker i add a datepicker to a dateTextField. when i switch visibility to true, the two elements shows on the page, but when i switch to false... only the textFiel goes off, and the datepicker icons stay. i think i can overcome this by using a panel, but i feel that there is a better solution. could someone help ? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WANG–Wicket Ajax Next Generation–bei ng based on YUI (MD)
+1 for including support for cometd in wicket core I expect server side push the next great thing in web development :) my 2 pct Am 26.08.2008 um 22:19 schrieb Matej Knopp: Hi, On Tue, Aug 26, 2008 at 9:24 PM, jWeekend [EMAIL PROTECTED] wrote: Matej, What are the implications of the decision to base Wicket Ajax Next Generation on YUI in terms of choosing a Javascript library for future Wicket based web front ends? actually, there really are none. The use of YUI will be more or less internal to Wicket, so you can continue using jQuery, YUI2 or whatever else you are using. Everything in Wicket (and YUI) is namespaced so there are no conflicts. We too were tending towards jQuery, mainly because + code based on jQuery can be quite terse yet still easy to read and elegant. I think same goes for YUI, especially with YUI3 Node class. + it doesn't require any great Javascript expertise (in particular, no obvious cross-browser issues to worry about so far). I don't see how this is different than what YUI does + it's got a small footprint and seems to be fast enough, even using the (really useful) CSS selectors. CSS selectors are of no use for Wicket Ajax, of course they might be useful for the actual application or other components. However YUI also have CSS selectors, even though i haven't profiled them. Anyway, in general i don't think that CSS selector speed matters too much. For anything really have you would have to cache the results somehow (like i did for grid). + there's huge number and variety of jQuery plugins for those special occasions. Unfortunately the quality of plugins varies. For actual wicket ajax implementation i prefer to stick with the core thing, and that's where YUI definitely beats jquery. I don't say that there are no plugins for jQuery that covers YUI functionality. Question is how well are those plugins supported and maintained. + there's a big developer community/interest with plenty of reference material, blogs etc... + the lack of any licensing concerns. + it's really easy to use and it just works. Again, I don't see why this wouldn't apply to YUI as well. Since you have no doubt carefully looked at the options and chosen YUI as the most appropriate for Wicket 1.5 (or, shall we just call it Wicket 5), and having seen the magic you have performed with your inmethod grids, I imagine that most of the above can be said for YUI too, and then some. Could be :) So ... would it make more sense to start preferring YUI for use in new Wicket applications or will it not make any real difference which Javascript library is used by the application developer? Really it won't. I used YUI because i liked it more. I went through the jQuery source code when I was evaluating it and I found YUI to be much more readable. This is a personal opinion though. It's more about the approach. I like YUI approach to things. I like the way the YUI API is designed. It like the things that are in YUI core and that only are available as plugin to jquery. Anyway, as I say, this doesn't make any implication to Wicket users or 3rd party components. The reason why wicket ajax is based on another framework is to get rid of most of the low level browser specific code we have currently so that I wouldn't have to maintain it :) -Matej Matej Knopp-2 wrote: Hi, I haven't announced yet publicly but for some time I was working on Ajax implementation for 1.5. The work is available in /repos/asf/wicket/sandbox/knopp/experimental/wicket I will put together a wiki page when I have some free time. I have of course considered jquery. I gave it a proper look but I decided to go with YUI instead because I like it's approach more. Also some functionality that YUI provides in core (dom manipulations) is only available as plugin to Jquery. New Wicket Ajax the is based on YUI3 which provides new node module that allows method chaining and kinda feels like jquery. Also personally I consider YUI source code much more readable than jquery -Matej On Tue, Aug 26, 2008 at 6:10 PM, Scott Swank [EMAIL PROTECTED] wrote: Has jquery been considered for WANG, or am I coming into this conversation late? Scott On Tue, Aug 26, 2008 at 5:51 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Probably something for 1.5 (with WANG–Wicket Ajax Next Generation–being based on YUI) Martijn On Tue, Aug 26, 2008 at 2:25 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I've been hearing some rants on how merging resources can up the performance, should wicket be able todo this? I mean merging several css's into one etc.. I know it wont work for dynamic css/js/images. But on static it could, even yslow recommends you merge your resources into one... Images might be stretching it too far? WDYT? http://workingwithrails.com/railsplugin/5317-asset-packager http://www.kaboomerang.com/blog/2007/11/29/getting-to-10-actiontastic-actionatr-gwt-and-automagic-rest/ --
Re: Localization issue
Hi, But what exactly not work? I'm using a Link with onClick() code: getSession().setLocale(locale); to swicth current locale and everything works ok. All page components are localized correctly. I think this setResponsePage(this.getPage()); call in your code is not necessary: @Override public final void onClick() { Locale locale = new Locale(en); this.getSession().setLocale(locale); setResponsePage(this.getPage()); } -- Daniel On Tue, Aug 26, 2008 at 9:56 PM, btakacs [EMAIL PROTECTED] wrote: Hi, All The question is: after getSession().setLocale(locale); running and successfully changing the locale (I checked in debug mode) when running setResponsePage(this.getPage()); why the locale changes does not apply to the components? They apply only after I click on a bookmarkable link. Now it does not seem to be a Localization issue: it's some kind of reload issue... Any tips? Thanks: Bence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?
jpswain wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts of my app. I don't have any experience with Spring or Java EE or EJB, but have been avoiding Spring because of what I have read and seen online with so much XML-coding. Is it possible to use spring transaction module by itself and without too much XML? I'd really appreciate hearing what y'all are you guys using for your transactional needs. Also is it possible to run a Wicket-based project inside a JEE container like Glassfish or JBoss AS directly to take advantage of EJB JTA, or would that require something like Seam + wicket-seam integration? If anyone has recommendations on where to get started with transactions, that would be great too. Thanks! J If you're using Tomcat then you can drop in the OpenEJB war file [1] and get some EE support added for free with zero extra config and no additional xml. Should take only a minute or two to get going. You can add EJBs right in your webapp (no ears required) and get all the transactional support and JTA EntityManager support, etc. You can even unit test the EJBs with the embeddable EJB container support. There is also an example zip on the download page that has an openejb+hibernate maven/ant project all setup and ready to go. -David [1] http://openejb.apache.org/download.html -- View this message in context: http://www.nabble.com/My-Wicket-%2B-Hibernate-project--Transaction-solutions--Java-EE-w--Wicket--tp19127403p19170589.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
It might help to have someone on the Wicket PMC contact the PRC folks as well. That way they know this stuff is going on with the consent of someone in house. On Tue, Aug 26, 2008 at 4:44 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Johan Compagner wrote: i dont have to have anything for free! No, but I think it would be nice... And i think that stuff should be able to sell just fine. So i guess the problem is that it says Apache on the shirt?? For now it are (I think also the logo it self are trademarked), but I'll hopefully get to an agreement with PRC, the guy I talked to seem to be pretty straight forward.. johan On Tue, Aug 26, 2008 at 9:24 PM, James Carman [EMAIL PROTECTED]wrote: I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket merchandise
Just done that Martijn On Tue, Aug 26, 2008 at 11:19 PM, James Carman [EMAIL PROTECTED] wrote: It might help to have someone on the Wicket PMC contact the PRC folks as well. That way they know this stuff is going on with the consent of someone in house. On Tue, Aug 26, 2008 at 4:44 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Johan Compagner wrote: i dont have to have anything for free! No, but I think it would be nice... And i think that stuff should be able to sell just fine. So i guess the problem is that it says Apache on the shirt?? For now it are (I think also the logo it self are trademarked), but I'll hopefully get to an agreement with PRC, the guy I talked to seem to be pretty straight forward.. johan On Tue, Aug 26, 2008 at 9:24 PM, James Carman [EMAIL PROTECTED]wrote: I would recommend just putting down that the money goes straight to the ASF. If the committers really want some merchandise for free, then I say we take up a collection via paypal or something and just buy it for them. On Tue, Aug 26, 2008 at 12:43 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Nope, I guess it's about donations back to ASF (I guess I might have been unclear about it). In my reply I've sumarized what we agreed on here. Non profit, exeding money goes to supply comitters / patchers with merchandise and if none of the previous then ASF.. Although I think they might want a percentage instead.. I look forward on hearing their reply, it seems they have a 5 day window on response times..:( So it could take a while. Yiannis Mavroukakis wrote: Any particular reason why? Nino Saturnino Martinez Vazquez Wael wrote: I've gotten word from apache PRC, and the shop are closed. The lucky people that have ordered will recieve their merchandise as I cant stop it. I hope the discussion with PRC will end out to benefit the wicket community and make it so we again can get merchandise.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]