Re: german wicket book example code

2009-09-04 Thread Stefan Jozsa
Thanks, Stefan --- On Fri, 9/4/09, Michael Mosmann mich...@mosmann.de wrote: From: Michael Mosmann mich...@mosmann.de Subject: german wicket book example code To: users@wicket.apache.org Date: Friday, September 4, 2009, 12:48 AM Hi, .. you can download

Re: How to render part of component's markup and the very end of HTML document?

2009-09-04 Thread Peter Thomas
Hi, I'm guessing that the markup you are trying to render just before the body tag is a script tag that references a JS file (or inlines some JS) that will initialize some JS object. Keeping it at the end of the HTML is just to ensure that the rest of the DOM is fully loaded before this

Question regarding file uploading

2009-09-04 Thread Daniel Dominik Holúbek
Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their images. But if I redeploy my webapp afterwards, would I loose those images? If yes, is there any workaround? Thanks :) -- -danoh-

Re: Question regarding file uploading

2009-09-04 Thread Igor Vaynberg
store the uploaded images in a permanent store such as a database or a dir on the server. -igor On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,i've got just one question. I would like to make a photo gallery, and thus I need to let users upload their

Re: Dynamic Optgroups in Wicket

2009-09-04 Thread gary black
Thanks Mike and everyone who responded. I did manage to find a working solution by creating a OptGroup component by extending WebMarkupContainer and using fragments... But was then was disheartened as it appears that you cannot nest optgroups inside one another in html - To represent the

Form FileUploadField maxSize does not work

2009-09-04 Thread Nicola Tucci
I'm working with a file upload, using http://www.wicket-library.com/wicket-examples/upload/single as example. I've created an UploadPanel very similar to UploadPage.java of the example (with the FileUploadForm form). Well I've maxsize set to 100K and this check work if I add my uploadpanel to the

DropDownChoice and hibernate entities

2009-09-04 Thread Iain Reddick
I'm having difficulty in seeing the best-practice way of handling DDCs who's choices are hibernate persisted entities. Obviously the selection in this case would be a reference to a persisted entity, which is inherently bad, as this would put the entity into the session and also result in a

Re: Changing position of WicketAjaxDebug panel

2009-09-04 Thread Tomek Sniadach
Of course! Thanks a lot John. Tomek 2009/9/3 John Krasnay j...@krasnay.ca !important is your friend... a#wicketDebugLink { background-color:#44 !important; border:medium none !important; bottom:0 !important; color:white !important; opacity:0.8 !important; right:0 !important;

Flash/ExternalInterface does not work in IE if movie is fetched via Wicket/Ajax

2009-09-04 Thread Mikko Pukki
Hi, This example demonstrates that ExternalInterface fails with IE only if movie is fetched via Wicket/Ajax. ajaxtest.zip: (http://download.syncrontech.com/public/ajaxtest.zip) Page first.html fetches second.html page via Ajax. Second.html has Flash movie that calls JavaScript methods with

Re: radio and radiogroup default checked not working?

2009-09-04 Thread Seven Corners
I have a similar issue, but I don't know which radio should be checked until runtime. So I can't hard-code it in the HTML; I have to determine it from my DAO in the radiogroup's parent panel constructor. I'm using the model to determine which radio to select, and it works fine once you click,

SV: ajax - navigate to new location

2009-09-04 Thread Wilhelmsen Tor Iver
target.prependJavascript(window.location.href=google.com); Is there a better way of doing this? Doubtful; Ajax is primarily concerned with NOT replacing the whole page. If you always replace the page use a normal link instead which lets you set a RedirectRequestTarget for instance. - Tor

Re: SV: ajax - navigate to new location

2009-09-04 Thread Leo . Erlandsson
This seems to work fine: new AjaxLink(ajaxlink) { public void onClick(AjaxRequestTarget target) { getRequestCycle().setRequestTarget(new RedirectRequestTarget(http://www.google.com;)); } }); Wilhelmsen Tor Iver toriv...@arrive.no

Re: Question regarding file uploading

2009-09-04 Thread Daniel Dominik Holúbek
thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: store the uploaded images in a permanent store such as a database or a dir on the server. -igor On Fri, Sep 4, 2009 at

Re: Question regarding file uploading

2009-09-04 Thread Edward Zarecor
Google your database of choice and blob (binary large objects), e.g., postgres blob; oracle blob, etc. Ed. On Fri, Sep 4, 2009 at 10:11 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On

Re: Question regarding file uploading

2009-09-04 Thread Daniel Dominik Holúbek
yes,but what i can't imagine is how to retrieve those objects from db. what to use? Resource? ResourceReference? On Fri, Sep 4, 2009 at 4:15 PM, Edward Zarecor wic...@indeterminate.orgwrote: Google your database of choice and blob (binary large objects), e.g., postgres blob; oracle blob, etc.

Re: Question regarding file uploading

2009-09-04 Thread Edward Zarecor
See BlobImageResource. http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/image/resource/BlobImageResource.html Ed. On Fri, Sep 4, 2009 at 10:18 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: yes,but what i can't imagine is how to retrieve those objects from db. what

Re: Form FileUploadField maxSize does not work

2009-09-04 Thread Igor Vaynberg
perhaps if you showed your code it would be more clear. -igor On Fri, Sep 4, 2009 at 4:50 AM, Nicola Tuccinytrus...@gmail.com wrote: I'm working with a file upload, using http://www.wicket-library.com/wicket-examples/upload/single as example. I've created an UploadPanel very similar to

Re: Question regarding file uploading

2009-09-04 Thread Igor Vaynberg
there is a page on our wiki that demonstrates eaxctly this -igor On Fri, Sep 4, 2009 at 7:11 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: thanks,and can you give me a hint on storing images in database? i can't quite imagine that :) On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg

Setting th

2009-09-04 Thread jpalmer1026
I have a form with a RadioChoice component. I'd like to use the value selected in that component ("yes" or "no") to set the isRequired property of another component. Wondering what method I need to call on the RadioChoice component that will allow me to get the value that the user selected?

Re: Setting th

2009-09-04 Thread Igor Vaynberg
you have to go low level and most likely override your form's process() method to do this. you can get the value by calling formcomponent.getinput() which will give you the raw unprocessed value from the http request. -igor On Fri, Sep 4, 2009 at 8:28 AM, jpalmer1...@mchsi.com wrote: I have a

Re: Question regarding file uploading

2009-09-04 Thread Daniel Dominik Holúbek
thanks, that is exactly what i was looking for :) On Fri, Sep 4, 2009 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: there is a page on our wiki that demonstrates eaxctly this -igor On Fri, Sep 4, 2009 at 7:11 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: thanks,and can

Re: Palette rendering issue

2009-09-04 Thread Troy Cauble
Thanks, I ended up making Palette_noOrdering.html and overriding getVariation(). It works for finding my altered html. But then I tried to make a small change in palette.css and can't seem to get it picked up. What's the trick to naming and placement for replacing the css? Also, I couldn't

Re: calendar or room/time reservation components?

2009-09-04 Thread Troy Cauble
Thanks, timeline looks very slick for time-lines. But it doesn't appear to give you control of the non-time-axis. For a room reservation system you might get [room 1 ] [ room 2] [room 7] [room 3] [room 1] 8am 10am 12

Re: Palette rendering issue

2009-09-04 Thread Jeremy Thomerson
Why replace the CSS? Just override it with your own. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Sep 4, 2009 at 11:07 AM, Troy Cauble troycau...@gmail.com wrote: Thanks, I ended up making Palette_noOrdering.html and overriding getVariation(). It works for finding my

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Hi Johannes, recently I develop an jmx panel, to view and operate the applications mbeans. And latter I discover that the wicket stuff already has one! I rememer that, because in the ocasion I was afraid to start use the jmx wicket stuff panel, due it has the wicket 1.3.1 on classpath, and the

Re: Wicketstuff really needs some updates

2009-09-04 Thread Igor Vaynberg
or you can request commit access and eat your own donuts :) -igor On Fri, Sep 4, 2009 at 10:43 AM, Johannes Schneidermaili...@cedarsoft.com wrote: Hi, I really love the work that has been put into WicketStuff. The world is much better *with* WicketStuff. But unfortunately several files are

Wicketstuff really needs some updates

2009-09-04 Thread Johannes Schneider
Hi, I really love the work that has been put into WicketStuff. The world is much better *with* WicketStuff. But unfortunately several files are outdated and many releases are missing. So at first I want to say thank you to everybody who has put work into that project. Then I want to motivate

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Great Igor! I'm feeling like Homer Simpson On Fri, Sep 4, 2009 at 3:04 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: or you can request commit access and eat your own donuts :) -igor On Fri, Sep 4, 2009 at 10:43 AM, Johannes Schneidermaili...@cedarsoft.com wrote: Hi, I really love

Re: Palette rendering issue

2009-09-04 Thread Troy Cauble
Thanks, I'm CSS challenged. But the override keyword helped me google a direction. -troy On Fri, Sep 4, 2009 at 12:26 PM, Jeremy Thomersonjer...@wickettraining.com wrote: Why replace the CSS?  Just override it with your own. -- Jeremy Thomerson http://www.wickettraining.com On Fri,

Re: Wicketstuff really needs some updates

2009-09-04 Thread Johannes Schneider
Well, who is the One? Igor Vaynberg wrote: or you can request commit access and eat your own donuts :) -igor On Fri, Sep 4, 2009 at 10:43 AM, Johannes Schneidermaili...@cedarsoft.com wrote: Hi, I really love the work that has been put into WicketStuff. The world is much better *with*

Re: Wicketstuff really needs some updates

2009-09-04 Thread Pedro Santos
Done, I commit now the mbeanview to wicket stuff. Johannes, what about the donuts?! On Fri, Sep 4, 2009 at 3:34 PM, Johannes Schneider maili...@cedarsoft.comwrote: Well, who is the One? Igor Vaynberg wrote: or you can request commit access and eat your own donuts :) -igor On Fri,

Re: Footer Toolbar for DefaultDataTable (wicket 1.3.2)

2009-09-04 Thread saahuja
Hi, Does anyone have an example of a toolbar that would add the amounts in the table? Thanks. swapnil.wadagave wrote: hi Sanjeev, I think you can able to do it using this code, extend parent class as DataTable,dont use DefaultDataTable : code: DatatTable datatable=new

Re: WebMarkupContainer Ajax update problem

2009-09-04 Thread Altuğ B . Altıntaş
I replaced Id with class and it worked ! Thanks. 2009/9/4 Jeremy Thomerson jer...@wickettraining.com I'm not sure you can change the ID of an element in an Ajax request. Wicket depends on the ID to do component replacement. Try using a class instead. -- Jeremy Thomerson

Can't update TextField via Ajax after a validation error

2009-09-04 Thread Neil Curzon
Hi all, I'm having a weird problem that causes an input to refuse to update with an AjaxLink click method when there's been a validation error. One field in the form has a property model pointing to an Integer value. It's set to required, and there are other links that set the Integer value.

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Pedro Santos
Take a look at: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/form/Button.html#setDefaultFormProcessing(boolean) On Fri, Sep 4, 2009 at 7:01 PM, Neil Curzon neil.cur...@gmail.com wrote: Hi all, I'm having a weird problem that causes an input to refuse

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Neil Curzon
Thanks for the reply. It doesn't sound like this is exactly what I want, though. I do need my required field to be validated, always. I just don't understand why validation works when the link that fills in the Integer behind the property model is clicked first, but the same link populating and

Transparent resolver parent child working but cannot add third component

2009-09-04 Thread david
Hello all, I have a WebPage parent transparent resolver that displays the child page OK. The parent page is a tabbed menu and the child is a row of submenus. When the submenu child is clicked I want an added third component (a WebPage class) to be displayed. But instead I get the usual ugly

Re: Can't update TextField via Ajax after a validation error

2009-09-04 Thread Jason Lea
When a field is submitted and there is a validation error, it doesn't update the model and the field will redisplay with the invalid input. This way the user can see what they typed and can fix the problem. With your populate link, you are updating the model, but wicket won't look at the model

Re: Form FileUploadField maxSize does not work

2009-09-04 Thread Igor Vaynberg
so is the problem that the form being submitted is the outer form and it doesnt support the inner form's maxsize? -igor On Fri, Sep 4, 2009 at 9:10 AM, nytrusnytrus...@gmail.com wrote: Yes igor, below there is the code, even if is not very short. The issue is that when I click on upload1