Re: Re: [Wicket-user] My take on Spring integration

2005-11-16 Thread Igor Vaynberg
I think the web-access is also not uptodate http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/ http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/src/java/wicket/contrib/ here i can see the proxy/injection/spring packages, so its up to date. I was

Re: Re: [Wicket-user] My take on Spring integration

2005-11-17 Thread Igor Vaynberg
done. -Igor On 11/17/05, Christian Essl [EMAIL PROTECTED] wrote: On Wed, 16 Nov 2005 23:50:11 -0800, Igor Vaynberg[EMAIL PROTECTED] wrote: http://cvs.sourceforge.net/viewcvs.py/wicket-stuff/wicket-contrib-spring/src/java/wicket/contrib/ here i can see the proxy/injection/spring packages, so its

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Igor Vaynberg
Or take the whole CVS issue.We all know that Sourceforge's CVS can getvery annoying.I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive listof such modules.SF always tells me that the list is not available, butI've never found

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Igor Vaynberg
and dont forget irc.freenode.net #wicket there is usually someone who can answer your question there if you are looking for more of a real time conversation. -Igor

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Igor Vaynberg
. -Igor On 11/17/05, Scott Sauyet [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: Or take the whole CVS issue.We all know that Sourceforge's CVS can get very annoying.I've been able to download the wicket-contrib modules that I know about, but I've never been able to get a comprehensive list

Re: [Wicket-user] There must be some docs somewhere?

2005-11-17 Thread Igor Vaynberg
irt spring+hibernate+wicket: Dan is absolutely correct when he says that wicket should never touch hibernate directly. all the hibernate-related logic should stay inside spring and be exposed directly through a dao object or through a service facade. i think wicket-contrib-data and

Re: [Wicket-user] There must be some docs somewhere?

2005-11-18 Thread Igor Vaynberg
If i remember correctly, its been a while since i looked, tapestry book takes a hybrid approach. first half explains how the major parts of the framework work by giving small focused examples, while the second part of the book is a bring it all together incremental build of the tapestry virtual

Re: [Wicket-user] Best use of Links

2005-11-18 Thread Igor Vaynberg
imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because it lets you specify the class name of the page or the created page instance. This is ok for pages that are

Re: [Wicket-user] anyone built a large app with wicket?

2005-11-18 Thread Igor Vaynberg
irt conditional componentshttp://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg07414.htmlirt conditional form fields this is nothing special, just throw in a panel into the form that contains form components if you need to. form components automatically link up to their parent form

Re: [Wicket-user] Best use of Links

2005-11-18 Thread Igor Vaynberg
for the view. That way yourclasses would be more testable too. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: imho that is the best practice. that is what i use whenever i do not need a bookmarkable page. i have yet to use the PageLink class. PageLink makes it easier to create links to pages because

Re: [Wicket-user] Best use of Links

2005-11-20 Thread Igor Vaynberg
keep my point :P. 2005/11/18, Igor Vaynberg [EMAIL PROTECTED]: Actually what i meant was a simple static factory method that translates strongly typed params into PageParameters. ie class MyBookmarkablePage extends WebPage { public MyBookmarkablePage(PageParameters params

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-20 Thread Igor Vaynberg
wicket-contrib-data and wicket-contrib-data-hibernate do not provide any form of transaction management. furthermore, they are obsolete due to repeater package (what used to be wicket-contrib-dataview) in wicket-extensions. also, this discussion did not have much to do with spring itself, but with

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
Than use for all non pageable lists an OrderedRepeatingView. This is IMOthe most straight to use without much models and indirection - otherwise a DataView.dont know how useful an ordered repeating view would be for database driven lists since it doesnt refresh its children every request like

Re: [Wicket-user] Complex (sort of) model

2005-11-21 Thread Igor Vaynberg
why not use the object as the model itself, this is easy with property models.Form form=new Form(form, new CompoundPropertyModel(new User());form.add(new TextField(name)); === maps to user.nameform.add(new TextField(pacient.name)); === maps to pacient.name-Igor On 11/21/05, Manuel Corrales [EMAIL

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
that would do it :]-IgorOn 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: dont know how useful an ordered repeating view would be for database driven lists since it doesnt refresh its children every request like dataview, so be careful there.I have my own subclass:MyORView extends

Re: [Wicket-user] Complex (sort of) model

2005-11-21 Thread Igor Vaynberg
. That solves mi issue. Thanks very very much. This list is excelent!!. Thanks againOn 11/21/05, Igor Vaynberg [EMAIL PROTECTED] wrote: why not use the object as the model itself, this is easy with property models.Form form=new Form(form, new CompoundPropertyModel(new User());form.add(new TextField(name

Re: [Wicket-user] Re: There must be some docs somewhere?

2005-11-21 Thread Igor Vaynberg
On 11/21/05, Christian Essl [EMAIL PROTECTED] wrote: A question: is the ItemReuseStrategy (OIR) still needed for forms andfeebackpanels, because it seems also to work with removeAll()?really depends on what you are doing.the component handlers are called before the onbeginrequest of the page and

Re: [Wicket-user] session management

2005-11-21 Thread Igor Vaynberg
On 11/21/05, Manuel Corrales [EMAIL PROTECTED] wrote: Hi, i've asked this question once but dont get a solution. So here i go again:Sorry, must've missed it. I have some clues about stateful beans and stateless beans but not too much. What i need is that when a user logins, create an object and

Re: [Wicket-user] Hibernate paging

2005-11-21 Thread Igor Vaynberg
examples of dataview and datatable in action are available in wicket-examples project under repeater examples-IgorOn 11/21/05, Matej Knopp [EMAIL PROTECTED] wrote:Hi,Have a look at wicket-extensions: DataView. You implement your own IDataProvider which can use hibernate paging.-MatejJuhani K

Re: [Wicket-user] session management

2005-11-22 Thread Igor Vaynberg
) { this.user = user; } } I have the sessionFactory on the application and then on the submit method i do: UserSession us = (UserSession)getSession(); us.setUser(usuario); setResponsePage(new Bienvenido()); where usuario is an model object i get from database. Is this right? On 11/21/05, Igor Vaynberg

Re: [Wicket-user] Accessing Path Info

2005-11-22 Thread Igor Vaynberg
or use a url rewriting filter to change the url to a bookmarkable page ierewrite all www.example.com/shortcut/(expr)to www.example.com/app?bookmarkablePage=Shortcutparam=expr-IgorOn 11/22/05, Eelco Hillenius [EMAIL PROTECTED] wrote:I think you can do stuff like that now, at least partially. I'm

Re: [Wicket-user] DataView on first creation calls count query twice

2005-11-22 Thread Igor Vaynberg
please do.-IgorOn 11/22/05, Andrew Berman [EMAIL PROTECTED] wrote: I am using the DataView component exactly how it is shown in the repeater examples in wicket-example except that I'm using Hibernate. When I look at the Hibernate logs I notice that on the first creation of the DataView component

Re: [Wicket-user] DataView on first creation calls count query twice

2005-11-22 Thread Igor Vaynberg
ok its fixed in cvs 1.2 and 1.1-IgorOn 11/22/05, Igor Vaynberg [EMAIL PROTECTED] wrote: please do.-Igor On 11/22/05, Andrew Berman [EMAIL PROTECTED] wrote: I am using the DataView component exactly how it is shown in the repeater examples in wicket-example except that I'm using Hibernate. When I

Re: [Wicket-user] DataView on first creation calls count query twice

2005-11-22 Thread Igor Vaynberg
nah, dont worry about it :)-IgorOn 11/22/05, Andrew Berman [EMAIL PROTECTED] wrote: Hahahayou seem to always do this to me Igor. Thanks as always. You still want the bug? --AndrewOn 11/22/05, Igor Vaynberg [EMAIL PROTECTED] wrote: ok its fixed in cvs 1.2 and 1.1-IgorOn 11/22/05, Igor

Re: [Wicket-user] Adding Support for optgroup

2005-11-22 Thread Igor Vaynberg
working on it right now :) how did you know?-IgorOn 11/22/05, Andrew Berman [EMAIL PROTECTED] wrote: Igor, did you ever make a decision on how you wanted to proceed with this? On 11/6/05, Andrew Berman [EMAIL PROTECTED] wrote:Sounds and looks good to me. On 11/6/05, Igor Vaynberg [EMAIL

Re: [Wicket-user] DataView on first creation calls count query twice

2005-11-22 Thread Igor Vaynberg
Igor,Did you adjust the changes.xml?wicket-extensions doesnt have changes.xml. should i put it into wicket's changes? i thought we were talking about extensions having its own release cycle so maybe we should have a separate changes file for it. BTW, I also stumbled upon this one. But it wasn't

Re: [Wicket-user] Adding Support for optgroup

2005-11-22 Thread Igor Vaynberg
nogroup=new Choices(nogroup, mylistofchoices, choicerenderer);select.add(nogroup); Or something similar? On 11/23/05, Igor Vaynberg [EMAIL PROTECTED] wrote: working on it right now :) how did you know?

Re: [Wicket-user] Adding Support for optgroup

2005-11-23 Thread Igor Vaynberg
[EMAIL PROTECTED] wrote: Something along those lines yeh.On 11/23/05, Igor Vaynberg [EMAIL PROTECTED] wrote: so you want to specify the optgroup tags in your model? something likeclass Category { String name; List choices }and provide ListCategory as the model? so that the name of categories become

Re: [Wicket-user] Adding Support for optgroup

2005-11-23 Thread Igor Vaynberg
, I'll check it out. --AndrewOn 11/23/05, Igor Vaynberg [EMAIL PROTECTED] wrote: just checked in my first pass at this so you guys can check it out and give me feedback. i had to check it into wicket_1_1 branch because component reference doesnt work in head yet. i also put the new components

Re: [Wicket-user] Upload Progress bar

2005-11-23 Thread Igor Vaynberg
thats the whole point. the request to retrieve the status would come from another request thread, maybe an iframe with a meta refresh tag or something. why wouldnt this be advisable? http is a multithreaded protocol, as long as the operation of retrieving a resource does not touch any objects in

Re: [Wicket-user] Upload Progress bar

2005-11-24 Thread Igor Vaynberg
{ if (invokePage != null) { invokePage.internalEndRequest(); }} catch (RuntimeException e){ log.error(Exception occurred during invokerPage.internalEndRequest, e);}should be in the synch block. the rest (threadDetach() doesn't have to be)johan On 11/24/05, Igor

Re: [Wicket-user] Upload Progress bar

2005-11-24 Thread Igor Vaynberg
; } xx where do we do that now? I haven't used it yet but that is i think user parsed request.Where does that belong? johanOn 11/24/05, Igor Vaynberg [EMAIL PROTECTED] wrote: boolean parsed = false;synchronize()should be boolean parsed = false; synchronized(session)right?then we are back

Re: [Wicket-user] session management

2005-11-26 Thread Igor Vaynberg
any kind of verification you want. thats your business logic. you have access to the session so you can pull the user from that.-IgorOn 11/26/05, Manuel Corrales [EMAIL PROTECTED] wrote: Ok, this worked ok. Now i have a question, what kind of verification should i do on checkAccess(), and if i

Re: Re[2]: [Wicket-user] Tag expected

2005-11-27 Thread Igor Vaynberg
is your border markup (AccessionBorder.html) contained by wicket:border and /wicket:border tags?iewicket:bordermy border markup herewicket:body/some more markup/wicket:border i think ive seen this happen sometimes when wicket:border or wicket:panel tags are missing.-IgorOn 11/27/05, Pekka

Re: [Wicket-user] comment about spring interation

2005-11-29 Thread Igor Vaynberg
thats really neat. i dont always have access to the command line that launhces the server so that might be a problem. also does it instrument every class construction? cant tell since there is no code, but if it does, that would be a performance hit. did you see SpringPage class? it calls the

Re: [Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Igor Vaynberg
you might want to try dataview with ListDataProvider along with ReuseIfModelsEqualStrategy or your own IItemReuseStrategy. I think it will make this particular problem easier.-Igor On 11/29/05, Laurent PETIT [EMAIL PROTECTED] wrote: Hello,In order to list and display editable fields for childrens

Re: [Wicket-user] Problem with ListView embedded in a Form

2005-11-29 Thread Igor Vaynberg
look in wicket-examples / repeater examplesall the components are there.-IgorOn 11/29/05, Laurent PETIT [EMAIL PROTECTED] wrote:This IItemReuseStrategy stuff seems to be exactly what the ListView needs instead of the setOptimizeRemoval()! !Great :-)On 11/29/05, Igor Vaynberg [EMAIL PROTECTED

Re: [Wicket-user] comment about spring interation

2005-11-29 Thread Igor Vaynberg
. Is anyone who is reading with us interested in this? if so would you like it merged into wicket-contrib-spring? if so, Joni would you be interested in donating and supporting it in wicket-stuff? -Igor On 11/29/05, Joni Suominen [EMAIL PROTECTED] wrote: On Tue, 2005-11-29 at 09:15 -0800, Igor Vaynberg

Re: [Wicket-user] Adding Support for optgroup

2005-11-29 Thread Igor Vaynberg
any feedback on this yet? if not, i guess i will polish it with its current feature set and that will be that.-IgorOn 11/23/05, Andrew Berman [EMAIL PROTECTED] wrote:I should've known On 11/23/05, Igor Vaynberg [EMAIL PROTECTED] wrote: your wish is my command. now you just have to wait

Re: [Wicket-user] Trying to be clever with a ListView

2005-11-29 Thread Igor Vaynberg
if you call setRenderBodyOnly(true) on components, they will not render tags they are attached to. should fix your problem.-IgorOn 11/29/05, Vinsen, Kevin [EMAIL PROTECTED] wrote: To make the Dojo DropdownButtons work I need to generate html like this:ul dojoType=dropdownbuttonslia href="">ul lia

Re: [Wicket-user] Trying to be clever with a ListView

2005-11-29 Thread Igor Vaynberg
PROTECTED] wrote: Nah removed the wicket:blah tags, but I need to remove the actual spans Kevin From: Igor Vaynberg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 30 November 2005 3:33 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Trying to be clever with a ListView

Re: [Wicket-user] comment about spring interation

2005-11-29 Thread Igor Vaynberg
maybe a static factory method in the page is the cleanest solution. public class MyPage extends WebPage { private MyPage(String param) { } public static MyPage(String param) { return new MyPage(param); } public static MyPageInjected(String param) { MyPage p=new MyPage(param);

Re: [Wicket-user] Adding Support for optgroup

2005-11-30 Thread Igor Vaynberg
yes it is in head, and also in 1.1 branch.-IgorOn 11/30/05, Davide Savazzi [EMAIL PROTECTED] wrote:On 11/30/05, Igor Vaynberg [EMAIL PROTECTED] wrote: any feedback on this yet? if not, i guess i will polish it with its current feature set and that will be that.Is it in HEAD now? I've already

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
.-IgorOn 12/1/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Igor,I checked out wicket-contrib-spring and I could not find a exampleusing SpringWebPage. I think it is pretty easy to use, but ifwicket-contrib-spring-examples was updated it would nice.2005/12/1, Igor Vaynberg [EMAIL PROTECTED]: i guess

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
i guess that was the point of redoing wicket-contrib-spring - to have a final solution that the wicket team is willing to support. so there it is. check out wicket-contrib-spring. of course suggestions for improvements are always welcome. -IgorOn 12/1/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote:

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
Honestly, it wasnt just me, you and the others helped out a lot.-IgorOn 12/1/05, Christian Essl [EMAIL PROTECTED] wrote:On Thu, 1 Dec 2005 14:24:20 -0500, Andrew Berman [EMAIL PROTECTED]wrote: Honestly, I don't think there ever was a Spring Integration problem.I think people were just looking

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
it the primary example. MartijnOn 12/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I am thinking of dumping the wicket-contrib-spring-examples in favor of wicket-phonebook since it demonstrates spring integration. any developers reading with us, what do you think? also see http

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
make it the primary example. Martijn On 12/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I am thinking of dumping the wicket-contrib-spring-examples in favor of wicket-phonebook since it demonstrates spring integration. any developers reading with us, what do you think? also see http

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
: I'm fine with it. I constantly send people to the phone book example, so might as well make it the primary example. Martijn On 12/1/05, Igor Vaynberg [EMAIL PROTECTED] wrote:I am thinking of dumping the wicket-contrib-spring-examples in favor ofwicket-phonebook since

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
!transient * *))public static final String MUST_BE_TRANSIENT = SpringBean annotated + field must be transient.; 2005/12/1, Igor Vaynberg [EMAIL PROTECTED]: No, the phonebook example is small. currently it covers the first approach discussed on that wiki page. I can convert it to the second approach since

Re: [Wicket-user] JavaOne 2006 - Wicket presentation?

2005-12-01 Thread Igor Vaynberg
the default implementation of IFieldValueFactory (used by the proxy strategy) that is used to locate fields that hold spring references is jdk5 specific. but it is easy to create your own that stores this metadata somewhere else. wicket has a nice metadata system that can be used for this, or

Re: [Wicket-user] Adding Support for optgroup

2005-12-02 Thread Igor Vaynberg
it or not... I like the getDefaultValue() or what is that method called of DropDown..johanOn 12/2/05, Igor Vaynberg [EMAIL PROTECTED] wrote:just checked in a fix. also the Select element does not add a choose one choice for you, you have to do it yourself by adding a SelectChoice that represents

Re: [Wicket-user] Adding Support for optgroup

2005-12-02 Thread Igor Vaynberg
and null value isn't allowed... johanOn 12/2/05, Igor Vaynberg [EMAIL PROTECTED] wrote: no, SelectChoice is a component that represents a single option element. you add that to the Select component. SelectChoices is a convinience component that draws out a bunch of option tags much like our current

Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Igor Vaynberg
Hi Mark, if you are using wicket1.1 then your only choice is pretty much to use a url rewriting filter to dress up the url. this is pretty easy to do. there is a good filter here: http://tuckey.org/urlrewrite/ you can also add an alias to your page so it uses that in the url instead of fqn. but

Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Igor Vaynberg
gonna go install that.I assume any additional parameters passed via the traditional ?foo=barbar=foo scheme will be added to the PageParameters instance as well? MarkOn 12/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote: set the above up please see the cvs HEAD of wicket-examples - niceurls.

Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Igor Vaynberg
oh and btw you can specify a page parameters encoder on per mount basis as well. -Igor On 12/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote: no, the additional parameters will not be added, in fact it will probably cause an exception. this is because the part of the url after the mount is processed

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-03 Thread Igor Vaynberg
The data provider is kept as the model because that is where the sorting state lives and that needs to be versioned. I need to refactor that out of the dataprovider looks like. -IgorOn 12/3/05, Christian Essl [EMAIL PROTECTED] wrote: On Fri, 2 Dec 2005 22:51:05 +0100, Johan Compagner [EMAIL

Re: [Wicket-user] Adding Support for optgroup

2005-12-03 Thread Igor Vaynberg
itself. (null or something)On 12/3/05, Igor Vaynberg [EMAIL PROTECTED] wrote: but a SelectOption is not in your collection - its a component. The whole point of the Select component is to have full control over the markup. All our core choice elements limit your access to markup by producing

Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Igor Vaynberg
Perhaps next time you can be bothered to look at the code before saying that we did something ugly.-IgorOn 12/3/05, Gili [EMAIL PROTECTED] wrote:I haven't taken a look at the latest code yet but I believe you simply renamed the parameters to fixed single-character names (which I findequally

Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Igor Vaynberg
this is for ENCRYPTED urls and has nothing to do with what we are discussing here.-IgorOn 12/3/05, Gili [EMAIL PROTECTED] wrote: There you go, this is the CVS diff I was commenting on. bookmarkablePage is replaced with 5. Original Message Subject: [Wicket-autocvs]

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-03 Thread Igor Vaynberg
. ChristianOn Sat, 3 Dec 2005 11:31:59 -0800, Igor Vaynberg [EMAIL PROTECTED]wrote: already on it. havent figured it all out yet. the problem is i think i will have to change IDataProvider to take extra parameters. this will break all the clients, but i dont see another way around it yet. im also modularizing

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-05 Thread Igor Vaynberg
ok first pass is in. filter stuff is not all there and some of it is broken, but the major idea is there. the rest should be in pretty good shape though. its mostly backwards compatible so there should not be any problems. feedback? -IgorOn 12/4/05, Igor Vaynberg [EMAIL PROTECTED] wrote: I think

Re: [Wicket-user] Wicket job

2005-12-05 Thread Igor Vaynberg
why have yet another mailing list people would have to subscribe to? we already have 3 user lists and one admin list although i bet not that many subscribed to our most recent announcements list. i think we have more then enough lists already. if it was up to me we wouldnt even have wicket-stuff

Re: [Wicket-user] Wicket job

2005-12-05 Thread Igor Vaynberg
announce has 34, wicket-user has 253 at this moment.thats exactly my point :) -Igor

Re: [Wicket-user] Is back button supported in wicket-contrib-dojo-examples

2005-12-05 Thread Igor Vaynberg
I think this is a problem with ajax and not with dojo support - although most people would argue that this is one of the bigger advantages of ajax. because the clicks do not change the browser's url the browser never records them in the history - and how could it. -IgorOn 12/5/05, Eelco Hillenius

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-06 Thread Igor Vaynberg
As far as I know all Change(s) get recorded through the component in thePage's versionManager which on the automatic version rewinde just executes all the Change.undo(). Where the Change comes from, what it does and howit get's there is not important. IMO it would work for Models as forComponents

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-06 Thread Igor Vaynberg
So to summarize your idea it would be like thisclass SingleSortState IChangeRecorder recorder; SortState(IChangeRecorder) {...} setPropertyState(...) { recorder.addChange( new Change() {...} ) }OrderByLink { onclick () { getState().setProperty(...); } }this has the same net affect as OrderByLink

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-07 Thread Igor Vaynberg
without the need of an extra component for registering the Pojo.ChristianOn Tue, 6 Dec 2005 15:36:55 -0800, Igor Vaynberg [EMAIL PROTECTED]wrote: I guess the question is do we want to infact make it something wicket-specific. right now its just an ordinary pojo you can use anywhere you like

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Igor Vaynberg
John, this is not the greatest time to check out wicket-phonebook HEAD from CVS as i am in a process of refactoring it and the wicket-extension-repeater packages it uses.my recommendation is that if you want to see it in a clean state check out the WICKET_1_1 branch of the phonebook. Right now the

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Igor Vaynberg
The wicket-phonebook uses all that, yes. see src/conf/applicationContext.xml for its spring context setup.-IgorOn 12/7/05, John Moore [EMAIL PROTECTED] wrote:Eelco Hillenius wrote:Yeah. The idea is to get rid of the things we don't use anymore and merge them into one project. We've had enough

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Igor Vaynberg
by doing maven jar:install in their dirs ) -IgorOn 12/7/05, Scott Sauyet [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: this is not the greatest time to check out wicket-phonebook HEAD from CVS as i am in a process of refactoring it and the wicket-extension-repeater packages it uses.Ahh, that explains why

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Igor Vaynberg
i never said extensions werent compiling. everything should be compiling just fine but not necessarily with maven because you need to have the latest snapshots installed in your local maven repo (since we cannot provide snapshots in an online repo unless someone wants to host them and a a

Re: [Wicket-user] Wicket, Spring and Hibernate

2005-12-07 Thread Igor Vaynberg
actually my intention was to use wicket-phonebook as a guide to best-practices for db-driven wicket apps. that is why it uses the repeaters and will soon use wicket-contrib-spring. i intentinally kept it very small and focused. i was thinking of creating another project that will use the latest /

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-07 Thread Igor Vaynberg
the selectObjectAction then the model will add a Change() object to the version manager. The problem is that a model doesn't know the component/page where it is bound on so it can't call addStateChange()johan On 12/7/05, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, excuse me while i pull my head

Re: [Wicket-user] wicket-contrib-dojo 0.31

2005-12-07 Thread Igor Vaynberg
ive ran into this myself a few times. especially when i need to know a path of the component in the constructor, but it has not been added to the hierarchy yet.what i was thinking is to add an void init() method to component that gets called after its been added to its parent component. that way

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-07 Thread Igor Vaynberg
. Or the idmodel itself? (if setIdModel is called) johan On 12/7/05, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess the question is does calling setmodelobject on the model modify the model itself. i would think this is not a very good pattern because the model should only be responsible for locating the object

Re: [Wicket-user] Anonymous subclasses of Model: bad or not? Page versioning?

2005-12-07 Thread Igor Vaynberg
I still do not think we need to provide a public setStateChange() method, but maybe i am wrong. I think if pojo wants to implement its own versioning it is out of scope of wicket. you can always call Page.getVersion() and do your own rollback. What may help is maybe having two interfaces

[Wicket-user] model / model object versioning

2005-12-07 Thread Igor Vaynberg
ok here is a new thread because the old one is out of control-Igor

Re: [Wicket-user] model / model object versioning

2005-12-07 Thread Igor Vaynberg
On 12/7/05, Christian Essl [EMAIL PROTECTED] wrote: Or you can implement your own Page{addPublicStateChange()} ;)good, then we can at least drop this part of the discussion :) What may help is maybe having two interfaces IModelVersionable { Change getModelSnapshot() } and IModelObjectVersionable

Re: [Wicket-user] wicket-contrib-dojo 0.31

2005-12-08 Thread Igor Vaynberg
not completely familiar with wicket's internals, but I think Igor's solution might work. Marco Ruud Igor Vaynberg wrote: ive ran into this myself a few times. especially when i need to know a path of the component in the constructor, but it has not been added to the hierarchy yet. what i

Re: [Wicket-user] Re: Wicket, Spring and Hibernate

2005-12-08 Thread Igor Vaynberg
using setters before it is initialized.-IgorOn 12/8/05, Jim McLaughlin [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: i was just falling asleep and thought of something (still sleepy so dont know if this will make sense in the morning). with all this talk of testing why not borrow a page from

Re: [Wicket-user] Replacing nested panels in a form

2005-12-08 Thread Igor Vaynberg
yes this is expected because you are actually taking the panel that contains form components out of the component hierarchy of the form by replacing it with another panel.you can add all the panels and hide all but one. the form will ignore any hidden form components so they will not update your

Re: [Wicket-user] Replacing nested panels in a form

2005-12-08 Thread Igor Vaynberg
uhm, disregard that last one :)On 12/8/05, Igor Vaynberg [EMAIL PROTECTED] wrote: yes this is expected because you are actually taking the panel that contains form components out of the component hierarchy of the form by replacing it with another panel.you can add all the panels and hide all

[Wicket-user] wicket-extensions repeaters refactoring

2005-12-09 Thread Igor Vaynberg
the repeaters refactoring is pretty much complete so the api should be stable (possibly with the exception of the new table.filter package)there are a few api breaks, but nothing major. also i moved things around a little bit so might want to run the organize imports command in your ide.

Re: [Wicket-user] wicket-extensions repeaters refactoring

2005-12-09 Thread Igor Vaynberg
-0800, Igor Vaynberg [EMAIL PROTECTED] wrote: the repeaters refactoring is pretty much complete so the api should be stable (possibly with the exception of the new table.filter package) there are a few api breaks, but nothing major. also i moved things around a little bit so might want to run

Re: [Wicket-user] Alternatives to wicket's hosting at sourceforge

2005-12-09 Thread Igor Vaynberg
does anyone have any experience with tigris? i think that is a promising choice if we were to move.-IgorOn 12/9/05, Eelco Hillenius [EMAIL PROTECTED] wrote:Yeah. I'm not in favor of Java.net either, though I think there are acouple of projects using java.net just for CVS. I think the rest of

Re: [Wicket-user] only 1 validation error message

2005-12-10 Thread Igor Vaynberg
there is a simple way to do that without the feedback panel. add a label with the error message and override its isvisible to poll the form componentieadd(new Label(error, phonenumber invalid) { isvisible() { return !textfield.isValid(); });-IgorOn 12/10/05, Cameron Taggart [EMAIL PROTECTED]

Re: [Wicket-user] #wicket on irc.freenode.org

2005-12-11 Thread Igor Vaynberg
we usually hang out in ##wicket not #wicket. and there is about 5-6 of us there generally.-IgorOn 12/11/05, Mark Derricutt [EMAIL PROTECTED] wrote:Out of curiosity - how many of you guys hang out on #wicket on irc.freenode.org? I've popped in every now and then to find the channel empty...Mark

Re: [Wicket-user] mounted pages - absolute or relative?

2005-12-11 Thread Igor Vaynberg
fixed.-IgorOn 12/11/05, Eelco Hillenius [EMAIL PROTECTED] wrote: You are right. It's a bug. We should check on that first slash. Can'tfix it now though, so if anyone wants to do it...EelcOn 12/11/05, Mark Derricutt [EMAIL PROTECTED] wrote: I had the following code in my app (using HEAD):

[Wicket-user] spring integration

2005-12-12 Thread Igor Vaynberg
i just refactored the wicket-contrib-spring project, here are the changes* all jdk 5 stuff has been factored out into wicket-contrib-spring-jdk5 project so wicket-contrib-spring can compile with 1.4* the injector for automatic dependencies is now aquired through a static methods of the

Re: [Wicket-user] spring integration

2005-12-12 Thread Igor Vaynberg
as activeInjectorHolder.setInjector(injector); to the constructor of the mock.--Joni Suominen [EMAIL PROTECTED]On Mon, 2005-12-12 at 00:09 -0800, Igor Vaynberg wrote: i just refactored the wicket-contrib-spring project, here are the changes * all jdk 5 stuff has been factored out into wicket-contrib

Re: [Wicket-user] wicket-strutsnested demo availability question

2005-12-13 Thread Igor Vaynberg
On 12/13/05, Christian Essl [EMAIL PROTECTED] wrote: ReuseIfModelObjectsEqualStrategy is a good idea (much better thanextending ListDataProvider and Model). Maybe Igor could take it intoextensions.I did not put this strategy in extensions on purpose. The reason being is that this can really get

Re: [Wicket-user] wicket-stuff tags/branches

2005-12-13 Thread Igor Vaynberg
after discussing on irc we found out that the actual problem was that we did not tag the wicket-stuff modules with WICKET_1_1 when we released. i think that should be done for future releases.-Igor On 12/13/05, Gili [EMAIL PROTECTED] wrote: Hi, wicket-stuff has: WICKET_1_1

Re: [Wicket-user] Spring 2.0 Integration

2005-12-13 Thread Igor Vaynberg
automatic injection is not the problem. the problem is that injected dependencies cannot be serialized, thus the whole proxy approach.-IgorOn 12/13/05, Eduardo Rocha [EMAIL PROTECTED] wrote: Spring 2.0 will bring support to objects which are not instantiated bythe

Re: [Wicket-user] Spring 2.0 Integration

2005-12-14 Thread Igor Vaynberg
aspectj sounds pretty sweet. i guess it would work in majority of cases. the reason i would still prefer proxies is because I like constructs like this:MyDataProvider implements IDataProvider { private MyService svc; MyDataProvider(MyService svc) { this.svc=svc; }...}this allows me to use the

Re: [Wicket-user] Changes between 1.1 and 1.2alhpa

2005-12-14 Thread Igor Vaynberg
http:://my.domainname.com/ that that url isn't therethere it just should behttp:://my.domainname.com/wicketservlet/resources/application/MyResource.jpgSo in other words there is no context path..Juergen On 12/14/05, Igor Vaynberg [EMAIL PROTECTED] wrote: maybe what we can do is only prepend

Re: [Wicket-user] wicket-stuff tags/branches

2005-12-14 Thread Igor Vaynberg
cycle, and as such its own tagging mechanism. There is absolutely no reason to tag a non released project with WICKET_1_1. That code may not even compile with wicket 1.1! Martijn On 12/14/05, Igor Vaynberg [EMAIL PROTECTED] wrote: so the mentality is use cvs wicket-stuff at your own risk?-IgorOn 12

Re: [Wicket-user] Spring 2.0 Integration

2005-12-14 Thread Igor Vaynberg
On 12/14/05, Eduardo Rocha [EMAIL PROTECTED] wrote: With AspectJ is you can code naturally like(if you do not use the service in constructor):MyPage page = new MyPage();page.setService(mockService);tester.startPage(page);tester.assertRenderedPage(MyPage.class );instead of setting the context mock,

Re: [Wicket-user] wicket-stuff tags/branches

2005-12-14 Thread Igor Vaynberg
On 12/14/05, Gili [EMAIL PROTECTED] wrote: You know... the base technique supposidly works fine but I am workingfor the other technique you were mentioning where I will be able toupgrade from WICKET_1_1 without any modification to my HTML files and CSS will automagically work like it used to.

Re: [Wicket-user] wicket-stuff tags/branches

2005-12-14 Thread Igor Vaynberg
so now all you need to do is override getAdditionalMarkupHandler() in your application subclass and return an instance of PrependContextPathHandler-IgorOn 12/14/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: On 12/14/05, Igor Vaynberg [EMAIL PROTECTED] wrote: On 12/14/05, Gili [EMAIL PROTECTED

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