Re: Label and textfiled component

2008-03-24 Thread Eyal Golan
thanks guys. I was working on someone else's code and thought I might need that. We did use FormComponents but eventually I didn't have to associate these components. What we did is: create an Enum that holds the keys (for the markup), type (field / area) and enabled status. In the init method,

file uploads

2008-03-24 Thread tbt
Hi I am using the file upload component in wicket and I like to set the folder path to save uploaded files. Folder folder = new Folder(Uploads); folder.mkdirs(); File newFile = new File(folder,fileUpload.getClientFileName()); This code snippet saves the files in a folder called 'uploads' but

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-24 Thread Johan Compagner
done On Thu, Mar 20, 2008 at 2:03 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Oh, sorry. I meant write in javadoc :) On Thu, Mar 20, 2008 at 2:02 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: For me that's probably fine if you will clearly right in javadoc that anyone who overrides

Re: Japanese Wicket book Wicket 1.4

2008-03-24 Thread Tsutomu Yano
Thank you, Timo. I will see the thread on [EMAIL PROTECTED] thanks. On 2008/03/24, at 5:21, Timo Rantalaiho wrote: On Mon, 24 Mar 2008, Tsutomu Yano wrote: So I have a question about Wicket 1.4. I think the next wicket 1.4 will be 'Wicket 1.3 + Generics' and will be distributed as soon as

Re: file uploads

2008-03-24 Thread James Carman
On Mon, Mar 24, 2008 at 7:31 AM, tbt [EMAIL PROTECTED] wrote: Hi I am using the file upload component in wicket and I like to set the folder path to save uploaded files. Folder folder = new Folder(Uploads); folder.mkdirs(); File newFile = new

AJAX Dropdown Choices cleared on submit

2008-03-24 Thread tdelesio
Hi, I have two dropdowns. Once you select a value from the first dropdown the second dropdown is populated using ajax. I got this to work based on the example on wicketstuff. But when I submit the form the model is null-ed out. I tried to remove the ajax call and then re-submit the form and

Re: AJAX Dropdown Choices cleared on submit

2008-03-24 Thread James Carman
What does the Ajax version of the code look like? On Mon, Mar 24, 2008 at 9:37 AM, tdelesio [EMAIL PROTECTED] wrote: Hi, I have two dropdowns. Once you select a value from the first dropdown the second dropdown is populated using ajax. I got this to work based on the example on

RE: DataView size() iterator() call order issue

2008-03-24 Thread Hoover, William
We are using a modified version of the Generic DAO for Hibernate (http://www.hibernate.org/328.html) where we make reuse of common DAO methods such as keyword searches that retrieve corresponding entities as well a total size (both use the same search criteria when determining results so it

Re: AJAX Dropdown Choices cleared on submit

2008-03-24 Thread tdelesio
My bad. I missed that part when I copied and pasted. comboChoiceDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) {

Re: Redirect after post Issue

2008-03-24 Thread Jeremy Levy
I got it working. Basically the ProxyPassReverse directive should use HTTP not AJP. This article helped: http://lenya.apache.org/docs/2_0_x/tutorials/mod_proxy_ajp.html Jeremy On Fri, Mar 21, 2008 at 10:35 AM, James Carman [EMAIL PROTECTED] wrote: On 3/21/08, Jeremy Levy [EMAIL PROTECTED]

Re: Localization of DropDownChoice

2008-03-24 Thread greeklinux
Erik van Oosten wrote: Hi Greeklinux, Thanks for the link. It helped. Please see my earlier reply on a similar question. http://www.nabble.com/DropDownChoice-getting-value-into-the-model-td15905486.html#a15906830 I am not sure the wiki page is correct. Regards, Erik.

Re: Ajax CheckGroup problem exception: java.lang.IllegalStateException: No Page found for component

2008-03-24 Thread Eyal Golan
Hey Johan, thanks to your tip, I was able to locate the problem. As what you said, each time the page was rendered, I added more checkboxes to the list. I am using fragment that add checkbox. What I did instead, was, using a Map instead of a List: Here is the change: / package and import

File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
According to this old threat, the use of a file upload field inside a wicket Ajax modal was not possible: http://tinyurl.com/3e4z35 Has anyone found a work-around to this (besides placing the field into a regular page ;-) ? Thanks! Michael

Re: Japanese Wicket book Wicket 1.4

2008-03-24 Thread Eelco Hillenius
I'm a user of wicket from japan. I have some good news and a question. First, We finally found a wicket user group in Japan - The Wicket User Group Japna aka Wicket-ja. http://www.wicket-ja.org/ I'm a founder of the group. I want to make the group the starting point of WICKET in

RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Vitaly Tsaplin
Hi guys, How to add a random attribute to an URL created by a RenderedDynamicImageResource subclass to enforce a browser update on every request? I think I saw it somewhere but I cannot remember where exactly... Vitaly

Re: File upload field inside of a modal?

2008-03-24 Thread Johan Compagner
dont think so.. ajax file upload is not possible i think. Or do you have examples where they do that? On Mon, Mar 24, 2008 at 6:08 PM, Michael Mehrle [EMAIL PROTECTED] wrote: According to this old threat, the use of a file upload field inside a wicket Ajax modal was not possible:

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
No, I don't have an example - looking for a way to make it work... Michael -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 11:30 AM To: users@wicket.apache.org Subject: Re: File upload field inside of a modal? dont think so.. ajax file

Funky issue with double quotes (when copied from WIA ebook)

2008-03-24 Thread Phil Grimm
Guys, More than a few times, I've been bitten by a problem with double quote characters when I copy Wicket tags from the WIA PDF into to HTML editor of my IDE (NetBeans). In the NetBeans editor, the copied double-quote characters display with a slight tilt to the right (the normal double quotes

Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
Here is my test code: public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private String word; public HomePage(final PageParameters parameters) { add(new FeedbackPanel(feedback) { private static final long serialVersionUID =

Dropdown Choices

2008-03-24 Thread tdelesio
Is it possible to use two objects in a dropdown choice. For instance in the below code I want to use the class Pizza for the model of the form but load it with a list of toppings. When I do it the model of the form is getting set to Topping when I expect it to be Pizza. Thanks for the help.

Re: Dropdown Choices

2008-03-24 Thread Maurice Marrink
Try setting the compoundmodel on the form and the form of the dropdownchoice to null. compoundmodels operate by checking if a parent has a compoundmodel, the component holding the compoundmodel will behave just like a normal model and return the actual object instead of one of its properties.

Re: Dropdown Choices

2008-03-24 Thread Martijn Dashorst
Read about models [1] and the DDC example [2,3]. Considering that this is the N-th posting with exactly the same question and you already know Nabble, how about using the search facilities [4]? Martijn [1] http://cwiki.apache.org/WICKET/working-with-wicket-models.html [2]

Re: RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Igor Vaynberg
see NonCachingImage -igor On Mon, Mar 24, 2008 at 11:29 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi guys, How to add a random attribute to an URL created by a RenderedDynamicImageResource subclass to enforce a browser update on every request? I think I saw it somewhere but I

RadioChoice vs RadioGroup

2008-03-24 Thread Patel, Sanjay
I am new to Wicket. Can anyone explain about the difference between RadioChoice and RadioGroup with example and when to use which? Thanks, Sanjay

Re: File upload field inside of a modal?

2008-03-24 Thread Igor Vaynberg
usually it is done with a hidden iframe which does the POST -igor On Mon, Mar 24, 2008 at 12:05 PM, Michael Mehrle [EMAIL PROTECTED] wrote: No, I don't have an example - looking for a way to make it work... Michael -Original Message- From: Johan Compagner [mailto:[EMAIL

Re: RadioChoice vs RadioGroup

2008-03-24 Thread Igor Vaynberg
radiochoice generates the html for you. radiogroup/radio allow you to define your own html. there are examples in wicket-examples of both. -igor On Mon, Mar 24, 2008 at 1:40 PM, Patel, Sanjay [EMAIL PROTECTED] wrote: I am new to Wicket. Can anyone explain about the difference between

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
That sounds worthwhile exploring. How do I trigger a POST request in an iFrame from within a Wicket modal window? Thanks again for your input. Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 1:41 PM To: users@wicket.apache.org

Re: Funky issue with double quotes (when copied from WIA ebook)

2008-03-24 Thread Matthew Young
The quote marks in the PDF must be the typographer's quote: like this pair and not the straight quote like this pair. The straight quote marks probably got converted when the code is pasted into the page layout program. The author should probably turn of auto quote mark convertion off in the

Re: File upload field inside of a modal?

2008-03-24 Thread Igor Vaynberg
via javascript: form.submit(); -igor On Mon, Mar 24, 2008 at 2:03 PM, Michael Mehrle [EMAIL PROTECTED] wrote: That sounds worthwhile exploring. How do I trigger a POST request in an iFrame from within a Wicket modal window? Thanks again for your input. Michael -Original

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
Right - the old fashioned way. Igor strikes again - I'll give that a shot - let you know if it pans out :-) Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:10 PM To: users@wicket.apache.org Subject: Re: File upload field inside of

Re: DataView size() iterator() call order issue

2008-03-24 Thread Igor Vaynberg
how are we going to cover these usecases: * pagination toolbar needs to call dataprovier.size() to figure out how many total records there are. at this point the toolbar doesnt know what window of data to retrieve, it just wants to know the size. * often users do: new dataview() { isvisible() {

Re: File upload field inside of a modal?

2008-03-24 Thread Igor Vaynberg
take a look here for a starting point: http://www.phpletter.com/Demo/AjaxFileUpload-Demo/ we cannot use jquery in wicket core projects directly because it is not properly namespaced... -igor On Mon, Mar 24, 2008 at 2:12 PM, Michael Mehrle [EMAIL PROTECTED] wrote: Right - the old fashioned

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
What a tease! No source code from what I can tell... Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:14 PM To: users@wicket.apache.org Subject: Re: File upload field inside of a modal? take a look here for a starting point:

RE: File upload field inside of a modal?

2008-03-24 Thread Michael Mehrle
Never mind - found it, but it's PHP. Well, might help to structure things properly. Thanks, Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2008 2:24 PM To: users@wicket.apache.org Subject: RE: File upload field inside of a modal? What

Re: Dropdown Choices

2008-03-24 Thread Maurice Marrink
Try setting the compoundmodel on the form and the form of the dropdownchoice to null. That must ofcourse be: Try setting the compoundmodel on the form and the MODEL of the dropdownchoice to null. Maurice - To unsubscribe,

Re: Dropdown Choices

2008-03-24 Thread Martijn Dashorst
The problem is that the typing of the selectedTopping is a String instead of Toppings Martijn On 3/24/08, Maurice Marrink [EMAIL PROTECTED] wrote: Try setting the compoundmodel on the form and the form of the dropdownchoice to null. That must ofcourse be: Try setting the compoundmodel on

Emedding Javascript into render head?

2008-03-24 Thread Michael Mehrle
(Continuation of fileupload/Ajax question...) Reading the jQuery docs it seems that the starting point is to embed something like this into the header of your page: function ajaxFileUpload() { .. .. } If you remember one of my previous questions (copied below) - based on what you were saying

Exception adding a SimpleAttributeModifier to a TextField

2008-03-24 Thread Miguel Munoz
Comrades, I'm getting a strange exception. I created a SimpleAttributeModifier and added it to a TextField component, like this: textField.add(modifier); When I run it, I get an exception that says this: java.lang.ClassCastException: org.apache.wicket.behavior.SimpleAttributeModifier

Re: RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Vitaly Tsaplin
As I found out the problem is actually different. The way I create an image is the following add (new Image (captcha, new CaptchaImageResource (100, 40, new PropertyModel (this, captchaValue; But it seems that an image does request an attached image resource only first time it's

clustering failover error

2008-03-24 Thread Scott Swank
We are trying to get clustering working with Wicket 1.3.2 (on JBoss 4.3.0) and we get the following exception when one node fails over to another node. Has anyone seen anything like this before? Any suggestions/guesses? Thank you, Scott 15:02:17,320 ERROR [RequestCycle] Could not deserialize

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Johan Compagner
So in getObject that is only called in the renderphase in an ajax request you throw an restart exception? We dont really support that and i believe that igor had the same kind of thread a few days back. Make a issue for this if you want. On 3/24/08, Matthew Young [EMAIL PROTECTED] wrote: Here

Re: Exception adding a SimpleAttributeModifier to a TextField

2008-03-24 Thread Johan Compagner
Do you have a testcase that you can attach to a jira issue? This is strange because why is there a behaviorrequesttarget created for that attribute modifier, that seems very strange On 3/24/08, Miguel Munoz [EMAIL PROTECTED] wrote: Comrades, I'm getting a strange exception. I created a

Re: clustering failover error

2008-03-24 Thread Johan Compagner
Stream corrupt exceptio, invalid type code? It seems that the byte array on that side isnt correct. Do you have a setup/testcase for this? Do you get it on other app servers? On 3/24/08, Scott Swank [EMAIL PROTECTED] wrote: We are trying to get clustering working with Wicket 1.3.2 (on JBoss

Re: clustering failover error

2008-03-24 Thread Scott Swank
We run JBoss and haven't tried this on other app servers. Could the fact that we're running Java 6 be relevant? The specific type code in the exception varies each time, and this occurs every time we fail over from one node to another. We don't a test case, but if you have a JBoss cluster we

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
So in getObject that is only called in the renderphase in an ajax request you throw an restart exception? To be very clear, no exception is thrown on re-render, the restart exception is only thrown in the initial render. I trace the Wicket code and it's re-rendering, but the end result on the

Re: clustering failover error

2008-03-24 Thread Scott Swank
Using the HttpSessionStore pushes this exception to JBoss. It seems that something in the session just can't be deserialized by a separate jvm. On Mon, Mar 24, 2008 at 3:54 PM, Scott Swank [EMAIL PROTECTED] wrote: We run JBoss and haven't tried this on other app servers. Could the fact that

Re: clustering failover error

2008-03-24 Thread Scott Swank
If we use ObjectOutputStream to write the session to disk we can read it back on the same jvm. However, a separate jvm cannot read the file -- we get the same StreamCorruptedException. What could be jvm-specific? Thank you, Scott On Mon, Mar 24, 2008 at 4:35 PM, Scott Swank [EMAIL PROTECTED]

Re: clustering failover error

2008-03-24 Thread Igor Vaynberg
are all the nodes running identical software? -igor On Mon, Mar 24, 2008 at 4:52 PM, Scott Swank [EMAIL PROTECTED] wrote: If we use ObjectOutputStream to write the session to disk we can read it back on the same jvm. However, a separate jvm cannot read the file -- we get the same

Links, getting values from form text field

2008-03-24 Thread BretChampoux
I've got a log on screen, ie user name and password with a submit button. That part works fine. I want to have a link on the screen that can be clicked on to email a password hint to the email associated to the username in the username form field. The problem is that I can't seem to be able to

Re: Links, getting values from form text field

2008-03-24 Thread Gerolf Seitz
SubmitLink seems useful in this case. Gerolf On Tue, Mar 25, 2008 at 2:03 AM, BretChampoux [EMAIL PROTECTED] wrote: I've got a log on screen, ie user name and password with a submit button. That part works fine. I want to have a link on the screen that can be clicked on to email a

Re: clustering failover error

2008-03-24 Thread Scott Swank
Seemingly yes. If we write the session to disk, stop the jvm, restart the jvm, and then read the session from disk on the same server we get this exception. - Scott On Mon, Mar 24, 2008 at 5:10 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: are all the nodes running identical software? -igor

Re: clustering failover error

2008-03-24 Thread Matej Knopp
Couldn't missing SerialVersionUUID cause this? Doesn't seem likely though, I'd expect much saner exception in that case. -Matej On Tue, Mar 25, 2008 at 3:24 AM, Scott Swank [EMAIL PROTECTED] wrote: Seemingly yes. If we write the session to disk, stop the jvm, restart the jvm, and then read

Re: clustering failover error

2008-03-24 Thread James Carman
Are these nodes on the same machine or are you running different machines? On Mon, Mar 24, 2008 at 6:15 PM, Scott Swank [EMAIL PROTECTED] wrote: We are trying to get clustering working with Wicket 1.3.2 (on JBoss 4.3.0) and we get the following exception when one node fails over to another

Re: Re-render after AbstractRestartResponseException() not working in Ajax case

2008-03-24 Thread Matthew Young
I forgot to include the HomePage.html. Here is all the files of my small test. Please check it out if possible. If you run it with JS off, all is fine. With JS on, Ajax response is wrong. HomePage.html: html head/head span wicket:id=messagemessage will be here/span form