Re: RF for CRUD and RPC for others?
I would like @Inject the EntityManager using RF, how I can do this? On 29 abr, 09:11, Juan Pablo Gardella wrote: > For example? What do you want to do? > > 2011/4/29 Diego Lovison > > > how I can @Inject using RF? > > for RPChttp://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ > > and I can @Inject my EJB too... > > > Using RF I will @Inject my EJB on Entity? how? > > > On 29 abr, 01:56, Juan Pablo Gardella > > wrote: > > > RF perhaps is better to tools, like Roo > > > > 2011/4/28 -sowdri- > > > > > In fact RF is simple compared to RPC! > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > google-web-toolkit@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
For example? What do you want to do? 2011/4/29 Diego Lovison > how I can @Inject using RF? > for RPC http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ > and I can @Inject my EJB too... > > > Using RF I will @Inject my EJB on Entity? how? > > On 29 abr, 01:56, Juan Pablo Gardella > wrote: > > RF perhaps is better to tools, like Roo > > > > 2011/4/28 -sowdri- > > > > > > > > > > > > > > > > > In fact RF is simple compared to RPC! > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to > google-web-toolkit@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com. > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
how I can @Inject using RF? for RPC http://stuffthathappens.com/blog/2009/09/14/guice-with-gwt/ and I can @Inject my EJB too... Using RF I will @Inject my EJB on Entity? how? On 29 abr, 01:56, Juan Pablo Gardella wrote: > RF perhaps is better to tools, like Roo > > 2011/4/28 -sowdri- > > > > > > > > > In fact RF is simple compared to RPC! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
RF perhaps is better to tools, like Roo 2011/4/28 -sowdri- > In fact RF is simple compared to RPC! > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
In fact RF is simple compared to RPC! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
Option 2. I think in this case use RPC is more simple and better. If not, why is not? Juan 2011/4/28 Juan Pablo Gardella > For this cases, is more simple use RPC. > > > 2011/4/28 -sowdri- > >> RF could be used to perform: >> >> 1. CRUD operations on entities (without a service layer at all) >> 2. Call methods on your service layer, which can again return Entities or >> ValueProxies or Simple types! >> >> So you are free to choose where to add your business logic, while the >> second option would be a natural fit. >> >> Thanks, >> -sowdri- >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
For this cases, is more simple use RPC. 2011/4/28 -sowdri- > RF could be used to perform: > > 1. CRUD operations on entities (without a service layer at all) > 2. Call methods on your service layer, which can again return Entities or > ValueProxies or Simple types! > > So you are free to choose where to add your business logic, while the > second option would be a natural fit. > > Thanks, > -sowdri- > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
RF could be used to perform: 1. CRUD operations on entities (without a service layer at all) 2. Call methods on your service layer, which can again return Entities or ValueProxies or Simple types! So you are free to choose where to add your business logic, while the second option would be a natural fit. Thanks, -sowdri- -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
For an example of using a ServiceLocator to expose DAOs directly as RF services, see http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ /dmc On Thu, Apr 28, 2011 at 6:03 PM, khiem nguyen wrote: > > you can use ServiceLocator & write your logic in it ( which could also make > use of DAO) > > > On Thu, Apr 28, 2011 at 5:56 PM, Juan Pablo Gardella < > gardellajuanpa...@gmail.com> wrote: > >> I think as you. Where is the best place to put logic if we use RF? With >> RPC I have services and daos. >> >> Juan >> >> >> 2011/4/28 Diego Lovison >> >>> hmmm.. >>> >>> using RF I need put the all logic on the Entity? >>> for example: >>> I would like save a employee, but I need verify other thinks that the >>> hibernate validator dont attend.. >>> where I put this logic on entity? >>> Using RPC I create a DAO and put this logic in DAO.. >>> >>> other way.. >>> I can use ValueProxy with RPC? >>> >>> thanks >>> ;) >>> >>> On 28 abr, 10:23, Thomas Broyer wrote: >>> > Er, no. I'd rather say: if you choose to use RF, then use it (at least) >>> for >>> > entities and related value objects (CRUD or not); for value objects >>> that are >>> > not 'connected' in any way to your entities, then you have the choice >>> (but >>> > I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC >>> in >>> > the same app if you ask me) >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit" group. >>> To post to this group, send email to google-web-toolkit@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> google-web-toolkit+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
you can use ServiceLocator & write your logic in it ( which could also make use of DAO) On Thu, Apr 28, 2011 at 5:56 PM, Juan Pablo Gardella < gardellajuanpa...@gmail.com> wrote: > I think as you. Where is the best place to put logic if we use RF? With RPC > I have services and daos. > > Juan > > > 2011/4/28 Diego Lovison > >> hmmm.. >> >> using RF I need put the all logic on the Entity? >> for example: >> I would like save a employee, but I need verify other thinks that the >> hibernate validator dont attend.. >> where I put this logic on entity? >> Using RPC I create a DAO and put this logic in DAO.. >> >> other way.. >> I can use ValueProxy with RPC? >> >> thanks >> ;) >> >> On 28 abr, 10:23, Thomas Broyer wrote: >> > Er, no. I'd rather say: if you choose to use RF, then use it (at least) >> for >> > entities and related value objects (CRUD or not); for value objects that >> are >> > not 'connected' in any way to your entities, then you have the choice >> (but >> > I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC >> in >> > the same app if you ask me) >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
I think as you. Where is the best place to put logic if we use RF? With RPC I have services and daos. Juan 2011/4/28 Diego Lovison > hmmm.. > > using RF I need put the all logic on the Entity? > for example: > I would like save a employee, but I need verify other thinks that the > hibernate validator dont attend.. > where I put this logic on entity? > Using RPC I create a DAO and put this logic in DAO.. > > other way.. > I can use ValueProxy with RPC? > > thanks > ;) > > On 28 abr, 10:23, Thomas Broyer wrote: > > Er, no. I'd rather say: if you choose to use RF, then use it (at least) > for > > entities and related value objects (CRUD or not); for value objects that > are > > not 'connected' in any way to your entities, then you have the choice > (but > > I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC > in > > the same app if you ask me) > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
hmm... I did not understand one thing.. Using RF, you need put all your business rules on an entity? for example: I need save one Employee, but have a business rule that the HibernateValidator dont support... I will put the bussiness rule on the Employee entity? On 28 abr, 10:23, Thomas Broyer wrote: > Er, no. I'd rather say: if you choose to use RF, then use it (at least) for > entities and related value objects (CRUD or not); for value objects that are > not 'connected' in any way to your entities, then you have the choice (but > I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC in > the same app if you ask me) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
verify other thinks = verify other things -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
hmmm.. using RF I need put the all logic on the Entity? for example: I would like save a employee, but I need verify other thinks that the hibernate validator dont attend.. where I put this logic on entity? Using RPC I create a DAO and put this logic in DAO.. other way.. I can use ValueProxy with RPC? thanks ;) On 28 abr, 10:23, Thomas Broyer wrote: > Er, no. I'd rather say: if you choose to use RF, then use it (at least) for > entities and related value objects (CRUD or not); for value objects that are > not 'connected' in any way to your entities, then you have the choice (but > I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC in > the same app if you ask me) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RF for CRUD and RPC for others?
Er, no. I'd rather say: if you choose to use RF, then use it (at least) for entities and related value objects (CRUD or not); for value objects that are not 'connected' in any way to your entities, then you have the choice (but I'd go with RF and ValueProxy-s too; it feels strange to mix RF and RPC in the same app if you ask me) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RF for CRUD and RPC for others?
Hi, I read this on http://code.google.com/p/google-web-toolkit/wiki/AutoBean Comment by project member t.broyer, Dec 21, 2010 RequestFactory? is not designed for an "RPC style" use, but using only ValueProxy? I believe you could do it anyway (it could also be a first step in migrating from GWT-RPC to RF for "CRUD oriented" apps) the suggestion is use RF for CRUD and RPC for other calls? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.