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,
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
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
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
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
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
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
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
My bad. I missed that part when I copied and pasted.
comboChoiceDropDown.add(new
AjaxFormComponentUpdatingBehavior(onchange)
{
protected void onUpdate(AjaxRequestTarget target)
{
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]
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.
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
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
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
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
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:
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
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
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 =
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.
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.
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]
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
I am new to Wicket. Can anyone explain about the difference between RadioChoice
and RadioGroup with example and when to use which?
Thanks,
Sanjay
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
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
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
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
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
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
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() {
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
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:
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
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,
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
(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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
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
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
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
54 matches
Mail list logo