Re: [Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Erik van Oosten
Lowell, Yes, it matters a great deal. The class java.net.HttpURLConnection does not give you return codes, it just throws an exception. You need to use something like apache commons HttpClient. Btw, if you can not massage Wicket into doing what you want, you can always add a self-written servl

Re: [Wicket-user] How to call DataView.setItemsPerPage() dynamically?

2007-05-09 Thread Igor Vaynberg
the stacktrace doesnt look like it has anything to do with the call to setitemsperpage. looks like an old NPE bug in Check component. if you are using 1.2.x update to our latest release, if you are using 1.3update to latest svn. -igor On 5/9/07, JulianS <[EMAIL PROTECTED]> wrote: I need to b

Re: [Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Lowell Kirsh
I think they will be using a java.net.HttpURLConnection. Does it matter? On 5/9/07, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > What are they going to use to "call" it? wget? perl? etc > > Jeremy Thomerson > > > On 5/9/07, Lowell Kirsh < [EMAIL PROTECTED]> wrote: > > > > One of the requir

Re: [Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Jeremy Thomerson
What are they going to use to "call" it? wget? perl? etc Jeremy Thomerson On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know whe

[Wicket-user] programmatic access to a wicket site

2007-05-09 Thread Lowell Kirsh
One of the requirements of the site that I'm building is that oneof the pages be exposed programatically so that other programs can 'call' it. They would know whether they'd succeeded or not by inspecting the http status code returned. Since this is just a regular page of the site, when the call i

Re: [Wicket-user] url mounting and PageParameters

2007-05-09 Thread Lowell Kirsh
I'm using 1.2.6. Unless you think otherwise, I will not file a jira issue. On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > still, the query string params should be merged. please file a jira issue if > you are using 1.3 > > -igor > > > > On 5/9/07, Lowell Kirsh < [EMAIL PROTECTED]> wrote: >

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Igor Vaynberg
only models that are assigned to component's default model slot are detached automatically. you can think of it as component doing this component { ondetach() { imodel model=getmodel(); if (model!=null) { model.detach(); }}} if you keep a reference to a model yourself (say in a field) then you

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Jeremy Thomerson
Igor, I notice that you call detach() on your models in this example. I have searched, but can not find where it is written when (or if) we should be calling detach ourselves. I'm using implementations of LoadableDetachableModel for my models that hold DB-backed domain objects. I don't want th

Re: [Wicket-user] Wicket requiring one of my Spring managed beans to have a default constructor

2007-05-09 Thread Igor Vaynberg
if your class is an interface then wicket will create a jdk proxy. if your class is not an interface then we cannot create this proxy, so wicket uses cglib to create a proxy from a concrete class. having this empty constructor must be a cglib requirement. -igor On 5/9/07, Matt Welch <[EMAIL PRO

[Wicket-user] How to call DataView.setItemsPerPage() dynamically?

2007-05-09 Thread JulianS
I need to be able to change the number of rows displayed in a DataView dynamically. But when I try to do so in response to user input, I get the following exception: WicketMessage: Exception in rendering component: [MarkupContainer [Component id = 5, page = com...ViewPoliciesPage, path = 2:policy

Re: [Wicket-user] Wicket requiring one of my Spring managed beans to have a default constructor

2007-05-09 Thread Matt Welch
Thanks for that confirmation, Igor. I guess I was just a little surprised because none of my other classes that are instantiated using the same technique have an empty constructor. I guess that there must be something at play there having to do with the fact that those other classes are implementa

[Wicket-user] How to find pages where we forgot to use detachable models?

2007-05-09 Thread jmorgan
<> Currently all my Wicket pages are using chained property models + detachable models for dynamic content. This works great. However, recently I discovered that one of my pages was getting a serialization error. Turns out that the page in question was not using a detachable property model, and

Re: [Wicket-user] Wicket requiring one of my Spring managed beans to have a default constructor

2007-05-09 Thread Igor Vaynberg
you have to have an empty constructor. afaik it doesnt have to be public. this is so that cglib can create a proxy, i dont think there is a way around it. -igor On 5/9/07, Matt Welch <[EMAIL PROTECTED]> wrote: I am using the @SpringBean annotation to instantiate Spring dependencies in my wick

[Wicket-user] Wicket requiring one of my Spring managed beans to have a default constructor

2007-05-09 Thread Matt Welch
I am using the @SpringBean annotation to instantiate Spring dependencies in my wicket pages but I have one page that is giving me a error that I'm having trouble dealing with. Here's an example. The Wicket page class: public class Viewer extends WebPage { @SpringBean(name = "contentSettings"

Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected

2007-05-09 Thread Lowell Kirsh
I easily reproduced this problem. I did not use svn access, but instead went to the wicket main page and downloaded the 1.2.6 quickstart. I ran it and it worked. Then I went to the Index.java and inserted the following line in the constructor: throw new AbortWithWebErrorCodeException(HttpServletRe

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Lowell Kirsh
Thanks. That looks like a good reusable solution. On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > yes, and you can ignore that part if you are on 1.2.x > > -igor > > > > On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED] > wrote: > > Is IComponentAssignedModel only in 1.3? > > > > On 5/9/07, Igor Va

Re: [Wicket-user] should be accessible in wicket

2007-05-09 Thread Peter Ertl
done: https://issues.apache.org/jira/browse/WICKET-549 Am 09.05.2007 um 20:05 schrieb Eelco Hillenius: > Could you please open up an RFE then Peter? > > Eelco > > On 5/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote: >> hmm this is because of the HtmlHeaderContainer that container >> wants a

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Igor Vaynberg
yes, and you can ignore that part if you are on 1.2.x -igor On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: Is IComponentAssignedModel only in 1.3? On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can also factor out the javascript confirmation into a behavior and > reuse it acro

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Lowell Kirsh
Is IComponentAssignedModel only in 1.3? On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you can also factor out the javascript confirmation into a behavior and > reuse it across any links classes like > > Link link=new Link("foo") { onclick(){..}}.add(new > LinkConfirmation("sure?")); > Book

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Johan Compagner
i already said that to him when he gave his presentation.. johan On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: I don't think they're wrong - I just think they are actually plusses ;-) On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > some wicket cons in that presentation are not tru

[Wicket-user] UKFX Online (www.ukfx-online.com)

2007-05-09 Thread Jeremy Miles
UKFX Online is a leading provider of foreign exchange services, offering ultra competitive exchange rates for foreign currency transfers and an unrivalled personal service to private individuals and companies. We pride ourselves on our ability to save our customers money. -- View this message in

[Wicket-user] keyboard shortcuts for different form submit buttons?

2007-05-09 Thread in
I have a form with a number of different submit buttons. Each of the submit buttons has its own onSubmit method, and they all do something different. I'm trying to implement a number of keyboard shortcuts, each of which would emulate the clicking of a different submit button. Any thoughts on how

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Matej Knopp
The problem is that when setResponsePage() is called, no appended Javascript is evaluated. In fact, wicket doesn't process the ajax response at all. Just sets window.location. -Matej On 5/9/07, dukejansen <[EMAIL PROTECTED]> wrote: > > Yeah, but I don't want to disable that warning. That warning

[Wicket-user] Question about WebApplication.mount(String path, PackageName packageName)

2007-05-09 Thread JulianS
If you mount a package e.g. mount("/pages", PackageName.forClass(Index.class)); You will run into a RuntimeException if you type in a url like "http://localhost:8081/quickstart/app/pages"; (I'm using Wicket 1.2.5): WicketMessage: Unable to load class with name: wicket.quickstart. Root

Re: [Wicket-user] wicket-contrib-dojo for wicket 1.3.0

2007-05-09 Thread Dragos Bobes
Thanks Vincent but unfortunately it doesn't work for me. I get the same exceptions when I try to use the drag-n-drop feature and I'm sure I'm using the latest jar. Please let me know if you need more info about the errors. Thanks Dragos Vincent Demay wrote: > Dragos Bobes a écrit : >> Thanks Je

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread dukejansen
Yeah, but I don't want to disable that warning. That warning is valid if the user really does try to navigate away while the modal is still being displayed. The problem is that I am actually closing the modal before I do the redirect, so it shouldn't show the warning at all. -Jason Matej Knopp

[Wicket-user] RedirectPage and expiration

2007-05-09 Thread Carlos Pita
Hi all, I have a page with a number of Links, some of them internal (to the wicket application), some of them external (to RedirectPages). If I follow one of the externals (opening it into a different tab/window) something like a cache clean up seems to happen, because after that any of the inter

Re: [Wicket-user] should be accessible in wicket

2007-05-09 Thread Eelco Hillenius
Could you please open up an RFE then Peter? Eelco On 5/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > hmm this is because of the HtmlHeaderContainer that container wants a page > to be its parent. > > So you can't attach a wicket container to the html because then you > encapsulate the comple

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Lowell Kirsh
I don't think they're wrong - I just think they are actually plusses ;-) On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > some wicket cons in that presentation are not true. too bad matt only spent > a weekend learning wicket before writing that presentation. > > -igor > > > > On 5/9/07, Fran

Re: [Wicket-user] sub contexts in wicket

2007-05-09 Thread Eelco Hillenius
That would be thinking in the wrong direction for Wicket. Much better is e.g. to create base pages for the various uses, and implement an authorization strategy accordingly. And by using RestartResponseExceptions in that strategy, you can redirect users to their 'subapp home pages' in case they man

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Francisco Diaz Trepat - gmail
I don't think is such a good comparison. I've just read it. And it doesn't help much to compare from only one week learning. Is there Anything else? On 5/9/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: some wicket cons in that presentation are not true. too bad matt only spent a weekend learnin

Re: [Wicket-user] Right now Application.getHomePage returns a Page class.

2007-05-09 Thread Peter Ertl
as a workaround you could send a redirect from the home page... Am 07.05.2007 um 15:42 schrieb Thomas R. Corbin: > On Monday 07 May 2007 8:35 am, Johan Compagner escreveu: >> hmm you are the second one in a very short time asking this: >> >> http://www.nabble.com/mounting-with-"empty"-path- >> t

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Igor Vaynberg
its not that the api are similar, it is that the programming models are. in desktop apps you can code objects that have behavior _and_ state. in mvc frameworks and most others you dont have the state part. you either have to carry state yourself by manually putting it into urls, or you have to d

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Francisco Diaz Trepat - gmail
I haven't program that much on swing, but is it wicket so much like swing. I think they share the new Component and add(new Component()) etc. But other than that... Could it be possible than they share some concept like nested components but that with HTML not wicket. I don't see how a mapping

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Igor Vaynberg
some wicket cons in that presentation are not true. too bad matt only spent a weekend learning wicket before writing that presentation. -igor On 5/9/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: Great ! Thanks for the link, I get right on it. Cheers, f(t) On 5/8/07, Xavier H

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Francisco Diaz Trepat - gmail
Great ! Thanks for the link, I get right on it. Cheers, f(t) On 5/8/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: You can find a pretty interesting comparison done by matt raible at ApacheCon: http://raibledesigns.com/rd/entry/apachecon_eu_comparing_java_web It's not dedicated to struts 2 vs w

Re: [Wicket-user] Newbie Qs about DynamicWebResource

2007-05-09 Thread JulianS
igor.vaynberg wrote: > > are you sure you cant do Session.get() in the resource? > That's the solution! Thanks very much. I said it was a newbie question :) Julian -- View this message in context: http://www.nabble.com/Newbie-Qs-about-DynamicWebResource-tf3712534.html#a10398102 Sent from th

Re: [Wicket-user] Too much spam on the wicket-user list

2007-05-09 Thread Francisco Diaz Trepat - gmail
Excelent ! ^_^ On 5/9/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Hope is soon too. How is the Apache incubation going, by the way? Getting close we hope :) Eelco - This SF.net email is sponsored by DB2 Express Dow

Re: [Wicket-user] Newbie Qs about DynamicWebResource

2007-05-09 Thread Igor Vaynberg
are you sure you cant do Session.get() in the resource? -igor On 5/9/07, JulianS <[EMAIL PROTECTED]> wrote: Johan Compagner wrote: > > why also append the jsessionid in the post url? > or as an hidden field? > You are right, passing the jsessionid to the server is not a problem. The problem

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Igor Vaynberg
there is wicket-phonebook project in wicket-stuff that shows wicket+spring+hibernate your dropdownchoice should use a loadable detachable model, that way the list is loaded once per request add(new dropdownchoice("city", new loadabledetachablemodel() { load() { return dao.listcities(); }})); th

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Igor Vaynberg
you can also factor out the javascript confirmation into a behavior and reuse it across any links classes like Link link=new Link("foo") { onclick(){..}}.add(new LinkConfirmation("sure?")); BookmarkablePageLink link=new BPL(...).add(new LinkConfirmation("sure?")); -igor public class LinkConfir

Re: [Wicket-user] url mounting and PageParameters

2007-05-09 Thread Igor Vaynberg
still, the query string params should be merged. please file a jira issue if you are using 1.3 -igor On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: I have figured this one out. Is seems that when my urls are mounted, the parameters are passed in as "/param/value/" rather than as "¶m=value

Re: [Wicket-user] Newbie Qs about DynamicWebResource

2007-05-09 Thread JulianS
Johan Compagner wrote: > > why also append the jsessionid in the post url? > or as an hidden field? > You are right, passing the jsessionid to the server is not a problem. The problem is, how do we check that session id against what is in the wicket session, since the DynamicWebResource doesn't

Re: [Wicket-user] sub contexts in wicket

2007-05-09 Thread Johan Compagner
there is no such a thing as a sub application But you can have 3 applications (3 wicket filters) one is attached to "main" and the other 2 to the other paths. johan On 5/9/07, Kurt R. Hoehn <[EMAIL PROTECTED]> wrote: Hello, In Struts I had an application that had sub contexts under the m

Re: [Wicket-user] webPages variableFlow, backButton, theSmartAndCorrectWay?

2007-05-09 Thread Johan Compagner
in 1.3 what you could do is only remember the pageid and pagemap just aks the session for the pagemap/page when you need it. Then you don't have to have references that you maybe never need. johan On 5/9/07, manu <[EMAIL PROTECTED]> wrote: Hi, Sirs, I have the following webPages variableFlo

Re: [Wicket-user] should be accessible in wicket

2007-05-09 Thread Johan Compagner
hmm this is because of the HtmlHeaderContainer that container wants a page to be its parent. So you can't attach a wicket container to the html because then you encapsulate the complete page. i dont know immediantly how to solve this On 5/9/07, Peter Ertl <[EMAIL PROTECTED]> wrote: Hi folks,

Re: [Wicket-user] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-09 Thread Herman Bovens
Jean-Baptiste Quenot-3 wrote: > >> ...WEB-INF/lib/wicket-1.3.0-incubating-SNAPSHOT-javadoc.jar!/org/apache/wicket/markup > > > Loading Wicket templates from the Javadocs won't help much. > I don't think it's a good idea t

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean
The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel

Re: [Wicket-user] 1.2 to 1.3 migration problems (javax.crypto.IllegalBlockSizeException

2007-05-09 Thread Jean-Baptiste Quenot
* Herman Bovens: > > ...WEB-INF/lib/wicket-1.3.0-incubating-SNAPSHOT-javadoc.jar!/org/apache/wicket/markup Loading Wicket templates from the Javadocs won't help much. I don't think it's a good idea to put the javadocs i

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Matej Knopp
Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean <[EMAIL PROTECTED]>

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Matej Knopp
There is a way that should also work in recent 1.x. To disable the confirmation dialog you need to put this inside the page with modal window: Wicket.Window.unloadConfirmation=false; -Matej On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote: > dukejansen schreef: > > My Ajax event handler ne

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean
Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the "java.lang.NullPointerException at wicket.request.

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Matej Knopp
If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej On 5/9/07, Alex Objelean <[EMAIL PROTECTED]> wrote: > > I have the same

[Wicket-user] should be accessible in wicket

2007-05-09 Thread Peter Ertl
Hi folks, I try to setup a multi-language website like that: www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> http://www.w3.org/1999/ xhtml" xmlns:lang=[current language] lang=[current language]> However, accessing using a wicket:id will fail: > org.apache.wicket.WicketRuntimeException: P

Re: [Wicket-user] Problem with concurren ajax requests on page

2007-05-09 Thread Alex Objelean
I have the same issue and I am using wicket 1.2.6.. I am also developing an ajax application (desktop like)... Is it a known issue or bug in my code? Thank you! Regards, Alex. Matej Knopp-2 wrote: > > You seem to be using 1.2, is that right? > > -Matej > > On 4/30/07, RedFury <[EMAIL PROTEC

[Wicket-user] sub contexts in wicket

2007-05-09 Thread Kurt R. Hoehn
Hello, In Struts I had an application that had sub contexts under the main context. How it worked was I had a login action that then retrieved the user. The user was associated to a sub context and the application redirected the user to there particular sub context. /main redirect to /main

[Wicket-user] webPages variableFlow, backButton, theSmartAndCorrectWay?

2007-05-09 Thread manu
Hi, Sirs, I have the following webPages variableFlow: Flow1: Page1 > Page2 > Page3 > Page4 > Page5 > Page6 Flow2: Page1 > Page3 > Page4 > Page6 As expressed in this flows, sometimes, depending on internal conditions, Page1 flows directly to Page3, jumping over Page2, and so it happens with Page4

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Nino Saturnino Martinez Vazquez Wael
BTW, we did this on my last project and hibernate was not a limiting factor. regards Nino Wilko Hische wrote: > Hi Dimitrio, > > You may want to have a look at this reply (and thread): > > http://www.nabble.com/Wicket---Hibernate---Application-Transactions-tf1947542.html#a5349464 > > In short, it

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Wilko Hische
Hi Dimitrio, You may want to have a look at this reply (and thread): http://www.nabble.com/Wicket---Hibernate---Application-Transactions-tf1947542.html#a5349464 In short, it *does* recommend reloading your city as well per request (in combination with a second level cache). The performance hit

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Nino Saturnino Martinez Vazquez Wael
np. I think it's a good question you have there. You could make your model load method check if it were called via submit or not, you might do this via an hidden field and the updating it when the user clicks the submit button. Im not sure when wicket loads the values, im guessing after the sub

Re: [Wicket-user] wicket/GMAP 1.2.6 trouble with ajax

2007-05-09 Thread Nino Saturnino Martinez Vazquez Wael
This works nicely. Although I would very much like for the gmap to be updated with a new gpoint/zoomlevel when the user moves the map around or zoooms in/out. That way i'll be able to tell which new overlays I should put on the map based on the coords and/or zoomlevel. Is this hard to impleme

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Arnout Engelen
dukejansen schreef: > My Ajax event handler needs to first close the current modal window and then > refresh the entire page. Is there a better way to do this? > I once worked around something like this by putting the redirect in the windowClosedCallback of the ModalWindow. That was sufficient

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Dimitrio
Hello, Nino. Thanks for a quick reply! I think clearing the Hibernate session cache (via Session.clear()) before saving the city will work for me in this case. However the second concern remains. Consider a complex form with tens of drop down choice or list components. I want them loaded once (

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Eelco Hillenius
Ah. Maybe next time I'll try to acually read the whole email instead of just the subject :) Sorry. Matej, or anyone else with knowledge of modal windows... any ideas? Eelco On 5/9/07, Arnout Engelen <[EMAIL PROTECTED]> wrote: > > Eelco Hillenius schreef: > > Is there a better way to do this? >

Re: [Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Nino Saturnino Martinez Vazquez Wael
Hi Dimitrio The solution(possibly) to your first problem are to call flush on your hibernate session. Altthough im far from a hibernate expert, this solved our problems with that kind of exception. You could also try merge(), im afraid im just guessing at this point. regards Nino Dimitrio wro

[Wicket-user] Preventing DropDownChoice to reload the choice list on submit

2007-05-09 Thread Dimitrio
Hello All, I am evaluating the possibility to use the Wicket / Spring / Hibernate stack for my next project (Spring / Hibernate being used for the middle tier + OpenSessionInViewFilter). Let me describe a simple test scenario that I am trying to implement - a City Editor panel. The panel contain

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Arnout Engelen
Eelco Hillenius schreef: Is there a better way to do this? Yep. Just call setResponsePage(MyPage.this) or RequestCycle.get().setResponsePage or something similar. Only works in 1.3 I think. Wouldn't that open MyPage inside the ModalWindow, since the javascript for closing the ModalWind

Re: [Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread Eelco Hillenius
> Is there a better way to do this? Yep. Just call setResponsePage(MyPage.this) or RequestCycle.get().setResponsePage or something similar. Only works in 1.3 I think. Eelco - This SF.net email is sponsored by DB2 Express Dow

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Eelco Hillenius
> Just curious, when you say developers' skills play a role, do you > think that either component or action based frameworks are > considerably harder to program in than the other? Wicket requires you to understand object oriented programming and have a decent command of Java. If you have been wor

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Shams Mahmood
You may choose to use almost any html tag for labels. It's just that the wicket examples all use spans :) D'oh! Of course. And I assume you mean instead of . On 5/9/07, Shams Mahmood <[EMAIL PROTECTED]> wrote: > Why not just add a label to the link. > > > href="anotherPage?method=method

Re: [Wicket-user] skinning and fallback

2007-05-09 Thread Lennaert van der Linden
Thanks for your answer, Johan. When version 1.3 is released we'll probably upgrade and update the web application. According to a colleague the release is a matter of weeks now. In the mean time, we'll settle with no fallback. Johan Compagner wrote: in that version we didn't have fallback i t

Re: [Wicket-user] wicket-contrib-dojo for wicket 1.3.0

2007-05-09 Thread Vincent Demay
Dragos Bobes a écrit : Thanks Jean-Baptiste, now it's compiling successfully. But when I tried to use it for a drag-n-drop example I've ran into some 'FATAL' errors. FATAL exception raised: Could not load 'wicketstuff.dojodnd.DojoDropContainer'; last tried '__package__.js' FATAL exception rai

Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected

2007-05-09 Thread Lowell Kirsh
I will look into it tomorrow... On 5/9/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > yes see our quickstart project in svn > > i can try to build an example for this > for example if i change one of the wicket examples homepages that it throws > such an exception > does it fail then? > > johan

Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected

2007-05-09 Thread Johan Compagner
yes see our quickstart project in svn i can try to build an example for this for example if i change one of the wicket examples homepages that it throws such an exception does it fail then? johan On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > do you have a quickstart that you can attac

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Lowell Kirsh
D'oh! Of course. And I assume you mean instead of . On 5/9/07, Shams Mahmood <[EMAIL PROTECTED]> wrote: > Why not just add a label to the link. > > > href="anotherPage?method=method1"> > method1 > > > > add(new ListView("theLinks", theLinks) { > @Override protecte

Re: [Wicket-user] Too much spam on the wicket-user list

2007-05-09 Thread Eelco Hillenius
> Hope is soon too. How is the Apache incubation going, by the way? Getting close we hope :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Shams Mahmood
Why not just add a label to the link. method1 add(new ListView("theLinks", theLinks) { @Override protected void populateItem(ListItem item) { Link link = (Link) item.getModelObject(); Label label = new Label( "theLabelId", "Me

Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected

2007-05-09 Thread Lowell Kirsh
> do you have a quickstart that you can attach to a jira issue? What do you mean by this? Is a quickstart some sort of self-contained minimal jar? - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the F

Re: [Wicket-user] AbortWithWebErrorCodeException not working as expected

2007-05-09 Thread Johan Compagner
that should work fine looking in the code i do see this: RequestCycle.get().setRequestTarget(new WebErrorCodeResponseTarget(errorCode, message)); do you have a quickstart that you can attach to a jira issue? johan On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: I throw an AbortWithWebErr

Re: [Wicket-user] markup and its resource and IDEA and preview

2007-05-09 Thread Johan Compagner
with SharedResources.putClassAlias() you can make sure that packages are not exposed. also you can mount WebApplication.mountSharedResouce() for mounting a resourekey on a specific string. also i would always keep the Page.html and the Page.properties besides the java code that is much easier and

Re: [Wicket-user] skinning and fallback

2007-05-09 Thread Johan Compagner
in that version we didn't have fallback i think that is i think now in 1.3 (but i am not sure if that was only in 2.0 and if it is backported) johan On 5/9/07, Lennaert van der Linden <[EMAIL PROTECTED]> wrote: I am using version 1.2.6 Johan Compagner wrote: i thought juergen made somethin

Re: [Wicket-user] skinning and fallback

2007-05-09 Thread Lennaert van der Linden
I am using version 1.2.6 Johan Compagner wrote: i thought juergen made something to do the right fallback which version it was (1.3 or 2.0) i don't know which one are you using? johan On 5/8/07, * Lennaert van der Linden* <[EMAIL PROTECTED] > wrote: Hi, I

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Lowell Kirsh
That looks pretty reasonable to me (though my code is not in front of me right now). I like how you can pass a String to 'new PageParameters()'. A little unexpected but nice (I should have read the javadoc more thoroughly). So I have another question: How to you set the link's title? That is, how

[Wicket-user] Force page refresh after Ajax request completes?

2007-05-09 Thread dukejansen
Anyone have any recommendations for how I would go about getting my Ajax event handler method to trigger a refresh of the current page on the client side after it is done with the Ajax request? My Ajax event handler needs to first close the current modal window and then refresh the entire page. I

Re: [Wicket-user] How do I do this - several similar links to another page

2007-05-09 Thread Shams Mahmood
To help reduce some code, why not extend the BookmarkablePageLink class to form your JavascriptConfirmLink and then no need to write the onclick(). also try new JavascriptConfirmLink(id, cls, new PageParameters("method=method1"), msg) and the id will be used here: method1 You can ignore the

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Johan Compagner
that depends on what the developer is used to for example if a person did a lot of swing programming wicket feels at home immediantly but if the past was struts 1 or something like that then wicket will have a steeper learning curve johan On 5/9/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: Jus

Re: [Wicket-user] Struts 2 Vs. Wicket (Need some highlights)

2007-05-09 Thread Lowell Kirsh
Just curious, when you say developers' skills play a role, do you think that either component or action based frameworks are considerably harder to program in than the other? Lowell On 5/8/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > So I think you have to evaluate which kind of framework you wa

Re: [Wicket-user] url mounting and PageParameters

2007-05-09 Thread Lowell Kirsh
I have figured this one out. Is seems that when my urls are mounted, the parameters are passed in as "/param/value/" rather than as "¶m=value". This is actually kind of nice :-) On 5/8/07, Lowell Kirsh <[EMAIL PROTECTED]> wrote: > I have just started mounting my pages (for nice urls) and it seems

Re: [Wicket-user] Too much spam on the wicket-user list

2007-05-09 Thread Johan Compagner
there is spam on the list but to say that it is a lot..? johan On 5/9/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: You don't think there is spam in the list? I'll forward all the stock quotes I'm getting in images (jpg, gif) I already have word filters too. Hope is soon too

Re: [Wicket-user] Newbie Qs about DynamicWebResource

2007-05-09 Thread Johan Compagner
why also append the jsessionid in the post url? or as an hidden field? also just post to the right dynamic resource url and it should work fine. (you have to do then everything yourself of course like parsing the input) johan On 5/9/07, JulianS <[EMAIL PROTECTED]> wrote: We are building a W

Re: [Wicket-user] skinning and fallback

2007-05-09 Thread Johan Compagner
i thought juergen made something to do the right fallback which version it was (1.3 or 2.0) i don't know which one are you using? johan On 5/8/07, Lennaert van der Linden <[EMAIL PROTECTED]> wrote: Hi, I am trying to set up properties based on a session style as follows: - a default properti

Re: [Wicket-user] wicket/GMAP 1.2.6 trouble with ajax

2007-05-09 Thread Nino Saturnino Martinez Vazquez Wael
Super and excellent, whats left for me todo then?:) regards Nino Iulian Costan wrote: take a look in gmap examples as well to see how it works and what needs to be added to ajax target. /iulian On 5/8/07, *Iulian Costan* < [EMAIL PROTECTED] > wrote: fixed in