Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-30 Thread Alex Kotchnev
Paulo,
  I'll have a look at the logs and see if I can reproduce it using the high
level approach you mention. Do let me know if you are able to create a
sample project w/ this problem or if you figure out anything else that
might be relevant.

Cheers,

Alex K

On Sat, Apr 28, 2012 at 10:32 AM, Paulo Andrade pauloandr...@ist.utl.ptwrote:

 Forgot to attach the files.


 On Apr 28, 2012, at 9:30 AM, Paulo Andrade wrote:

  Hello Alex,
 
  Trying to create the sample project, I have figured how to reproduce the
 bug consistently.
 
  Basically it manifest itself depending on which page I open first after
 the application boots. If I open my / page that has no knowledge of JDO,
 later when I do visit a page that has links to JDO objects they won't work.
 If I visit /admin/ first, which has links to JDO objects, everything is
 fine.
 
  For now I'm attaching the two boot sequences: boot1.txt fails, boot2.txt
 succeeds. I'll see if I can send you a project that reproduces this.
 
  Regards
  Paulo Andrade
 
  On Apr 27, 2012, at 3:03 AM, Alex Kotchnev wrote:
 
  Paulo,
   would you be able to put together a sample project that does this ?
 I'll
  have another look at the jdo sample project but I'm pretty sure this
 worked
  OK there (although it wasn't tested w/ T5.3.x).
 
  Cheers,
 
  Alex K
 
  On Thu, Apr 26, 2012 at 5:45 PM, Paulo Andrade pauloandr...@ist.utl.pt
 wrote:
 
 
  On Apr 26, 2012, at 10:09 PM, Thiago H. de Paula Figueiredo wrote:
 
  On Thu, 26 Apr 2012 18:01:14 -0300, Paulo Andrade 
  pauloandr...@ist.utl.pt wrote:
 
  Hello,
 
  Hi!
 
  http://example.com/app/foo/com.example.entity.foo$a4c34
  http://example.com/app/foo/1
 
  To fix this I simply restart the application and it usually returns
 to
  a working state.
 
  Anyone has clues on why this might be happening?
 
  By any chance are you using ${} expansions when passing the value to
 the
  context parameter of PageLink?
 
  I'm generating the links like so:
 
  a t:type=ActionLink t:id=editBeach t:context=beach
  t:zone=beachFormZone${beach.name}/a
 
  And it works. Well... sometimes at least.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 




 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-28 Thread Paulo Andrade
Hello Alex,

Trying to create the sample project, I have figured how to reproduce the bug 
consistently.

Basically it manifest itself depending on which page I open first after the 
application boots. If I open my / page that has no knowledge of JDO, later 
when I do visit a page that has links to JDO objects they won't work. If I 
visit /admin/ first, which has links to JDO objects, everything is fine.

For now I'm attaching the two boot sequences: boot1.txt fails, boot2.txt 
succeeds. I'll see if I can send you a project that reproduces this.
 
Regards
Paulo Andrade

On Apr 27, 2012, at 3:03 AM, Alex Kotchnev wrote:

 Paulo,
   would you be able to put together a sample project that does this ? I'll
 have another look at the jdo sample project but I'm pretty sure this worked
 OK there (although it wasn't tested w/ T5.3.x).
 
 Cheers,
 
 Alex K
 
 On Thu, Apr 26, 2012 at 5:45 PM, Paulo Andrade pauloandr...@ist.utl.ptwrote:
 
 
 On Apr 26, 2012, at 10:09 PM, Thiago H. de Paula Figueiredo wrote:
 
 On Thu, 26 Apr 2012 18:01:14 -0300, Paulo Andrade 
 pauloandr...@ist.utl.pt wrote:
 
 Hello,
 
 Hi!
 
 http://example.com/app/foo/com.example.entity.foo$a4c34
 http://example.com/app/foo/1
 
 To fix this I simply restart the application and it usually returns to
 a working state.
 
 Anyone has clues on why this might be happening?
 
 By any chance are you using ${} expansions when passing the value to the
 context parameter of PageLink?
 
 I'm generating the links like so:
 
 a t:type=ActionLink t:id=editBeach t:context=beach
 t:zone=beachFormZone${beach.name}/a
 
 And it works. Well... sometimes at least.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-26 Thread Paulo Andrade
Hello,

I'm having a bit of annoying problem regarding the jdo entity value encoder. 
Sometimes it seems tapestry does not know about it and encodes my entities as 
strings.

For example my URLs end up looking like:

http://example.com/app/foo/com.example.entity.foo$a4c34

Instead of the correct

http://example.com/app/foo/1

To fix this I simply restart the application and it usually returns to a 
working state.

Anyone has clues on why this might be happening?

Regards,
Paulo Andrade

PS: I'm using Tapestry 5.3.2 and the latest tapestry-jdo.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-26 Thread Paulo Andrade

On Apr 26, 2012, at 10:09 PM, Thiago H. de Paula Figueiredo wrote:

 On Thu, 26 Apr 2012 18:01:14 -0300, Paulo Andrade pauloandr...@ist.utl.pt 
 wrote:
 
 Hello,
 
 Hi!
 
 http://example.com/app/foo/com.example.entity.foo$a4c34
 http://example.com/app/foo/1
 
 To fix this I simply restart the application and it usually returns to a 
 working state.
 
 Anyone has clues on why this might be happening?
 
 By any chance are you using ${} expansions when passing the value to the 
 context parameter of PageLink?

I'm generating the links like so:

a t:type=ActionLink t:id=editBeach t:context=beach 
t:zone=beachFormZone${beach.name}/a

And it works. Well... sometimes at least.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-26 Thread Alex Kotchnev
Paulo,
   would you be able to put together a sample project that does this ? I'll
have another look at the jdo sample project but I'm pretty sure this worked
OK there (although it wasn't tested w/ T5.3.x).

Cheers,

Alex K

On Thu, Apr 26, 2012 at 5:45 PM, Paulo Andrade pauloandr...@ist.utl.ptwrote:


 On Apr 26, 2012, at 10:09 PM, Thiago H. de Paula Figueiredo wrote:

  On Thu, 26 Apr 2012 18:01:14 -0300, Paulo Andrade 
 pauloandr...@ist.utl.pt wrote:
 
  Hello,
 
  Hi!
 
  http://example.com/app/foo/com.example.entity.foo$a4c34
  http://example.com/app/foo/1
 
  To fix this I simply restart the application and it usually returns to
 a working state.
 
  Anyone has clues on why this might be happening?
 
  By any chance are you using ${} expansions when passing the value to the
 context parameter of PageLink?

 I'm generating the links like so:

 a t:type=ActionLink t:id=editBeach t:context=beach
 t:zone=beachFormZone${beach.name}/a

 And it works. Well... sometimes at least.


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org