Re: Visit object

2006-06-01 Thread Mário Lopes

On 6/1/06, Andreas Bulling [EMAIL PROTECTED] wrote:

On 01. Jun 2006 - 17:56:58, Mário Lopes wrote:
| Hi.
|
| I've been following Tapestry in Action to implement a Visit session
| object but I was unable to make it work. Declaring a getVisit(); as
| abstract and then calling it through Visit visit = (Visit) getVisit();
| seems to be deprecated.

Instead of using the deprecated Visit object as described in TiA
you should use an Application State Object (ASO) with session scope.
You should find examples in the list archives.


Following your advice, I've created my own class, called Visit
(original isn't it? :-) and added this to hivemind.xml

 contribution configuration-id=tapestry.state.ApplicationObjects
   state-object name=user-visit scope=session
 create-instance class=com.icom.crm_feup.Visit/
   /state-object
 /contribution

This is the code I've used to try accessing the Visit object:

@InjectState(user-visit)
public abstract Visit getVisit();

But it isn't work. It complains, on runtime, about the annotation
being done before.

Any ideas?

-- Mário



Hope this helps,
  Andreas

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Simple tag enclosing

2006-05-23 Thread Mário Lopes

Hi, how can I do the following:

a href=javascript:openChatWindow(span jwcid=id_contactoId/);
span jwcid=id_contactoText /
/a

Thanks

-- Mário

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to do..

2006-05-22 Thread Mário Lopes

Hi,

I want to implement a chat. I was thinking about doing REST requests
between clients and the object handling the chat. For instance, client
would request a chat conversation by doing an HTTP POST
http://host/ChatHandler?request=true

On the servers side (Tapestry therefore), how should I do this? Simply
use a Servlet, create an asset or an engine service? The server sends
an http response to the client too and must keep objects alive to keep
a record of the chat.

Thanks for your help.

-- Mário

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Google Web Toolkit

2006-05-21 Thread Mário Lopes

On 5/21/06, Geoff Longman [EMAIL PROTECTED] wrote:

I will be posting the code. Probably on Monday. Right now I'm working
on Spindle 4T4 ;-)


Hey.. can't wait to put my hands on that :-)!

Keep up the good work!

-- Mário



Geoff

On 5/20/06, Mário Lopes [EMAIL PROTECTED] wrote:
 Seems really cool Geoff.

 Could you post the source code to take a look?

 -- Mário

 On 5/21/06, Geoff Longman [EMAIL PROTECTED] wrote:
  I has some luck with GWT last night duplicating the Tacos autocompleter.
 
  here's a movie of it...
 
  http://spindle.sourceforge.net/AutoCompleterDemo.htm
 
  Geoff
 
  On 5/19/06, Geoff Longman [EMAIL PROTECTED] wrote:
   Very sweet. If this had existed a few years ago the number of web
   frameworks in java would be much less than it is today.
  
   I finally got it running yesterday (my fault - no free time) and
   lickety split I had converted some simple Tapestry stuff we have a
   work here. Nothing complete mind you but for myself, an old Java GUI
   programmer, the learning curve is infinitesmal compared
   toTapestry.
  
   Even the demos are easily modified without too much trouble. Being
   able to debug it like a normal Java GUI program is simply amazing.
  
   Way back when I found the learning curve of Tapestry hard for reasons
   that are probably different from those most find today. I was coming
   out of Swing land and had only a few months experiences (ok a year)
   with servlet/jsp programming (no struts). Sliding back into the GUI
   model programming is nothing to me.
  
   It will be interesting to hear how developers with only web experience
   find the GWT learning curve.
  
   But, all new things are cooler than the old things and it remains to
   be seen if one will hit the wall once one reaches the limits of GWT.
   But so far..WOW!
  
   As for integrating GWT widgets into Tapestry..I can't give an opinion.
   I'm not up enough on the hard work Jesse et all have been doing with T
   4.1.
  
   Geoff
  
   PS. [OT]it's very interesting that the devtime tool is an Eclipse RCP
   app using SWT.
  
   On 5/17/06, Peter Svensson [EMAIL PROTECTED] wrote:
OK, this is so sweet. Who will be the first to make this work with
Tapestry/Tacos??
   
http://code.google.com/webtoolkit/
   
Cheers,
PS
   
   
  
  
   --
   The Spindle guy. http://spindle.sf.net
   Blog:  http://jroller.com/page/glongman
   Other interests:  http://www.squidoo.com/spaceelevator/
  
 
 
  --
  The Spindle guy. http://spindle.sf.net
  Blog:  http://jroller.com/page/glongman
  Other interests:  http://www.squidoo.com/spaceelevator/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
The Spindle guy. http://spindle.sf.net
Blog:  http://jroller.com/page/glongman
Other interests:  http://www.squidoo.com/spaceelevator/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tapestry and Web Services

2006-05-20 Thread Mário Lopes

Hi!

I want to build a web based chat. The client will connect with the
server through REST requests. How can I build a
service/component/servlet to manage this in Tapestry?

Thanks.

-- Mário

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Google Web Toolkit

2006-05-20 Thread Mário Lopes

Seems really cool Geoff.

Could you post the source code to take a look?

-- Mário

On 5/21/06, Geoff Longman [EMAIL PROTECTED] wrote:

I has some luck with GWT last night duplicating the Tacos autocompleter.

here's a movie of it...

http://spindle.sourceforge.net/AutoCompleterDemo.htm

Geoff

On 5/19/06, Geoff Longman [EMAIL PROTECTED] wrote:
 Very sweet. If this had existed a few years ago the number of web
 frameworks in java would be much less than it is today.

 I finally got it running yesterday (my fault - no free time) and
 lickety split I had converted some simple Tapestry stuff we have a
 work here. Nothing complete mind you but for myself, an old Java GUI
 programmer, the learning curve is infinitesmal compared
 toTapestry.

 Even the demos are easily modified without too much trouble. Being
 able to debug it like a normal Java GUI program is simply amazing.

 Way back when I found the learning curve of Tapestry hard for reasons
 that are probably different from those most find today. I was coming
 out of Swing land and had only a few months experiences (ok a year)
 with servlet/jsp programming (no struts). Sliding back into the GUI
 model programming is nothing to me.

 It will be interesting to hear how developers with only web experience
 find the GWT learning curve.

 But, all new things are cooler than the old things and it remains to
 be seen if one will hit the wall once one reaches the limits of GWT.
 But so far..WOW!

 As for integrating GWT widgets into Tapestry..I can't give an opinion.
 I'm not up enough on the hard work Jesse et all have been doing with T
 4.1.

 Geoff

 PS. [OT]it's very interesting that the devtime tool is an Eclipse RCP
 app using SWT.

 On 5/17/06, Peter Svensson [EMAIL PROTECTED] wrote:
  OK, this is so sweet. Who will be the first to make this work with
  Tapestry/Tacos??
 
  http://code.google.com/webtoolkit/
 
  Cheers,
  PS
 
 


 --
 The Spindle guy. http://spindle.sf.net
 Blog:  http://jroller.com/page/glongman
 Other interests:  http://www.squidoo.com/spaceelevator/



--
The Spindle guy. http://spindle.sf.net
Blog:  http://jroller.com/page/glongman
Other interests:  http://www.squidoo.com/spaceelevator/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]