Re: Adding attribute to body tag

2009-06-24 Thread Martin Funk
Am 24.06.2009 um 06:54 schrieb John: Hi, I need to add a class attribute to the body tag but this: component.add(new AttributeAppender(class, true, Model.of(yui- skin-sam), )); ... and this ... component.add(new BodyTagAttributeModifier(class, true, Model.of(yui-skin-sam),

Re: Apply Decorator Pattern to Panels

2009-06-24 Thread ptrash
Hi, actually I hoped that there was a general way. Because the Decorator is not designed for special cases. My actual problem is that I have a Page which contains a panel and some simple stuff: Table, Text etc. Now I want to wrap (decorate) this page with a special menu. This menu is used by

Re: Any examples of a multiselect box in Wicket

2009-06-24 Thread Mark Clarke
thanks Igor, that helped. Igor Vaynberg wrote: ListMultipleChoice or Select/SelectOption these both allow you to select multiple items from the list, examples to both can be found in component reference. -igor On Tue, Jun 23, 2009 at 1:17 PM, m...@jumpingbean.co.za wrote: Hi all, Ok

Re: ModalWindow and IE8 question

2009-06-24 Thread Per Lundholm
A reset button! Should we laugh or cry? :-/ /Per On Tue, Jun 23, 2009 at 10:26 PM, Flaviusflav...@silverlion.com wrote: I cleared all cache and it still wasn't prompting the modal window. What I did do was go and reset IE8 by going to tools - Internet Options - Advanced tab and pressing the

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Vasu Srinivasan
Ive got a very similar thing working. I think you may have to return the highlight value dynamically. Try this alternative: item.add(new AttributeModifier(class, true, new AbstractReadOnlyModel() { @Override public Object getObject() { return highlight } }); On Tue, Jun 23, 2009 at

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Marcin Palka
Hi all, Did anything bad happen to the RC5? I mean I cannot see any anouncement about the release on the wicket.apache.org. Was the release been canceled or delayed? cheers, Marcin -- View this message in context:

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Johan Compagner
you do reply on an email with the subject [announce] Wicket 1.4-RC5 released so what bad could be happend here? I guess the website isnt updated yet. On Wed, Jun 24, 2009 at 12:55, Marcin Palka marcin.pa...@gmail.com wrote: Hi all, Did anything bad happen to the RC5? I mean I cannot see

Border vs. Panel Markup Inheritance

2009-06-24 Thread Eyal Golan
I'll be glad to get your opinion. Our application needs to be with specific UI standards. We've got the CSSs and UI design document on how our pages should look. We have something that we call 'sub-section'. Basically it's a section in the page that has a nice title with colors and such. We have

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Azzeddine Daddah
Thanks Vasu for your replay. I've tried your suggestion, but didn't work. This is what I get in the Ajax debuger when I click a certain item: ... li a id=topicLink31 href=# onclick=var

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Vasu Srinivasan
I see you are trying to add the class modifier to item which is ListItem and thats not a HTML component. In my case, I was adding it to the link or label. I think you may have to do something like item.add(new Label(...).add(new AttributeModifier(class, new AbstractReadOnlyModel() ... etc. On

RE: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Jeremy Thomerson
I did update the site - not sure why it hasn't appeared. Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: Johan Compagner jcompag...@gmail.com Sent: Wednesday, June 24, 2009 6:07 AM To: users@wicket.apache.org Subject: Re: [announce]

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Azzeddine Daddah
Thanks again Vasu, I've tried your solution but it does not work yet. Below my code: public TestPage() { final WebMarkupContainer container = new WebMarkupContainer(container); container.setOutputMarkupId(true); container.add(new ListViewCategory(categories,

Re: Updating a Dynamic Image with AJAX (and JFreeChart)

2009-06-24 Thread nickponico
I resume an old conversation, but i've a similar problem. I have exactly same situation : a dynamic image generated at runtime, with a non caching image i can refresh it easily. It all works on my pc (and my jboss). But when I upload this on the server it doesn't work... i think that it could

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Martijn Dashorst
listview.setReuseItems(true) Martijn On Wed, Jun 24, 2009 at 5:03 PM, Azzeddine Daddahwaarhei...@gmail.com wrote: Thanks again Vasu, I've tried your solution but it does not work yet. Below my code: public TestPage() {        final WebMarkupContainer container = new

Re: AttributeModifier not added to a ListView item via an AjaxLink

2009-06-24 Thread Martijn Dashorst
or *always* add the attribute modifier and only output the class value when needed. Martijn On Wed, Jun 24, 2009 at 5:13 PM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: listview.setReuseItems(true) Martijn On Wed, Jun 24, 2009 at 5:03 PM, Azzeddine Daddahwaarhei...@gmail.com wrote:

Re: Getting a JS confirmation when uploading via Ajax

2009-06-24 Thread Michael Sparer
I hope you're aware of the fact that File transfer by means of ajax won't work and you're using something like an iframe. to get rid of the confirmation, add the following: add(new HeaderContributor(new IHeaderContributor() { private static final long

Re: ModalWindow and IE8 question

2009-06-24 Thread Nicolas Melendez
And if the reset button doesn't work, please click the Format C: button :P On Wed, Jun 24, 2009 at 9:37 AM, Per Lundholm per.lundh...@gmail.comwrote: A reset button! Should we laugh or cry? :-/ /Per On Tue, Jun 23, 2009 at 10:26 PM, Flaviusflav...@silverlion.com wrote: I cleared all

Wicket Training - Summer Schedule (London Amsterdam)

2009-06-24 Thread jWeekend
Our summer schedule for public Apache Wicket training courses [1] is set as follows: London July 2,3 July 13,14 July 30,31 August 6,7 August 8,9 (weekend) September 1,2 Amsterdam (delivered by our training partners in The Netherlands, JTeam) July 8,9 September 28,29

Re: ModalWindow and IE8 question

2009-06-24 Thread Peter Ertl
launch linux from a bootable disk and # cp /dev/zero /dev/hba Am 24.06.2009 um 17:46 schrieb Nicolas Melendez: And if the reset button doesn't work, please click the Format C: button :P On Wed, Jun 24, 2009 at 9:37 AM, Per Lundholm per.lundh...@gmail.comwrote: A reset button! Should

guice-injection on page vs. components

2009-06-24 Thread Aaron Dixon
Hello, all - Guice/Wicket integration is excellent, but doesn't seem to work properly when I use @Inject-ed services on my *page* classes. It only seems to work when I inject services on components of my pages. I get WicketNotSerializableExceptions for services that I inject on my page class

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Jeremy Thomerson
Any committers know why my updates haven't appeared? I was in a hurry - but my updates are shown within Confluence: http://cwiki.apache.org/confluence/pages/recentlyupdated.action?key=WICKETxSITE Was there some final step I forgot? -- Jeremy Thomerson http://www.wickettraining.com On Wed,

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Igor Vaynberg
as far as i know there is a sync that happens every couple of hours, so nothing else to do but edit the wiki page and wait. martijn may be able to shed more light on the issue. -igor On Wed, Jun 24, 2009 at 9:49 AM, Jeremy Thomersonjer...@wickettraining.com wrote: Any committers know why my

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Jeremy Thomerson
The sync must not be working. I think there is a page on apache's wiki somewhere that says how it runs. We should look into that. I can't today. You can download it from the mirrors (but the links on the site to the mirrors aren't working): http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc5

Simple dynamic change of css class?

2009-06-24 Thread Carri Norton
Hello, I have not found a simple way to do what I'm trying to do and I'm hoping someone here can help. I'm sort of new to wicket... Basically I would like to have a containing div whose class changes based on where the class lives. So I have a HeaderPanel class and I want it to draw differently

Simple Custom Wizard tutorial

2009-06-24 Thread John Armstrong
Awhile back I had some trouble getting totally custom Wizard markup out. Yes, I agree, its very simple but it still confused me for a bit. After posting to the list I had a few folks ping me curious about what I discovered so I wrote up a quick tutorial that illustrates how to customize the major

validation for select

2009-06-24 Thread tubin gen
I have a dropdown choice with values from enum . In form validation if the selected value from list is monetarty , then amount field also needs value , now my problem is how would I get the selected value in the validator object code add(new

Re: guice-injection on page vs. components

2009-06-24 Thread Luther Baker
For what it's worth ... I use Guice injection across the entire codebase. Pages get Services Services get Daos Daos get connections ... etc I even inject utility classes as needed and can't say I've had any problems. -Luther On Wed, Jun 24, 2009 at 11:38 AM, Aaron Dixon atdi...@gmail.com

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Martijn Dashorst
I've exported the whole space. I think infra might be doing some stuff. Confluence hasn't been updated in 3 years or so. They had to re-implement the export plugin and upgrade the whole bunch. Perhaps they are migrating stuff... I dunno Martijn On Wed, Jun 24, 2009 at 6:59 PM, Jeremy

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Jeremy Thomerson
How long does that take to go into effect? It's not out there yet. Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jun 24, 2009 at 2:42 PM, Martijn Dashorstmartijn.dasho...@gmail.com wrote: I've exported the whole space. I think infra might be doing some stuff.

Re: [announce] Wicket 1.4-RC5 released

2009-06-24 Thread Martijn Dashorst
couple of hours On Wed, Jun 24, 2009 at 10:24 PM, Jeremy Thomersonjer...@wickettraining.com wrote: How long does that take to go into effect?  It's not out there yet. Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jun 24, 2009 at 2:42 PM, Martijn

CompoundPropertyModel and nested DataView

2009-06-24 Thread Hubbard, Bobby
I am a Wicket newbie and am currently struggling with CompoundPropertyModel. I have found a lot on the list about CompoundPropertyModel but not regarding this specific issue. I am building a shopping cart. I have placed the cart's form inside a panel and the cart items (via DataView) are inside

Creating a pdf using iText of JFreeChart

2009-06-24 Thread Patrick Fong
Hi I¹m stuck at creating pdfs of my JFreeCharts using iText. I want to create a pdf of my JFreeChart which is encapsulated using wicket¹s Image (http://cwiki.apache.org/WICKET/jfreechart-and-wicket-example.html). There are the following links which I¹ve tried to use for my purpose *

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
Martin Funk-3 wrote: not to my knowledge it works in trunk just like that. I have trunk and still cannot add an attribute to the body tag. In my page constructor I have add(new BodyTagAttributeModifier(class, Model.of(johniscool), this)); but the attribute

Re: Adding attribute to body tag

2009-06-24 Thread John Patterson
I can see what I was doing wrong now. I simply needed to add a wicket:id attribute to the body and create a webmarkup container for the body tag. For some unknown reason I assumed the body tag was already attached to the Page. JD -- View this message in context:

Html mail with WicketTester

2009-06-24 Thread Mathias Nilsson
Hi, I'm trying to generate a wicket page in a thread using spring ScheduledTimerTask Every 10th second a timertask checks new mail and sends them. My problem is that when using the WicketTester class the @SpringBean does not work. I have tried and googled it but haven't found any good answers. I

Re: Html mail with WicketTester

2009-06-24 Thread Mathias Nilsson
I must add I have managed to get it to work by loading the applicationContext but that initiates hibernate mapping etc and I do not want to do that every 10th second UploadApplication webApp = new UploadApplication(){ //note in this case the application

Re: Html mail with WicketTester

2009-06-24 Thread Martin Makundi
In my experience WicketTester works in a single thread only ... at least when I tried load testing with it it did not work. Ended up using HTTPUnit. Maybe that works for you too? ** Martin 2009/6/25 Mathias Nilsson wicket.program...@gmail.com: I must add I have managed to get it to work

Submit form with ajax on enter

2009-06-24 Thread John Patterson
Hi, I have a single text box which I wan to be submitted by ajax when either the enter key is pressed or a submit button clicked. Is there an easy way to submit the form or just the input when the return key is hit? Thanks, John

Re: Html mail with WicketTester

2009-06-24 Thread Martin Makundi
I wonder if there is another way to capture wicket stream but definitely you can just capture the url stream: public static byte[] getRemoteData(String urlString) { try { URL url = new URL(urlString); HttpURLConnection uc = (HttpURLConnection) url.openConnection(); try {

Re: Submit form with ajax on enter

2009-06-24 Thread vineet semwal
you can use AjaxButton,AjaxFallbackButton,IndicatingAjaxButton. regards, Vineet Semwal On Thu, Jun 25, 2009 at 9:47 AM, John Patterson jdpatter...@gmail.comwrote: Hi, I have a single text box which I wan to be submitted by ajax when either the enter key is pressed or a submit button clicked.