Re: Re: [Wicket-user] My take on Spring integration
ok, lots more refactoring in. lazy init proxies now intercept hashcode,equals,tostring,finalize. i tried implementing writereplace and readresolve but it doesnt seem to be working, getting another weird class cast exception. writereplace works fine, and the object it generates deserializes into a proxy, so something weird is happening somewhere. maybe you can take a look, it has a failing unit test. i created a IFieldValueFactory and generalized the injector away from proxies. I renamed the IObjectLocator to IProxyTargetLocator. Instead of IObjectLocatorFactory there is now ProxyFieldValueFactory which acts as an adapter between the IProxyTargetLocator and IFieldValueFactory. So now you can inject arbitrary values using the injector, not just proxies. created CompoundFieldValueFactory to allow injection from multiple IFieldValueFactories. -Igor On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: On Fri, 11 Nov 2005 14:51:16 -0800, Igor Vaynberg[EMAIL PROTECTED] wrote: i was actually thinking of creating a CompoundObjectLocatorFactory which would try its children until one returns a non-null. will try to get to that tonight as well :)That's better than my suggestion - Thank you.While I suggested to use an IObjectLocatorFactory I now think it would be better if the ProxyInjector would take something like:interface IFieldInstanceCreator{Object createFieldInstance(Object fieldOwner, Field field);}The IInstanceCreator creates the Proxy or what ever it things fits right. (For convinience you could have a ObjectLocatorFactory which implementsIInstanceCreator).The reason for this is that I'd like to have an annotation(SessionProperty) which injects my ShoppingCard from the my WebSession. I think it could be useful in other arears as well where there is not thesame serialization problem as with spring beans or a better way than touse an object locator - just less coupling.Christian ___Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?
i guess the hangman is a good example for how to do it. Juergen On 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a ListView which has ImageButtons for editing. In IE those images render slowly and it causes unpleasent visual effects. If the src attribute would be exactly the same for each row, I think it would render more smoothly. How can I achieve this? Now the generated html for a ImageButton is: input value=Edit width=16 height=16 type=image src=/app?path=2:form:table:rows:23:editButtons:editamp;version=4amp;interface=IResourceListener name=table:rows:23:editButtons:edit/ where rows:23 increments from row to row. /arto --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?
Ok. The hint was there, but a little bit deeper. The key was to use PackageResourceReference instead of PackageResource in ImageButton's constructor. 2005/11/12, Arto Arffman [EMAIL PROTECTED]: Nope. I have to repeat the same image with exactly same src. Hangman repeats different images (and they have different src attributes as they should have) 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED]: i guess the hangman is a good example for how to do it.JuergenOn 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a ListView which has ImageButtons for editing. In IE those images render slowly and it causes unpleasent visual effects. If the src attribute would be exactly the same for each row, I think it would render more smoothly. How can I achieve this? Now the generated html for a ImageButton is: input value=Edit width=16 height=16 type=image src="" name=table:rows:23:editButtons:edit/ where rows:23 increments from row to row. /arto---SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Keeping images outside of WEB-INF
Hi all, I wanted to display images that has been uploaded to a folder in the server.Is this possible? In the examples that I have seen, the images are stored next to the classes. Regards, James Yong Do you Yahoo!? New and Improved Yahoo! Mail - 1GB free storage!
[Wicket-user] wicket bench 0.1.0
I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?
Nope. I have to repeat the same image with exactly same src. Hangman repeats different images (and they have different src attributes as they should have) 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED]: i guess the hangman is a good example for how to do it.JuergenOn 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a ListView which has ImageButtons for editing. In IE those images render slowly and it causes unpleasent visual effects. If the src attribute would be exactly the same for each row, I think it would render more smoothly. How can I achieve this? Now the generated html for a ImageButton is: input value=Edit width=16 height=16 type=image src=""> name=table:rows:23:editButtons:edit/ where rows:23 increments from row to row. /arto---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] My take on Spring integration
Thanks a lot for doing this. Unfortunately I can still not check out the changes. When I can I'll take a look at the LazyInitProxyFactory. Christian On Sat, 12 Nov 2005 01:12:21 -0800, Igor Vaynberg [EMAIL PROTECTED] wrote: ok, lots more refactoring in. lazy init proxies now intercept hashcode,equals,tostring,finalize. i tried implementing writereplace and readresolve but it doesnt seem to be working, getting another weird class cast exception. writereplace works fine, and the object it generates deserializes into a proxy, so something weird is happening somewhere. maybe you can take a look, it has a failing unit test. i created a IFieldValueFactory and generalized the injector away from proxies. I renamed the IObjectLocator to IProxyTargetLocator. Instead of IObjectLocatorFactory there is now ProxyFieldValueFactory which acts as an adapter between the IProxyTargetLocator and IFieldValueFactory. So now you can inject arbitrary values using the injector, not just proxies. created CompoundFieldValueFactory to allow injection from multiple IFieldValueFactories. -Igor On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: On Fri, 11 Nov 2005 14:51:16 -0800, Igor Vaynberg [EMAIL PROTECTED] wrote: i was actually thinking of creating a CompoundObjectLocatorFactory which would try its children until one returns a non-null. will try to get to that tonight as well :) That's better than my suggestion - Thank you. While I suggested to use an IObjectLocatorFactory I now think it would be better if the ProxyInjector would take something like: interface IFieldInstanceCreator{ Object createFieldInstance(Object fieldOwner, Field field); } The IInstanceCreator creates the Proxy or what ever it things fits right. (For convinience you could have a ObjectLocatorFactory which implements IInstanceCreator). The reason for this is that I'd like to have an annotation (SessionProperty) which injects my ShoppingCard from the my WebSession. I think it could be useful in other arears as well where there is not the same serialization problem as with spring beans or a better way than to use an object locator - just less coupling. Christian ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Christian Essl ___ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket bench 0.1.0
Thanks! Would you feel like combining efforts with the stuff that Igor did (and that's in wicket-stuff cvs as wicketeer)? Eelco On 11/12/05, Joni Suominen [EMAIL PROTECTED] wrote: I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] My take on Spring integration
fixed the serialization problem. it was just too tired last night to see it. -Igor On 11/12/05, Igor Vaynberg [EMAIL PROTECTED] wrote: ok, lots more refactoring in. lazy init proxies now intercept hashcode,equals,tostring,finalize. i tried implementing writereplace and readresolve but it doesnt seem to be working, getting another weird class cast exception. writereplace works fine, and the object it generates deserializes into a proxy, so something weird is happening somewhere. maybe you can take a look, it has a failing unit test. i created a IFieldValueFactory and generalized the injector away from proxies. I renamed the IObjectLocator to IProxyTargetLocator. Instead of IObjectLocatorFactory there is now ProxyFieldValueFactory which acts as an adapter between the IProxyTargetLocator and IFieldValueFactory. So now you can inject arbitrary values using the injector, not just proxies. created CompoundFieldValueFactory to allow injection from multiple IFieldValueFactories. -Igor On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: On Fri, 11 Nov 2005 14:51:16 -0800, Igor Vaynberg[EMAIL PROTECTED] wrote: i was actually thinking of creating a CompoundObjectLocatorFactory which would try its children until one returns a non-null. will try to get to that tonight as well :)That's better than my suggestion - Thank you.While I suggested to use an IObjectLocatorFactory I now think it would be better if the ProxyInjector would take something like:interface IFieldInstanceCreator{Object createFieldInstance(Object fieldOwner, Field field);}The IInstanceCreator creates the Proxy or what ever it things fits right. (For convinience you could have a ObjectLocatorFactory which implementsIInstanceCreator).The reason for this is that I'd like to have an annotation(SessionProperty) which injects my ShoppingCard from the my WebSession. I think it could be useful in other arears as well where there is not thesame serialization problem as with spring beans or a better way than touse an object locator - just less coupling.Christian ___Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket bench 0.1.0
Isn't it a bit strange that Eclipse downloads all these org.eclipse.* jars as dependencies, while it should have that already? Eelco On 11/12/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks! Would you feel like combining efforts with the stuff that Igor did (and that's in wicket-stuff cvs as wicketeer)? Eelco On 11/12/05, Joni Suominen [EMAIL PROTECTED] wrote: I just released a new version of wicket plugin for eclipse. http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench Current features are listed here: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.1.html -- Joni Suominen --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?
Doesn't hangman use PackagedResourceReferences? The important thing is to have the same (static) url. Whether there is the same image referenced ten times or different images doesn't realy matter. Juergen On 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Nope. I have to repeat the same image with exactly same src. Hangman repeats different images (and they have different src attributes as they should have) 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED]: i guess the hangman is a good example for how to do it. Juergen On 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a ListView which has ImageButtons for editing. In IE those images render slowly and it causes unpleasent visual effects. If the src attribute would be exactly the same for each row, I think it would render more smoothly. How can I achieve this? Now the generated html for a ImageButton is: input value=Edit width=16 height=16 type=image src=/app?path=2:form:table:rows:23:editButtons:editamp;version=4amp;interface=IResourceListener name=table:rows:23:editButtons:edit/ where rows:23 increments from row to row. /arto --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make static src-attribute for a ImageButton in a ListView?
And by the way, thank you for your tip :) 2005/11/12, Arto Arffman [EMAIL PROTECTED]: Yes it does. I meant that I responded too hastily at first. When I looked deeper inhangman, I found that clicked Images did have src attributes like I wanted them. 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED]: Doesn't hangman use PackagedResourceReferences? The important thing isto have the same (static) url. Whether there is the same image referenced ten times or different images doesn't realy matter.JuergenOn 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Nope. I have to repeat the same image with exactly same src. Hangman repeats different images (and they have different src attributes as they should have) 2005/11/12, Juergen Donnerstag [EMAIL PROTECTED] : i guess the hangman is a good example for how to do it. Juergen On 11/12/05, Arto Arffman [EMAIL PROTECTED] wrote: Hi, I have a ListView which has ImageButtons for editing. In IE those images render slowly and it causes unpleasent visual effects. If the src attribute would be exactly the same for each row, I think it would render more smoothly. How can I achieve this? Now the generated html for a ImageButton is: input value=Edit width=16 height=16 type=image src="" name=table:rows:23:editButtons:edit/ where rows:23 increments from row to row. /arto --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] remove jsessionid in first page
App servers HAVE to put that in the first URL, because it's really the second (because of the redirect). The server doesn't know if the client is using cookies until the first request comes back, so for the first request it has to use cookies and url rewriting. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] remove jsessionid in first page
Why? It's part of the default header info whether a client accepts cookies or not isn't it? Eelco On 11/12/05, Phil Kulak [EMAIL PROTECTED] wrote: App servers HAVE to put that in the first URL, because it's really the second (because of the redirect). The server doesn't know if the client is using cookies until the first request comes back, so for the first request it has to use cookies and url rewriting. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Preserve form state
Hi. I know this has been discussed already, but still I'm opening it once more. I think there should be a way to preserve form state without validation and model updating. The use case is following. I have a (complex) form with some fields, that can not be entered directly, i.e. they have to be selected on other page. So I need to move between pages, but I don't want to lose any information entered on the previous page. If I use Button, the form gets processed, validated, etc and the action won't execute unless all entered data is valid. If I turn defaultProcessing off, the action executes, but the data (not written to model yet) is lost. What I'm using now is little hacky, but it works. I have my own class derived from Form, my own SubmitButton, ImmediateButton and FeedbackPanel. ImmediateButton acts like classic Button with defaultFormProcessing turned off, but unlike it, ImmediateButton stores the state in each component (in the string reserved for invalid data). So there's my own Feedback panel (Although filter would be probably enough) that detects that ImmediateButton was clicked and hides validation messages (there's a lot of them, because ImmediateButton marks every component as invalid). This approach works pretty well, but doesn't feel quite right. I think there definitely should be a way to preserve form state (without validation and updating model) directly supported by wicket. Not to mention that (if I recall correctly) the string field in FormComponent used for storing invalid data is transient. Btw. I've managed to persuade people from my company to use wicket for one of our projects. Since I do most of the current development, it's not a big deal, because I've personally been using wicket for some time now. But I can say they are really impressed with the productivity and simplicity of certain actions (like moving between complex pages forth and back ;) - that are sometimes quite difficult and cumbersome in struts. Not to mention excellent DataView and DatePicker components, markup inheritance and compoents in general. Kudos wicket team, you're doing excelent work! Sorry for really long mail, -Matej --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse
Thank you for help. But I couldn't find repeaterexamples in wicket-examples-1.1-rc2. Vivi From: Igor Vaynberg [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.net To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse Date: Thu, 10 Nov 2005 23:58:35 -0800 see repeater examples in the wicket-examples project, specifically the DataTable. -Igor On 11/10/05, Huiping Yan [EMAIL PROTECTED] wrote: I am trying to use SortablePagableExportable table listed in wicket example 1.1 rc2, especialy, ExamplePse. Table header is created by SortableListViewHeaders.java as add(new SortableListViewHeaders(header, table) {...} hardcoded in html as below: thead wicket:id=header tr th wicket:id=city class=sortableCity/th th wicket:id=project class=sortableProject/th thHours/th thTask/th /tr /thead I have a table (name1, name2,..., column 0: value1, value2, ..., column 1: value1, value2,) passed at runtime as String[]. I guess there is a way to supply the table header at runtime using span. But I didn't succeed. If someone ever tried this, please give me a hand. Thank you. Vivi _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] My take on Spring integration
Looking at your code makes me want to think we can use some abstract classes. The fact that you extended SpringInjector instead of ProxyInjector ... i will need to come up with something for that... Do you mind if i put your stuff into the main project? Not sure how to manage this stuff best...plugins will require different dependencies so that will pollute the main projects, but the plugins are too small to warrant their own projects... decisions decisions -Igor On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: Igor made it quite easy to add your own way to inject things (not justSpringBeans). You just implement your own IObjectLocatorFactory and extendthe SpringInjector to use this one.Enclosed is some code which uses jakarta commons-attributes to do the same thing as JDK1.5 annotations does with javadoc (the code is not tested butit is fairly simple so it should work).BTW: Maybe the ProxyInjector could take an array of IObjectLocatorFactoryand takes the first one which does not return null. This way you could combine different IObjectLocatorFatories in one place?ChristianOn Fri, 11 Nov 2005 14:34:28 -0600, Ryan Sonnek [EMAIL PROTECTED]wrote: I would be very interested in a 1.4 port of this.Do you think it could use the same annotation based approach, but using Qdox to process instead of the built in 1.5 annotation functionality? On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: The code realy looks good. Concerning the Proxy. For the cglib proxy you should definately not forward the call to finalize(), because when the proxy gets GC it will call finalize() on the target and that is not what you want. I think same reasons apply for the other Object methods except equals, hasCode and toStrign. JDK proxies do not forward them as well. Serializing: CGLIB proxies. I think the problem if you just plainly serialize them withotu writeReplace/readResolve is that if the proxy gets desiarialized in another VM than the dynamically create class of CGLIB could not be yet there. So this could make problems in clusters etc. Christian On Fri, 11 Nov 2005 00:50:13 -0800, Igor Vaynberg [EMAIL PROTECTED] wrote: more refactoring/tests and some new things: SpringWebApplicationFactory - which will pull the webapplication subclass out of spring application context SpringInjector/SpringWebApplica tion - make it very simple to inject objects using @SpringBean annotation with lazy-init proxies SpringWebPage - autoinitailizes its subclasses using the SpringInjector I also deprecated all the old stuff and moved it into wicket.contrib.spring.old package. The new stuff is the official/supported/standard/whateveryouwanttocallit way to do spring integration. currently we only provide an easy way to inject objects using jdk5 annotations. it is possible to create a jdk1.4 object locator factories, but there are many options as to how to store metadata/do the lookup. if someone is interested in this please let me know and we can discuss some ways of doing this. As always, any feedback is greatly appreciated. -Igor On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, looks like we pretty much did the same thing. my proxies arent as advanced as yours, dont know if that a plus or a minus at this point. I liked the lazyinitproxy interface so i just added that to my code. im attaching the code to make it easier to find. -Igor On 11/9/05, Christian Essl [EMAIL PROTECTED] wrote: Unfortunately the public cvs is late so I can't see your changes yet. Anyway before I've read this mail I started on reworking the proxing code (attached). SerializableLazyProxyCreator is the only thing with content the others are interfaces and one (basic) test. There are quite some changes: - uses as now as said yesterday an ObjectResolver (I've to check with your refactoring) - fixed differend bugs in my original writeReplace/resolve code of the CGLIB proxy - JDK and CGLIB proxies implement LazyInitProxy. This can be useful to see if an object is already a lazy init proxy and to get the ObjectResolver from it (the cglib intercepors don't have to be serialziable anymore). - JDK and CLGIB: added handling of equals/hashCode methods (compares the proxy for identity - instead of forwarind to the target) - CGLIB: truned of the forward of the other Object methods to the target (especially finalize()) - exactly like for JDK proxies (toString() is forwarded) - JDK proxies: better method invocation exception handling - JDK and CGLIB: when the result of a method call is the target itself it returns the proxy (at least one point of leaking of the target can be excluded) - I don't serialize the class but the class name and get it from the context ClassLoader - is this ok? - and finally all is now in one class which automatically makes either a cglib or class proxy (don't know wheter this is good) There is also a rudimentary test
[Wicket-user] Wicket thread safety
Hi, I just wanted to make sure I am remembering Wicket correctly: - Each user has a session associated with it. We identify a user's session using jsessionid. - Each session has a tree of pages associated with it. This means that a Page instance is not shared amongst users. - Each page may be accessed by at most one thread at a time, but there is no guarantee it'll be the same thread. That is, a page is owned by a single user but the thread being used might change over time. Is this correct? Thank you, Gili -- http://www.desktopbeautifier.com/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePse
That package was not part of 1.1-rc2. It is part of the final 1.1 release. -Igor On 11/12/05, Huiping Yan [EMAIL PROTECTED] wrote: Thank you for help. But I couldn'tfind repeaterexamples inwicket-examples-1.1-rc2.ViviFrom: Igor Vaynberg [EMAIL PROTECTED] Reply-To: wicket-user@lists.sourceforge.netTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] How to supply dynamic table header in Wicket Example ExamplePseDate: Thu, 10 Nov 2005 23:58:35 -0800see repeater examples in the wicket-examples project, specifically theDataTable.-Igor On 11/10/05, Huiping Yan [EMAIL PROTECTED] wrote: I am trying to use SortablePagableExportable table listed in wicket example 1.1 rc2, especialy, ExamplePse. Table header is created by SortableListViewHeaders.java as add(new SortableListViewHeaders(header, table) {...} hardcoded in html as below: thead wicket:id=header tr th wicket:id=city class=sortableCity/th th wicket:id=project class=sortableProject/th thHours/th thTask/th /tr /thead I have a table (name1, name2,..., column 0: value1, value2, ..., column1: value1, value2,) passed at runtime as String[]. I guess there is away to supply the table header at runtime using span. But I didn't succeed. If someone ever tried this, please give me a hand. Thank you. Vivi _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user _On the road to retirement? Check out MSN Life Events for advice on how toget there! http://lifeevents.msn.com/category.aspx?cid=Retirement---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: Re: [Wicket-user] My take on Spring integration
fixed the serialization problem. it was just too tired last night to see it. -Igor On 11/12/05, Igor Vaynberg [EMAIL PROTECTED] wrote: ok, lots more refactoring in. lazy init proxies now intercept hashcode,equals,tostring,finalize. i tried implementing writereplace and readresolve but it doesnt seem to be working, getting another weird class cast exception. writereplace works fine, and the object it generates deserializes into a proxy, so something weird is happening somewhere. maybe you can take a look, it has a failing unit test. i created a IFieldValueFactory and generalized the injector away from proxies. I renamed the IObjectLocator to IProxyTargetLocator. Instead of IObjectLocatorFactory there is now ProxyFieldValueFactory which acts as an adapter between the IProxyTargetLocator and IFieldValueFactory. So now you can inject arbitrary values using the injector, not just proxies. created CompoundFieldValueFactory to allow injection from multiple IFieldValueFactories. -Igor On 11/11/05, Christian Essl [EMAIL PROTECTED] wrote: On Fri, 11 Nov 2005 14:51:16 -0800, Igor Vaynberg[EMAIL PROTECTED] wrote: i was actually thinking of creating a CompoundObjectLocatorFactory which would try its children until one returns a non-null. will try to get to that tonight as well :)That's better than my suggestion - Thank you.While I suggested to use an IObjectLocatorFactory I now think it would be better if the ProxyInjector would take something like:interface IFieldInstanceCreator{Object createFieldInstance(Object fieldOwner, Field field);}The IInstanceCreator creates the Proxy or what ever it things fits right. (For convinience you could have a ObjectLocatorFactory which implementsIInstanceCreator).The reason for this is that I'd like to have an annotation(SessionProperty) which injects my ShoppingCard from the my WebSession. I think it could be useful in other arears as well where there is not thesame serialization problem as with spring beans or a better way than touse an object locator - just less coupling.Christian ___Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de ---SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user