Re: where is wicket-contrib-gmap3 1.3.4

2008-10-20 Thread overseastars
Sorry I got some of my words missing. I mean the latest wicket-contrib-gmap2-1.4 is not compatible with wicket-1.3.4. So the only way is to checkout the svn and DIY that jar file??? overseastars wrote: Hi I'm using wicket 1.3.4 which is not compatible with wicket-contrib-gmap2

Re: Recommended validation method

2008-10-20 Thread Igor Vaynberg
public class mywebpage extends webpage { @SpringBean private Dao dao; public mywebpage() { add(new textfield(foo).add(new ivalidatiorstring() { public void validate(ivalidatablestring v) { string value=v.getvalue(); if (!dao.valueunique(value)) {

Re: where is wicket-contrib-gmap3 1.3.4

2008-10-20 Thread Martin Funk
2008/10/20 overseastars [EMAIL PROTECTED] Sorry I got some of my words missing. I mean the latest wicket-contrib-gmap2-1.4 is not compatible with wicket-1.3.4. So the only way is to checkout the svn and DIY that jar file??? If you wan't to stay 'on the edge' you can check out trunk,

wicket-ioc/cglib constructor injection

2008-10-20 Thread Jan Kriesten
Hi, wicket-ioc/cglib (using 1.3-snapshot) has problems when it comes to creating proxies for constructor injection (and also when it comes to enhance final classes): Caused by: java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given at

Re: wicket-ioc/cglib constructor injection

2008-10-20 Thread Igor Vaynberg
add a package private default constructor to your class. these are all well known limitations of proxying classes, you should try to make sure your injected dependencies are interfaces or you something like salve so no proxies are needed. -igor On Sun, Oct 19, 2008 at 11:53 PM, Jan Kriesten

Re: where is wicket-contrib-gmap3 1.3.4

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Hmm theres no 1.3 snap.. So yes currently no other way.. overseastars wrote: Sorry I got some of my words missing. I mean the latest wicket-contrib-gmap2-1.4 is not compatible with wicket-1.3.4. So the only way is to checkout the svn and DIY that jar file??? overseastars wrote: Hi

Re: Pages or components... how do u decide?

2008-10-20 Thread Jörn Zaefferer
A URL is quite a strong argument for using pages. With the wicket-annotations project its dead-easy to make pages bookmarkable, just add @MountPath(path=/path/to/page). Jörn On Sun, Oct 19, 2008 at 11:55 PM, Ned Collyer [EMAIL PROTECTED] wrote: I use markup inheritance for some pages, but I

Re: tomcat 6

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Check you dependencies.. I just use jetty when running from eclipse, much simpler.. Just run start jar or debug start jar.. etc.. Leucht, Axel wrote: Hi, I'm currently trying to get a HelloWorld application running with wicket 1.3.4. I'm doing all my web development from within the Eclipse

Re: Pages or components... how do u decide?

2008-10-20 Thread Ned Collyer
I use those annotations - they are awesome :) If you could annotate a panel to be bookmarkable.. that'd be interesting. So the panel COULD be embeded into other components, or used standalone as a page. Currently I achieve this by creating a new page class which instantiates and passes the

Re: wicket-ioc/cglib constructor injection

2008-10-20 Thread Jan Kriesten
Hi Igor, add a package private default constructor to your class. default constructor wont work in this case. these are all well known limitations of proxying classes, you should try to make sure your injected dependencies are interfaces or you something like salve so no proxies are

CSRF Protection: double submitted cookie

2008-10-20 Thread Jörn Zaefferer
Hi, my application currently uses CryptedUrlWebRequestCodingStrategy to protect against CRSF attacks. Afaik 1.3.5 will include an update that generates the key based on user sessions: http://issues.apache.org/jira/browse/WICKET-1782 According to Johan Compagner, there are still issues with that

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
for me +1 if it does not interfere with other stuff. Jörn Zaefferer wrote: Hi, my application currently uses CryptedUrlWebRequestCodingStrategy to protect against CRSF attacks. Afaik 1.3.5 will include an update that generates the key based on user sessions:

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Johan Compagner
what i dont get if an attacker wants to submit the form. and it can get to the form it can do the post but you say it cant access the cookie. But if the cookie value is just compared to the form post value we have to make sure that the name of the cookie cant be guessed right? So what should the

Ajax refresh custom WebComponent fail (an external image by Igor Vaynberg)

2008-10-20 Thread bryan0101
I'm trying to refresh a custom components describe in http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html . It's an External image wrapped in a link (clickable image) nbsp; The StaticImage part works great.

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Jörn Zaefferer
No, the cookie is subject to the same-origin-policy, both in reading and writing. The request is authenticated because the session cookie is set, but its invalid when the form itself is missing the value. Combining the attack with XSS would give access to the cookie, but then he could just as well

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Jörn Zaefferer
I've looked at CSRFGuard, the approach has several of the drawbacks described in the paper. Its much less effective then the double-submitted-cookie, eg. it involves buffering and rewriting the response to modify forms. It generates values for each rendered form and stores it in the user session

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Johan Compagner
hmm i will read the paper then I stil dont get it how it is possible with 1 cookie, that then can never change when it is first generated and all the forms also just have that value right? But it is also for double submit protection right? So the cookie has to change right? But how can you then

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Ahh, a no go for their filter then. The idea are very nice though. Jörn Zaefferer wrote: I've looked at CSRFGuard, the approach has several of the drawbacks described in the paper. Its much less effective then the double-submitted-cookie, eg. it involves buffering and rewriting the response to

Re: Pages or components... how do u decide?

2008-10-20 Thread Jörn Zaefferer
The only markup difference between pages and panels for me is that panels use wicket:panel and pages use wicket:extend. Making that the same, I'd prefer wicket:extend, would make it even easier to switch from a page to a panel and back. Jörn On Mon, Oct 20, 2008 at 10:22 AM, Ned Collyer [EMAIL

Multilingual website

2008-10-20 Thread newbieabc
Could someone direct me in how to go about making an exisiting website a multilingual one in wicket framework? General info, articles you can recommend would be great. I'm in the starting phase so I don't have any specific questions yet. Thanks -- View this message in context:

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
I found this interesting: Don't forget OWASP CSRFTester and CSRFGuard http://freedom-to-tinker.com/blog/wzeller/popular-websites-vulnerable-cross-site-request-forgery-attacks#comment-100619 Comment by Jeff Williams http://www.owasp.org on September 29th, 2008 at 9:53 am. OWASP has made two

Re: Multilingual website

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Is it just static multilingual, like help texts buttons etc.. Then you can use property files, database stuff etc.. There something about this on the wiki and in WIA.. If it's deeper like some of your classes descriptions, etc can be translated its another story.. A little more messy, unless

setObject( ), getObject( )

2008-10-20 Thread Ricky
Hi, Is there any reason getObject and setObject were not made final in Model class? the reason why i am asking is that there might be the case when people misuse this; for example (and i have seen this at my current workplace); Model xModel = new Model(new Long(1)) {

Javascript callback

2008-10-20 Thread dideep
I've got a highly functional JS widget (a grid) which I'm trying to wrap up in a wicket component. The JS widget has an object it uses to talk to the server - you tell this object a URL. I've got as far as adding a DefaultAjaxBehavior to my component and telling the JS widget the callback URL -

Re: Javascript callback

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Yes. if you checkout open layers contrib mootips theres something there: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-openlayers/src/main/java/org/wicketstuff/openlayers/event/ClickEventListenerBehavior.java

Re: Javascript callback

2008-10-20 Thread Martin Funk
2008/10/20, dideep [EMAIL PROTECTED]: I've got a highly functional JS widget (a grid) which I'm trying to wrap up in a wicket component. The JS widget has an object it uses to talk to the server - you tell this object a URL. I've got as far as adding a DefaultAjaxBehavior to my component

DateTextField, format not valid, message key

2008-10-20 Thread Goran Novak
Hi, I'm using the org.apache.wicket.datetime.markup.html.form.DateTextField component for my date fields. When I enter some random string in the text field in the feedback panel, 'asdfasdf' is not a valid Date. message appears. I would like to customize that message, but I can't find which key

Model equals/hashCode

2008-10-20 Thread Alexander Landsnes Keül
Hi, Is there any particular reason why Model doesn't implement a default equals(..) and hashCode() function? I have a very simple IDataProvider that simply wraps the returned object in a Model, and since I want to reuse the items I had to inline override the aforementioned functions.

Re: CSRF Protection: double submitted cookie

2008-10-20 Thread Nino Saturnino Martinez Vazquez Wael
Hmm and what about nested forms? Johan Compagner wrote: hmm i will read the paper then I stil dont get it how it is possible with 1 cookie, that then can never change when it is first generated and all the forms also just have that value right? But it is also for double submit protection

Re: setObject( ), getObject( )

2008-10-20 Thread Igor Vaynberg
whenever there is something nonfinal people will always find a way to misuse it. model methods are not final because it gives you a simple base class to subclass instead of starting from scratch with an imodel. -igor On Mon, Oct 20, 2008 at 6:37 AM, Ricky [EMAIL PROTECTED] wrote: Hi, Is

Re: DateTextField, format not valid, message key

2008-10-20 Thread Serkan Camurcuoglu
grepping the wicket source I found in file src/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.properties: IConverter='${input}' is not a valid ${type}. but I don't know if you can specify a separate message for type Date.. Goran Novak wrote: Hi, I'm using the

Re: DateTextField, format not valid, message key

2008-10-20 Thread Serkan Camurcuoglu
Wicket in Action book says that IConverter.Date should work.. Serkan Camurcuoglu wrote: grepping the wicket source I found in file src/jdk-1.4/wicket/src/main/java/org/apache/wicket/Application.properties: IConverter='${input}' is not a valid ${type}. but I don't know if you can

Re: Wicket versus Spring MVC

2008-10-20 Thread Richard Allen
Joel, What advantage does Tapestry 5 provide you over Wicket for your front office pages? Thanks, Richard Allen On Sun, Oct 19, 2008 at 8:17 AM, Joel Halbert [EMAIL PROTECTED] wrote: We're actually using two web frameworks in our application, depending on the type of page. Our application

Re: RequestCycle.urlFor modifies a page's parameters?

2008-10-20 Thread Igor Vaynberg
i dont think this is normal. please file a jira issue. -igor On Fri, Oct 17, 2008 at 3:48 AM, aditsu [EMAIL PROTECTED] wrote: Hi, I'm using wicket 1.4-m3 I was debugging a problem and I found that RequestCycle.urlFor(Component, RequestListenerInterface, ValueMap) can sometimes modify the

@MountPath with same path

2008-10-20 Thread Cédric Thiébault
Hi, I want to use REST url for my application using wicketstuff-annotation but it seems that I can't use the same path for 2 pages. For example : - /products for the list of products @MountPath(path = products) public class ProductListPage extends Webpage - /products/5 for the detail of

Re: where is wicket-contrib-gmap3 1.3.4

2008-10-20 Thread overseastars
Thanks for replying Martin Funk-3 wrote: 2008/10/20 overseastars [EMAIL PROTECTED] Sorry I got some of my words missing. I mean the latest wicket-contrib-gmap2-1.4 is not compatible with wicket-1.3.4. So the only way is to checkout the svn and DIY that jar file??? If you wan't

Re: RequestCycle.urlFor modifies a page's parameters?

2008-10-20 Thread aditsu
igor.vaynberg wrote: i dont think this is normal. please file a jira issue. Filed WICKET-1881 Thanks Adrian -- View this message in context: http://www.nabble.com/RequestCycle.urlFor-modifies-a-page%27s-parameters--tp20031013p20077002.html Sent from the Wicket - User mailing list

Feedback panel message

2008-10-20 Thread Steve Thompson
I've got a panel for which I am building a number of DropDownChoices. Each must be selected, and if any one of them is not, a message must be displayed in the corresponding feedback panel. The problem however is that, with my HTML as such: table tr wicket:id=reasons tdspan

RE: Feedback panel message

2008-10-20 Thread Dane Laverty
Like so: DropDownChoice myDropDownChoice = new DropDownChoice(...); myDropDownChoice.setLabel(new Model(Description)); add(myDropDownChoice); Hope that helps. -Original Message- From: Steve Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2008 12:49

Re: tomcat 6

2008-10-20 Thread Timm Helbig
Hi, I use Tomcat 6.0.16/17/18 with the Wicket Example Application out of the box. No Problems at all. I suspect Tomcat is not the Problem. Regards, Timm Am Monday 20 October 2008 09:30:32 schrieb Leucht, Axel: Hi, I'm currently trying to get a HelloWorld application running with wicket

Re: Feedback panel message

2008-10-20 Thread Steve Thompson
Dane - Thanks, this worked like a charm! On 10/20/08, Dane Laverty [EMAIL PROTECTED] wrote: Like so: DropDownChoice myDropDownChoice = new DropDownChoice(...); myDropDownChoice.setLabel(new Model(Description)); add(myDropDownChoice); Hope that helps. -Original

Re: @MountPath with same path

2008-10-20 Thread Jörn Zaefferer
How about mounting that to just products and displaying different content based on the presence of the parameter? You abstract the content of both pages into panels and show one or the other based on the paramter. Jörn On Mon, Oct 20, 2008 at 6:15 PM, Cédric Thiébault [EMAIL PROTECTED] wrote:

Re: wicket war file has problems with tomcat

2008-10-20 Thread overseastars
Hi igor I dont know how to fix this. I already copyied all jar files under WEB-INF to tomcat6's lib folder. igor.vaynberg wrote: looks like you are missing slf4j jars in your war? -igor On Mon, Oct 20, 2008 at 10:18 AM, overseastars [EMAIL PROTECTED] wrote: Hi all I dont know why

Re: wicket war file has problems with tomcat

2008-10-20 Thread claym
I don't think you want your app jars in the server lib directory. Those .jars should be in /WEB-INF/lib -Clay overseastars wrote: Hi igor I dont know how to fix this. I already copyied all jar files under WEB-INF to tomcat6's lib folder. igor.vaynberg wrote: looks like you

Re: Setting title dynamically on Modalwindow

2008-10-20 Thread Kuga
Can anyone please help me with this? Kind of not getting any clue. Appreciate any help. thanks Kuga Kuga wrote: Hi, Can anyone help me with the following. Thanks in advance for any help. I need to update the Title of the Modalwindow based on some actions on the dialog. For example say i

how to redirect wicket pages using javascript

2008-10-20 Thread freak182
Hello, I have a project which uses mostly javascript because it is a client base part. My problem is when i cannot redirect wicket pages in javascript. I already try this in behavior: . init.js function clientReady() { location.href = '${url}'; } in behavior... final Map