RE: [Wicket-user] PageableDataView and column cells

2005-08-12 Thread Igor Vaynberg
Here is the quick and dirty solution. Is there enough interest to build a full blown grid component? final int cols=7; final int rowsPerPage=5; add(new PageableDataView("grid", new ContactDataProvider(), cols*rowsPerPage) {

RE: [Wicket-user] non-breaking space -   in list view

2005-08-12 Thread Igor Vaynberg
add(new Label(, " ").setEscapeModelObjectStrings(false)); From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DipuSent: Friday, August 12, 2005 4:44 AMTo: [email protected]: [Wicket-user] non-breaking space -   in list view Hi,  

RE: [Wicket-user] PageableDataView and column cells

2005-08-12 Thread Igor Vaynberg
> On 8/12/05, Phil Kulak <[EMAIL PROTECTED]> wrote: > > What if we made a RowsDataProvider that returned detachable > lists as > > the models? That way you could plug that into anything and get > > columns. > > > > On 8/12/05, Igor Vaynberg <[EMAIL PR

RE: [Wicket-user] PageableDataView and column cells

2005-08-12 Thread Igor Vaynberg
dex, int size), > so you could do the above and maybe other things more easy by > hand. I don't have a real use-case - just a thought. > > Christian > > On Fri, 12 Aug 2005 09:08:25 -0700, Igor Vaynberg > <[EMAIL PROTECTED]> > wrote: > >

RE: [Wicket-user] PageableDataView and column cells

2005-08-12 Thread Igor Vaynberg
I think a photo-gallery is a good use case. Just a grid of panels with a picture and some other info inside. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Christian Essl > Sent: Friday, August 12, 2005 10:37 AM > To: [email protected]

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-12 Thread Igor Vaynberg
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Christian Essl > > No it is not the same issue again. > > However I was thinking about it and somehow realized that > most of pagable db views have identical rows (with different > data of course

RE: [Wicket-user] Wicket-stuff Netbeans projects

2005-08-12 Thread Igor Vaynberg
Use your sourceforge.net login and password. If you don't remember contact sourceforge.net or try to recover online. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Friday, August 12, 2005 12:11 PM > To: [EMAIL PROTECTED] > Subj

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-12 Thread Igor Vaynberg
ect: Re: [Wicket-user] [Wicket] DataView and optimized > item removal > > On Fri, 12 Aug 2005 11:40:02 -0700, Igor Vaynberg > <[EMAIL PROTECTED]> > wrote: > > >> -Original Message- > > > The optmized-item-removal in the context of the datavie

RE: [Wicket-user] Moving objects between ListViews

2005-08-12 Thread Igor Vaynberg
How about a little bit of code so we can see what you are doing. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Nick Heudecker > Sent: Friday, August 12, 2005 12:59 PM > To: [email protected] > Subject: [Wicket-user] Mov

RE: [Wicket-user] Wicket-stuff Netbeans projects

2005-08-12 Thread Igor Vaynberg
Umm did you check out the project using the DEVELOPER access (via ssh) or via PUBLIC (pserver) ? -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Friday, August 12, 2005 2:06 PM > To: [email protected] > Subject:

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-12 Thread Igor Vaynberg
PM > To: [email protected] > Subject: Re: [Wicket-user] [Wicket] DataView and optimized > item removal > > On Fri, 12 Aug 2005 12:57:37 -0700, Igor Vaynberg > <[EMAIL PROTECTED]> > wrote: > > > Explain the benefits of your approach as opposed to t

RE: [Wicket-user] Re: Wicket-user digest, Vol 1 #651 - 13 msgs

2005-08-14 Thread Igor Vaynberg
My tapestry apps crashed as often as wicket apps, so def not a wicket bug. Personally im against the serialization ids, it becomes too much of a pain to maintain. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Phil Kulak > Sent: Sunday,

RE: [Wicket-user] Redirecting to external URL with HTTP-Header Location

2005-08-14 Thread Igor Vaynberg
setResponsePage((Page)null) or setResponsePage((Class)null) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > David Liebeherr > Sent: Sunday, August 14, 2005 3:54 PM > To: [email protected] > Subject: Re: [Wicket-user] Redir

[Wicket-user] New palette component in contrib

2005-08-14 Thread Igor Vaynberg
Hi, Just checked in my first pass at a palette component. Basically its two select boxes side by side and add/remove/moveup/movedown buttons. Looking for any feedback/suggestions/etc/etc Thanks, -Igor --- SF.Net email is Sponsored by the

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-14 Thread Igor Vaynberg
aitems are not always rendered in the order as they come > from the iterator. I guess for existing DataItems setting the > index has no effect. Is this right? If so I think this should > be fixed. > > Christian > > > On Fri, 12 Aug 2005 16:30:37 -0700, Igor Vaynberg &

RE: [Wicket-user] Re: [Wicket-develop] New palette component in contrib

2005-08-15 Thread Igor Vaynberg
>> > >> > >> > >>>whatever happened to juergen's wicket-library concept? > there should > >>>be a nice repository in the sky for wicket components > where you can > >>>search and download jars, rate stuff, etc... &g

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
Unless you are using a unique key I don't see how your model is going to know other then delegate to the object anyways. And hopefully your persistence layer is smart enough to pull N+1 queries out of cache since you will be doing that anyways when you render. -Igor > -Original Message-

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
Alright, if that's what you guys want :) I will make the changes to make it work with model.equals(model). I am also going to get rid of the uniquekeyprovider since the model comparison makes it obsolete. I will tag the current version with PRE_OIR_BY_MODEL_EQUALITY if you still need to get to it.

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
> BTW: Does DataView need to call IDataProvider.size(). > Wouldn't it be enough if it just called iterator() with > viewSize. The iterator just returns than what is there. I > have quite some views (unfortunately > orderitems) where I do not need paging and can just get all > of them with one s

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
All done, check it out and let me know what you think. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Igor Vaynberg > Sent: Monday, August 15, 2005 11:00 AM > To: [email protected] > Subject: RE:

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
his is maybe even better, because than DataView > > respects the contract that it does not give a count paramter to > > iterator() where > > first+count is bigger than what size() returned. Anyway I'll take a > > first+look > > and maybe I should write a test-case for th

RE: [Wicket-user] Bug in PageableDataView or IDataProvider

2005-08-15 Thread Igor Vaynberg
Commited. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Monday, August 15, 2005 9:53 PM > To: [email protected] > Subject: Re: [Wicket-user] Bug in PageableDataView or IDataProvider > > > Hi Gili, > > > > Tha

RE: [Wicket-user] [Wicket] DataView and optimized item removal

2005-08-15 Thread Igor Vaynberg
ger.MAX_VALUE;} This works so far fine. Propably we do > not need > >> any code change. This is maybe even better, because than DataView > >> respects the contract that it does not give a count paramter to > >> iterator() where > >> first+count is bigger than

RE: [Wicket-user] Where is IUniqueIdProvider?

2005-08-15 Thread Igor Vaynberg
It has been removed because the new OIR approach makes it obsolete. Read the recent posting in the "DataView and optimized item removal" thread in wicket-user. The hibernate module will need to be updated and im guessing phil hasn't had time yet. Meanwhile you can always check out the dataview w

RE: [Wicket-user] ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
Cant you just set the offset in the dataview? -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Phil Kulak > Sent: Tuesday, August 16, 2005 8:21 AM > To: [email protected] > Subject: Re: [Wicket-user] ColumnedDataProvider st

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
I told you I didn't like it :) The whole process should be smoother, why cant the internal view simply get the iterator from the external view and use that. Why have a whole other wrapper/provider to implement. What is this offset? When using pageddataview you should use the page number to offset,

RE: [Wicket-user] DataView.setStartIndex()

2005-08-16 Thread Igor Vaynberg
Im not sure this is a good idea. For example, when using pageabledataview lets say at the time of request 1 you have 4 pages so the navigator will draw 4 links, use clicks page 4 and at that time there are only 3 pages because some rows were deleted. In this situation would you like to deal with th

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
How about this idea: We have a gridview extends dataview. A gridview takes a render interface that it uses to render the grid (instead of body markup), so we can have a tablerenderer or cssrenderer or whatever, and the interface would roughly look like this: Interface IGridRenderer { begin

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
Or we can use the body markup to render the inside of each cell... -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Igor Vaynberg > Sent: Tuesday, August 16, 2005 2:00 PM > To: [email protected] > Subj

RE: [Wicket-user] RE: DataView.setStartIndex() (Igor Vaynberg)

2005-08-16 Thread Igor Vaynberg
tStartIndex(index); } -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 2:05 PM > To: [email protected] > Subject: [Wicket-user] RE: DataView.setStartIndex() (Igor Vaynberg)

RE: [Wicket-user] RE: DataView.setStartIndex() (Igor Vaynberg)

2005-08-16 Thread Igor Vaynberg
- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 2:17 PM > To: [email protected] > Subject: Re: [Wicket-user] RE: DataView.setStartIndex() (Igor > Vaynberg) > > > Well, in my case, the underlyin

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
Basically a table renderer would look something like this: Class tablerenderer implements igridrenderer { begin(...) {} beginRow(GridView view) { view.getResponse().write(""); } beginCell(GridView view) { view.getResponse().write("");

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
We should have external markup files (i.e. *.html) > instead of doing this the old servlet/JSP way of manually > writing out HTML. > > Gili > > Igor Vaynberg wrote: > > Basically a table renderer would look something like this: > > Class tablerenderer implemen

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
HTML file) and you > can still do either old HTML tables or CSS or whatever. We > allow developers to attach three IDs on the markup end (one > for the grid, one for the row, one for the > column) and they can use any tags (i.e. table, tr, td, div, > span, etc) and put any markup

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
divide it > into columns and rows, much like we're already doing using > ColumnedDataProvider -- but all in one component instead of > across multiple ones. > > Off the top of my head, I would take the DataViewer and > add the concept of columns into it and I thi

RE: [Wicket-user] DataView, optimized item removal?

2005-08-16 Thread Igor Vaynberg
You have developer access don't you, so techinically you are a developer :) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 8:51 PM > To: [EMAIL PROTECTED] > Subject: [Wicket-user] DataView, optimized it

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
> The benefit of this approach is extra flexibility so it is > possible to implement tables where the first row contains one > cell (i.e. the title) then the next couple of rows contain > four cells (adding up some items) and then the final row > contains two cells ("total=", "some value"). Thi

RE: [Wicket-user] DataView, optimized item removal?

2005-08-16 Thread Igor Vaynberg
t I > can't document something I do not understand -- can you > please shed some light on "optimized item removal" > and OIR? > > Gili > > Igor Vaynberg wrote: > > You have developer access don't you, so techinically you are a > > developer :) -Igor

RE: [Wicket-user] getParent recursively?

2005-08-16 Thread Igor Vaynberg
Button.getForm().getModel() :) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Joshua Lim > Sent: Tuesday, August 16, 2005 9:26 PM > To: [email protected] > Subject: [Wicket-user] getParent recursively? > > Hi, I have a q

RE: [Wicket-user] DataView.clearCachedItemCount()

2005-08-16 Thread Igor Vaynberg
clearCachedItemCount() is part of an internal contract. I don't see why the code you mentioned is part of the dataview. You can write a LazyDataProviderDecorator that would implement the count() just like what you described: LazyDataProviderDecorator { int count() { if (del

RE: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-08-16 Thread Igor Vaynberg
An application class is used to store global functionality, ie there is only one instance of the wicketapplication subclass for your entire application. The WebPages are equivalent to indivudal jsps, so you can have a RegisterCarPage, RegisterHotelPage, etc. Does that make sense? -Igor >

RE: [Wicket-user] DataView.clearCachedItemCount()

2005-08-16 Thread Igor Vaynberg
Err... LazyDataProviderDecorator implements IDataProvider... -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Igor Vaynberg > Sent: Tuesday, August 16, 2005 9:49 PM > To: [email protected] > Subj

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
This would be really easy with the renderer :) try something like this, maybe it will work [cell markup] -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Tuesday, August 16, 2005 10:

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
uesday, August 16, 2005 10:10 PM > To: [email protected] > Subject: Re: [Wicket-user] Re: ColumnedDataProvider > startIndex problems > > > Where do I find the renderer Java class? > > Gili > > Igor Vaynberg wrote: > > This would be re

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
ative to the > original IDataProvider, not relative to the MyListView passed > into the constructor. populateItem() will be passed a > DataItem for both row and column. > > See what I mean? It's very flexible in that you can > nested multiple layers but at the

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
ing one DataView for the imageRow, passing > in a IDataProvider. Then I initialize another DataView for > imageCell, pass in imageRow into the constructor. > > Thanks, > Gili > > Igor Vaynberg wrote: > > I don't understand what you are talking about below...sh

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-16 Thread Igor Vaynberg
Btw it's a very bad idea to work on the sourcecode directly as opposed to extending a class because you wont always be able to merge the latest changes back into your code. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of &

RE: [Wicket-user] Nestable DataView now ready

2005-08-17 Thread Igor Vaynberg
Why don't you send us the code plus a code and a template for the page so we can see exactly what is going on. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Wednesday, August 17, 2005 7:00 AM > To: [EMAIL PROTECTED] > Subject:

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
Too confusing since you are adding in the page constructor, but dataitems are cleared every request. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Christian Essl > Sent: Wednesday, August 17, 2005 1:34 AM > To: [email protected]

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-17 Thread Igor Vaynberg
I would disagree with everything except 1. (2) wont work because cells might create different hierarchies of components based on a model, ie insert different panels based on model objects type. (3) this is not error prone at all. You have to understand that you cannot add directly into the datavi

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
to create a component that works with proper semantics in the markup if you don't try to overengineer things! [firstname] -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Igor Vaynberg

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
I just checked in a very small example on how to build a simple grid. It is in no way complete as it is not a component and it misses some basic functionality such as adding a   to the last row if there arent enough items in the dataprovider. But what it does demonstrate is that it is VERY EASY to

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
I just checked in a very small example on how to build a simple grid. It is in no way complete as it is not a component and it misses some basic functionality such as adding a   to the last row if there arent enough items in the dataprovider. But what it does demonstrate is that it is VERY EASY to

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
cells? I don't want them to render at all. If you wish to hide certain cells completely just don't include them into the data being displayed. If you hide cells completely like that isnt that going to throw off your index? -Igor > > Gili > > Igor Vaynberg wrote: > &g

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-18 Thread Igor Vaynberg
> You are right. A lot is still poiler-plate code. Why not make > a component out of it with a method populateDataItem(DataItem > di, int col, int row), which calls di with null when there > are no Objects in the model anymore or has an additional > method with populateEmptyDataItem(DataItem d

RE: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Igor Vaynberg
Or plain old javascript can do the trick as well. There have been master detail select boxes for ages before ajax :) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Phil Kulak > Sent: Thursday, August 18, 2005 7:15 PM > To: wicket-user@l

RE: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-18 Thread Igor Vaynberg
day, August 18, 2005 9:09 PM > To: [email protected] > Subject: Re: [Wicket-user] Using DropDownChoice and > wantOnSelectionChangedNotifications=true clean other form components > > Well, not if there's a lot of different possible details. > > On 8/

RE: [Wicket-user] Form value not being posted to model

2005-08-18 Thread Igor Vaynberg
Why don't you set a breakpoint in form.onsubmitform that's where everything begins to get processed as far as the form goes. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Philip A. Chapman > Sent: Thursday, August 18, 2005 10:43 PM > To

RE: [Wicket-user] Form value not being posted to model

2005-08-18 Thread Igor Vaynberg
Form value not being posted to model > > Igor Vaynberg wrote: > > Why don't you set a breakpoint in form.onsubmitform that's where > > everything begins to get processed as far as the form goes. > > -Igor > > > > Igor, > > I get similar resu

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-19 Thread Igor Vaynberg
I really like the idea of having a listview that shows everything by default, and when you attach a pager to it it becomes pageable. So something like irangepageable { getrowsperpage() setrowsperpage() getmaxrows() }But that's just me. Btw whats getmaxrows() is that getrowcount()? I don't see why

RE: [Wicket-user] Spring Integration

2005-08-19 Thread Igor Vaynberg
For a more lightweight approach you can try creating your own IWebApplicationFactory which would create the application object inside the spring container and pass it on to the servlet. -Igor   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Koen SerrySent: Friday

RE: [Wicket-user] HTML to WebPage generator ?

2005-08-19 Thread Igor Vaynberg
m Palette plugin for tapestry :) Sometimes I really miss that little baby :) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Johan Compagner > Sent: Friday, August 19, 2005 8:23 AM > To: [email protected] > Subject: Re

RE: [Wicket-user] Form value not being posted to model

2005-08-19 Thread Igor Vaynberg
value not being posted to model > > Igor, > > I found it. I had the form's enctype set to > "multipart/form-data", but didn't need it. Sometimes I work > too long on things when I really should go to bed and get some rest. > > Thanks! >

RE: [Wicket-user] Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components

2005-08-19 Thread Igor Vaynberg
Using DropDownChoice and wantOnSelectionChangedNotifications=true clean other form components Well, not if there's a lot of different possible details. On 8/18/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: Or plain old _javascript_ can do the trick as well. There have bee

RE: [Wicket-user] Storing Global Data

2005-08-19 Thread Igor Vaynberg
You should keep this data in your subclass of the WebApplication object. You should probably populate this data by overriding WebApplication.init() or lazy-load it upon first access if you need to do this inside requestcycle. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mail

RE: [Wicket-user] Wicket-Stuff

2005-08-19 Thread Igor Vaynberg
Yep -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gwyn Evans > Sent: Friday, August 19, 2005 4:42 PM > To: [email protected] > Subject: Re: [Wicket-user] Wicket-Stuff > > Thanks! I see Igor's been there as well - It's c

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
> >> get some nasty bugs if a property value is set, than internally > >> changed in the setMethod and than not afterwards reread. > >> Alternatively we should at least throw an IndexOutOfBoundsEx. > >> > >> I think I'll (try to) implement Igor's Grid

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
than not afterwards reread. Alternatively we > should at > > least throw an IndexOutOfBoundsEx. > > > > I think I'll (try to) implement Igor's Grid example as a > Component after > > the IPageable is stable and DataView/PagabelDataView > implements

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
Math.max(0,settedPage). That is > because you can > >>> realy get some nasty bugs if a property value is set, than > >>> internally changed in the setMethod and than not > afterwards reread. > >>> Alternatively we should at least throw an IndexOu

RE: [Wicket-user] Re: ColumnedDataProvider startIndex problems

2005-08-20 Thread Igor Vaynberg
gt; pointing them in that direction) because unlike C (and the > errno mechanism) we don't want to count on developers > explicitly checking for errors. What if they forget? > > Gili > > Igor Vaynberg wrote: > > The pageab

RE: [Wicket-user] PageLink and lazy Page construction

2005-08-20 Thread Igor Vaynberg
You would actually have to look at the code and examples to figure this out :) -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Christian Essl > Sent: Saturday, August 20, 2005 12:47 PM > To: [email protected] > Subject: Re

RE: [Wicket-user] PageLink and lazy Page construction

2005-08-20 Thread Igor Vaynberg
: [Wicket-user] PageLink and lazy Page construction > > > That was uncalled for. I did look at Linkomatic and the > Javadoc. I'm simply wondering why do we provide such methods > in PageLink if they encourage eager page construction? Aren't > we trying to avoi

RE: [Wicket-user] PageLink and lazy Page construction

2005-08-20 Thread Igor Vaynberg
As eelco suggested, submit a patch. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Saturday, August 20, 2005 1:48 PM > To: [email protected] > Subject: Re: [Wicket-user] PageLink and lazy Page construction > >

RE: [Wicket-user] IRC channel

2005-08-22 Thread Igor Vaynberg
Would be nice if we had a bot that would sit in the channel and post the log back to the list every 24 hours or so. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gili > Sent: Monday, August 22, 2005 10:59 AM > To: [email protected]

RE: [Wicket-user] IRC channel

2005-08-22 Thread Igor Vaynberg
ood the mailing list nicely. > > Gili > > Igor Vaynberg wrote: > > Would be nice if we had a bot that would sit in the channel > and post > > the log back to the list every 24 hours or so. > > -Igor > > > > > > > >>-Original M

RE: [Wicket-user] Re: KeyValueCoding and ProperyModel

2005-08-23 Thread Igor Vaynberg
Cant you just do new CompoundPropertyModel(new HashMap()) ? Also check out the wicket.util.value.ValueMap helper class. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Anders Peterson > Sent: Tuesday, August 23, 2005 10:48 AM > To: wicke

RE: [Wicket-user] javascript and divIds

2005-08-23 Thread Igor Vaynberg
Each component also has a unique id in its relation to the page called a path, so if you don't want to bother with setting the id itself you can always use component.getpath() to get a unique id. Comes in handy in these types of situations. -Igor > -Original Message- > From: [EMAIL PROT

RE: [Wicket-user] Question about DropDownChoice

2005-08-23 Thread Igor Vaynberg
I find it helps to think about wicket's Imodel hirarchy as model-locators. These classes exist to help the components locate your actual model objects. I always thought imodel was a bit of a misnomer. Hope this helps. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAI

RE: [Wicket-user] Log4j question

2005-08-23 Thread Igor Vaynberg
It's the other way around If (log.isdebugenabled()) is a lot faster then creating another stack frame for the function, passing in the arguments, etc. Besides with branch predictors its there is virtually no performance loss. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mai

RE: [Wicket-user] wicket + eclipse

2005-08-24 Thread Igor Vaynberg
When you add and remove a method don’t you need to update the vtable? Or is that not kept with instances in java? -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Johan Compagner > Sent: Wednesday, August 24, 2005 12:41 AM > To: wicket-us

RE: [Wicket-user] Logout

2005-08-25 Thread Igor Vaynberg
Im +1 for changing the example. It is rather strange. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Thursday, August 25, 2005 10:01 AM > To: [email protected] > Subject: Re: [Wicket-user] Logout >

RE: [Wicket-user] Logout

2005-08-25 Thread Igor Vaynberg
If my undestanding is correct the flow from the current example is such: LogoutPage created Page constructor adds the page to the pagemap LogoutPage consturctor invalidates the session and thus clears the pagemap LogoutPage constructor sets response page to itself Wicket processes the response page

RE: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-25 Thread Igor Vaynberg
This isnt just a development-time problem. This also happens when you are deploying a new version of your app, and if it's a hosted tomcat server you are screwed. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Scott Sauyet > Sent: Thurs

RE: [Wicket-user] WebPage can't link to itself (Wicket 1.1 beta2 and beta3)

2005-08-25 Thread Igor Vaynberg
Try using a standard Link object instead of a subclass of PageLink. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Stefan Lindner > Sent: Thursday, August 25, 2005 1:39 PM > To: [email protected] > Subject: [Wicket-user

RE: [Wicket-user] expand emty tags

2005-08-25 Thread Igor Vaynberg
i thought the same -Igor   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jesse SightlerSent: Thursday, August 25, 2005 4:59 PMTo: [email protected]: Re: [Wicket-user] expand emty tags Er, how exactly can that be a feature?  I tho

RE: [Wicket-user] expand emty tags

2005-08-25 Thread Igor Vaynberg
hursday, August 25, 2005 6:37 PM > To: [email protected] > Subject: Re: [Wicket-user] expand emty tags > > Jonathan told me it was because nothing would be previewed in > a WYSIWYG editor, so Wicket displayed nothing as well. > Personally, I don't like wr

RE: [Wicket-user] Lookup Spring WebApplicationContext

2005-08-26 Thread Igor Vaynberg
Why not store the context in the application subclass? that way your final static Object getBean() can look like this  getBean() { return ((MyAppSubclass)WebApplication.get()).getContext(); }   -Igor   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ingram ChenSe

RE: [Wicket-user] Lookup Spring WebApplicationContext

2005-08-26 Thread Igor Vaynberg
or better yet, use a simple application factory and create your application object as a bean, make it context aware and you got a cleaner integration:   public class SpringApplicationFactory implements IWebApplicationFactory{    public WebApplication createApplication(WicketServlet servlet) 

RE: [Wicket-user] Cayenne advantages

2005-08-26 Thread Igor Vaynberg
See gili this is why you get banned from hibernate forums. Not having cross-jvm cache is not hibernate's fault because the cache implementation is pluggable. EHCache is just the default cache and it wasn't meant to be cross-jvm enabled. From your comment I can infer that you checked out all other c

RE: [Wicket-user] Cayenne advantages

2005-08-26 Thread Igor Vaynberg
Well > I ran into problems with Hibernate because I had to access the DB > from two different JVMs (one from a webapp, another from an admin > console) and EHCache is a per-process cache. Sounds to me like you are claiming a problem with hibernate when in fact it is not - it is a problem

RE: [Wicket-user] Cayenne advantages

2005-08-26 Thread Igor Vaynberg
; "bug" on their > > forums (you can read about it here: > > http://www.hibernate.org/160.html). I really don't get why > you've been > > so hostile toward me as of late. If you feel I said something > > incorrect about Hibernate, feel free to correct me (hec

RE: [Wicket-user] Cayenne advantages

2005-08-26 Thread Igor Vaynberg
: [email protected] > Subject: Re: [Wicket-user] Cayenne advantages > > Igor Vaynberg wrote: > > > Sounds to me like you are claiming a problem with hibernate when in > > fact it is not - it is a problem with the way YOU configured > > hibernate. If you

RE: [Wicket-user] DatePicker and Wicket 1.1b3

2005-08-26 Thread Igor Vaynberg
Are you referring to the java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = messages, page = , path = messages.FeedbackPanel$MessageListView]] exception? -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Beh

RE: [Wicket-user] Cayenne advantages

2005-08-26 Thread Igor Vaynberg
> I brought this discussion up in the Wicket mailing list > because I wanted to know what people's experiences were in > the context of webapp development. I felt it made more sense > to ask end-users for their opinions than to ask on the > Cayenne or Hibernate mailing lists whose users a

RE: [Wicket-user] OT? Tomcat not removing wicket.jar

2005-08-26 Thread Igor Vaynberg
Confirmed... Server version: Apache Tomcat/5.5.9 Server built: Mar 26 2005 02:21:04 Server number: 5.5.9.0 OS Name:Windows XP OS Version: 5.1 Architecture: x86 JVM Version:1.5.0_01-b08 JVM Vendor: Sun Microsystems Inc. -Igor > -Original Message- > From: [EMAIL

RE: [Wicket-user] DatePicker and Wicket 1.1b3

2005-08-26 Thread Igor Vaynberg
Im running HEAD. Don't know about b3. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Eelco Hillenius > Sent: Friday, August 26, 2005 1:20 PM > To: [email protected] > Subject: Re: [Wicket-user] DatePicker and Wicket 1.1b3

RE: [Wicket-user] Cayenne advantages

2005-08-27 Thread Igor Vaynberg
This had nothing to do with discussing other techonologies, and everything to do with people uneducated about those technologies making false claims and wasting other people's time by not rtfm and then bitching about it. -Igor > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[E

RE: [Wicket-user] PageableGridDataView

2005-08-31 Thread Igor Vaynberg
Great job Christian! Ive merged the changes + renamed a few little things. It looks really good. When I have time I would like to use the helper classes in the dataview impls as well. I was also thinking of getting rid of pageable dataview and introducing enablePaging(int rowsperpage)/disablePagin

RE: [Wicket-user] html location

2005-08-31 Thread Igor Vaynberg
http://wicket.sourceforge.net/wiki/index.php/Custom_resource_paths -Igor   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manuel CorralesSent: Wednesday, August 31, 2005 3:01 PMTo: [email protected]: [Wicket-user] html location Hi, i

RE: [Wicket-user] Best Practices?

2005-09-01 Thread Igor Vaynberg
I think in this situation the wicket way would be to reuse the page. There is really no reason to create a new one, just change the model of the address form when the edit link is clicked. This will save you time and memory. As far as refreshing the list of addresses, you might want to use a databa

  1   2   3   4   5   6   7   8   9   10   >