Re: Mount URL to another host?

2008-10-13 Thread Johan Compagner
Dont try to do that in a constructor of a page, way better is throwing an exception On 10/12/08, Uwe Schäfer [EMAIL PROTECTED] wrote: Zach Cox schrieb: I need the browser to actually redirect the user to http://othersite.com if they go to http://mysite.com/something, regardless of if they

Re: Presentation web with some stateful components - removing jsessionid+ all PageExpired exceptions

2008-10-13 Thread Stefan Simik
Http session is created, because there are stateful components on that page. URL of that page is bookmarkable, but the page itself is not stateless (there is ajax Gmap2 component). why is session created on the first request? If that page was stateless there would be no session created...

Wicket Merchandise store back in action

2008-10-13 Thread Nino Saturnino Martinez Vazquez Wael
Hi Guys The store are open again, now with permission from Apache. And yes the BIB are back:) Please say if there are missing some products or something.. Knock yourself out: http://www.cafepress.com/apachewicket -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK

Encoding lsot when submitting a form on Tomcat 4.1.37

2008-10-13 Thread Kenneth Holm Nielsen
I'm using the wicket distribution for java 1.4 on a Tomcat 4.1.37, my encoding to ISO-8859-1 is working fine until I submit a form. The text 'æbleø' is presented fine until I submit, afterwards the encoding for the entire document is lost and the text becomes 'æbleÃ', in a BasePage.java that

Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread kerim bey
Hi! I have problems with using an AutoCompleteText field. Loading the choice Objects works fine, but when I select an entry the ModelObject (using a CompoundPropertyModel) of the Form is not updated. Calling setModelObject() doesn't seem to have any effect. Using a DropDownChoice the same way

Re: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread Ryan Gravener
You can search the archives for the answer to this one. Essentially the model object for autocomplete is just a string. On 10/13/08, kerim bey [EMAIL PROTECTED] wrote: Hi! I have problems with using an AutoCompleteText field. Loading the choice Objects works fine, but when I select an entry

Re: Downloading a BLOB

2008-10-13 Thread Johan Compagner
Deleting a file right after a first download also has its problems, My HP network printer/scanner does that, i can scan to an image, but firefox displayes then that image and what ever i do then to save it to disk, i get nothing because FF seems to want to get it again for saving bu hp doesnt

Re: Encoding lsot when submitting a form on Tomcat 4.1.37

2008-10-13 Thread Johan Compagner
You shouldnt set the response like that i think. Please use the request setting default encoding. So that wicket also knows what you are using when the form comes back in (form submit) Why use that iso encoding, please, all the people of this world, start using only utf8 everywhere and drop all

RE: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread Hoover, William
or you can use this one- http://cwiki.apache.org/confluence/display/WICKET/Autocomplete+using+a+W icket+model -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Gravener Sent: Monday, October 13, 2008 9:17 AM To: users@wicket.apache.org Subject: Re:

Re: Uploading a file: no path information available

2008-10-13 Thread Johan Compagner
Dont know about the java doc, but i guess we want to be browser independend, so that call should result in the same thing no matter what browser is used. I find it by the way very strange that you get thr full path, what do you want with it? And why does IE send it, it shouldnt a website shouldnt

How to change field values in a validator?

2008-10-13 Thread Matthias Keller
Hi I've got a custom validator here which needs to dynamically change some other input field's value to a new value. Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options ] Now if I need is selected, everything works as expected, the

Re: 1.4M4?

2008-10-13 Thread Lutz Müller
/push On Friday 19 September 2008 12:10:24 Stefan Lindner wrote: Wicket in Action is out, the open issues for 1.4 are constantly decreasing. Is a 1.4M4 in sight? Stefan

Re: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread Lutz Müller
i also do it in convertInput(). So even if it should be the wrong place, it does work, and you are not alone with this solution ;) On Monday 13 October 2008 15:40:22 kerim bey wrote: While debugging I noticed it is a string. That's why I'm iterating through the choice objects to get back the

Re: Re: Downloading a BLOB

2008-10-13 Thread bruno . borges
Right click on that image and click on Copy image and then past it somewhere like Gimp or Photoshop. :D Anyway, if you use a LoadableDetachableModel, it is possible and actually, recommended, to delete the file right after the download. Just make sure it is not a file that will be download

Re: How to change field values in a validator?

2008-10-13 Thread Timo Rantalaiho
On Mon, 13 Oct 2008, Matthias Keller wrote: Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options ] Now if I need is selected, everything works as expected, the pulldown value gets stored to the model. Now if 'I dont need

retrieveing page parameters

2008-10-13 Thread miro
I am using setRedirect(true); setResponsePage(MyPage.class,pageParameters); in Mypage how can I retrieve pageParameters ? -- View this message in context: http://www.nabble.com/retrieveing-page-parameters-tp19956410p19956410.html Sent from the Wicket - User mailing list archive at

Re: Form model update with ajax using AutoCompleteTextField

2008-10-13 Thread kerim bey
Still does not work! When I submit the form the object is null and the amount of is 0 even I selected an Object and type an valid amount. I'm not quite shure which components I have to add to the target for onchange Event. Right now I just added the form-component to the ajax target. Lutz

Re: How to change field values in a validator?

2008-10-13 Thread Matthias Keller
Timo Rantalaiho wrote: On Mon, 13 Oct 2008, Matthias Keller wrote: Here's the scenario with two radios and a pulldown: ( ) I don't need anything ( ) I need: [ pulldown with options ] Now if I need is selected, everything works as expected, the pulldown value gets stored to the model. Now

Jackrabbit APi thorugh Apache wicket

2008-10-13 Thread Nayak Vishal
Hello everyone, Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh Apache wicket. Regards Vishal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: retrieveing page parameters

2008-10-13 Thread Per Newgro
Am Montag, 13. Oktober 2008 16:53:30 schrieb miro: I am using setRedirect(true); setResponsePage(MyPage.class,pageParameters); in Mypage how can I retrieve pageParameters ? public MyPage(PageParameters params) not working? Cheers Per

Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
Implement one-arg constructor: class MyPage extends WebPage { public MyPage(PageParameters params) { super(params); // here you get the params } miro a écrit : I am using setRedirect(true); setResponsePage(MyPage.class,pageParameters); in Mypage how can I retrieve pageParameters ?

Re: Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Per Newgro
Am Montag, 13. Oktober 2008 11:28:07 schrieb Christian Oldiges: Hello! First here is my setup and the situation in which I discovered the problem which might be a bug in FormComponent$MessageSource: I am using v1.3.4 and I have a problem placing a resource string for a customized subclass

Re: retrieveing page parameters

2008-10-13 Thread Michael Sparer
getPageParameters()? Didn't you look at the API before posting? ;-) miro wrote: I am using setRedirect(true); setResponsePage(MyPage.class,pageParameters); in Mypage how can I retrieve pageParameters ? - Michael Sparer http://talk-on-tech.blogspot.com -- View this message

Re: Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Igor Vaynberg
first thing to get is that each getstring() traverses the hierarchy. so first we try with id and then without just in case the user forgot. the problem here is that formcomponents do not provide their own resource bundles. you need to add an rfe to support this. traditionally only top-level

Re: retrieveing page parameters

2008-10-13 Thread miro
I tried that , getPageParameters() was returning null . Michael Sparer wrote: getPageParameters()? Didn't you look at the API before posting? ;-) miro wrote: I am using setRedirect(true); setResponsePage(MyPage.class,pageParameters); in Mypage how can I retrieve pageParameters

Re: retrieveing page parameters

2008-10-13 Thread Michael Sparer
then there either weren't any pageparams or you missed to call super(params) regards, Michael miro wrote: I tried that , getPageParameters() was returning null . Michael Sparer wrote: getPageParameters()? Didn't you look at the API before posting? ;-) miro wrote: I am using

Re: retrieveing page parameters

2008-10-13 Thread miro
where should I call super(params) ? Michael Sparer wrote: then there either weren't any pageparams or you missed to call super(params) regards, Michael miro wrote: I tried that , getPageParameters() was returning null . Michael Sparer wrote: getPageParameters()? Didn't you

Re: Jackrabbit APi thorugh Apache wicket

2008-10-13 Thread Edmund Urbani
Nayak Vishal wrote: Hello everyone, Is it possible to access Jackrabbit API(talking to Alfresco ) thorugh Apache wicket. Regards Vishal Well, I don't know of any out-of-the-box components that integrate Wicket with JCR (or Jackrabbit in particular), but you can always write your own. I

Re: Downloading a BLOB

2008-10-13 Thread Johan Compagner
That really doesnt work, what ever i do in FF i get a 1kb file, the conten being something like resource not found, somehow FF really doesnt give you the image out of the cache. (i guess no cache settings in the headers are done at all by HP) On 10/13/08, [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: retrieveing page parameters

2008-10-13 Thread miro
here more description I have a bookmarkable page and an link to this page . mountBookmarkablePage(/createStorageLocation, CreateNewStorageLocation.class); Now I want to call this page using setResponsePage() and passing some parameters for which I am doing this

Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
in your constructor that has a parameter PageParameters... miro a écrit : where should I call super(params) ? Michael Sparer wrote: then there either weren't any pageparams or you missed to call super(params) regards, Michael miro wrote: I tried that , getPageParameters() was

Re: Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Christian Oldiges
Hi! Wicket also supports .xml files instead of .properties, so that is not the problem. I was able to follow Wicket trying both X.properties and X.xml for any location. So, that is not the problem. Newgro wrote: Am Montag, 13. Oktober 2008 11:28:07 schrieb Christian Oldiges: Hello!

Re: Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Christian Oldiges
Hm, but then the JavaDoc for ComponentStringResourceLoader needs to be updated, because the following example taken from that JavaDoc clearly states it will try to lookup Required in the input1.properties file: In addition to the above search order, each key will be pre-pended with the

Re: Encoding lsot when submitting a form on Tomcat 4.1.37

2008-10-13 Thread Kenneth Holm Nielsen
Hehe, yeah I know, I forgot to mention that I also override init in Application like so: protected void init() { this.getMarkupSettings().setDefaultMarkupEncoding(ISO-8859-1); I guess I'll just have to inform the customer that the chosen framework does not support latin-1. On Mon,

Re: Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Igor Vaynberg
request for enhancement. add it to our jria. -igor On Mon, Oct 13, 2008 at 8:32 AM, Christian Oldiges [EMAIL PROTECTED] wrote: Hm, but then the JavaDoc for ComponentStringResourceLoader needs to be updated, because the following example taken from that JavaDoc clearly states it will try to

Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
this is right, this is the way it works... */cicr/bla* and *?cicr=bla* are just two different ways of passing attributes... the second is much better, imo did you only try what i've written to you on your 2nd reply? miro a écrit : here more description I have a bookmarkable page and an

Possible bug in FormComponent$MessageSource regarding resource string lookups

2008-10-13 Thread Christian Oldiges
Hello! First here is my setup and the situation in which I discovered the problem which might be a bug in FormComponent$MessageSource: I am using v1.3.4 and I have a problem placing a resource string for a customized subclass of CheckBox. My component tree looks like this: page.form.main.data

Uploading a file: no path information available

2008-10-13 Thread rnieuw
When using the FileUploadField component for uploading files i cannot get the full path on the client system 'd:\temp\myFile.pdf' instead i only get the file name 'myFile.pdf'. According to FileItem.getName() Javadoc i should get the full path name if the browser supports it. I'm using IE7 and

Re: retrieveing page parameters

2008-10-13 Thread miro
I haven't tried what you wrote in second reply , I see the parameters in url in the first way which i dont want and switch to second way which is *?cicr=bla* how can I ? ,still getPageParameters returns null ? Pills wrote: this is right, this is the way it works... */cicr/bla* and

Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
* sorry, I would have say the first is much better, the one with slashes (/cicr/bla/) Piller Sébastien a écrit : this is right, this is the way it works... */cicr/bla* and *?cicr=bla* are just two different ways of passing attributes... the second is much better, imo did you only try what

Re: retrieveing page parameters

2008-10-13 Thread miro
I dont have a constructor with PageParameters.Do I need one? , becasue if itr appended to the url I can retrieve it from request or getPageParameters() Pills wrote: in your constructor that has a parameter PageParameters... miro a écrit : where should I call super(params) ?

Re: retrieveing page parameters

2008-10-13 Thread miro
Is there a way to switch to the second becasue it is more readable ? Pills wrote: * sorry, I would have say the first is much better, the one with slashes (/cicr/bla/) Piller Sébastien a écrit : this is right, this is the way it works... */cicr/bla* and *?cicr=bla* are just two

Re: retrieveing page parameters

2008-10-13 Thread Michael Sparer
Yepp you need one if you want your mounting strategies work ... and for getPageParameters not returning null ;-) miro wrote: I dont have a constructor with PageParameters.Do I need one? , becasue if itr appended to the url I can retrieve it from request or getPageParameters() Pills

Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
yes, it's mandatory. How would wicket build your page without that, to make the parameters available from everywhere, even from the constructor? miro a écrit : I dont have a constructor with PageParameters.Do I need one? , becasue if itr appended to the url I can retrieve it from request or

Re: prepulating a form and changing behaviour

2008-10-13 Thread Michael Sparer
What about trying out first and then ask if something doesn't work as desired? miro wrote: I have a Page which has a form , I assume prepopulating is just setting model object to my form which has the same properties as the form is this right ? Second If I want to change the

Re: Presentation web with some stateful components - removing jsessionid+ all PageExpired exceptions

2008-10-13 Thread Stefan Simik
jj, you are right. My mistake. I tested this, and jsessionid in bookmarkable URL never causes page-expired exception. . Johan Compagner wrote: A bookmarkabke url with a jsession id will not give you an page expired. -- View this message in context:

Re: retrieveing page parameters

2008-10-13 Thread miro
now are there ways to hide parameters from url ie I want to pass parameters but wont show them in url ? also I doing a redirect from the caller. Michael Sparer wrote: Yepp you need one if you want your mounting strategies work ... and for getPageParameters not returning null ;-)

Re: Presentation web with some stateful components - removing jsessionid+ all PageExpired exceptions

2008-10-13 Thread Johan Compagner
A bookmarkabke url with a jsession id will not give you an page expired. So if you have only bookmarkable urls in the browser bar but the page is because of statefull components statefull. Then if a browser does refresh you get another new page of that bookmarkable page the jsessionid doesnt

Re: retrieveing page parameters

2008-10-13 Thread Michael Sparer
yepp, use the setResponsePage(Page page) instead of setResponsePage(Class pageClass) method - but be aware that the resulting page is bound to the session and not reusable for other sessions, aka bookmarkable miro wrote: now are there ways to hide parameters from url ie I want to pass

Re: Downloading a BLOB

2008-10-13 Thread Bruno Borges
I think is better to create a temporary file and set DownloadLink to delete it after download is complete. I don't think is a good idea to let the user download directly from the database as you proposed. See, downloads can take some time and letting that InputStream open, might be a problem. The

Re: How to change field values in a validator?

2008-10-13 Thread Johan Compagner
You have simple Behaviors that can alter values through java script in the browser and you have converters that converts a value at the server side, validators are ment for validation of a value that is converted by a convertor not for changing data. On 10/13/08, Matthias Keller [EMAIL PROTECTED]

Re: retrieveing page parameters

2008-10-13 Thread miro
I created a new class Test extending CreateNewStorageLocation (this page is bookmarked as mountBookmarkablePage(/createStorageLocation, CreateNewStorageLocation.class); just to override a method , clicking on a link I call a page which redirects to Test and wicket creates some new url

Re: Encoding lsot when submitting a form on Tomcat 4.1.37

2008-10-13 Thread Johan Compagner
That should work fine then. You shouldnt have to do that in your page configure. What does the browser page info really give you back? Whay kind of content type does the page have there? By the way why does a client care about what content type is used? (except that he could have a requirement

Re: retrieveing page parameters

2008-10-13 Thread Johan Compagner
If we would say base class mounted to xxx then also all the subs are mounted to xxx how on earth do we know then which we should construct when xxx is hit? Also if you dont want /xx/yyy/zzz but xx?yyy=zzz then use a different url encoding because the first on is default look for

Re: retrieveing page parameters

2008-10-13 Thread miro
but if a sub class is the response page and no mount path is found can wicket use the super class mountpath or is there a way to override some method in my sub class to return the mount path of base class ? Johan Compagner wrote: If we would say base class mounted to xxx then also all

Re: Encoding lsot when submitting a form on Tomcat 4.1.37

2008-10-13 Thread Nino Saturnino Martinez Vazquez Wael
Hi Kenneth I've seen on some occasions that IE 6 will loose content type if you specify UTF-8 as I remember it.. And yeah why not use utf-8 ? Kenneth Holm Nielsen wrote: Hehe, yeah I know, I forgot to mention that I also override init in Application like so: protected void init() {

FileUploadField - value not stored in session?

2008-10-13 Thread V. Jenks
I'm using the FileUploadField and the name of the field is image. When the form model loads, all other form fields appear but the upload field remains blank. Why is that? Any way around it? -- View this message in context:

Re: How to change field values in a validator?

2008-10-13 Thread Timo Rantalaiho
On Mon, 13 Oct 2008, Matthias Keller wrote: AJAX is not an option, as it is client side. Sorry, what do you mean exactly? Javax is server-side. But do you need a pure javascript solution? Another scenario would be: User has to enter some data which needs to be stored in a certain way. For

Re: FileUploadField - value not stored in session?

2008-10-13 Thread Timo Rantalaiho
On Mon, 13 Oct 2008, V. Jenks wrote: I'm using the FileUploadField and the name of the field is image. When the form model loads, all other form fields appear but the upload field remains blank. Why is that? Any way around it? I think that it's a browser security restriction, so that you

Re: Links with CGI parameters?

2008-10-13 Thread Seven Corners
Well I was really grateful for that. I've tried both alternatives and neither works but I think maybe I just have to fiddle with them a bit. Just getting back to you before the end of the day. Thanks for the response. Randy Hammelman wrote: This will probably work for you: Isn't there

WSRP Service Description Interface

2008-10-13 Thread lesterburlap
Hi: I've been working with Wicket and Liferay. My end (possibly dream) goal is to expose a Wicket Panel in a WSRP Consumer Proxy Portlet. Can I assume that there is no support yet in Wicket (or wicket extensions, etc) for the required WSRP interfaces Service Description Interface and

Re: Wicket Security - best practices?

2008-10-13 Thread Maarten Bosteels
Hello Les, On Thu, Sep 25, 2008 at 5:11 PM, Les Hazlewood [EMAIL PROTECTED]wrote: Haha, funny you should ask this - I'm doing it now ;) Well, it wasn't pure coincidence: I saw your name appearing on the wicket mailing-list a few weeks ago and I was kinda hoping for this answer ;-) I've

FileUpload and Ajax

2008-10-13 Thread Stefan Lindner
I searched the mailing list for posts about uploading a file with an AjaxButton. The general meaning ist hat this is not possible in wicket. On post statet that there might be a solution in wicketstuff (where). Did anybody solve this problem? Stefan

Meet the Wicket Community: interview with Nino Martinez Wael

2008-10-13 Thread Martijn Dashorst
Our community has grown quite a bit since Wicket's inception. The core Wicket team is pretty visible through the various blogs and meetups—but the community is more! Meet your fellow Wicketeers and read all about them. Our first victim is one of Wicket's most visible supporters: Nino Martinez

Re: retrieveing page parameters

2008-10-13 Thread Johan Compagner
No please read my previous mail, i explained there why there cant be 1 mount point to 2 classes On 10/13/08, miro [EMAIL PROTECTED] wrote: but if a sub class is the response page and no mount path is found can wicket use the super class mountpath or is there a way to override some

CompoundPropertyModel and collection attributes

2008-10-13 Thread Cristina
Hello, I'm working on an application that will have a simple Form in front of a rather complex object graph. I'm using JPA implemented by Hibernate at the persistence layer. In an effort to keep things simple I'm using CompoundPropertyModel in the Form constructor: Person p =

Why is DropDownChoice with wantOnSelectionChange stateful?

2008-10-13 Thread Ritesh Trivedi
Hi, This may be a stupid question - Looking at the DropDownChoice.getStatelessHint() it returns false if wantOnSelectionChange is set to true? Shouldnt it depend on the enclosing form? If the enclosing form is stateless and only cares about the value thats getting submitted as a result of the

Re: Wicket Security - best practices?

2008-10-13 Thread Les Hazlewood
Hi Maarten, So far things are going great - it took almost no time at all to integrate the two projects, which I consider a reflection of the good design of both architectures ;) I have a few classes created that basically recreates the SignIn* classes in chapter 11 of Wicket In Action to show

Re: CompoundPropertyModel and collection attributes

2008-10-13 Thread Jeremy Thomerson
Use some sort of repeater over your collection, then add the individual form components inside that. add(new ListView(phones) { @Override protected void populateItem(ListItem item) { item.setModel(new CompoundPropertyModel(item.getModel()));

Re: CompoundPropertyModel and collection attributes

2008-10-13 Thread Jeremy Thomerson
In that example, the ID in new TextField() should be new TextField(number) - sorry On Mon, Oct 13, 2008 at 8:42 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Use some sort of repeater over your collection, then add the individual form components inside that. add(new

Re: Why is DropDownChoice with wantOnSelectionChange stateful?

2008-10-13 Thread Jeremy Thomerson
I suppose it's because of the stateful URL that the DDC adds to the onchange JS event that pulls that page back out of memory to update the DDC. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 13, 2008 at 7:39 PM, Ritesh Trivedi [EMAIL PROTECTED]wrote: Hi, This may be a

newSession(...) being called for every request

2008-10-13 Thread Craig Tataryn
Hi, I created a very simple little Wicket application which consisted of one page and the page relied on session information which was to persist between requests. My surprise came when I found that newSession(Request request, Response response) on my WebApplication class was being called for

Re: newSession(...) being called for every request

2008-10-13 Thread Igor Vaynberg
a stateless page in wicket means that the page does not need to be put into session. it can be reconstructed from scratch. such pages generally do not have stateful components (components that provide user with callbacks such as link and its onclick() or form and its onsubmit()). so until a

Re: newSession(...) being called for every request

2008-10-13 Thread Craig Tataryn
Yep, thanks Igor. On Mon, Oct 13, 2008 at 11:09 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: a stateless page in wicket means that the page does not need to be put into session. it can be reconstructed from scratch. such pages generally do not have stateful components (components that provide

Re: Meet the Wicket Community: interview with Nino Martinez Wael

2008-10-13 Thread Nino Saturnino Martinez Vazquez Wael
No problem, I always have time for Wicket things:) Martijn Dashorst wrote: Our community has grown quite a bit since Wicket's inception. The core Wicket team is pretty visible through the various blogs and meetups—but the community is more! Meet your fellow Wicketeers and read all about them.

A wicket gathering?

2008-10-13 Thread Nino Saturnino Martinez Vazquez Wael
Hi I've been pondering as usually. This time about a wicket gathering, and it should be something where all could meetup, also from international places. Ideally all comitters would show up. It should be something that were held once a year and not in conjunction with something else as I