RE: Use of base tag in head seems to break AJAX

2009-05-29 Thread Chris Colman
I should have specified that this is with 1.4m2 circa May 2008 so it's a fairly old version of Wicket. If anyone could shed some light on this issue it would be very cool. Is it worth trying the latest Wicket or is this not a bug but part of the design? Chris -Original Message- We

Re: singletons, pools, wicket, web services and architecture

2009-05-29 Thread Per Lundholm
IMHO: Sounds like you need an J2EE application server more than just a servlet container (tomcat) with all integration issues. /Per 2009/5/28 Martijn Dashorst martijn.dasho...@gmail.com: Might be a dumb question, but why not make your wicket front end use the JAX-WS services as well? Martijn

Re: singletons, pools, wicket, web services and architecture

2009-05-29 Thread Adrian Wiesmann
Hello all Christopher L Merrill ch...@webperformance.com wrote: We obviously need to keep very good separation between the business logic and presentation layers, since there will be 2 presentation layers : We have a similar architectural design for our ORICO (Open RIsk and COmpliance) Tool.

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-29 Thread Kent Larsson
I try not to design my domain models in such a way Could you elaborate on this a bit, please? On Fri, May 29, 2009 at 6:19 AM, James Carman jcar...@carmanconsulting.com wrote: On Thu, May 28, 2009 at 11:36 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: this is why i built

Re: wicket logo

2009-05-29 Thread Martijn Dashorst
On Wed, May 27, 2009 at 8:09 AM, Luther Baker lutherba...@gmail.com wrote: Is there an official Wicket website badge? Nope. Any problems with dropping the orange Wicket logo into a Power By Wicket slogan at the bottom of a site? Unfortunately, yes. This is something the Apache PRC committee

Re: Problem with dynamic insertion to Tree

2009-05-29 Thread Bucyrus
PSkarthic wrote: Thanks for your reply i have been waiting for long time target.addComponent(this); also does not solved my problem. if i click a node the child is created under the node but doesn't expanded but when i click it second time then it expands but with two child. For

How to find out that component is being updated by AjaxFormComponentUpdatingBehavior?

2009-05-29 Thread Sergej Logish
Hello community! I have created component, which supports code input by which it then finds corresponding value in DB and shows it's name (clasifier). If user clears code and leaves input component, AjaxFormComponentUpdatingBehavior takes it's turn and removes previously fetched label (if any).

Data getting lost upon form submission

2009-05-29 Thread Linda van der Pal
I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on upon submitting. Can anybody have a look and point me in the right direction? When I save the data I can see the name and the password, but not the

Re: Data getting lost upon form submission

2009-05-29 Thread Linda van der Pal
Forgot to copy this line (which came just before the start of the form): setDefaultModel(new CompoundPropertyModelUser(user)); Linda van der Pal wrote: I am once again making some error in my thinking. I'm trying to edit a user in a form, but for some reason not all the values are passed on

AjaxLazyLoadPanel fallback version?

2009-05-29 Thread yong mook kim
Hi, When browser's Javascript is disabled, AjaxLazyLoadPanel's image (wicket ajax deafult image) will keep loading forever, page will not return. Is there a AjaxLazyLoadPanel fallback version which will delegate to normal request if javascript is disabled? I wonder how Wicket detect the

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-29 Thread James Carman
On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.lars...@gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please? I kind of cheat a bit. When there needs to be something done that involves multiple domain entities, I usually push that

Re: RequestLogger and session invalidation

2009-05-29 Thread Taneli Korri
On Thu, May 28, 2009 at 11:24 AM, Johan Compagner jcompag...@gmail.comwrote: why are you using invalidateNow? I was using it for invalidating sessions on logout. But since plain invalidate() works, and doesn't break RequestLogger, my original problem is fixed. Regards, Taneli Korri

Re: singletons, pools, wicket, web services and architecture

2009-05-29 Thread James Carman
On Thu, May 28, 2009 at 4:01 PM, Christopher L Merrill ch...@webperformance.com wrote: I've got a few questions that are somewhat general to web development, but since we've chosen Wicket as one of our front-end frameworks, I thought I would ask here first for pointers...especially where there

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-29 Thread Kent Larsson
Ah, interesting. Thanks for elaborating! On Fri, May 29, 2009 at 12:31 PM, James Carman jcar...@carmanconsulting.com wrote: On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.lars...@gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please?

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Martijn Dashorst
It's called Panel. Either your users have to have javascript enabled and you can use LazyLoadPanel, or you have to use direct Panel's. There is no way to lazy load anything without having to resort to JavaScript. Think about it. How could you instruct the browser to retrieve and replace a part of

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread yong mook kim
hi, Thanks, i agree with your point. However what i want is a browser's javascript detect function, if isJavascriptEnable() then load the LazyLoadPanel else fall back to normal panel behaviour. something like below Page start if(isJavascriptEnable()){ add(new

Re: Anemic domain model and are @SpringBean's compatible with the solution in

2009-05-29 Thread Daniel Toffetti
James Carman jcarman at carmanconsulting.com writes: On Fri, May 29, 2009 at 4:04 AM, Kent Larsson kent.larsson at gmail.com wrote: I try not to design my domain models in such a way Could you elaborate on this a bit, please? I kind of cheat a bit. When there needs to be something

wicket and jquery

2009-05-29 Thread Dorothée Giernoth
Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask anyway (though I did research myself, but I would need some sort of useful hint for a total wicket-jquery-newbie): how can I use wicket and jquery together? Where can I find an example? And

Re: Anemic domain model and are @SpringBean's compatible with the solution in

2009-05-29 Thread James Carman
On Fri, May 29, 2009 at 11:03 AM, Daniel Toffetti dto...@yahoo.com.ar wrote:    Out of curiosity, does the practice of building medium to complex queries and mixed batches of updates and deletes within stores procedures, for optimum DB performance, has been completely deprecated ??? I

Re: wicket logo

2009-05-29 Thread Cristi Manole
Hello Martijn, I think he meant using the (official) Apache Wicket badge on a page (site) of his own. Promoting that his site is using the fabulous Wicket framework. And not redesigning the wicket logo itself. Maybe I'm wrong. But iterating on the question - can I use an official Wicked badge

Re: wicket and jquery

2009-05-29 Thread Dipu
take a look at this https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jquery-parent -dipu 2009/5/29 Dorothée Giernoth dorothee.giern...@kds-kg.de: Hello everyone, i know this might sound a little weird and naive and maybe stupid ... I dunno, I'll ask

Re: wicket and jquery

2009-05-29 Thread Cristi Manole
Hi, There's no magic here. it's just a (decent) javascript library that you can use. Usually what people are doing (or at least how I use it) here is build the web application the normal way - html / css / javascript (consider this the designer role) and then wickify it - meaning go through the

AW: wicket and jquery

2009-05-29 Thread Dorothée Giernoth
Thnx guys, I will check that out. This might mean, that not all hope is lost! Have a great weekend! -Ursprüngliche Nachricht- Von: Rodolfo Hansen [mailto:kry...@gmail.com] Gesendet: Freitag, 29. Mai 2009 17:21 An: users@wicket.apache.org Betreff: Re: wicket and jquery Also you can

Inmethod DataGrid without column headers?

2009-05-29 Thread Marcin Palka
Hi, Is there any way to render a Inmethod DataGrid without column headers? For wicket's standard DataTable there's a HeaderlessColumn but I haven't been able to find an equivalent column type for DataGrid. cheers Marcin - To

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Igor Vaynberg
you can ask wicket to figure out if the browser supports javascript or not, see getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo() the way the fallback button works is that it is a regular button and we use javascript to override the default behavior - thus if no

AW: wicket and jquery

2009-05-29 Thread Stefan Lindner
Currently I'm building a wicket library around jQuery. Drag and drop and resizable are ready for use (with callback handlers in Wicket-Java onDrop, on Resized etc.). If anybody is interrested I can provied a simple library with some simple examples. -Ursprüngliche Nachricht- Von:

Re: wicket and jquery

2009-05-29 Thread Cristi Manole
not bad. do you have a link? Cristi Manole On Fri, May 29, 2009 at 1:39 PM, Stefan Lindner lind...@visionet.de wrote: Currently I'm building a wicket library around jQuery. Drag and drop and resizable are ready for use (with callback handlers in Wicket-Java onDrop, on Resized etc.). If

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Cristi Manole
In order to have something like that, I have to specifically mention something in my WebApplication class, right (if i remember correctly) ? And I think the way wicket works for browser extend is to redirect to some page where it reads this info. I think it's too much just to see the support for

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Igor Vaynberg
thats exactly what the redirect page does you can of course implement the check yourself but you need to know that on server side so it has to be submitted somehow. -igor On Fri, May 29, 2009 at 10:36 AM, Cristi Manole cristiman...@gmail.com wrote: In order to have something like that, I

Re: Inmethod DataGrid without column headers?

2009-05-29 Thread Cristi Manole
I might be wrong, but... Datagrid extends AbstractGrid which has public void addHeaderToolbar(AbstractHeaderToolbar toolbar) { addToolbar(toolbar, headerToolbarContainer); } simply overriding that in your Datagrid public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Cristi Manole
I don't remember now exactly so i'm just typing whatever i think it's ok, but on some project we checked some javascript related stuff using something like the following on html script type=text/javascript function callWicket() { wicketAjaxGet(callback + 'parameter=value', function() {},

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread Igor Vaynberg
and what if you need to know javascript support when rendering the first page as you often do? the solution we have is generic and works well. it may not be optimal for everyone, so of course you are welcome to roll your own. -igor On Fri, May 29, 2009 at 10:56 AM, Cristi Manole

Mocking out component.setResponsePage

2009-05-29 Thread Eric Weise
Hi, Does anyone know a way to mock out calls to component.setResponsePage when unit testing? This method causes me to not only mock out dependencies in the page I'm testing, but in the response page as well, which is a pain. I thought that maybe I could extend RequestCycle and override

Change Page Title via Ajax??

2009-05-29 Thread Francisco Diaz Trepat - gmail
Hi all, long time... I saw in some sample to label very long ago and put it in for the Page Title. html head title wicket:id=pageTitleLabel[Page Title]/title /head body .. Now, is it possible to change this via ajax? As I write you this lines I think I could put an input type

Re: Inmethod DataGrid without column headers?

2009-05-29 Thread Marcin Palka
Thanks for reply. I already gave this one a try. It does not seem to be called at all. I searched through inmethod grid sources and it seems that it really isn't called at all. My search shown only one occurence of addHeaderToolbar method which is its declaration in AbstractDataGrid class. This

Re: Mocking out component.setResponsePage

2009-05-29 Thread Clint Popetz
Hi Eric :) Override WicketApplication.newRequestCycle() -Clint On Fri, May 29, 2009 at 1:20 PM, Eric Weise e...@roundpeg.com wrote: Hi, Does anyone know a way to mock out calls to component.setResponsePage when unit testing? This method causes me to not only mock out dependencies in the

RE: wicket and jquery

2009-05-29 Thread Stefan Lindner
I'm just finishing up some things (e.g. documentation :-) and proper examples). I must confess that the library is based upon wicket 1.4. and i don't plan to backport it to wicket 1.3. In a few days I will open up our subversion repository for public access. -Ursprüngliche Nachricht-

Re: Change Page Title via Ajax??

2009-05-29 Thread Igor Vaynberg
target.appendjavascript(window.title='new title'); something like that should work. -igor On Fri, May 29, 2009 at 11:30 AM, Francisco Diaz Trepat - gmail francisco.diaztre...@gmail.com wrote: Hi all, long time... I saw in some sample to label very long ago and put it in for the Page Title.

Re: Change Page Title via Ajax??

2009-05-29 Thread Francisco Diaz Trepat - gmail
JAJAJA how could I forget. thanks IGOR. f(t) On Fri, May 29, 2009 at 3:52 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: target.appendjavascript(window.title='new title'); something like that should work. -igor On Fri, May 29, 2009 at 11:30 AM, Francisco Diaz Trepat - gmail

Re: Mocking out component.setResponsePage

2009-05-29 Thread Eric Weise
Hi Clint, One thing though is my unit test is not invoking the seam framework and it looks like that class extends the SeamWebApplication. My unit test just uses WicketTester and has a routine to inject mock objects on any @In annotation fields in the component hierarchy. Is there a

Re: Mocking out component.setResponsePage

2009-05-29 Thread Clint Popetz
You can construct a WicketTester with an application subclass...it just creates a default one for you internally if you don't: WicketTester yourTester = new WicketTester(new WicketTester.DummyWebApplication() { public RequestCycle newRequestCycle(final Request request, final Response

Re: How do I reuse a rendered string, i.e. render once and past in multiple locations, e.g. paging nav at top and bottom?

2009-05-29 Thread J.-F. Rompre
Thanks Igor for the straight answer - much appreciated. Thanks, JF On Wed, May 27, 2009 at 9:59 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: no it is not possible and does not make sense to do so. imagine you have a panel that renders div id=1div id=2/div/div not only would you have

Re: simple model question

2009-05-29 Thread bferr
I was not chaining the models as suggested and the ldm.getModelObject() does not get updated sometimes. Is that the type of problem that would be caused by not chaining the models? If so, it's only in some cases not all the time. My debugging brought me to review the models because it seemed

Re: Mocking out component.setResponsePage

2009-05-29 Thread Eric Weise
Awesome. I think that's exactly what I need. Thanks Clint. -Eric On May 29, 2009, at 12:24 PM, Clint Popetz wrote: You can construct a WicketTester with an application subclass...it just creates a default one for you internally if you don't: WicketTester yourTester = new WicketTester(new

ajax form rest

2009-05-29 Thread tubin gen
how to reset form using ajax and non ajax ?

Re: OutOfMemory on certain combinations of controls

2009-05-29 Thread Flavius
I put a quickstart build up at http://silverlion.com/tmp2/OutOfMemory.zip. Just unzip it, change to that dir and run mvn jetty:run and go to http://localhost:8080/OutOfMemory It has just one page, one modal window, one border, and one panel. The steps to repro this are there on the home page.

Re: Generate markup for hidden framework form field?

2009-05-29 Thread janneru
thx jörn for sharing ur solution! i also just found a similar one by uwe schaefer: http://www.codesmell.org/blog/2008/12/wicket-secureform/ cheers uwe. On Tue, May 26, 2009 at 2:43 PM, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: Thanks guys! The end result looks like this, works fine,

Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread David Brown
Hello Martin, Jeremy, dev, gurus, users and mortals. I have just finished ch. 13 of the WIA.pdf. I have followed closely the reading using the wicket-in-action eclipse project. I have the wicket-in-action running under the: mvn jetty:run. The wicket-in-action project is redeployed every 60

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread Igor Vaynberg
why dont you just start the project from eclipse directly using the Start class, that way you get debug and hotswap - which should be the real student's dream :) -igor On Fri, May 29, 2009 at 2:53 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello Martin, Jeremy, dev, gurus, users and

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread Ryan Gravener
Yes, that is the real students dream. mvn eclipse:eclipse On Fri, May 29, 2009 at 5:51 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: why dont you just start the project from eclipse directly using the Start class, that way you get debug and hotswap - which should be the real student's

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread David Brown
Hello Ryan, thanks for the reply but I have the project imported successfully into Eclipse. David. - Original Message - From: Ryan Gravener r...@ryangravener.com To: users@wicket.apache.org Cc: david da...@davidwbrown.name Sent: Friday, May 29, 2009 4:53:33 PM GMT -06:00 US/Canada

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread David Brown
Hello Igor, thanks for the reply. Can I just ignore the QuickStart embedded jetty and install jetty on Eclipse then do a run-as without any issues? Please advise, David. - Original Message - From: Igor Vaynberg igor.vaynb...@gmail.com To: users@wicket.apache.org Cc: david

Re: Wicket Quickstart vs WIA eclipse projects: why so different?

2009-05-29 Thread Igor Vaynberg
like i said, the best way is to right click the Start class and do run as java application. you can, of course, do it any other way you like - including installing jetty eclipse launcher plugin. -igor On Fri, May 29, 2009 at 3:17 PM, David Brown dbr...@sexingtechnologies.com wrote: Hello Igor,

congrats to inmethod

2009-05-29 Thread Cristi Manole
I was trying to see if the inmethod site still links the (best) wicket data/tree table (although i knew it's been moved to wicket-stuff) and I stumbled on the new site. The site looks great and so does the service. Congrats to Matej... Igor (brix in action) ?... and best of luck with it. Why

CheckGroup and AjaxPagingNavigator

2009-05-29 Thread Julian Sinai
I'm having trouble with my usage of CheckGroup and AjaxPagingNavigator. If the user checks one or more checkboxes on one page of my data table, then navigates to the next page, the choices on the first page are forgotten. In my application, they need to be remembered. This was not a problem

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread yong mook kim
hi thanks igor, i got the same solution in Wicket in action book as well...however the flush blank page sometime really annoying sorry about the fallback button again, according to you.. we use javascript to override the default behavior - thus if no javascript is there then

Re: AjaxLazyLoadPanel fallback version?

2009-05-29 Thread yong mook kim
Thanks Cristi Manole, ya your ideas is great, this open my mind to the unlimited possibilities in Wicket :) and as Igor said, how we know the javascript support when rendering the first page? Do you have alternative solution for this ? --- On Fri, 5/29/09, Igor Vaynberg

DropDownChoices: How to force a selection.

2009-05-29 Thread Marco Santos
Hello There. Im creating a page where the user can either create or update a registry. I have a few DropDownChoices, and i am trying, on the case o updating a registry, to set the a specific value of the choices of the dropdownchoice. Does any one know how? I have tryed to set a value on the