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 Proper

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 wrote: > From: Igor V

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 not

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 bef

Re: nested loop view

2009-05-29 Thread Luther Baker
In my case, I was adding something to 'this' instead of the parent / outer item: I think the line *add(new ListView("reportItems", reportItems) {* is implicitly *this.add(new ListView("reportItems", reportItems) {* and likely not what you want ... try changing it to *l

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 didn

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 wrote: > Hello Igor, thanks for the reply. Can I j

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" To: users@wicket.apache.org Cc: "david" Sent: Friday, May 29, 2009 4:51:

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" To: users@wicket.apache.org Cc: "david" Sent: Friday, May 29, 2009 4:53:33 PM GMT -06:00 US/Canada Central Subject: Re: Wicket Quickstart vs WIA

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

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 wrote: > Hello Martin, Jeremy, dev, gurus, users and mortals. I have just finishe

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 secon

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 wrote: > Thanks guys! The end result looks like this, works fine, and removed a > lot of html bo

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.

ajax form rest

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

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

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 li

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 wrote: > no it is not possible and does not make sense to do so. > > imagine you have a panel that renders > > not only would you have to rewrite the id of the top tag, but also

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 respo

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 si

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 wrote: > 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 > wrote: > > Hi all, long

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 wrote: > Hi all, long time... > I saw in some sample to label very long ago and put it in for the Page > Title. > > >   >      [Page Titl

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

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 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 page I'm test

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

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. [Page Title] .. Now, is it possible to change this via ajax? As I write you this lines I think I could put an input type hidden and a decorator or something like that. But j

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

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 wrote: > I don'

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 function callWicket() { wicketAjaxGet(callback + '¶meter=value', function() {}, function() {}); } where callb

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) { //nothing

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 wrote: > In order to have something like that, I have to specifically me

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 js

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 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 anybody is interrested

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

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 javascript

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 uns

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 check

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

Re: wicket and jquery

2009-05-29 Thread Rodolfo Hansen
Also you can checkout http://code.google.com/p/wiquery/ which has a couple of ideas... On Fri, May 29, 2009 at 11:15 AM, Dipu wrote: > 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 Gie

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

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 som

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 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 personally hate putting

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 Daniel Toffetti
James Carman carmanconsulting.com> writes: > > On Fri, May 29, 2009 at 4:04 AM, Kent Larsson 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 >

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 AjaxLazyLoadPanel('123

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: 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 wrote: > On Fri, May 29, 2009 at 4:04 AM, Kent Larsson 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 n

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 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 > may be a "wicket way

Re: RequestLogger and session invalidation

2009-05-29 Thread Taneli Korri
On Thu, May 28, 2009 at 11:24 AM, Johan Compagner wrote: > 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: 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 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 logic into a "servi

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 bro

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 CompoundPropertyModel(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 upon s

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 roles

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). Th

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

Re: wicket logo

2009-05-29 Thread Martijn Dashorst
On Wed, May 27, 2009 at 8:09 AM, Luther Baker 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 is being very ana

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 wrote: > On Thu, May 28, 2009 at 11:36 AM, Igor Vaynberg > wrote: >> this is why i built salve.googlecode.com >> >> you can easily hook it into spring a