Re: [Wicket-user] Palette removes values from WizardStep

2007-01-03 Thread Nino Wael
My guess is that you have run into an issue with the palette, as I remember it you cant contstruct a palette that already haves values in the selected model or something like that, I replied in a post earlier with a solution... -regards Nino -Original Message- From: [EMAIL PROTECTED]

Re: [Wicket-user] Palette removes values from WizardStep

2007-01-03 Thread Nino Wael
It's the recorder component that needs to be updated... and overide onModelchanged on palette to update the recorder component. -Original Message- From: [EMAIL PROTECTED] on behalf of Igor Vaynberg Sent: Wed 03-01-2007 07:12 To: wicket-user@lists.sourceforge.net Subject: Re:

[Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Thullner, Robert
Hello I store a lot of MS Word and Excel files as a byte[] into my database. I want to add a feature to download these files from the database again, but I did not find a way to do this in Wicket, without writing the byte[] to a File again. Is there a way to write a byte[] to a WebResponse? I

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Martijn Dashorst
Take a look at DynamicWebResource If you need an example, look at the wicket-contrib-jasperreports code in wicket-stuff svn. Martijn On 1/3/07, Thullner, Robert [EMAIL PROTECTED] wrote: Hello I store a lot of MS Word and Excel files as a byte[] into my database. I want to add a feature

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Philip A. Chapman
The reason you're getting errors in MS Word is that you're converting a byte array into a String using ByteArrayOutputStream's toString() method. A Java String and a byte array are not always the same thing due to unicode. Subclass wicket.markup.html.DynamicWebResource so that it returns the

[Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
If I have a form inside a ModalWindow, submit the form will cause the ModalWindow close. Can I prevent this behaviour? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Martijn Dashorst
You can't. You have to submit the form using ajax. Martijn On 1/3/07, Carfield Yim [EMAIL PROTECTED] wrote: If I have a form inside a ModalWindow, submit the form will cause the ModalWindow close. Can I prevent this behaviour?

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread TH Lim
I am compiling wicket-1.2.3 from the zip file using ant jar and the compilation was terminated unsuccessfully with the message [junit] File does not exists. You must provide an existing file: C:\workspace\wicket-1.2.3\wicket-xhtml1-strict.dtd. I found wicket-1.0-xhtml11.dtd in the directories

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Thullner, Robert
I subclassed DynamicWebRessource, but I still have the problem that I do not know how to add the RessourceState to my WebResponse for my download link. I found the class ResourceReference but no I did not find out how to use it. Do I have to use the ResourceReferece Class or is there another

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Martijn Dashorst
Like I said: take a look at the jasper reports integration found at wicket-stuff svn: http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/branches/WICKET_1_2/wicket-contrib-jasperreports/src/java/wicket/contrib/jasperreports/ And for links to the resources:

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Philip A. Chapman
You have to make your own implemenation of ResourceState. It's a very simple class and requires very little to implement. Check out the very last section of the UploadDownload page in the wiki: http://cwiki.apache.org/WICKET/uploaddownload.html On Wed, 2007-01-03 at 13:07 +0100, Thullner,

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Frank Bille
Well it's actually my fault. When I created that unit test I assumed that we inclueded wicket-xhtml1-strict.dtd in the release. You should be fine just putting the a file in the root directory (C:\workspace\wicket-1.2.3) and call it wicket-xhtml1-strict.dtd. It's not the content that matters but

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Janos Cserep
Very short, very quick DynamicWebResource tutorial:) 1. Subclass DynamicWebResource public class MyResource extends DynamicWebResource { @Override protected DynamicWebResource.ResourceState getResourceState() { return new ResourceState() { public byte[] getData() { return

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
I have refer to http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.FormPage and http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.ClockPage But I cannot make the ModalWIndow updatable,

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Matej Knopp
This doesn't really make sense. Why are you using self updating behavior? Why don't you just update the listview when user submits the form? And you can't ajax-update a repeater (ListView) directly. You have to put the listview to e.g. WebMarkupContainer and add the container to the

[Wicket-user] https + closing ModalWindow

2007-01-03 Thread Konstantinos Lazouras
Hi all, I'm having trouble closing a modal window hosting a non-secure page by using the ModalWindow.close(target). The modal opened from a secure (https) page. To be a bit more precise: if ( ((parentPage is https) (page in modalWindow is https)) || ((parentPage is http) (page in

Re: [Wicket-user] https + closing ModalWindow

2007-01-03 Thread Matej Knopp
Well, it is probably because browsers are trying to prevent cross-site scripting. And it seems that pages from http and https are treated like pages from different sites. -Matej Konstantinos Lazouras wrote: Hi all, I'm having trouble closing a modal window hosting a non-secure page by

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Iman Rahmatizadeh
On 1/3/07, Frank Bille [EMAIL PROTECTED] wrote: Well it's actually my fault. When I created that unit test I assumed that we inclueded wicket-xhtml1-strict.dtd in the release. You should be fine just putting the a file in the root directory (C:\workspace\wicket-1.2.3 ) and call it

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Martijn Dashorst
First we need to know why the file needs to be there. Is there any reason for the dtd to be in the root directory of the distribution, or can it reside in another location? Is the dtd actually something we support, and something that works? Second, if we decide that it should be there, then we

[Wicket-user] Letting users download flat file

2007-01-03 Thread Frank Silbermann
In my project, I have a button that lets the user download the contents of a datatable in a form that MSExcel can interpret: Button button = new Button(excelExport) { protected void onSubmit() { getRequestCycle().setRequestTarget(new ComponentRequestTarget(dataTable));

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Igor Vaynberg
or even easier (if you dont need a bookmarkable url) abstract class ByteArrayLink extends Link { protected abstract byte[] getbytes(); protected abstract String getfilename(); public void onclick() { getRequestCycle().setRequestTarget(new IRequestTarget() { void detach(RequestCycle rc) {}

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Korbinian Bachl
Isn't it in this case also a free download protection inside? - as the URL only is valid for this session so your download cant be stolen by anyone else by pointing a URL from his site to a server. unbelievable how much you get with just using wicket for free _ Von: [EMAIL

Re: [Wicket-user] Letting users download flat file

2007-01-03 Thread Igor Vaynberg
the proper approach is to push a new request target into the request cycle, see DownloadLink -igor On 1/3/07, Frank Silbermann [EMAIL PROTECTED] wrote: In my project, I have a button that lets the user download the contents of a datatable in a form that MSExcel can interpret: Button

Re: [Wicket-user] Writing byte[] to a WebResponse

2007-01-03 Thread Igor Vaynberg
yes, that is an added bonus. wicket urls are not hijackable because they are always session-relative -igor On 1/3/07, Korbinian Bachl [EMAIL PROTECTED] wrote: Isn't it in this case also a free download protection inside? - as the URL only is valid for this session so your download cant

[Wicket-user] Wicket not compiling

2007-01-03 Thread Peter Neubauer
Hi there, checking out the latest source from Apache SVN in order to get a wicket SNAPSHOT needed for the svn wicket-phonebook app, I get the following error. Is that me or the source? Cheers /Peter peter-mbp:~/code/wicket/wicket peter$ mvn install [INFO] Scanning for projects... [INFO]

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Frank Bille
On 1/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: First we need to know why the file needs to be there. Is there any reason for the dtd to be in the root directory of the distribution, or can it reside in another location? Is the dtd actually something we support, and something that works?

Re: [Wicket-user] Wicket not compiling

2007-01-03 Thread Korbinian Bachl
You need to call maven with -Dmaven.test.skip=true so he skips the junit tests, as not all are passed currently - please also note that 2.0 has many api changes as well as needs more dependency jars as before (logging changed) regards -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED]

Re: [Wicket-user] Wicket not compiling

2007-01-03 Thread Martijn Dashorst
And to resolve your compilation errors upgrade your JDK to 1.5.08. If you are stuck on 1.5_06 because you're on an Apple, then perform an svn update, because I fixed this last weekend. It needed an extra cast to fool the compiler. Martijn On 1/3/07, Korbinian Bachl [EMAIL PROTECTED] wrote: You

Re: [Wicket-user] Wicket not compiling

2007-01-03 Thread Martijn Dashorst
On 1/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: And to resolve your compilation errors upgrade your JDK to 1.5.08. If you are stuck on 1.5_06 because you're on an Apple, then perform an svn update, because I fixed this last weekend. It needed an extra cast to fool the compiler. Hang

Re: [Wicket-user] Wicket not compiling

2007-01-03 Thread Martijn Dashorst
OK they are in... Martijn On 1/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 1/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: And to resolve your compilation errors upgrade your JDK to 1.5.08. If you are stuck on 1.5_06 because you're on an Apple, then perform an svn update,

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Martijn Dashorst
Don't you have some scripts to help you release it? You said something about a script for doing the mvn clean site assembly:assembly thing in all projects. Can't you add a line or two to unpack the release and run mvn test in it? Is there something I/we can help you with in setting up a good

Re: [Wicket-user] Letting users download flat file

2007-01-03 Thread Frank Silbermann
I am trying to make a button responde by downloading text to the user which is saved as a .txt file. Igor suggested I look at DownloadLink, which downloads a file when clicked. The code of DownloadLink does not seem to set the content type; does the system make an assumption based on the file's

Re: [Wicket-user] Letting users download flat file

2007-01-03 Thread Igor Vaynberg
set a breakpoint in respond() and see if it actually gets there, also try printstream.close() at the end to flush the data -igor On 1/3/07, Frank Silbermann [EMAIL PROTECTED] wrote: I am trying to make a button responde by downloading text to the user which is saved as a .txt file. Igor

[Wicket-user] i18n of sentences with links

2007-01-03 Thread Ryan
One tricky i18n problem to solve is how to internationalize a sentence that has a link somewhere in it. If anyone has solved this problem or has a suggestion on how to go about doing it in Wicket I would appreciate the help! Example sentence: Use of this Web site constitutes acceptance of the

Re: [Wicket-user] i18n of sentences with links

2007-01-03 Thread Igor Vaynberg
i dont think this is such a bad approach and should work fine in wicket as well. see SmartLinkLabel in extensions for something similar. -igor On 1/3/07, Ryan [EMAIL PROTECTED] wrote: One tricky i18n problem to solve is how to internationalize a sentence that has a link somewhere in it. If

Re: [Wicket-user] Palette removes values from WizardStep

2007-01-03 Thread Igor Vaynberg
fixed overriding onmodelchanged is not always enough because that might not always be invoked. for example in the attached example project it wouldnt be invoked because the model is changed via a different component. now palette always syncs its state with the model. it is not the cleanest

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
My gmail crop my message but I can see it at sourceforge archive... I don't know why. So I just resend my message again in case another people only see an empty message I have refer to

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Igor Vaynberg
http://woogle.billen.dk/search/q/listview%20ajax sigh -igor On 1/3/07, Carfield Yim [EMAIL PROTECTED] wrote: My gmail crop my message but I can see it at sourceforge archive... I don't know why. So I just resend my message again in case another people only see an empty message I have refer

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread TH Lim
Sorry to cut in :) ant jar is ok after renaming the the DTD file (for all that matters). I still encounter problem with mvn package. I traced the error back to a test class wicket.markup.html.form.upload.FileUploadFieldTest (line 97-108). How do I make this test case successful? Thanks. Frank

Re: [Wicket-user] 1.2.4: Test cannot find file

2007-01-03 Thread Igor Vaynberg
mvn package -Dmaven.test.skip=true -igor On 1/3/07, TH Lim [EMAIL PROTECTED] wrote: Sorry to cut in :) ant jar is ok after renaming the the DTD file (for all that matters). I still encounter problem with mvn package. I traced the error back to a test class

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Carfield Yim
On 1/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: http://woogle.billen.dk/search/q/listview%20ajax Have tried http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html but fail. How can I use the AJAX debug window to see what going wrong?

Re: [Wicket-user] Submit a form at ModalWindow cause the ModalWindow close.

2007-01-03 Thread Igor Vaynberg
you click on the wicket ajax debug link at the bottom of the page and it should open. then look for errors in the output. or better yet create a quickstart that reproduces the problem - that is probably the fastest way to get help -igor On 1/3/07, Carfield Yim [EMAIL PROTECTED] wrote: On