Re: how to redirect wicket pages using javascript

2008-10-21 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

Re: how to redirect wicket pages using javascript

2008-10-21 Thread freak182
Thanks Michael ...i could hardly detect that...hehehe cheers.. Thanks... Michael Sparer wrote: 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

Re: How to get return value from javascript

2008-10-21 Thread Piller Sébastien
js is client side, and wicket is server side. to pass a value from js to wicket, you may do an ajax query. see wicketAjaxGet and AbstractDefaultAjaxBehavior freak182 a écrit : Hello, My problem is how can i get the return value of a javascript function: e.g init.js funtion userExist(id) {

Re: DateTextField, format not valid, message key

2008-10-21 Thread Goran Novak
It works, thanks :) dateTextField.IConverter.Date = The date is not valid custom message Serkan Camurcuoglu wrote: Wicket in Action book says that IConverter.Date should work.. *** -- View this message in context:

RE: How to get return value from javascript

2008-10-21 Thread Jaap Bos
You could use a wicket HiddenField and let your js function write his result to this field. At the next (ajax) request you are able to read the value from this field. Jaap -Original Message- From: Piller Sébastien [mailto:[EMAIL PROTECTED] Sent: dinsdag 21 oktober 2008 9:49 To:

ContextImage not generating path relative to context root

2008-10-21 Thread Gianni Doe
I'm a bit confused about ContextImage; according to the javadocs the image path will be prefixed such that the image is relative to the context root. In my markup I've got: img wicket:id=logo src=mylogo.gif / Then I add the Context image to my WebPage: add(new ContextImage(logo,

Re: tomcat 6

2008-10-21 Thread Guðmundur Bjarni
If you decide to go for Jetty, you should try the run-jetty-run[1] plugin that Eelco wrote. Basically if your project is set up right, i.e. web.xml in the right place and so on. You can run it like any other Java Application from Eclipse's run configurations. regards, Guðmundur Bjarni [1]

Returning XML to JS

2008-10-21 Thread Ambrose . Wheatcroft
Hi, What's the nice / correct way to do this in Wicket: I have a client side bit of JS that looks something like getData(URL); It expects to get back an XML document like data entryfoo/entry entrybar/entry /data On the wicket side, I want the Java object that

inmethod / grid website?

2008-10-21 Thread Martin Voigt
Hi, this may be the wrong place to ask, but anyways. What happened to the inmethod/ grid web site? http://www.inmethod.com/ is showing the tomcat welcome page for some time now. Did it move? Regards, Martin - To unsubscribe,

Re: inmethod / grid website?

2008-10-21 Thread Robby O'Connor
They may have screwed up their context descriptor or perhaps just didn't deploy it? Best bet would be email their tech contect (see domain name whois for info.) --rob Martin Voigt wrote: Hi, this may be the wrong place to ask, but anyways. What happened to the inmethod/ grid web site?

Re: Returning XML to JS

2008-10-21 Thread Peter Ertl
have a look at XStream :-) Am 21.10.2008 um 11:25 schrieb [EMAIL PROTECTED]: Hi, What's the nice / correct way to do this in Wicket: I have a client side bit of JS that looks something like getData(URL); It expects to get back an XML document like data entryfoo/entry

Re: Threading problem

2008-10-21 Thread Kaspar Fischer
Thank you very much for this explanation, Igor. Very much appreciated. - Kaspar On 16.10.2008, at 18:14, Igor Vaynberg wrote: requests from a single session are serialized. but what if your page is stateless and you click the two links fast? each click spins off a request that now needs a

Re: how to get bookmarkable-page-url in FeedResource

2008-10-21 Thread Jörn Zaefferer
I'm using with in my Application subclass to mount the feed as implemented by MyFeedResource: getSharedResources().add(my-feed, new MyFeedResource()); mountSharedResource(/games/atom, new ResourceReference(my-feed).getSharedResourceKey()); And on my base page:

Salve and Guice

2008-10-21 Thread Edgar Merino
I've been searching for information on how to use guice to lookup dependencies with salve, the wiki only mentions how to add the guice locator but I believe that is not working (at least not by it self). I've got a class in a wicket application that is not a component, but I need a service

Re: inmethod / grid website?

2008-10-21 Thread Martin Voigt
Yea, was just that it's Matej who did the grid stuff (at least to my knowledge), so I thought it would make sense to ask it here, as I'm sure I'm not the only one using grid ;) Regards, Martin 2008/10/21 Robby O'Connor [EMAIL PROTECTED]: They may have screwed up their context descriptor or

Re: Salve and Guice

2008-10-21 Thread Kristof Jozsa
Hi Edgar, did you use either static weaving or the runtime agent as described at http://code.google.com/p/salve/wiki/ConfiguringInstrumentation ? Kristof On Tue, Oct 21, 2008 at 11:42 AM, Edgar Merino [EMAIL PROTECTED] wrote: I've been searching for information on how to use guice to lookup

Re: Salve and Guice

2008-10-21 Thread Guðmundur Bjarni
I haven't used Salve with Wicket, but I've been using the wicket-guice integration quite extensively. The reason I'm answering this is that I feel that many of the use cases of Salve can be solved with pure vanilla Guice. In cases where you can't control the instantiation of objects, you can use

Re: inmethod / grid website?

2008-10-21 Thread Jörn Zaefferer
I second that, please get the site fixed! Jörn On Tue, Oct 21, 2008 at 12:27 PM, Martin Voigt [EMAIL PROTECTED] wrote: Yea, was just that it's Matej who did the grid stuff (at least to my knowledge), so I thought it would make sense to ask it here, as I'm sure I'm not the only one using grid

Re: inmethod / grid website?

2008-10-21 Thread Erik van Oosten
We should really have a FAQ here. Anyways: you can find the inmethod stuff in wicket-stuff now. There is no official release so you'll have to compile the sources yourself or grab a recent jar from wicket-stuff's bamboo server. Regards, Erik. Martin Voigt wrote: Hi, this may be the

Re: inmethod / grid website?

2008-10-21 Thread Matej Knopp
Hi, I'm sorry about it, been a bit busy lately. The grid is in Wicket Stuff SVN. It's likely that it will get to Wicket 1.5 extension. I wanted to put info on wicketstuff wiki (where it imho belongs) but Wicket stuff firewall is blocking me. If anyone could do that for me it would be nice.

Re: Session destruction due to timeout...

2008-10-21 Thread Mendeleev
I passed the application key and it worked. Thanks a lot for the help. Johan Compagner wrote: no you cant and Application.get() will never work then because the auto destruct of a container doesnt do that in a request ofcourse but just somewhere on some thread. if you need an

Re: javascript error in internet explorer

2008-10-21 Thread Srikanth.NT
My IE version is 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 In wicket-ajax.js, I replaced t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId || ); with if (Wicket.Focus Wicket.Focus.lastFocusId) { t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId || ); }

Re: Ajax validating individual form fields

2008-10-21 Thread Daan van Etten
Hi fatefree, Check this blog post: http://stuq.nl/weblog/2008-09-03/user-friendly-form-validation-with-wicket I think this achieves what you want. Regards, Daan On 21 okt 2008, at 15:28, fatefree wrote: I have been trying to fulfill a requirement of a form, where each field is validated

Re: @MountPath with same path

2008-10-21 Thread Cédric Thiébault
Jörn Yes I could do something like that but I don't really like the idea of a unique page that dispatch to panels depending on parameters... David It throws the same exception with @MountIndexedHybrid: org.apache.wicket.WicketRuntimeException: products is already mounted for

Re: @MountPath with same path

2008-10-21 Thread Jörn Zaefferer
Thats the type of problem where you fight against a basic design descision. Happens a lot with Hibernate, too, and you always lose one way or the other... Jörn On Tue, Oct 21, 2008 at 5:04 PM, Cédric Thiébault [EMAIL PROTECTED] wrote: Jörn Yes I could do something like that but I don't really

Validation Messages

2008-10-21 Thread Kai Mütz
Hi, I have some problems with validation messages. Normally I set my validation messages within the property files like this: Required='${label}' is required StringValidator.maximum='${label}' [...] ${maximum} [...] myform.myfield=My Field and got (as expected) 'My Field' is required if I do

Re: inmethod / grid website?

2008-10-21 Thread Martin Grigorov
Jars: http://wicketstuff.org/maven/repository/com/inmethod/ Demo: http://wicketstuff.org/grid-examples/ Update your bookmarks. On Tue, 2008-10-21 at 11:53 +0200, Martin Voigt wrote: Hi, this may be the wrong place to ask, but anyways. What happened to the inmethod/ grid web site?

Re: Salve and Guice

2008-10-21 Thread Igor Vaynberg
there are cases where this approach plain old sucks. as you mentioned, if its not a component you have to use static injection which is fugly class mydataprovider implements idataprovider { public mydataprovider() { InjectorHolder.getInjector().inject(this); } } another problem is that

Wicket community traction / Wicket Web 2.0 experience

2008-10-21 Thread christoph . grothaus
Hi Wicket users! At my company, we are currently evaluating technology choices for building web user interfaces. We narrowed our candidate list down to two remaining candidates: Wicket and GWT. We already did some prototyping with these two. Our main conclusions are - Wicket has the better

Re: setObject( ), getObject( )

2008-10-21 Thread Scott Swank
However setObject() doesn't work as well on AbstractReadOnlyModel as it does on Model, which is particularly important for immutable backing objects such as Strings. On Tue, Oct 21, 2008 at 2:35 AM, Johan Compagner [EMAIL PROTECTED] wrote: we have also AbstractReadOnlyModel for that so igor are

Re: Validation Messages

2008-10-21 Thread Igor Vaynberg
log4j.logger.org.apache.wicket.resource=DEBUG should do it afair. -igor On Tue, Oct 21, 2008 at 8:16 AM, Kai Mütz [EMAIL PROTECTED] wrote: Hi, I have some problems with validation messages. Normally I set my validation messages within the property files like this: Required='${label}' is

Re: setObject( ), getObject( )

2008-10-21 Thread James Carman
On Mon, Oct 20, 2008 at 11:02 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: 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. Right.

Re: ContextImage not generating path relative to context root

2008-10-21 Thread Matej Knopp
Al, do you have any idea? -Matej On Tue, Oct 21, 2008 at 10:18 AM, Gianni Doe [EMAIL PROTECTED] wrote: I'm a bit confused about ContextImage; according to the javadocs the image path will be prefixed such that the image is relative to the context root. In my markup I've got: img

Re: Wicket community traction / Wicket Web 2.0 experience

2008-10-21 Thread Richard Allen
We have just started evaluating frameworks to migrate our Struts 1.x apps. We are considering Wicket, GWT, and Spring MVC (I know, they are quite a bit different). Having prototyped in Wicket and GWT, which do you think allows you to write code that is easier to maintain? There is a wiki page

Re: Component hierarchy in a subclass situation

2008-10-21 Thread Tauren Mills
Igor, Thanks for the help, but I'm not finding setTransparentResolver in WebMarkupContainer. Should I be using a Border? Thanks, Tauren On Sat, Oct 18, 2008 at 1:55 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: WebMarkupContainer body = new

Re: Component hierarchy in a subclass situation

2008-10-21 Thread Igor Vaynberg
erm, override istransparentresolver() { return true; } -igor On Tue, Oct 21, 2008 at 10:43 AM, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Thanks for the help, but I'm not finding setTransparentResolver in WebMarkupContainer. Should I be using a Border? Thanks, Tauren On Sat, Oct 18,

Re: Returning XML to JS

2008-10-21 Thread Maarten Bosteels
for an example, see http://www.nabble.com/linking-to-a-text-ResourceReference-td19753402.html Maarten On Tue, Oct 21, 2008 at 12:07 PM, Peter Ertl [EMAIL PROTECTED] wrote: have a look at XStream :-) Am 21.10.2008 um 11:25 schrieb [EMAIL PROTECTED]: Hi, What's the nice / correct way to

Re: Component hierarchy in a subclass situation

2008-10-21 Thread Tauren Mills
Thanks! That did the trick. On Tue, Oct 21, 2008 at 10:50 AM, Igor Vaynberg [EMAIL PROTECTED]wrote: erm, override istransparentresolver() { return true; } -igor On Tue, Oct 21, 2008 at 10:43 AM, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Thanks for the help, but I'm not finding

How to pass parameters to a BreadCrumbPanel

2008-10-21 Thread Nav Che
Hello All, How do i pass parameters between panels. Basically i have panels in my appilcation which use breadcrumb model. Say on panel A i display list of users and I want the user Id to be a link upon clickin it should show the edit panel ( panel B ) of user and for which it shld either pass

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

2008-10-21 Thread Nav Che
Ned, But then how do u pass parameters across the panels??? //nav On Sun, Oct 19, 2008 at 5:55 PM, Ned Collyer [EMAIL PROTECTED] wrote: I use markup inheritance for some pages, but I try to avoid making new pages (after all, what do they give you that a panel does not (other than an

Re: Wicket community traction / Wicket Web 2.0 experience

2008-10-21 Thread Martin Voigt
just some quick pros for wicket which helped us to make a decision (someone please correct me if i'm wrong on any of these): * wicket started from a professional background, ie people noticed there is a reason to develop it because no available framework met their needs * the architecture is

How to submit form to external page sending parameters by post, please Help

2008-10-21 Thread Pablo Scagno
Hi, I'm trying to submit a form to Paypal but I don't know how I can do this. I have a wicket form with all the fields that I need to submit but when I redirect the page to paypal I can't send the form fields. I can't put the parameters in the querystring, I must send them by post. This is my

Re: Salve and Guice

2008-10-21 Thread Guðmundur Bjarni
I agree that static injection is fugly, it makes unit tests very sad and kills puppies, but in some cases its a necessary evil. Lets say for example that it is only needed in a very few cases, then IMO pulling in Salve is a bit of an overkill. I've tried out Salve, liked it but it's a bit of a

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

2008-10-21 Thread Ned Collyer
Their constructor :) Nav Che wrote: Ned, But then how do u pass parameters across the panels??? //nav -- View this message in context: http://www.nabble.com/Pages-or-components...-how-do-u-decide--tp20016807p20100652.html Sent from the Wicket - User mailing list archive at

How to style Form feedback?

2008-10-21 Thread nate roe
I have a Form with a FeedbackPanel. When there is a problem in a validator (subclass of AbstractFormValidator), the validator calls error(...) with a message resource key. This all works as planned. However, I need to style the text in these feedback messages (parts of some messages need to be

Re: Salve and Guice

2008-10-21 Thread Edgar Merino
As far as I know, salve will only modify bytecode, it should do that only once, after the JIT compiler comes in there should be no more overhead. Correct me if I'm wrong, regards. Edgar Merino Guðmundur Bjarni escribió: I agree that static injection is fugly, it makes unit tests very sad

Re: How to style Form feedback?

2008-10-21 Thread nate roe
Never mind. The answer is to use Component.setEscapeModelStrings(boolean). On Tue, Oct 21, 2008 at 4:02 PM, nate roe [EMAIL PROTECTED] wrote: I have a Form with a FeedbackPanel. When there is a problem in a validator (subclass of AbstractFormValidator), the validator calls error(...) with a

Re: Salve and Guice

2008-10-21 Thread Edgar Merino
Also, InjectorHolder.getInjector().inject(this) does not work with guice, it returns an illegalstateexception saying there's no injector assigned for the holder. It would be nice to have more documentation on how to use salve, regards. Edgar Merino Guðmundur Bjarni escribió: I agree that

Re: Salve and Guice

2008-10-21 Thread Igor Vaynberg
i am not sure where exactly the documentation lacks...there is a wiki that shows how to configure everything. anyways, salve stuff is better taken to the salve discussion group so we dont pollute this list. -igor On Tue, Oct 21, 2008 at 4:02 PM, Edgar Merino [EMAIL PROTECTED] wrote: Also,

Re: How to submit form to external page sending parameters by post, please Help

2008-10-21 Thread Jeremy Thomerson
Perhaps one of the following: 1. Don't use wicket Form - use web markup containers of some sort and attribute modifiers to output a form that actually posts directly to the paypal site. (In other words - generate a real form with action= https://www.sandbox.paypal.com.) 2. OR

Enconding a url returned by urlFor()

2008-10-21 Thread Philippe Laflamme
Hi all, We have a component that needs to create a dynamic resource (currently using a DynamicWebResource). The resource is tightly coupled with the component's model. Our component implements the IResourceListener interface so that we can generate a URL for the generated markup. The markup

Re: tomcat 6

2008-10-21 Thread Timo Rantalaiho
On Tue, 21 Oct 2008, Guðmundur Bjarni wrote: If you decide to go for Jetty, you should try the run-jetty-run[1] plugin that Eelco wrote. Basically if your project is set up right, i.e. web.xml in the right place and so on. You can run it like any other Java Application from Eclipse's run

Re: javascript error in internet explorer

2008-10-21 Thread Timo Rantalaiho
On Tue, 21 Oct 2008, Srikanth.NT wrote: My IE version is 6.0.2900.2180.xpxp_sp2_gdr.050301-1519 In wicket-ajax.js, I replaced t.setRequestHeader(Wicket-FocusedElementId, Wicket.Focus.lastFocusId || ); with if (Wicket.Focus Wicket.Focus.lastFocusId) {

Re: Ajax validating individual form fields

2008-10-21 Thread fatefree
Thank you very much, I didn't realize that the AjaxFormComponentUpdatingBehavior submitted individual components, I guess i got it confused with AjaxFormValidatingBehavior. I think the only issue is when a form level validator needs to be used, for instance to compare that two fields are equal.

FireFox 3.x.x issue with wicket

2008-10-21 Thread swapnil.wadagave
Respected sir, When I am writing in the search boxes I only see half of the text. This happens with FireFox 3.x.x What can i do in this case?This is happening in some pcs. -- View this message in context: http://www.nabble.com/FireFox-3.x.x-issue-with-wicket-tp20104033p20104033.html Sent

wicket redirect issue on IE7

2008-10-21 Thread freak182
Hello, I have a problem in IE7 when i redirect wicket pages in javascript using location.href = ?wicket:interface=:3 ..i generate that url using RequestCycle.get().urlFor(new TestPage()). But it is working fine in firefox...Is this a browser problem? How can i solve this problem? Thanks a