Re: Visit object

2006-06-01 Thread Mário Lopes

Yes, renaming actually did work.

Thank you very much for your kind help.

-- Mário

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

On 01. Jun 2006 - 16:39:06, James Carman wrote:
| Try renaming what you call the getter/setter.  See what that does.  There is
| a deprecated getVisit() method on IPage.

Yeah, I had the same problem once and renamed the getter to getVisitState()
which worked.

Cheers,
  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]



Re: Visit object

2006-06-01 Thread Mário Lopes

This is the error reported

Error at context:/WEB-INF/Home.page, line 6, column 53: Method 'public
abstract com.icom.crm_feup.Visit com.icom.crm_feup.Home.getVisit()'
(declared in class com.icom.crm_feup.Home) has no implementation in
class com.icom.crm_feup.Home (or enhanced subclass $Home_0).

If I refresh the webpage it returns a different error:

Error: An error occured processing annotation
@org.apache.tapestry.annotations.InjectState(value=crm) of public
abstract com.icom.crm_feup.Visit com.icom.crm_feup.Home.getVisit():
Property visit has already been accounted for by the element at
Annotation @org.apache.tapestry.annotations.InjectState(value=crm) of
public abstract com.icom.crm_feup.Visit
com.icom.crm_feup.Home.getVisit().

I didn't include the Stack Trace since it was quite long.

Here's what I have in hivemodule.xml

 
   
 
   
 

And here's how my code looks like in the Home page

@InjectState("crm")
public abstract Visit getVisit();
public abstract void setVisit(Visit visit);
   ...
   // coloca o operador na sessao
   Visit visit = new Visit();
   visit.setOperador(operador);

   setVisit(visit);

Hope it helps.

-- Mário

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

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

Could you post the stack trace?

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]



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

 
   
 
   
 

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]



Visit object

2006-06-01 Thread Mário Lopes

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.

What's the correct usage for Visit on T4?

Thanks in advance.

-- Mário

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




Avoid template parsing

2006-05-24 Thread Mário Lopes

Is there any tag to avoid a certain block of code from being parsed on a .html?

I have some javascript on that file and it complains about things it shouldn't.

Regards.

-- Mário

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



Re: Object persisting without invoking Persist annotation

2006-05-23 Thread Mário Lopes

Please, never mind. My dumbest mistake. Doing a if (object == null) {
.. } on pageBeginRender() that prevented the method from being
updated.

I feel ashamed :x

-- Mário

On 5/23/06, Mário Lopes <[EMAIL PROTECTED]> wrote:

Here's a strange one.

I have a table that shows some rows from a table on the database. The
source of the contrib:Table is not declared as persist but still I
update the database, do a page refresh and it doesn't update anything.
I have to manually restart the webserver to see the new entry on the
table!

What could I possibly be doing wrong?

Thanks.

-- Mário



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



Object persisting without invoking Persist annotation

2006-05-23 Thread Mário Lopes

Here's a strange one.

I have a table that shows some rows from a table on the database. The
source of the contrib:Table is not declared as persist but still I
update the database, do a page refresh and it doesn't update anything.
I have to manually restart the webserver to see the new entry on the
table!

What could I possibly be doing wrong?

Thanks.

-- Mário

-
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:

);">



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]



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]



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]