Re: Guice & Wicket Guice Proxy

2010-06-08 Thread yaniv kessler
Please do and I will contribute :-) On Tue, Jun 8, 2010 at 8:46 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi yaniv > > Taking your idea a little further, one could also just get the LDM > injected, which actually archives what I wanted. However this has > strayed a lot from

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
Hi yaniv Taking your idea a little further, one could also just get the LDM injected, which actually archives what I wanted. However this has strayed a lot from the topic. So I think we should start a new thread on howto manage Wicket with IOC frameworks.. regards Nino 2010/6/8 yaniv kessler : >

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
Cemal are you talking about guice persist? Anyhow very nice :) 2010/6/8 Cemal Bayramoglu : > Nino, > > Now that a Warp 2.0 snapshot (which works with Guice 2) is on a Maven > repo, we will upgrade the affected LegUp s [1]. Look out for an > announcement, hopefully in the next week or so. > > Rega

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread Cemal Bayramoglu
Nino, Now that a Warp 2.0 snapshot (which works with Guice 2) is on a Maven repo, we will upgrade the affected LegUp s [1]. Look out for an announcement, hopefully in the next week or so. Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
Hi yaniv replying inline.. And thanks for the ideas. 2010/6/8 yaniv kessler : > Perhaps inject the model instead of manually creating it or maybe inject a > data service into the page and use that reference in the model. My point is, > passing the injector around (or in this case InjectorHolder),

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread yaniv kessler
Perhaps inject the model instead of manually creating it or maybe inject a data service into the page and use that reference in the model. My point is, passing the injector around (or in this case InjectorHolder), should be avoided, since as it degrades the entire Guice DI into a simple service loc

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread nino martinez wael
Well as I manually create the the loadabledetachmodel which extends the ClassWithDao, it has to call injectorholder. I am not aware of any other method that can solve this.. 2010/6/8 yaniv kessler : > I agree with Jorge here and additionally, would like to ask what is the > motivation to use Injec

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread nino martinez wael
in my trying to fix the problem, I read about a bug regarding this. However it is probably fixed now (was an old thread).. 2010/6/7 Jorge Rodrigez : > Why phoneDao is transient ? > Wicket-Guice injects a Serializable proxy and thus after deserialization the > field will be non-null. > > On Mon, Ju

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread yaniv kessler
I agree with Jorge here and additionally, would like to ask what is the motivation to use InjectorHolder directly? Are you simply doing new ClassWithDao() somewhere in your code ? On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez wrote: > Why phoneDao is transient ? > Wicket-Guice injects a Serial

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread Jorge Rodrigez
Why phoneDao is transient ? Wicket-Guice injects a Serializable proxy and thus after deserialization the field will be non-null. On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > sure: > > public class ClassWithDao { > > public ClassWithDao() { >

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread nino martinez wael
sure: public class ClassWithDao { public ClassWithDao() { InjectorHolder.getInjector().inject(this); } @Inject private transient PhoneDao phoneDao; public PhoneDao getPhoneDao() { return phoneDao; } public void setPhone

Re: Guice & Wicket Guice Proxy

2010-06-07 Thread yaniv kessler
Nino, can you show the ClassWithDao code before the so called "ugliness" was introduced? On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > im still working on the quickstart.. So far I've been unable to > replicate.. I'll continue tomorrow > > 2010/6/5 ni

Re: Guice & Wicket Guice Proxy

2010-06-06 Thread nino martinez wael
im still working on the quickstart.. So far I've been unable to replicate.. I'll continue tomorrow 2010/6/5 nino martinez wael : > I was too quick to say it worked, as it appears it does not. I'll try > to make a quickstart based on legup, where should I put it? Just on > jira? > > -Nino > > 2010/

Re: Guice & Wicket Guice Proxy

2010-06-05 Thread nino martinez wael
I was too quick to say it worked, as it appears it does not. I'll try to make a quickstart based on legup, where should I put it? Just on jira? -Nino 2010/6/4 nino martinez wael : > yeah me too, what Igor said worked so must be true or a bug.. I don't > think it's a bug.. > > 2010/6/3 James Carma

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread nino martinez wael
yeah me too, what Igor said worked so must be true or a bug.. I don't think it's a bug.. 2010/6/3 James Carman : > I thought the filters were executed in the order of their > filter-mappings, not their filter definitions. > > On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael > wrote: >> Argh, ho

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread James Carman
I thought the filters were executed in the order of their filter-mappings, not their filter definitions. On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael wrote: > Argh, how stupid.. Thanks a lot igor, how can I buy you a beer or Coke? > > I spend a tremendous time trying to figure out what was

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread nino martinez wael
Argh, how stupid.. Thanks a lot igor, how can I buy you a beer or Coke? I spend a tremendous time trying to figure out what was wrong. I even considered going back to spring.. regards Nino 2010/6/3 Igor Vaynberg : > noep, the filters are processed in the order they are defined in > web.xml, move

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread Igor Vaynberg
noep, the filters are processed in the order they are defined in web.xml, move the wicket filter decl below the warp persist stuff. -igor On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael wrote: > yes, i think so: > > > http://java.sun.com/xml/ns/j2ee"; > xmlns:xsi="http://www.w3.org/2001/XMLS

Re: Guice & Wicket Guice Proxy

2010-06-03 Thread nino martinez wael
yes, i think so: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> IVR Web frontend wicket

Re: Guice & Wicket Guice Proxy

2010-06-02 Thread Igor Vaynberg
did you install warp's open entity manager in view filter *before* wicket's filter? -igor On Wed, Jun 2, 2010 at 5:46 AM, nino martinez wael wrote: > Hi I somehow think theres something wrong with the Wicket Guice proxy > (probably only if you are using guice 2 & possibly warp persist) > > Anyho

Guice & Wicket Guice Proxy

2010-06-02 Thread nino martinez wael
Hi I somehow think theres something wrong with the Wicket Guice proxy (probably only if you are using guice 2 & possibly warp persist) Anyhow I have had to change my LDM's to this code, notice the injector holder in the getter method really really bad. But if not I get an "entity manager is closed