DataTable : Write direct HTML in cells?
Greetings all, I want to write direct HTML content in DataTable cells. Something like like : public abstract class AbstractWidthChangableColumnE extends AbstractColumnE{ public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { .. .. .. String htmlSnippet=a href='somehere'somehere/a; cellitem.writeSomeHTML(htmlSnippet); } } where 'htmlSnippet' is dynamic ? Any tips? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable : Write direct HTML in cells?
use a label, call setoutputmodelstrings(false) on it -igor On Tue, Feb 9, 2010 at 12:16 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings all, I want to write direct HTML content in DataTable cells. Something like like : public abstract class AbstractWidthChangableColumnE extends AbstractColumnE{ public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { .. .. .. String htmlSnippet=a href='somehere'somehere/a; cellitem.writeSomeHTML(htmlSnippet); } } where 'htmlSnippet' is dynamic ? Any tips? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode
Can someone please confirm if this is a bug? If yes, I will create a JIRA issue if I'm allowed to do that. Thanks Andreas -Original Message- From: Andreas Lüdtke [mailto:sam.lued...@t-online.de] Sent: Saturday, February 06, 2010 7:43 PM To: users@wicket.apache.org Subject: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode Hi, I'm using wicket 1.4.6 and saw that the onTimer method of an AbstractAjaxTimerBehavior object isn't called, when I switch vom development mode to deployment mode. This happens also with wicket 1.4.5. Is there something I need to do to get it working in deployment mode? In addition, after calling AbstractAjaxTimerBehavior.stop() the onTimer method is still called (of course only in development mode). ;-) If someone finds the time to fix this, I would be glad if this person could implement a restart() method to start the timer after it has been stopped. Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable : Write direct HTML in cells?
Use a Label? E.g. @Override public void populateItem(ItemICellPopulatorBroker item, String componentId, IModelBroker rowModel) { Label label =new Label(componentId, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return Generate your HTML; } }); label.setEscapeModelStrings(false); item.add(label); } Ernesto On Tue, Feb 9, 2010 at 9:16 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings all, I want to write direct HTML content in DataTable cells. Something like like : public abstract class AbstractWidthChangableColumnE extends AbstractColumnE{ public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { .. .. .. String htmlSnippet=a href='somehere'somehere/a; cellitem.writeSomeHTML(htmlSnippet); } } where 'htmlSnippet' is dynamic ? Any tips? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable : Write direct HTML in cells?
Thanks Igor ,Ernesto ! That helped alot! Ernesto Reinaldo Barreiro wrote: Use a Label? E.g. @Override public void populateItem(ItemICellPopulatorBroker item, String componentId, IModelBroker rowModel) { Label label =new Label(componentId, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return Generate your HTML; } }); label.setEscapeModelStrings(false); item.add(label); } Ernesto On Tue, Feb 9, 2010 at 9:16 AM, Ashika Umanga Umagiliya auma...@biggjapan.com wrote: Greetings all, I want to write direct HTML content in DataTable cells. Something like like : public abstract class AbstractWidthChangableColumnE extends AbstractColumnE{ public void populateItem(ItemICellPopulatorE cellitem, String id, IModelE model) { .. .. .. String htmlSnippet=a href='somehere'somehere/a; cellitem.writeSomeHTML(htmlSnippet); } } where 'htmlSnippet' is dynamic ? Any tips? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [announce] better look modern css for wicket examples contest
you've been added. 2010/2/8 Peter Jones peteorpe...@gmail.com My username is superpaj. I think I'm following you. I'll holler if I have any questions. Thanks Pete On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: as long as whatever it is you do can be applied as a patch... -igor On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: just post your sourceforge username... I'll give you access to store things in svn.. So you checkout wicketexamples from apache.. Disconnect it apply your design stuff, and can store it at sourceforge in sandbox under your sf name. Okay? 2010/2/8 Peter Jones peteorpe...@gmail.com Hi, I'm excited by this idea for two reasons: 1) it would be a good design exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect my wife would look hot in a Wicket T-shirt! I'm not promising anything - we've got a big release mid-March (yes, we're using Wicket) - but I'd like to get commit rights just in case; what do I need to do? Thanks, Pete On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I agree, and the contest are about Wicket Examples not the quickstart. 2010/2/8 Martijn Dashorst martijn.dasho...@gmail.com I don't like to add more bells and whistles to the quickstart. If we add graphics, JS and other stuff, you'd have to remove it for every project. I like the fact that I can grab the quickstart and just start hacking without having to strip it from superfluous muck. I do like the changes Kinabalu proposed though: simple, low profile and removed easily enough. Martijn On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Design as in graphical. While I do think the changes you made are equally important. The graphical perspective was what begun the contest. It would'nt certainly not hurt that the quickstart or the examples looked more slick. However any out come are a win-win. regards Nino 2010/2/8 Andrew Lombardi and...@mysticcoders.com Design as in programming? or design as in graphical? I think the intent I gathered from mbrictson was to put a semi-nicer look on a plain page, and provide useful links for new folks. Things like the examples which should be perused a lot while first learning Wicket. It's a quickstart, it should take on a tone of simplicity. Just like the Django quickstart, which doesn't aim to do anything other than shove you in the right direction On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote: Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better
FileUploadField selection event
Is there any way to see when user selects a file through the browse button? I want that after selection , to get the text from text field. Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUploadField selection event
This may help http://old.nabble.com/Where-is-the-full-client-filename-during-FileUpload--p27439835.html On Tue, Feb 9, 2010 at 1:51 AM, Mihai Dinca dpmi...@yahoo.com wrote: Is there any way to see when user selects a file through the browse button? I want that after selection , to get the text from text field. Mike - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anantha Kumaran
Re: CryptedUrlWebRequestCodingStrategy + WebRequestCodingStrategy = resource URLs are not encrypted (bug?).
ok, added WICKET-2731 Antoine On Thu, Jan 21, 2010 at 4:52 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: not sure that is possible currently. the aliasing only works on a per class level. see SharedResources.putClassAlias(). you can add an rfe to have it enhanced. seems like a quiet arbitrary requirement, especially when it comes to security. an fqn does not give anything away security-wise. -igor On Thu, Jan 21, 2010 at 1:18 AM, Antoine van Wel antoine.van@gmail.com wrote: What can you do if you need to enforce that no fqn's are ever generated in (resource) paths? Best I can think of now is putting a breakpoint in the resourceKey method where the fqn is retrieved, and then stepping through your full webapp - which is a rather poor solution. Any other ideas? Antoine On Mon, Jan 18, 2010 at 5:18 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: the original design goal of the crypted strategy was to only encrypt what the user sees in the url bar. since they never see resource urls there was no reason to encrypt those. re fqns, you can add class aliases into SharedResources to hide those. -igor 2010/1/18 Sergejs Olefirs sergejs.olef...@parex.lv: Hi, I started using Wicket rather recently. As part of our security considerations, we do not want immediately expose the underlying framework(s) we are using, so we went ahead with URL encryption. We used standard approach as described in examples: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor(){ protected IRequestCodingStrategy newRequestCodingStrategy(){ return new CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()); } }; } Unfortunately I later discovered that this approach doesn't encrypt resource URLs, e.g. from: CSSPackageResource.getHeaderContribution(..); or link.add(new Image(logoImage)); What's worse such resource references include FQN of related classes. After some investigation I found out that the problem is that CryptedUrlWebRequestCodingStrategy only encrypts arguments string of the URL and WebRequestCodingStrategy encodes resource references as path rather than as argument. I was able to get around this by subclassing WebRequestCodingStrategy and overriding methods: addResourceParameters(..); encode(RequestCycle requestCycle, ISharedResourceRequestTarget requestTarget); to use arguments rather than path as resource reference. However I'm unsure as to original reasoning behind original CryptedUrlWebRequestCodingStrategy and WebRequestCodingStrategy. Is the resource behaviour simply a bug? Or is it there for some reason that is going to bite me down the road if I use my own 'fix'? Best regards, Sergey - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- take your photos everywhere you go - https://www.memolio.com follow us on Twitter - http://twitter.com/Memolio - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FileUploadField selection event
What I really want is that after file selection automatically set the text of another TextField (inside my form) with a string derived from selected file name. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How reRender a component from parent page?
I try this again using only setOutputMarkupId without modelChanged and onModelChange, and don't work. I just setOutputMarkupId on my component and in the ajaxEvent i put: target.addComponent(getPage().get(header:counter)); header is a panel and counter is a Label in this panel. Thanks All. 2010/2/8 Rangel Preis rangel...@gmail.com: Thanks, Don but this don't work the value don't change. And I call setOutputMarkupId when i build it. and call it again later... Thanks All. 2010/2/8 Don Ferguson d...@rixty.com: I think setOutputMarkupId() should have been called earlier, in the MyTemplate constructor when the Header was constructed. Ajax processing needs the markup id to find the component you're changing, so setting it in onModelChanged() is too late. Also, I don't think you need the call to modelChanged() or to override onModelChanged. Changing the model object and adding the component to the target should be sufficient. -Don On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote: My template HTML html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head title wicket:id=title/title meta wicket:id=description name=description content=/ meta wicket:id=keywords name=keywords content=/ meta wicket:id=version name=version content=/ /head body a href=#irconteudo style=display: none;/a div wicket:id=header class=header/div !-- conteudo -- div id=conteudo table class=layout tr td wicket:id=col_esq class=col_esq/ td a name=irconteudo style=display: none;/a div wicket:id=feedback id=feedback/ wicket:child/ /td td class=col_dir /td /tr /table /div div wicket:id=footer class=footer/div /body /html Header.html wicket:panel div class=right div wicket:id=header_client class=client/div /div //Value that i want to change div class=conter a wicket:id=conterspan wicket:id=itens//a /div div class=left a wicket:id=header_home_linkdiv class=logo//a /div div wicket:id=header_search class=search/div /wicket:panel Thanks. 2010/2/5 Riyad Kalla rka...@gmail.com: What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this: |---| | HEADER | |---| | MENU | CONTENT | | | | | | | | | | |---|---| | FOOTER | |---| public class MyTemplate{ public MyTemplate() { super(); this.add(CSSPackageResource.getHeaderContribution(...); this.add(AbstractTemplatePage.FEEDBACK); this.addOrReplace(new Header()); this.add(new Menu()); this.add(new Footer()); . public class MyContetPage extends MyTemplate { public MyContetPage(final PageParameters _parameters) { add(new AjaxFallbackLinkVoid(rem) { �...@override public void onClick(final AjaxRequestTarget target) { …... } }); …. } } How change value in the header when i click on the ajaxlink of my content page? In the onClick i try this; but don't work //some function to change the model value... this.getPage().get(header:component).modelChanged(); target.addComponent(this.getPage().get(header:component)); And in my Header.java I override onModelChanged: protected void onModelChanged() { super.onModelChanged(); this.addOrReplace(component).setOutputMarkupId(true)); } Thanks all. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For
Re: FileUploadField selection event
form input id=test type=file onchange= document.getElementById('secondBox').value = document.getElementById('test').value; /input input id=secondBox type=text / /form On Tue, Feb 9, 2010 at 3:22 AM, dpmihai dpmi...@yahoo.com wrote: What I really want is that after file selection automatically set the text of another TextField (inside my form) with a string derived from selected file name. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/FileUploadField-selection-event-tp27512780p27513776.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Anantha Kumaran
Re: Wicket Layout
Ernesto, The link to ODLabs' WiQuery layout demo (from our last London Wicket Event) showing WiQuery layout was mentioned on another thread [1] so I didn't repeat it here. Also note a subsequent post there stating the fact that you need to change the POM to point at 1.0 (not 1.0=m2) of WiQuery which might save you a bit of head-scratching. I think all this is for the general good and provides more options for Wicket developers (as long as all this stuff stays well out of the core!). On the other hand, if you like the way WiQuery does things, of course we can advance that further too, in a WiQuery Plugins project we have been talking about introducing for exactly this sort of thing. I know that Lionel has been in touch with you and I am I look forward to having a chat on Skype soon, thanks for sending me your details. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://old.nabble.com/RIA-solution-based-on-wicket-to27399876.html#a27399876 On 9 February 2010 05:18, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Lionel, I didn't know this existed:-( I look into the examples on http://www.wiquery.org/wiquery-examples-1.0/ before deciding to implement it myself on http://code.google.com/p/wijqgrid/source/browse/#svn/trunk/wijqgrid/src/main/java/com/jquery/layout Best, Ernesto On Tue, Feb 9, 2010 at 2:16 AM, Lionel Armanet lionel.arma...@gmail.comwrote: Hello, You can find an example of a jQuery layout plugin (this one: http://layout.jquery-dev.net/) in the wiQuery project. If you go visit wiQuery's google code (http://code.google.com/p/wiquery), you'd find under our svn (in /svn/examples/wiquery-presentation-examples) a taskboard application with a border layout plugin. Hope this helps, kinabalu wrote: might look at some of the integrations with jquery or yui. I believe both of those frameworks have something similar, and I'd guess the respective wicket projects working on integration have them, or could be added. i don't know enough about dojo though, sorry On Feb 7, 2010, at 10:09 PM, Josh Kamau wrote: Andrew ; How about the splitPanel ? and the accordion? On Mon, Feb 8, 2010 at 9:01 AM, Andrew Lombardi and...@mysticcoders.comwrote: it's definitely an involved layout ... but nothing here looks out of the question. tabbedpanel's for Inbox | Contacts the tree from wicket-extensions for the folder viewer the datatable from wicket-extensions for the lsit of messages there are modal windows, all available so yes, wicket should be able to support this. not sure about the dojo integration On Feb 7, 2010, at 9:42 PM, Josh Kamau wrote: Hi guys; I think wicket is the best java web framework out there. However , i really would like be to able to create a layout like this : http://demos.dojotoolkit.org/demos/mail/ Does the current dojo integration support this. Is it possible to create such a layout with vanilla wicket? regards. Josh To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. To our success! Mystic Coders, LLC | Code Magic | www.mysticcoders.com ANDREW LOMBARDI | and...@mysticcoders.com 2321 E 4th St. Ste C-128, Santa Ana CA 92705 ofc: 714-816-4488 fax: 714-782-6024 cell: 714-697-8046 linked-in: http://www.linkedin.com/in/andrewlombardi twitter: http://www.twitter.com/kinabalu Eco-Tip: Printing e-mails is usually a waste. This message is for the named person's use only. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. -- View this message in context: http://old.nabble.com/Wicket-Layout-tp27495561p27509045.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For
Re: How reRender a component from parent page?
The problem are in HomePage.java in the onClick... this don't reRender my componente in the header. Are you sure? The real problem seems that your itens label uses an implicit model based on the constructor-time value of getAmount(), and which is never changed. Look into using a model instead, e.g. a StringResourceModel with a substitution based on a PropertyModel that gets the amount from the cart. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How reRender a component from parent page?
Rangel, The is a common problem people encounter while they get their head aroung Wicket models. In your Header class, the label's data is only ever calculated once, on construction of the Header and is therefore is fixed. Try something like: final Label itens = new Label(itens, new PropertyModel(WicketSession.get(),cart.amount)); (I have retained your spelling of itens but I assume this should be items). If you want to format the resulting string (as per your apparent intention in your QuickStart), use a converter, probably best in your case by overriding the your label's getConverter method. The rest of your code looks OK. Does that make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 9 February 2010 14:50, Rangel Preis rangel...@gmail.com wrote: I make a quick start project (maven) to show my problem, if someone have time... The problem are in HomePage.java in the onClick... this don't reRender my componente in the header. Thanks. 2010/2/9 Rangel Preis rangel...@gmail.com: I try this again using only setOutputMarkupId without modelChanged and onModelChange, and don't work. I just setOutputMarkupId on my component and in the ajaxEvent i put: target.addComponent(getPage().get(header:counter)); header is a panel and counter is a Label in this panel. Thanks All. 2010/2/8 Rangel Preis rangel...@gmail.com: Thanks, Don but this don't work the value don't change. And I call setOutputMarkupId when i build it. and call it again later... Thanks All. 2010/2/8 Don Ferguson d...@rixty.com: I think setOutputMarkupId() should have been called earlier, in the MyTemplate constructor when the Header was constructed. Ajax processing needs the markup id to find the component you're changing, so setting it in onModelChanged() is too late. Also, I don't think you need the call to modelChanged() or to override onModelChanged. Changing the model object and adding the component to the target should be sufficient. -Don On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote: My template HTML html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head title wicket:id=title/title meta wicket:id=description name=description content=/ meta wicket:id=keywords name=keywords content=/ meta wicket:id=version name=version content=/ /head body a href=#irconteudo style=display: none;/a div wicket:id=header class=header/div !-- conteudo -- div id=conteudo table class=layout tr td wicket:id=col_esq class=col_esq/ td a name=irconteudo style=display: none;/a div wicket:id=feedback id=feedback/ wicket:child/ /td td class=col_dir /td /tr /table /div div wicket:id=footer class=footer/div /body /html Header.html wicket:panel div class=right div wicket:id=header_client class=client/div /div //Value that i want to change div class=conter a wicket:id=conterspan wicket:id=itens//a /div div class=left a wicket:id=header_home_linkdiv class=logo//a /div div wicket:id=header_search class=search/div /wicket:panel Thanks. 2010/2/5 Riyad Kalla rka...@gmail.com: What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this: |---| | HEADER | |---| | MENU | CONTENT | | | | | | | | | | |---|---| | FOOTER | |---| public class MyTemplate{ public MyTemplate() { super(); this.add(CSSPackageResource.getHeaderContribution(...); this.add(AbstractTemplatePage.FEEDBACK); this.addOrReplace(new Header()); this.add(new Menu()); this.add(new Footer()); . public class MyContetPage extends MyTemplate { public MyContetPage(final PageParameters _parameters) { add(new AjaxFallbackLinkVoid(rem) { �...@override public void
Re: How reRender a component from parent page?
Yes, it's make sense. I change to ptopertyModel and now thinks works. Thanks Cemal. 2010/2/9 Cemal Bayramoglu jweekend_for...@cabouge.com: Rangel, The is a common problem people encounter while they get their head aroung Wicket models. In your Header class, the label's data is only ever calculated once, on construction of the Header and is therefore is fixed. Try something like: final Label itens = new Label(itens, new PropertyModel(WicketSession.get(),cart.amount)); (I have retained your spelling of itens but I assume this should be items). If you want to format the resulting string (as per your apparent intention in your QuickStart), use a converter, probably best in your case by overriding the your label's getConverter method. The rest of your code looks OK. Does that make sense? Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 9 February 2010 14:50, Rangel Preis rangel...@gmail.com wrote: I make a quick start project (maven) to show my problem, if someone have time... The problem are in HomePage.java in the onClick... this don't reRender my componente in the header. Thanks. 2010/2/9 Rangel Preis rangel...@gmail.com: I try this again using only setOutputMarkupId without modelChanged and onModelChange, and don't work. I just setOutputMarkupId on my component and in the ajaxEvent i put: target.addComponent(getPage().get(header:counter)); header is a panel and counter is a Label in this panel. Thanks All. 2010/2/8 Rangel Preis rangel...@gmail.com: Thanks, Don but this don't work the value don't change. And I call setOutputMarkupId when i build it. and call it again later... Thanks All. 2010/2/8 Don Ferguson d...@rixty.com: I think setOutputMarkupId() should have been called earlier, in the MyTemplate constructor when the Header was constructed. Ajax processing needs the markup id to find the component you're changing, so setting it in onModelChanged() is too late. Also, I don't think you need the call to modelChanged() or to override onModelChanged. Changing the model object and adding the component to the target should be sufficient. -Don On Feb 8, 2010, at 2:16 AM, Rangel Preis wrote: My template HTML html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; head title wicket:id=title/title meta wicket:id=description name=description content=/ meta wicket:id=keywords name=keywords content=/ meta wicket:id=version name=version content=/ /head body a href=#irconteudo style=display: none;/a div wicket:id=header class=header/div !-- conteudo -- div id=conteudo table class=layout tr td wicket:id=col_esq class=col_esq/ td a name=irconteudo style=display: none;/a div wicket:id=feedback id=feedback/ wicket:child/ /td td class=col_dir /td /tr /table /div div wicket:id=footer class=footer/div /body /html Header.html wicket:panel div class=right div wicket:id=header_client class=client/div /div //Value that i want to change div class=conter a wicket:id=conterspan wicket:id=itens//a /div div class=left a wicket:id=header_home_linkdiv class=logo//a /div div wicket:id=header_search class=search/div /wicket:panel Thanks. 2010/2/5 Riyad Kalla rka...@gmail.com: What do the tasty HTML bits look like? (wicket:ids and what not) On Fri, Feb 5, 2010 at 12:50 PM, Rangel Preis rangel...@gmail.com wrote: How can I use Ajax to change value from a parent page in my layout. I try to change values in header using a action from content page. I have this: |---| | HEADER | |---| | MENU | CONTENT | | | | | | | | | | |---|---| | FOOTER | |---| public class MyTemplate{ public MyTemplate() { super(); this.add(CSSPackageResource.getHeaderContribution(...); this.add(AbstractTemplatePage.FEEDBACK); this.addOrReplace(new Header()); this.add(new Menu()); this.add(new Footer()); . public class
Re: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode
feel free to open a jira issue attaching a quickstart that reproduces the problem. -igor On Tue, Feb 9, 2010 at 12:37 AM, Andreas Lüdtke sam.lued...@t-online.de wrote: Can someone please confirm if this is a bug? If yes, I will create a JIRA issue if I'm allowed to do that. Thanks Andreas -Original Message- From: Andreas Lüdtke [mailto:sam.lued...@t-online.de] Sent: Saturday, February 06, 2010 7:43 PM To: users@wicket.apache.org Subject: AbstractAjaxTimerBehavior#onTimer() doesn't work in deployment mode Hi, I'm using wicket 1.4.6 and saw that the onTimer method of an AbstractAjaxTimerBehavior object isn't called, when I switch vom development mode to deployment mode. This happens also with wicket 1.4.5. Is there something I need to do to get it working in deployment mode? In addition, after calling AbstractAjaxTimerBehavior.stop() the onTimer method is still called (of course only in development mode). ;-) If someone finds the time to fix this, I would be glad if this person could implement a restart() method to start the timer after it has been stopped. Andreas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
@SpringBean injection expensive - a bug?
Wicket's SpringWebApplication is deprecated and the javadoc advocates using @SpringBean to inject dependencies at component level. However, that appears to be an expensive proposition: I have a listView component that renders a (new) ExternalLink subclass per item. That subclass uses a service (a singleton spring bean) injected via @SpringBean like so: @SpringBean private MyService service; YourKit tells me that when the page is being rendered, 47%(!) of cpu time is being spent constructing the subclass, specifically, repeatedly calling: org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory, Class) The above is getting called with vigor from SpringBeanLocator.hashCode() -- getBeanName() -- getBeanNameOfClass(). HashCode() is likely getting called most often by AnnotProxyFieldValueFactory.cache during look-ups - which I am guessing isn't intentional. Looks like a bug, no? If the above is a bug indeed, is the workaround to always specify a 'name' with @SpringBean? Thoughts? -nikita +-++-+ | Name | Time (ms) | Own Time (ms) | +-++-+ | +---com.castanealabs.gui.component.search.CategoryDataViewPanel$1.populateItem(Item) | 5,430 100 % | 50 | | | | | | | +---com.castanealabs.gui.component.search.ProductImageCell.init(String, SiteId, IModel) | 2,680 49 % | 20 | | | | | | | | | +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.init(String, SiteId, IModel) | 2,660 49 % | 0 | | | | | | | | | +---com.castanealabs.gui.embedded.ExternalSiteProductInfoLink.init(String, SiteId, IModel, IModel) | 2,660 49 % | 0 | | | | | | | | | +---com.castanealabs.gui.embedded.TargetedExternalLink.init(String, IModel, IModel, String) | 2,570 47 % | 0 | | | | | | | | | | | +---org.apache.wicket.markup.html.link.ExternalLink.init(String, IModel, IModel) | 2,570 47 % | 0 | | | | | | | | | | | +---org.springframework.beans.factory.BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ListableBeanFactory, Class) | 2,570 47 % | 0 | | | | | | | | | | | +---org.springframework.context.support.AbstractApplicationContext.getBeanNamesForType(Class) | 2,570 47 % | 0 | | | | | | | | | | | +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class) | 2,570 47 % | 10 | | | | | | | | | | | +---org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(Class, boolean, boolean) | 2,560 47 % | 0 | | | | | | | | | | | +---org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(String, RootBeanDefinition) | 2,460 45 % | 10 | | | | | | | | | | | | | +---org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(String, RootBeanDefinition, Class[]) | 2,420 45 % | 100 | | | | | | | | | | | | | | | +---org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(String, RootBeanDefinition, Class[]) | 1,750 32 % | 0 | | | | | | | | | | | | | | | | |
Re: [announce] better look modern css for wicket examples contest
Thanks! (Don't expect any activity for a while) 2010/2/9 nino martinez wael nino.martinez.w...@gmail.com you've been added. 2010/2/8 Peter Jones peteorpe...@gmail.com My username is superpaj. I think I'm following you. I'll holler if I have any questions. Thanks Pete On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: as long as whatever it is you do can be applied as a patch... -igor On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: just post your sourceforge username... I'll give you access to store things in svn.. So you checkout wicketexamples from apache.. Disconnect it apply your design stuff, and can store it at sourceforge in sandbox under your sf name. Okay? 2010/2/8 Peter Jones peteorpe...@gmail.com Hi, I'm excited by this idea for two reasons: 1) it would be a good design exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect my wife would look hot in a Wicket T-shirt! I'm not promising anything - we've got a big release mid-March (yes, we're using Wicket) - but I'd like to get commit rights just in case; what do I need to do? Thanks, Pete On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I agree, and the contest are about Wicket Examples not the quickstart. 2010/2/8 Martijn Dashorst martijn.dasho...@gmail.com I don't like to add more bells and whistles to the quickstart. If we add graphics, JS and other stuff, you'd have to remove it for every project. I like the fact that I can grab the quickstart and just start hacking without having to strip it from superfluous muck. I do like the changes Kinabalu proposed though: simple, low profile and removed easily enough. Martijn On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Design as in graphical. While I do think the changes you made are equally important. The graphical perspective was what begun the contest. It would'nt certainly not hurt that the quickstart or the examples looked more slick. However any out come are a win-win. regards Nino 2010/2/8 Andrew Lombardi and...@mysticcoders.com Design as in programming? or design as in graphical? I think the intent I gathered from mbrictson was to put a semi-nicer look on a plain page, and provide useful links for new folks. Things like the examples which should be perused a lot while first learning Wicket. It's a quickstart, it should take on a tone of simplicity. Just like the Django quickstart, which doesn't aim to do anything other than shove you in the right direction On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote: Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to
Changes of html-files are not directly available - need to re-deploy
First of all: I asked this question already at http://www.coderanch.com/t/481846/Application-Frameworks/Application-Frameworks/Wicket-Changes-html-files-are where no one could help me. To my problem: I have here a little bug which is completly weird in my opinion. Usually when you are changing a html-file, you just need to save it and it is directly available in the browser after a refresh. But this behaviour is not working in my environment. I always have to deploy the complete project. It is not a problem of my project. I verified this by trying the exactly same project and also the quickstart from the official Wicket site on a different machine where it works as expected. So it must be somewhere in my configuration but I cannot figured it out where / what / why. Machine one, where it is not working runs on Ubuntu 9.10, IDE is Netbeans 6.8 with Maven 2.2.1, server is a Tomcat 6.0.24 (also tried Tomcat 6.0.18 and also Jetty). Machine two, where it is working runs on Windows XP, IDE is Netbeans 6.7.1 with Maven 2.2.1, server is a Tomcat 6.0.18. I am definitely running the development mode (verified this also by calling Application.get().getConfigurationType()). I tried the Wicket versions 1.4.4, 1.4.5 and 1.4.6. All the same. On the Ubuntu-System it's not working. I also tried already to start Netbeans as root-user on the Linux-system, just in case some access rights on my file-system are not sufficient. Without any change in the result. Only thing I found while searching was http://markmail.org/message/fqpioxh7dir67ttj#query:wicket%20html%20refresh+page:1+mid:ca74uawyqzjyj5v5+state:results where a mismatched dependency was the problem. But this does not seem to be my problem. In JIRA I couldn't find anything related. Anyone else encountered this problem? And even if not, I'm also open for blue shots what I might try because I have no clue what might cause this behaviour. Or anyone knows in which class the code for the reloading resides? I haven't found it yet, after a quick glance at the wicket sources. Help here is really appreciated. Thanks in advance for any comments. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Changes of html-files are not directly available - need to re-deploy
Joachim, Troubleshooting redeployment issues can be maddening. The *very first* thing you have to rule out is that the file is actually getting placed on disk in the deployed location. I don't know how NetBeans handles it's deployments, if it points Tomcat at the internal project and runs in place or if it actually copies out the project contents on-disk to some deployed location. Regardless, find the deployed location. Go change your HTML, save it, then using a file explorer, go to the deployed location and manually open the file that is in the deployed location (e.g. using Gedit on Ubuntu) and confirm that those changes are in that HTML. If they are, then the issue would be with Wicket polling and seeing the changes and reloading them. If you don't see the changes, then the issue is with NetBeans either not placing the files in the right location or not being *Able to* place them -- i.e. a permission problem (That running as root should have addressed). NOTE: 1 last thing, I don't know how you are running Tomcat, but if you are running it externally make sure it's running as the same user as NetBeans. Othertiwse you could run into a silly situation of NetBeans writing out files as root and Tomcat trying to read/load the deployed files but not having read-perms on those root-owned files. Just want to avoid weirdness. -R On Tue, Feb 9, 2010 at 1:33 PM, Joachim Rohde mailingl...@joachimrohde.com wrote: First of all: I asked this question already at http://www.coderanch.com/t/481846/Application-Frameworks/Application-Frameworks/Wicket-Changes-html-files-are where no one could help me. To my problem: I have here a little bug which is completly weird in my opinion. Usually when you are changing a html-file, you just need to save it and it is directly available in the browser after a refresh. But this behaviour is not working in my environment. I always have to deploy the complete project. It is not a problem of my project. I verified this by trying the exactly same project and also the quickstart from the official Wicket site on a different machine where it works as expected. So it must be somewhere in my configuration but I cannot figured it out where / what / why. Machine one, where it is not working runs on Ubuntu 9.10, IDE is Netbeans 6.8 with Maven 2.2.1, server is a Tomcat 6.0.24 (also tried Tomcat 6.0.18 and also Jetty). Machine two, where it is working runs on Windows XP, IDE is Netbeans 6.7.1 with Maven 2.2.1, server is a Tomcat 6.0.18. I am definitely running the development mode (verified this also by calling Application.get().getConfigurationType()). I tried the Wicket versions 1.4.4, 1.4.5 and 1.4.6. All the same. On the Ubuntu-System it's not working. I also tried already to start Netbeans as root-user on the Linux-system, just in case some access rights on my file-system are not sufficient. Without any change in the result. Only thing I found while searching was http://markmail.org/message/fqpioxh7dir67ttj#query:wicket%20html%20refresh+page:1+mid:ca74uawyqzjyj5v5+state:results where a mismatched dependency was the problem. But this does not seem to be my problem. In JIRA I couldn't find anything related. Anyone else encountered this problem? And even if not, I'm also open for blue shots what I might try because I have no clue what might cause this behaviour. Or anyone knows in which class the code for the reloading resides? I haven't found it yet, after a quick glance at the wicket sources. Help here is really appreciated. Thanks in advance for any comments. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket 1.2.6 - multi-site reusable components
Hello, I have a pair of wicket 1.2.6 sites, I'm about to build a third. They all share look/feel/auth source. Before making #3 I decided to put AppBasePage and my Auth routines into their own maven projects. The QuickStartSession, QuickStartApplication, and user objects are different though. I'm looking for a good write up on my problem. My current working assumption is that I'll have to re-write the QuickStartSession, QuickStartApplication, and User objects, to include in my new Application Base and then subclass each of those classes inside of the sites to add the customized functionality that each site requires. I'm not sure how to handle the UserDAO/UserDLO (Data Access Object / Data List Object) they are all 3 separate objects but seem somewhat linked and seeing as DAO is going to be very site specific I'm not sure how to abstract that. Thank you very much for any help, Tom Burton Confidentiality Notice: This e-mail message including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
RE: Form#anyComponentError change in 1.4 breaks validation
Created JIRA issue w/quickstart (includes junit test): https://issues.apache.org/jira/browse/WICKET-2734 RUSSELL E. MORRISEY Programmer Analyst Professional Mission Solutions Engineering, LLC | russell.morri...@missionse.com | www.missionse.com 304 West Route 38, Moorestown, NJ 08057 -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Monday, February 08, 2010 10:00 PM To: users@wicket.apache.org Subject: Re: Form#anyComponentError change in 1.4 breaks validation yes, that would definately help, as well as a testcase. -igor On Mon, Feb 8, 2010 at 6:22 PM, Russell Morrisey russell.morri...@missionse.com wrote: Thanks Igor, It seems like maybe WICKET-2026 is also related: http://issues.apache.org/jira/browse/WICKET-2026 This changes how Form#anyFormComponentError handles border components, it looks like, but also switches us to a FormComponent visitor. Will it be helpful if I create a new JIRA issue? RUSSELL E. MORRISEY Programmer Analyst Professional Mission Solutions Engineering, LLC | russell.morri...@missionse.com | www.missionse.com 304 West Route 38, Moorestown, NJ 08057 -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Monday, February 08, 2010 1:20 PM To: users@wicket.apache.org Cc: Juergen Donnerstag Subject: Re: Form#anyComponentError change in 1.4 breaks validation Juergen, do you remember what the problem was taking out the instanceof checks for Form and FormComponent? i dont see why they were added or why removing them would cause problems... seems some changes are related to WICKET-2202 cheers -igor On Mon, Feb 8, 2010 at 9:14 AM, Russell Morrisey russell.morri...@missionse.com wrote: We are in the process of upgrading our application from wicket 1.3 to 1.4.5. There were a lot of minor changes due to the generics-related code changes, but for the most part the upgrade has been smooth. One big problem we've recently come across: Form#anyComponentError was changed in this version. This is a breaking change for our application, with no simple workaround provided. Please consider rolling it back to the previous behavior. In the previous version of wicket, all types of components in the Form's child hierarchy were checked for component.hasErrorMessage() during form validation; any error registered against a component would cause a validation failure. In the new version, only instances of Form or FormComponent are checked; errors registered against other components are ignored. Example use case: We have a customized inmethod DataGrid (excellent component!) which displays line items from a project estimate (ROM details). Each line item is identified by a number of reference fields, such as the Module which will be affected by the change, and the Paragraph of the spec which specifies the requirements for the change. The grid has a validation which ensures that a new line item isn't a duplicate (i.e., doesn't have the same Module/Paragraph/etc. combination). It seems to make the most sense to register the error against the DataGrid row, since the row represents the line item that is a duplicate; but the new Form validation logic ignores this change and saves the duplicate into the database. We want the row to detect when it has a validation error registered, and show a new CSS class (marking the row as invalid by making it orange) when we detect the duplicate; but it doesn't make sense to ascribe the validation error to a particular FormComponent on the row. I don't think the hierarchy of the datagrid permits us to make the row itself a Form without extensive changes. Please let me know what you guys think. I can resend this to the dev mailing list if it's more helpful, or put up a JIRA issue. RUSSELL E. MORRISEY Programmer Analyst Professional Mission Solutions Engineering, LLC | russell.morri...@missionse.com | www.missionse.comhttp://www.missionse.com/ 304 West Route 38, Moorestown, NJ 08057 This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. - To
[1.4.6] inconsistent setResponsePage behavior in AjaxButton , with 1.4.5
Suppose inside a BookmarkablePage which is mounted to CurrentPage , there is an AjaxButton , when clicked , it will setResponsePage(CurrentPage.class , pps) If a user is browsing http://foo.bar/app/CurrentPage/key/value , and submit the AjaxButton , In 1.4.5 , he will be redirect to http://foo.bar/app/CurrentPage/key/value , it is correct But in 1.4.6 , he will be redirect to http://foo.bar/app/CurrentPage/key/CurrentPage/key/value , it is WRONG I think it is related to wicket2312 patch.
Re: [1.4.6] inconsistent setResponsePage behavior in AjaxButton , with 1.4.5
I've submitted it to JIRA https://issues.apache.org/jira/browse/WICKET-2735 https://issues.apache.org/jira/browse/WICKET-2735 2010/2/10 smallufo small...@gmail.com Suppose inside a BookmarkablePage which is mounted to CurrentPage , there is an AjaxButton , when clicked , it will setResponsePage(CurrentPage.class , pps) If a user is browsing http://foo.bar/app/CurrentPage/key/value , and submit the AjaxButton , In 1.4.5 , he will be redirect to http://foo.bar/app/CurrentPage/key/value , it is correct But in 1.4.6 , he will be redirect to http://foo.bar/app/CurrentPage/key/CurrentPage/key/value , it is WRONG I think it is related to wicket2312 patch.
Re: [1.4.6] inconsistent setResponsePage behavior in AjaxButton , with 1.4.5
i think it's issue 2717 in 1.4.6 which has been fixed,you can confirm the correct behaviour in 1.4.x. On Wed, Feb 10, 2010 at 10:19 AM, smallufo small...@gmail.com wrote: Suppose inside a BookmarkablePage which is mounted to CurrentPage , there is an AjaxButton , when clicked , it will setResponsePage(CurrentPage.class , pps) If a user is browsing http://foo.bar/app/CurrentPage/key/value , and submit the AjaxButton , In 1.4.5 , he will be redirect to http://foo.bar/app/CurrentPage/key/value , it is correct But in 1.4.6 , he will be redirect to http://foo.bar/app/CurrentPage/key/CurrentPage/key/value , it is WRONG I think it is related to wicket2312 patch. -- regards, Vineet Semwal
Re: [announce] better look modern css for wicket examples contest
No problem, I just set the deadline to have one.. 2010/2/9 Peter Jones peteorpe...@gmail.com Thanks! (Don't expect any activity for a while) 2010/2/9 nino martinez wael nino.martinez.w...@gmail.com you've been added. 2010/2/8 Peter Jones peteorpe...@gmail.com My username is superpaj. I think I'm following you. I'll holler if I have any questions. Thanks Pete On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: as long as whatever it is you do can be applied as a patch... -igor On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: just post your sourceforge username... I'll give you access to store things in svn.. So you checkout wicketexamples from apache.. Disconnect it apply your design stuff, and can store it at sourceforge in sandbox under your sf name. Okay? 2010/2/8 Peter Jones peteorpe...@gmail.com Hi, I'm excited by this idea for two reasons: 1) it would be a good design exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect my wife would look hot in a Wicket T-shirt! I'm not promising anything - we've got a big release mid-March (yes, we're using Wicket) - but I'd like to get commit rights just in case; what do I need to do? Thanks, Pete On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I agree, and the contest are about Wicket Examples not the quickstart. 2010/2/8 Martijn Dashorst martijn.dasho...@gmail.com I don't like to add more bells and whistles to the quickstart. If we add graphics, JS and other stuff, you'd have to remove it for every project. I like the fact that I can grab the quickstart and just start hacking without having to strip it from superfluous muck. I do like the changes Kinabalu proposed though: simple, low profile and removed easily enough. Martijn On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Design as in graphical. While I do think the changes you made are equally important. The graphical perspective was what begun the contest. It would'nt certainly not hurt that the quickstart or the examples looked more slick. However any out come are a win-win. regards Nino 2010/2/8 Andrew Lombardi and...@mysticcoders.com Design as in programming? or design as in graphical? I think the intent I gathered from mbrictson was to put a semi-nicer look on a plain page, and provide useful links for new folks. Things like the examples which should be perused a lot while first learning Wicket. It's a quickstart, it should take on a tone of simplicity. Just like the Django quickstart, which doesn't aim to do anything other than shove you in the right direction On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote: Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In
Listening key pressings on server side
Hello, I'd like to know whether there is a way to listen certain key pressings (key a,,1,...) on server side in wicket. I've tried .html: body wicket:id =body/body .java body = new WebMarkupContainer(body); body.add(new AjaxEventBehavior(onkeypress){ protected void onEvent(final AjaxRequestTarget target) { LOG.debug(keypress); } }); Problem here is that event is generated only for onclick event, in case of onkeypress, nothing happens. And even if I would be able to catch the onkeypress event, I'd still have to figure out, which key was pressed. And also I've tried wicket-contrib-input-events add(new InputBehavior(new KeyType[] { KeyType.Left }, EventType.click)); add(new AjaxEventBehavior(onclick){ @Override protected void onEvent(AjaxRequestTarget target) { LOG.debug(Clicked left); } }); But problem there is that EventType.onkeypress is not supported. Examples I made on main page, but eventually I would need to listen key pressings on modalwindow's panel, which is placed on a page. Thanks in advance, Roland
Re: [announce] better look modern css for wicket examples contest
Can you add me as well, I'm interested in participating.. My sf.net username: vijaykiran ./Vijay On 10-Feb-2010, at 7:52 AM, nino martinez wael wrote: No problem, I just set the deadline to have one.. 2010/2/9 Peter Jones peteorpe...@gmail.com Thanks! (Don't expect any activity for a while) 2010/2/9 nino martinez wael nino.martinez.w...@gmail.com you've been added. 2010/2/8 Peter Jones peteorpe...@gmail.com My username is superpaj. I think I'm following you. I'll holler if I have any questions. Thanks Pete On Mon, Feb 8, 2010 at 12:50 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: as long as whatever it is you do can be applied as a patch... -igor On Mon, Feb 8, 2010 at 10:34 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: just post your sourceforge username... I'll give you access to store things in svn.. So you checkout wicketexamples from apache.. Disconnect it apply your design stuff, and can store it at sourceforge in sandbox under your sf name. Okay? 2010/2/8 Peter Jones peteorpe...@gmail.com Hi, I'm excited by this idea for two reasons: 1) it would be a good design exercise and 2) it might help out the Wicket cause... Oh, and 3) I suspect my wife would look hot in a Wicket T-shirt! I'm not promising anything - we've got a big release mid-March (yes, we're using Wicket) - but I'd like to get commit rights just in case; what do I need to do? Thanks, Pete On Mon, Feb 8, 2010 at 4:44 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I agree, and the contest are about Wicket Examples not the quickstart. 2010/2/8 Martijn Dashorst martijn.dasho...@gmail.com I don't like to add more bells and whistles to the quickstart. If we add graphics, JS and other stuff, you'd have to remove it for every project. I like the fact that I can grab the quickstart and just start hacking without having to strip it from superfluous muck. I do like the changes Kinabalu proposed though: simple, low profile and removed easily enough. Martijn On Mon, Feb 8, 2010 at 11:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Design as in graphical. While I do think the changes you made are equally important. The graphical perspective was what begun the contest. It would'nt certainly not hurt that the quickstart or the examples looked more slick. However any out come are a win-win. regards Nino 2010/2/8 Andrew Lombardi and...@mysticcoders.com Design as in programming? or design as in graphical? I think the intent I gathered from mbrictson was to put a semi-nicer look on a plain page, and provide useful links for new folks. Things like the examples which should be perused a lot while first learning Wicket. It's a quickstart, it should take on a tone of simplicity. Just like the Django quickstart, which doesn't aim to do anything other than shove you in the right direction On Feb 7, 2010, at 11:23 PM, nino martinez wael wrote: Yeah I know. But some would probably use it as a starting point in design as well. 2010/2/7 Andrew Lombardi and...@mysticcoders.com This isn't a modification for all the wicket examples, this is just for the maven archetype, the examples are a much larger undertaking. Focus here was to make it simple, and provide some references that people could find useful. There's no reason to extrapolate out and design a crazy quickstart page because it will be deleted pretty quickly (we hope) On Feb 7, 2010, at 1:25 AM, nino martinez wael wrote: Great. We need more people though to make it a real contest! :) And more focus on looks. 2010/2/6 Andrew Lombardi and...@mysticcoders.com I agree. I had a few moments tonight and put this together. It includes the standard wicket label message showing that Wicket is parsing properly. It also includes links to: examples, javadoc, books about wicket, and blogs. and will show the version you used to install from archetype. Thoughts? You can click through on the bug and see an attached screenshot https://issues.apache.org/jira/browse/WICKET-2724 On Feb 2, 2010, at 11:26 AM, mbrictson wrote: In addition to the examples, I think it would be nice to apply a pleasant CSS skin to the Wicket quickstart archetype. Instead of an un-styled QuickStart message, how about a nicely formatted short intro with links to tutorials, reference documentation, etc.? As an example, I like the it worked! welcome page that Django provides: http://i46.tinypic.com/2q025g9.jpg nino martinez wael wrote: Hi Someone mentioned that we could have a better look feel for wicket, since there are no designers in the core team. I proposed a contest, to make the coolest slickest css for wicket. So please feel free to apply. Requirements: your css should be compatible with the basic
removing validators
In total I have 4 DropDownChoices: I have a DropDownChoice which allows a user to select whether they are an adult or minor. I have another FormComponentPanel with 3 DropDownChoices representing their birthdate (year, month, day) with a setConvertedValue set to how old they are. I have 2 validators (MinimumValidator(18) for adults, and MaximumValidator(17) for minors) that need to be added dynamically based on the DropDownChoice (adult vs. minor). So my code is dynamically doing FormComponentPanel.add(---min or max validator--). However, if a user selects minor from the first dropdown, and the other dropdowns with a birthday that puts them at, say age 30.. I will get a form validation error - which is good since the Maximum validator kicked in for minors. But if I change the dropdown from minor to adult, the code does a removeAll() (which should remove all children from FormComponentPanel), readds the drop down, and then adds the MinimumValidator(18). At this point, it seems like both validators are still in effect - so this is: 1. Clunky 2. Doesn't work (the minimum validator seems to still be there even after a removeAll, which makes ANY birthday selection at this point invalid since both validators are in effect) Any ideas on how to remove validators or best approach this? The crux of the problem is I want to switch the Component's validator from one, to another. Thanks, Tony