Re: how to redirect wicket pages using javascript

2008-10-20 Thread Michael Sparer
looks like something's wrong in your service, check the random stuff at com.ccti.digibanker.arcot.service.ArcotUserQAServiceImpl.get3QA(ArcotUserQAServiceImpl.java:72) ;-) ... don't think it's anything related to the headercontributor freak182 wrote: > > Hello, > > I have a project which uses

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 params

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

Re: Stateless AJAX links

2008-10-20 Thread aditsu
igor.vaynberg wrote: > > can you set a breakpoint and see where response.redirect is being called > from for ajax processing? i can see it would be called if you added the > page > itself to the ajaxrequesttarget. > Actually, redirect seems to be false, but WebRequestCycle.isRedirect first che

Re: wicket war file has problems with tomcat

2008-10-20 Thread Igor Vaynberg
i think you need to dump the slf4j to commons logging bridge jar in there also. check slf4j website for details. -igor On Mon, Oct 20, 2008 at 6:38 PM, overseastars <[EMAIL PROTECTED]> wrote: > > > Hi igor > > I dont know how to fix this. I already copyied all jar files under WEB-INF > to tomc

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: >> >

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

RE: @MountPath with same path

2008-10-20 Thread David Leangen
You can use IndexedHybridUrlCodingStrategy (or something like that... currently writing from [my poor] memory). Cheers, =dml > -Original Message- > From: Jorn Zaefferer [mailto:[EMAIL PROTECTED] > Sent: 21 October 2008 06:33 > To: users@wicket.apache.org > Subject: Re: @MountPath wi

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: CSRF Protection: double submitted cookie

2008-10-20 Thread Jörn Zaefferer
The double-submitted-cookie isn't related to double submit protection, no. Thats a completely different turf. With that out of the way, its enough to create just one cookie and use that both while rendering and validating forms. I hope that makes it clearer. I'll try to provide a reference implem

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. > > -O

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 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:4

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: the ${label} is always 'options'

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 arch

Re: wicket war file has problems with tomcat

2008-10-20 Thread Igor Vaynberg
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 but my war file cannot run on tomcat6. Could anyone show me > a way to fix the problem? > I just checked the log under tomcat. it gav

wicket war file has problems with tomcat

2008-10-20 Thread overseastars
Hi all I dont know why but my war file cannot run on tomcat6. Could anyone show me a way to fix the problem? I just checked the log under tomcat. it gave me the following. I actually already copy all jar files under the WEB-INF/lib to the lib folder under tomcat home. Something else needed?

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??? >

@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 pro

Re: Stateless AJAX links

2008-10-20 Thread Igor Vaynberg
can you set a breakpoint and see where response.redirect is being called from for ajax processing? i can see it would be called if you added the page itself to the ajaxrequesttarget. as far as supporting stateless ajax goes, i am not sure if or when we are going to support it. we are not going to

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 t

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 applica

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 c

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 org.apach

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

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. Wou

Re: wicket-ioc/cglib & constructor injection

2008-10-20 Thread Igor Vaynberg
On Mon, Oct 20, 2008 at 1:30 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > Hi Igor, > > > add a package private default constructor to your class. > > default constructor wont work in this case. why not? you dont own the class? then you have to use something like salve. btw, if wicket cant creat

Re: Multilingual website

2008-10-20 Thread Goran Novak
Every page like SomePage.java can have multiple message files with the same name as java file for each language: default language: SomePage.properties english: SomePage_en.propeties and so on. In each propeties file you put the sam key and differen values SomePage.properties --> someMessage

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 ke

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 compon

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 https://wicket-stuff.svn.sourceforge.net/svnroot/

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 -

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)) { @Overrid

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 y

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: http://www.nabble

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 P

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 right?

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 m

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 ha

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 (h

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 Nino Saturnino Martinez Vazquez Wael
I found this interesting: "Don't forget OWASP CSRFTester and CSRFGuard Comment by Jeff Williams on September 29th, 2008 at 9:53 am. OWASP has made

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)   The StaticImage part works great. Mino

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 na

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: http://issues.apache.org/jira/browse

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 ap

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 nee

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 pa

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 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

tomcat 6

2008-10-20 Thread Leucht, Axel
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 IDE (3.4 Ganymede), so I suspect setup of the project should be easy. When the server environment is set to tomcat 5.5.27 the HelloWorldApplication runs f

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 I'