Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Pills
Thank you all for your ideas. At the moment, I handle it manually (transaction and session), and until now, I don't got much problems. I don't want to use anything from spring, as it seems a lot more difficult than anything else in my project. I've put a closeSession on the onAfterRender

Re: DojoColorPicker seems not to work

2008-02-10 Thread Pills
Could anybody tell me if it's normal (maybe under developement) or if I made something wrong during the checkout? I got the sources from the svn, and packaged manually the whole dojo into a jar... I tried to use the ants script, but it didn't work (many errors on run). And I don't use maven...

Re: Upload files using Flex (php move_uploaded_file equivalent)

2008-01-23 Thread Pills
I looked on the code in the FileUploadField class. This lines seems interesting: // Get request final Request request = getRequest(); // If we successfully installed a multipart request if (request instanceof IMultipartWebRequest) { // Get the item for the path final FileItem item =

Re: Javascript call to wicket

2008-01-14 Thread Pills
Thanks, it's short and precise. I have nothing more to say about this ;) Erik van Oosten-3 wrote: I did not find the results of this thread on the Wiki yet, so I created the following page: http://cwiki.apache.org/confluence/display/WICKET/Calling+Wicket+from+Javascript Comments and

Re: Javascript call to wicket

2008-01-10 Thread Pills
Ok, I'll write it maybe tomorrow or this week end (I'm quite busy but I can take an hour or two to write it). Michael Sparer wrote: I'm also no native speaker but I'll certainly read through it and write some enhancements (if necessary) once it's in the wiki regards, Michael -- View

Re: Javascript call to wicket

2008-01-09 Thread Pills
Thank you, now everything works fine, and it's clean ;) Michael Sparer wrote: You can do that like so: Map map = ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); Maybe there's also an easier way but I'm not really into wicket's requestcycle ... -- View this

Re: Javascript call to wicket

2008-01-08 Thread Pills
Michael Sparer wrote: Generally you can get the callback-url of a wicket ajax-component with calling getCallbackUrl(), you should have a look at wicketAjaxGet which is part of wicket's JS library to make the whole stuff a bit more dynamic you could make a javascript template using

Re: Javascript call to wicket

2008-01-08 Thread Pills
Thank you, I choosed your first and pretty solution, and it works fine. But how to get the parameters in the java code? I see nothing in the class AjaxRequestTarget that may return the parameters of the request? Michael Sparer wrote: hi, - your component has to implement

@AuthorizeInstanciation and several roles

2007-12-30 Thread Pills
Hello, I'm using the wicket-auth-roles package to allow or restrict access to some pages. I need to autorize the instanciation of some pages to several roles. Is it possible to write something like: @AuthorizeInstanciation(poweruser,admin,sysadmin) class Mypage extends WebPage {...} and

Redirect to a page with POST parameters

2007-12-16 Thread Pills
Hello, I'm looking for a way to redirect to an external page that needs some POST parameters to works. It will be used in a paiement system implementation (it needs some data like currency, amount... passed using post parameters). I know how to redirect a user to a simple url (with

How to secure passwords?

2007-12-03 Thread Pills
Hello, I've a little question with wicket: I would like to hash my users' passwords (with md5) to make them unreadable for a human. And I also would like to hash them before sending them through the network (to avoid the biggest part of security issues). Is there a way to achieve this? Thank

Re: How to secure passwords?

2007-12-03 Thread Pills
Korbinian Bachl wrote: This is nothing about wicket - its about base security. MD5 is a hash-algorithm (see: http://en.wikipedia.org/wiki/Md5) which is no more secure (flaw found 1996) as there are tables to reverse given md5 (from 2003 on) to a valid input thank you for your

Generating email body with wicket

2007-11-30 Thread Pills
Hi everybody, just a little question: is there a way to use wicket to generate the body of an html email? I mean, is it possible to output a page in an another place than the servlet's response outup (like a ByteArrayOutputStream)? If yes, then I'll be able to put it to my email's body ;)

Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills
Hello, I've a textfield that accept an integer (it represents a foreign key). I would like it to be converted as an instance of MyClass before updating my model. But I don't know how to specifiy a custom converter for a field... I would like to implement this converter like this: code

Re: Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills
Johan Compagner wrote: Converters are (in 1.3 especially) are String - X (or X - String) so browser string input converted to a model value. So how do you already get an integer? Because that should be converted by a converter already. johan Well, I wrote this code: person = new

Re: Use a custom converter (IntegerToMyClass)

2007-11-28 Thread Pills
Sorry, I made some big mistakes (again). http://cwiki.apache.org/WICKET/using-custom-converters.html#Usingcustomconverters-Usingcustomconverters This document helped me very much ;) -- View this message in context:

Manually handle post data

2007-11-27 Thread Pills
Hello, I'm using an online payement system, and it sends me some data with the POST method (transaction completed or not, amount payed, currency, etc...). How can I retrieve this data with wicket? Thanks a lot ;) -- View this message in context:

Re: Manually handle post data

2007-11-27 Thread Pills
Michael Sparer wrote: I you really wanna do this manually, this code might help you: Map map = ((WebRequestCycle)RequestCycle.get()).getRequest().getParameterMap(); regards For me it doesn't matter... This way is quite good, but if you've a better idea (the wicket way) I'll use it ;)

Wizard and form submission

2007-11-20 Thread Pills
Hello, I'm working with wizards and having a small problem. Some steps needn't to process the form validation (an internal form let the user inserts several sets of values, it implements a 1-N relation of my database). How can I tell wicket that step #1 need to submit the whole form and that

Re: Wizard and form submission

2007-11-20 Thread Pills
Hi, I'm using this code to disable the automatic form submission: public void onActiveStepChanged(IWizardStep newStep) { Button b = (Button) ((MarkupContainer) getForm().get(BUTTONS_ID)).get(next); b.setDefaultFormProcessing(myflag); } Is there something more pretty? -- View this

Submit a form and ignore nested forms

2007-11-16 Thread Pills
Hi everybody, I'm using nested forms in my web app to provide to the user a simple way for editting a product and its stock state at the same time (PRODUCTS and STOCKS are bound with a relation 1-n in my database). So I've defined a form for each of my tables. When I submit a nested form (in

Re: Usage of nested forms

2007-11-15 Thread Pills
Please ignore my previous post. I'd make a big mistake, I'd override onSubmit from the button and not from the form Now everything works fine ;) -- View this message in context: http://www.nabble.com/Usage-of-nested-forms-tf4804894.html#a13763909 Sent from the Wicket - User mailing list

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-13 Thread Pills
Timo Rantalaiho wrote: What's the point of this method? And why is it calling modelChanging and modelChanged? I think that normally you don't call them themselves, just override them to react when the framework calls them. Best wishes, Timo Well, I use this method to edit a

[Example page]Internal error in Dataview?

2007-11-10 Thread Pills
Hi everybody, I think there is a problem with some examples in the sample page. If you go here: http://wicketstuff.org/wicket13/repeater/ , only the first link works. Others displays the classic wicket's internal error page. I tried with two desktops, both under XP/Firefox 2.0.0.9, and got the

Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
Hi, I have a strange problem with the PropertyModel and a form. The property model is bound with one of my class, like that: shops = new DropDownChoice(shop, new PropertyModel(formTarget, shops), new ShopDAO().findAll(), new ChoiceRenderer() { @Override public

Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
Hi, I have a strange problem with the PropertyModel and a form. The property model is bound with one of my class, like that: shops = new DropDownChoice(shop, new PropertyModel(formTarget, shops), new ShopDAO().findAll(), new ChoiceRenderer() { @Override

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-09 Thread Pills
I think I've found the problem: I didn't override equals and hashcode in my class Shop. Can anybody confirm that was the cause of that problem? -- View this message in context: http://www.nabble.com/Strange-behavior-with-DropDownChoice-and-PropertyModel-tf4778359.html#a13669424 Sent from the

Several localized buttons in a form

2007-11-08 Thread Pills
Hello, I would like to put 2 buttons on a form (submit/cancel). This 2 buttons need to be localized. I tried to override the form's onSubmit, and add one new Button (submit) and a new subclass of Button (cancel). My code looks like this: [CODE] Form form = new Form(formaddeditcurrency) {

Re: Several localized buttons in a form

2007-11-08 Thread Pills
Sebastiaan van Erk wrote: /** * Sets the defaultFormProcessing property. When false (default is true), * all validation and form updating is bypassed and the onSubmit method of * that button is called directly, and the onSubmit method of the parent *

Re: Question about localization

2007-11-08 Thread Pills
igor.vaynberg wrote: application.init() { getresourcesettings().setlocalizer(...); } you dont have to use the default resource model, just write your own if you dont like the default one. -igor Thank you, it works fine ;) But I have another problem. I sometimes use

Re: Question about localization

2007-11-07 Thread Pills
Yes, I'll make it part of the key. I searched but not found, how can I change the default localizer and the default resourcemodel? There is no method setLocalizer/setResourceModel in class WebApplication... Thank you for your help. igor.vaynberg wrote: you can override methods in

Invalid field feedbackpanel messages

2007-11-06 Thread Pills
Hi guys, I would like to change the default text for invalid fields on a FeedbackPanel... How can I do that? Thanks! -- View this message in context: http://www.nabble.com/Invalid-field---feedbackpanel-messages-tf4758491.html#a13608034 Sent from the Wicket - User mailing list archive at

Re: Question about localization

2007-11-06 Thread Pills
igor.vaynberg wrote: now what you CAN do is write your own resourcemodel -igor Is it possible to place style1 and style2 strings in separate files? I mean, is it possible to force the resource localizer to look up into several files for style1.foo or style2.foo? Thank you for your

Re: [Newbie][1.3 beta] StackOverflowError on LogFactory.getContextClassLoader

2007-10-28 Thread Pills
I found a way I've just copied all *.jar from /lib in wicket-examples-1.3.0-beta4.war to myapp/WEB-INF/lib, ant that works fine ;) I still don't know exactly which jar are required by Wicket, but now it works ;) -- View this message in context: