Re: Resource servlet from wicket

2008-05-31 Thread Igor Vaynberg
implement support for HEAD request -igor On Sat, May 31, 2008 at 3:54 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > I have this servlet that is called from wicket only using a url > /Files/thefile.jpg > The servlet is url-mapped on /Files/*. But it is very slow and I was just > w

Re: AjaxFallbackLink to Show/Hide a checkGroup problem...

2008-06-01 Thread Igor Vaynberg
setoutputmarkupplaceholdertag(true) -igor On Sun, Jun 1, 2008 at 1:39 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > There's another boolean on component that you should set to true. It will > output a container where the component should be, even if the component is > invisible. Unfortuna

Re: Feedback message related problem--info,debug etc take string arguments which is not very flexible

2008-06-02 Thread Igor Vaynberg
we havent done it yet because it is an API break. so we have been waiting for wicket1.5/2.0 whatever to do this. -igor On Mon, Jun 2, 2008 at 12:17 AM, atul singh <[EMAIL PROTECTED]> wrote: > I can do that within a day or 2..(Meaning with the patch..).does any core > dev see an issue if info,debu

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
after using 1.4 full time i am more and more coming around to this point of view also. disclaimer: terms like "vast majority" are based on my own coding experience... the fact is, it doesnt matter how often you use models in components, its how often you actually have to cast the model object to

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
On Mon, Jun 2, 2008 at 8:24 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > On Mon, 02 Jun 2008, Igor Vaynberg wrote: >> i am willing to drop component model support if the following can be met: > > "component model support" -- ? generifying component for the sa

Re: AW: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
i guess my question is: if you have a list and you are never going to put anything inside it, do you think a generic type is still useful? there are plenty of usecases where component's default model slot is not used, so why do we have to generify it? even if the mix is 50/50 that means 50% is comp

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
im really curious to hear what these changes would be... -igor On Mon, Jun 2, 2008 at 8:25 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > > I think... > > We should be able to use the untyped variants, but the explanations for why > that won't work directly was valid. > > So on to you're A/B quest

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
ould have produced > something a bit different. > > - Brill Pappin > > -----Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2008 11:42 PM > To: users@wicket.apache.org > Subject: Re: users, please give us your opinion: what is your

Re: AW: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Igor Vaynberg
; > - Brill Pappin > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 02, 2008 11:25 PM > To: users@wicket.apache.org > Subject: Re: AW: users, please give us your opinion: what is your take on > generics with Wicket > >

Re: Multi-validator in one input field?

2008-06-03 Thread Igor Vaynberg
all added validators are ANDed together. if you want to add an OR you have to roll your own validator. -igor On Tue, Jun 3, 2008 at 7:16 AM, liny <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to have a text field that can validate multi values, like below: > > FormComponent fc; > fc = new Require

Re: AJAX slower than full page update

2008-06-03 Thread Igor Vaynberg
if the table is the only expensive component on your page then there is really no advantage to using ajax since you are adding all the overhead of javascript processing without saving anything. -igor On Tue, Jun 3, 2008 at 3:57 AM, Niels Bo <[EMAIL PROTECTED]> wrote: > > Hi > > I have observed th

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Igor Vaynberg
On Tue, Jun 3, 2008 at 1:19 AM, jd17 <[EMAIL PROTECTED]> wrote: > > The first and most important one is the fact that per default Wicket now > makes css ids unique, which isn't even mentioned in the migration guide (Can > you please add it?). I make heavy use of css in my application and it was > r

Re: Migration pains: new css id handling / no getContextPath()

2008-06-03 Thread Igor Vaynberg
not really sure what to tell you other then my impression is that it is false by default... -igor On Tue, Jun 3, 2008 at 8:47 AM, jd17 <[EMAIL PROTECTED]> wrote: > > Hi, Igor, > thanks for replying, but I do not understand your statement. My impression > is that the default is true, otherwise I w

Re: Bean properties from view?

2008-06-03 Thread Igor Vaynberg
no it is not possible. in wicket the view is dumb, it contains no knowledge or logic. if, for example, the person has first name and last name and you wanted to output a full name you would have to do the concatenation in java code, and the view would simply have placeholder. in wicket everything

Re: Extra control needed for PropertyColumn

2008-06-03 Thread Igor Vaynberg
you can also subclass propertycolumn itself -igor On Tue, Jun 3, 2008 at 2:36 PM, Steve Thompson <[EMAIL PROTECTED]> wrote: > I'm creating a AjaxFallbackDefaultDataTable, just as shown in the live > examples, and things are working great. My only problem though is > that I would like to scramble

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Igor Vaynberg
implemented fairly well without too much > impact on the users. > > - Brill Pappin > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2008 12:21 AM > To: users@wicket.apache.org > Subject: Re: users, please give us

Re: Css and path issues

2008-06-03 Thread Igor Vaynberg
you can use something like add(new HeaderContributor.forCss(pageA.class, "filename")) on pageA and it should work from anywhere. -igor On Tue, Jun 3, 2008 at 8:26 AM, Manuel Corrales <[EMAIL PROTECTED]> wrote: > Hi, i am starting new wicket application, my first one. I think this is an > awesome

Re: Example of wicketstuff-minis' Veil

2008-06-03 Thread Igor Vaynberg
can you paste the stack trace please? are you using latest trunk? -igor On Tue, Jun 3, 2008 at 6:38 AM, nitinkc <[EMAIL PROTECTED]> wrote: > > I need an example of wicketstuff-minis' veil behavior. I added this to one of > my components but keep getting the error that the behavior is already boun

Re: Add onClick to an AjaxButton

2008-06-03 Thread Igor Vaynberg
are you on 1.4, i checked in a change that will allow ajaxbutton to utilize getonclickscript() within the ajax handler it generates... -igor On Tue, Jun 3, 2008 at 2:47 AM, Eyal Golan <[EMAIL PROTECTED]> wrote: > One more thing. > If I understand correctly, AjaxButton should override the getOnCli

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Igor Vaynberg
gt; Starting with 2 users of your code makes a significant impact on what it > looks like in the end. > I applied the same thoughts to using generics from the start, and realized > the API would likely be a bit different. Exactly how much, I wouldn't > presume to guess. > > -

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Igor Vaynberg
i think we should have qualified this rfi with a requirement that responders use 1.4 on a non-trivial project...these things only become apparent from real-world day-to-day usage. anything else is pretty much speculation. -igor On Tue, Jun 3, 2008 at 10:31 PM, Eelco Hillenius <[EMAIL PROTECTED]>

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-03 Thread Igor Vaynberg
On Tue, Jun 3, 2008 at 11:30 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Tue, Jun 3, 2008 at 10:37 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i think we should have qualified this rfi with a requirement that >> responders use 1.4 on a non-trivial project

Re: New Window/Tab Scope

2008-06-04 Thread Igor Vaynberg
nothing right now because its not implemented yet. in the future you will have access to a Window class and be able to subclass it to store your own data, just like you do with Session now... -igor On Wed, Jun 4, 2008 at 7:29 AM, geke <[EMAIL PROTECTED]> wrote: > > Hi, > > I need a scope for ever

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Igor Vaynberg
but if you start two threads you are twice as likely to get an answer... -igor On Wed, Jun 4, 2008 at 12:38 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > See my reply in the other thread. > > Oh and next time could you keep it to one thread ;) thanks. > > Maurice > > On Wed, Jun 4, 2008 at 3:1

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Igor Vaynberg
Will the universe deadlock? > > Martijn > > On Wed, Jun 4, 2008 at 4:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> but if you start two threads you are twice as likely to get an answer... >> >> -igor >> >> On Wed, Jun 4, 2008 at 12:38 AM, Maurice M

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
you are not doing anything wrong, that is how things are meant to work. -igor On Wed, Jun 4, 2008 at 2:40 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Hi, > > I have a ListView nested in a CheckGroup which works actually fine. In some > cases I have to disable (or make invisible) a certain Check wit

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
why even have an interface? just detach all imodel fields via reflection! -igor On Wed, Jun 4, 2008 at 3:37 AM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 4:24 AM, Eelco Hillenius > <[EMAIL PROTECTED]> wrote: >>> it all depends, on how and what you're developing. >> >> Yeah

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
4, 2008 at 5:16 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> why even have an interface? just detach all imodel fields via reflection! >> >> -igor >> >> >> On Wed, Jun 4, 2008 at 3:37 AM, James Carman <[EMAIL PROTECTED]> >> wrote: >&

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
it is possible, just depends on how you set up your models. it is not possible by directly reading the collection of checkgroup, but you can come up with a different way. -igor On Wed, Jun 4, 2008 at 8:29 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg <mailto:[EMAIL PROTE

Re: jsesionid written into url when using tomcat behind apache & mod_j

2008-06-04 Thread Igor Vaynberg
this has been asked a ton of times already...so do search the lists next time. just to reiterate, servlet container always does this on first request because it doesnt know if the cookies are enabled or not until the second request. if cookies are enabled jsessionid will go away on second request.

Re: Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Igor Vaynberg
snapshots are available daily from wicketstuff repo. we have a teamcity instance that builds them quiet often. -igor On Wed, Jun 4, 2008 at 9:58 AM, Ricky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there an estimated release date for Wicket 1.3.4 or for 1.3-SNAPSHOT ? > > Regards, > Vyas, Anirudh >

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
-igor On Wed, Jun 4, 2008 at 10:03 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 9:43 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> you still have ondetach()...but for convinience we can automatically >> detach any imodel fields, i actually wa

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
On Wed, Jun 4, 2008 at 10:23 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 10:10 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> sounds way too complicated to me dude... >> >> component.detach() { >> for (field:fields) {

Re: AJAX slower than full page update

2008-06-04 Thread Igor Vaynberg
honestly i havent noticed any slow performance on ie... -igor On Wed, Jun 4, 2008 at 11:25 AM, Niels Bo <[EMAIL PROTECTED]> wrote: > > Yes, but we have many other things on the page. > > But why is it so slow? Is Wicket using some js functions that is extra slow > in IE? > > If you google for "I

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
i dont think it exposes anything, or that anything is flawed. the component provides a slot for a default model - it is there totally out of convinience. i think what is flawed here is that we tied the two types via generics. for example, sometimes i want to have a webmarkupcontainer with a model

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
like i said, i dont mind removing the default slot if we add nice automatic detachment for fields. -igor On Wed, Jun 4, 2008 at 12:23 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 11:48 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i dont thin

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
> } > } > > Detachment will then be automatic. > > Sven > > > Igor Vaynberg schrieb: >> >> you still have ondetach()...but for convinience we can automatically >> detach any imodel fields, i actually wanted to do this for a while... >> >> -igo

Re: Best way of validating FileUploadField

2008-06-04 Thread Igor Vaynberg
that is what validators are for -igor On Wed, Jun 4, 2008 at 9:43 PM, Ned Collyer <[EMAIL PROTECTED]> wrote: > > Hi, > > I have the requirement where I need to validate things like image format, > height, width etc for a file upload. > > I'd like to do this using validators, which I can do - but

Re: Best way of validating FileUploadField

2008-06-04 Thread Igor Vaynberg
argh, didnt read closely enough. yes that is the right way to do it, in fact you shouldnt have to do that at all, fileuploadfield should be doing that... please create a jira ticket, that component is pretty old so it probably got overlooked. multifileuploadfield does it properly already. -igor

Re: Problem: Check within a ListView

2008-06-05 Thread Igor Vaynberg
right, so like that its not going to work. you need a model in between that can buffer values and insert missing checked by disabled values. -igor On Thu, Jun 5, 2008 at 4:36 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg <mailto:[EMAIL PROTECTED]> wrote: >> it is p

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Igor Vaynberg
g to think about -igor On Thu, Jun 5, 2008 at 12:53 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > like matej already told you > There is no default "slot" or field.. > A component with no model doesnt have a a slot what so ever. > > johan > > > On W

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Igor Vaynberg
you should use embedded forms form->listview->item->form+formvalidators->formcomponents instead of form+formvalidators->listview->item->formcomponents -igor On Thu, Jun 5, 2008 at 7:55 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > I use setReuseitems true yes. > > I must call the removeAll b

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-05 Thread Igor Vaynberg
AIL PROTECTED]> wrote: > This might also screw up stuff like CompoundPropertyModel, no? We > discussed this a bit on ##wicket. > > On Thu, Jun 5, 2008 at 11:44 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> i didnt mean the memory slot, i ment the actual default model ea

Re: Form validators expand in a ListView per each refresh

2008-06-05 Thread Igor Vaynberg
gt; > I think HTML does not approve embedded forms, does it? So should I > tweak this using renderBodyOnly or similar? > > ** > Martin > > 2008/6/5 Igor Vaynberg <[EMAIL PROTECTED]>: >> you should use embedded forms >> >> form->listview->item-&

Re: Issues with Bookmarkable targets

2008-06-06 Thread Igor Vaynberg
can you try with 1.3 trunk. if that doesnt work create a quickstart and jira it. -igor On Thu, Jun 5, 2008 at 6:56 PM, David Leangen <[EMAIL PROTECTED]> wrote: > > I've been stepping through the code, but I'm having a tough time > figuring this one out... > > Using 1.3. > > I have one page mounte

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Igor Vaynberg
correct course of action is to figure out why its not running in tomcat -igor On Fri, Jun 6, 2008 at 8:39 AM, Frank Silbermann <[EMAIL PROTECTED]> wrote: > I have the quickstart program and have been able to run it in Eclipse > following the directions in > http://herebebeasties.com/2007-10-07/wi

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Igor Vaynberg
how about the tomcat log... -igor On Fri, Jun 6, 2008 at 8:49 AM, Frank Silbermann <[EMAIL PROTECTED]> wrote: > Any suggestions as to where I should look for clues? > > -Original Message----- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Friday, June 06, 2008

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Igor Vaynberg
oses as well as to attempt to terminate the thread which > caused the illegal access, and has no functional impact. > Jun 6, 2008 10:58:23 AM org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > > -Original Message- > From: Igor Va

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Igor Vaynberg
; INFO: Illegal access: this web application instance has been stopped >> already. Could not load org.apache.commons.logging.impl.SimpleLog. >> The eventual following stack trace is caused by an error thrown for >> debugging purposes as well as to attempt to terminate the thread which >

Re: strange links

2008-06-06 Thread Igor Vaynberg
the reason is that people run clusters behind a proxy. not all nodes run out of the same context, so absolute links break, while relative dont. there are a lot of threads on this. we didnt just decide "relative urls look cooler cause we like the dots" and changed it... -igor On Fri, Jun 6, 2008 a

Re: How reliable Validators are?

2008-06-06 Thread Igor Vaynberg
wicket validators have been designed to work up to 90% of the time. there is a heuristic that determines when the validator should stop the form from submitting and when not. we find that validators that work 100% of the time are just not as useful. -igor On Fri, Jun 6, 2008 at 10:35 AM, Sergey P

Re: How reliable Validators are?

2008-06-06 Thread Igor Vaynberg
what exactly is "heavy" ? a validator accessing the database? why is that heavy? it keeps a reference to the object that does the database check? why is that heavy? there are plenty of things to make the lookup lightweight such as wicket-spring and salve. what exactly is too heavy about somethin

Re: How reliable Validators are?

2008-06-06 Thread Igor Vaynberg
not without manually injecting the validator or making validate an inner/anon class so it can access component's fields. -igor On Fri, Jun 6, 2008 at 12:46 PM, James Carman <[EMAIL PROTECTED]> wrote: > You can, however, pass in an object obtained via injection with the > @SpringBean annotation. >

Re: Tomcat 5.5.9 isn't running Quickstart

2008-06-06 Thread Igor Vaynberg
AIL PROTECTED]> wrote: > The lib directory in the QuickStart's WEB-INF contains: > >log4j-1.2.14.jar >slf4j-api-1.4.2.jar >slf4j-log4j12-1.4.2.jar > > -----Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Frid

wicket generics

2008-06-07 Thread Igor Vaynberg
so i tried to remove the generic type from component in sandbox/ivaynberg/wicket-generics branch and ran into what i think is a deal breaker for this design class component { public void setmodel(imodel model) {...} public imodel getmodel(); } that is all good until you want to have a generif

Re: wicket generics

2008-06-07 Thread Igor Vaynberg
gt; wrote: > Hi Igor and others, > > Great that you tried that out in practice! > > On Sat, 07 Jun 2008, Igor Vaynberg wrote: >> class component { >> public void setmodel(imodel model) {...} >> public imodel getmodel(); >> } > > I was earli

Re: Lightweight generic busy indicator

2008-06-07 Thread Igor Vaynberg
wicket supports global javascript event handlers for this. either search the list or look inside wicet-ajax.js, i cant recall them off the top of my head. -igor On Sat, Jun 7, 2008 at 8:59 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Hi! > > I am trying to maneuvre a lightweight gmail-style bu

Re: Create WebPage inside a TimerTask Class

2008-06-09 Thread Igor Vaynberg
you should use wickettester to do this...that will create all the proper threadlocal mocks you need. -igor On Mon, Jun 9, 2008 at 12:48 AM, Fabien D. <[EMAIL PROTECTED]> wrote: > > Hi, thank you for tour help... > > This is a very strange behavior. I have tried to display this page, so I > have

Re: JavaScript for tag

2008-06-09 Thread Igor Vaynberg
build the as a label and add it to the page. set escapemodelstrings(false) on it and wicket wont escape any makrup. -igor On Mon, Jun 9, 2008 at 4:39 AM, Stefan Lindner <[EMAIL PROTECTED]> wrote: > I want to use a JavaScript library that requires the body to be loaded. > This can normally be don

Re: JavaScript for tag

2008-06-09 Thread Igor Vaynberg
o insert the Google > Analytics javascript code right before my tag too. > > On Mon, Jun 9, 2008 at 10:42 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> build the as a label and add it to the page. set >> escapemodelstrings(false) on it and wicket wont escape any makrup. &

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-09 Thread Igor Vaynberg
try applying this patch and see if it helps https://issues.apache.org/jira/browse/WICKET-1667 -igor On Mon, Jun 9, 2008 at 8:11 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: > > I am just analysing a heap dump (god bless the > -XX:+HeapDumpOnOutOfMemoryError flag) of a recent application cach

Re: AutoCompleteTextField scrolls entire page

2008-06-09 Thread Igor Vaynberg
before you submit a jira ticket make sure it is also broken in the wicket-1.3.x svn branch - which will be the 1.3.4 release - nothing really mystical about it. -igor On Mon, Jun 9, 2008 at 11:15 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I have not gone back to 1.3.2 yet - will give this a

Re: Can a Panel's id be re-assigned after construction?

2008-06-09 Thread Igor Vaynberg
pass the id into the createPanel method -igor On Mon, Jun 9, 2008 at 11:51 AM, Peter Gardfjell <[EMAIL PROTECTED]> wrote: > > Hi, > > a quick question. Is it possible to assign a new id to a Panel after it has > been constructed? > Something similar to: > > public Panel createPanel() { >retu

Re: Can a Panel's id be re-assigned after construction?

2008-06-09 Thread Igor Vaynberg
it is possible. you can write a component that is only allowed to have one child with any id using an IComponentResolver. is that a good practice? if i were implementing your factory interface i would be confused as to what id i should use since the panel takes it as a constructor arg...so which wa

Re: AutoCompleteTextField scrolls entire page

2008-06-09 Thread Igor Vaynberg
but it keeps failing. I'm using maven and am following the > instructions (http://tinyurl.com/5dnxsf), but it keeps failing. > > Michael > > -----Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Monday, June 09, 2008 11:25 AM >

Re: Page refresh

2008-06-09 Thread Igor Vaynberg
paste your code -igor On Mon, Jun 9, 2008 at 3:34 PM, Ricky <[EMAIL PROTECTED]> wrote: > Hi, > > My page class consists of : > 1.) Panel -A 2.) Panel - B. > > Just for FYI - Panel A has Refreshing View and a refreshing view nested > within it (nested tables). > > When I do a refresh (F5 or simpl

Re: Page refresh

2008-06-10 Thread Igor Vaynberg
a view code : >addPerspectiveDataView(createPerspectiveDataView(BACKINGModelList)); >// in create Perspective Data View I have another refreshing view >createNestedDataView(NestedBackingModelListForPerspective); > > > Thanks > Rick > > On Mon, Jun 9, 2008 at 8:20 PM,

Re: Page refresh

2008-06-10 Thread Igor Vaynberg
of models. (calling business > tier --> to hibernate). > > and then : * new RefreshingView(ID, MODELs){ };* > > I tried, changing above to : *new RefreshingView(ID, new Model( > (Serializable) models) { }; > *But to no effect. =( > * > Rick. > * > On Tue, Jun 10, 2008

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
i dont think cookie persistence is going to work for listviews out of the box. the problem is that components inside repeaters do not have stable component paths - and that is the key the cookie uses to store values. so you will need to roll your own solution for this usecase. -igor On Tue, Jun 1

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
g cookie names different from the component IDs. It's just > that the components that belong to a ListView are never even checked for > loading. > > Where does Wicket discard the ListView components when visiting its child > FormComponents? > > On Tue, Jun 10, 2008 at 1:14 PM, I

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
omponents that belong to a ListView are never even checked for >> loading. >> >> Where does Wicket discard the ListView components when visiting its child >> FormComponents? >> >> >> On Tue, Jun 10, 2008 at 1:14 PM, Igor Vaynberg <[EMAIL PROTECTED]> >>

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Igor Vaynberg
if someone can confirm that the patch works in a production env i will be happy to commit it. i just havent had the time to test it myself yet. -igor On Tue, Jun 10, 2008 at 7:09 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: > Hi All, > > I run our profiling tests (version 1.3.3) using Application.

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
omponents are not visited. > > I'm using setReuseItems(true) -- I'm not sure why my ListView's children is > null. > > On Tue, Jun 10, 2008 at 1:42 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> form components inside listview are visited. >> >>

Re: A question about cookie value loading

2008-06-10 Thread Igor Vaynberg
Form.loadPersisitentFormComponentValues() -igor On Tue, Jun 10, 2008 at 4:23 PM, nate roe <[EMAIL PROTECTED]> wrote: > I'm sorry, which method do you mean? > > On Tue, Jun 10, 2008 at 4:02 PM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: > >> what calls that m

Re: setRenderBodyOnly(true) - something more powerful?

2008-06-11 Thread Igor Vaynberg
it is a wiki -igor On Wed, Jun 11, 2008 at 7:00 AM, Martin Makundi <[EMAIL PROTECTED]> wrote: > Tnx! Good point: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html > > I think this page should be strongly cross-referenced from markup > inheritance tutorial ;) There's a lot of useful stuff

Re: How to get context path

2008-06-11 Thread Igor Vaynberg
see ContextImage -igor On Wed, Jun 11, 2008 at 12:10 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > Hi, > > my images in the application are in webapp/image folder. How to get > Context Path in wicket so I can prepend this path to display the image. > I am looking for something like this. > > get

Re: How to add a TextField in a Dynamically created DefaultDataTable

2008-06-11 Thread Igor Vaynberg
wrap the textfield in a fragment or a panel -igor On Wed, Jun 11, 2008 at 3:39 PM, galbelli <[EMAIL PROTECTED]> wrote: > > I am creating a DefaultDataTable dynamically as I only know the number of > columns at runtime. All is working nicely but I now need to have one of the > columns contain a Te

Re: Example of wicketstuff-minis' Veil

2008-06-11 Thread Igor Vaynberg
sorry, havent had time to check out the source from svn yet -igor On Wed, Jun 11, 2008 at 11:53 AM, nitinkc <[EMAIL PROTECTED]> wrote: > > Igor, > Any updates on this?? > thanks! > > > nitinkc wrote: >> >> Here is the stack trace: >> Root cause:java.lang.IllegalStateException: This behavior i

Re: Modify model value before rendering

2008-06-12 Thread Igor Vaynberg
or just write your own model in an inner class... -igor On Thu, Jun 12, 2008 at 1:45 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Either use a converter or create an adapter model that takes the > propertymodel and retrieves the nested model object, and returns the > appropriate string. > >

Re: How to get context path

2008-06-12 Thread Igor Vaynberg
n still utilize the behavior whereas a > component you cannot ;o) > > -Original Message----- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 11, 2008 3:29 PM > To: users@wicket.apache.org > Subject: Re: How to get context path > > see ContextImag

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
indeed. i wouldnt mind if final was the default in java :) -igor On Thu, Jun 12, 2008 at 8:18 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Without the use of final wicket would not have made it this far. > > Martijn > > On Thu, Jun 12, 2008 at 5:08 PM, Brill Pappin <[EMAIL PROTECTED]> wrote:

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
i mean generally, for methods, fields, and func args :) most of this stuff can stay final, but people dont bother doing it because its extra typing. -igor On Thu, Jun 12, 2008 at 8:38 AM, James Carman <[EMAIL PROTECTED]> wrote: > You mean like C++? > > On Thu, Jun 12, 2008 at

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
On Thu, Jun 12, 2008 at 9:00 AM, Brill Pappin <[EMAIL PROTECTED]> wrote: > That is the most compelling argument I have ever heard (maintainability > going forward). > saying "i like this by default" as most have done is no argument at all :) i suppose whenever you write any method that is consumed

Re: styling option tag in dropdownlist

2008-06-12 Thread Igor Vaynberg
use Select/SelectOption components rather then dropdownchoice -igor On Thu, Jun 12, 2008 at 9:57 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > How can I style a certain option in a select list? I want to provide > diffrent colors for main categories in a drop down list. > -- > Vi

Re: How to add a TextField in a Dynamically created DefaultDataTable

2008-06-12 Thread Igor Vaynberg
your textfield doesnt have a model -igor On Thu, Jun 12, 2008 at 11:06 AM, galbelli <[EMAIL PROTECTED]> wrote: > > Thanks, the Fragment example did help in that I have the table rendering > properly. When I attempt to submit the form I get the following error: > > WicketMessage: Method onFormSubm

Re: Making Component easier to Generify

2008-06-12 Thread igor . vaynberg
u, Jun 12, 2008 at 8:38 AM, James Carman >> <[EMAIL PROTECTED]> wrote: >> >>> You mean like C++? >>> >>> On Thu, Jun 12, 2008 at 11:35 AM, Igor Vaynberg <[EMAIL PROTECTED]> >>> wrote: >>> >>>> indeed. i wouldnt mind if final was

Re: PasswordTextField model?

2008-06-12 Thread Igor Vaynberg
no, you dont typically initialize the field. but you do want to retrieve the result right? so you need to give the field a model. wicket might not call model.getobject() on it, but it will call model.setobject() when the form is submitted. models do not contain data for markup, but for components.

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
x27;t work with final >>> methods. Wicket components sometimes have overridable factory methods >>> for child components. The decorator pattern could be very useful here, >>> because you'd be able to decorate the original component with some extra >>> f

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
forward to the delegate, only the message dispatch itself. sure, technically you can do it even with a concrete class, but you can also do a lot of other things that dont make sense. -igor On Thu, Jun 12, 2008 at 5:54 PM, Matthijs Wensveen <[EMAIL PROTECTED]> wrote: > Igor Vaynberg wrote: &

Re: Making Component easier to Generify

2008-06-12 Thread Igor Vaynberg
looked over the article. what they do is a ui decorator, it is not the software decorator pattern. there is no method delegation to the child component. what they create is a composite, you can do the same thing in wicket with a Border. -igor On Thu, Jun 12, 2008 at 9:55 PM, Igor Vaynberg

Re: Example of wicketstuff-minis' Veil

2008-06-12 Thread Igor Vaynberg
should be fixed, noticed i fixed the version, it is now 1.3-snap instead of 1.3.0-snap -igor On Wed, Jun 11, 2008 at 11:53 AM, nitinkc <[EMAIL PROTECTED]> wrote: > > Igor, > Any updates on this?? > thanks! > > > nitinkc wrote: >> >> Here is the stack trace: >> Root cause:java.lang.IllegalStateExc

Re: Wicket 1.2 -> 1.3 upgrade question

2008-06-13 Thread Igor Vaynberg
you have to give the mapping as a config param to the filter also, i forget the exact name right now... -igor On Fri, Jun 13, 2008 at 10:00 AM, Frank Silbermann <[EMAIL PROTECTED]> wrote: > Wicket 1.3 is configured as a filter rather than as a servlet. The > Quickstart shows a filter whose URL-P

Re: Getting Wicket Session from outside Wicket context

2008-06-13 Thread Igor Vaynberg
see WicketSessionFilter -igor On Fri, Jun 13, 2008 at 12:35 PM, Scott Sauyet <[EMAIL PROTECTED]> wrote: > I have several Servlets and ServletFilters that run inside the same web > application as my Wicket app. They've happily co-existed with Wicket until > now, but now there is a requirement tha

Re: Wicket 1.2 -> 1.3 upgrade question

2008-06-13 Thread Igor Vaynberg
ture" src="image1.png" alt="Picture"/ > > > where "image1.png" was set via AttributeModifyer) no longer appeared. > > That suggested to me that perhaps I wasn't supposed to change the > of the filter. Should I submit this as a JIRA issu

Re: Getting Wicket Session from outside Wicket context

2008-06-13 Thread Igor Vaynberg
you wanted access to raw http session from your wicket app, he wants to access wicket session object from outside servlets. different usecase. -igor On Fri, Jun 13, 2008 at 12:46 PM, Brill Pappin <[EMAIL PROTECTED]> wrote: > Cool, is that new? > > - Brill > > On 13-Jun

Re: BookMarkable Home Page?

2008-06-13 Thread Igor Vaynberg
use statelessform -igor On Fri, Jun 13, 2008 at 12:46 PM, nanotech <[EMAIL PROTECTED]> wrote: > > Hi All, > > In my application the Home Page of the class has the url that looks like > this > > http://localhost:8080/app/?id=ABCXYZ > > This form has a textfield that I am pre-filling with value of

Re: Wicket 1.2 -> 1.3 upgrade question

2008-06-13 Thread Igor Vaynberg
>applicationClassName > > com.mycompany.WicketApplication > > >filterMappingUrlPattern >/test/* > > > > > wicket.myproject >/test/* >

Re: Wicket 1.2 -> 1.3 upgrade question

2008-06-13 Thread Igor Vaynberg
he image; when both are set to > "/test/*" then I don't see the image. > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2008 3:10 PM > To: users@wicket.apache.org > Subject: Re: Wicket 1.2 -> 1.3 upgrade q

Re: BookMarkable Home Page?

2008-06-13 Thread Igor Vaynberg
the query parameter will go away, you have to readd it yourself. are you sure you are using the stateless form? doesnt look like it from the url. what does the generated form action url look like? -igor On Fri, Jun 13, 2008 at 1:24 PM, nanotech <[EMAIL PROTECTED]> wrote: > > I used StateLess for

Re: Making Component easier to Generify

2008-06-13 Thread Igor Vaynberg
r some other means. AOP is > an option but feels hacky just to do this (pointcuts should generally match > more than one joinpoint). Event listeners are another (but I won't dare > begin that discussion again). > > Best regards, > Matthijs > > Igor Vaynberg wrote: &g

<    1   2   3   4   5   6   7   8   9   10   >