Re: [T5.3-beta-19] JS bug in Tapestry.ajaxRequest()

2011-10-17 Thread Lenny Primak
I second that. I got a slightly different message (something that has to do 
with undefined). 
But the result is the same. If the server is down, Ajax calls aren't handled 
very gracefully. 



On Oct 17, 2011, at 11:59 PM, Steve Eynon  
wrote:

> Using the ZoneRefresh mixin (on Firefox 5.0.1) I tried bringing down
> the server to see how the Ajax call would cope with nothing to connect
> to.
> 
> I got nice messages on the screen, which is good, but they read,
> 
>"Communication with the server failed: finalOptions.onFailure does
> not exist"
> 
> which I deemed bad. To cut to the chase, the error handling line 448
> (ish) in tapestry.js is currently
> 
>finalOptions.onFailure.call(this, response);
> 
> but needs to read
> 
>finalOptions.toObject().onFailure.call(this, response);
> 
> as finalOptions is a prototype $H.
> 
> There is also a
> 
>finalOptions.onException.call(this, ajaxRequest, e);
> 
> a few lines down which needs to be updated also.
> 
> I can make a Jira if you like and supply a patch file for the above -
> but I have no idea how to write JS unit tests though!
> 
> Oh, and I'm pleased that from T5.2.6 -> T5.3.x the
> "ajaxExceptionHander" typo got corrected! (Should be "Handler"!)
> 
> Cheers,
> 
> Steve.
> 
> -
> 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



[T5.3-beta-19] JS bug in Tapestry.ajaxRequest()

2011-10-17 Thread Steve Eynon
Using the ZoneRefresh mixin (on Firefox 5.0.1) I tried bringing down
the server to see how the Ajax call would cope with nothing to connect
to.

I got nice messages on the screen, which is good, but they read,

"Communication with the server failed: finalOptions.onFailure does
not exist"

which I deemed bad. To cut to the chase, the error handling line 448
(ish) in tapestry.js is currently

finalOptions.onFailure.call(this, response);

but needs to read

finalOptions.toObject().onFailure.call(this, response);

as finalOptions is a prototype $H.

There is also a

finalOptions.onException.call(this, ajaxRequest, e);

a few lines down which needs to be updated also.

I can make a Jira if you like and supply a patch file for the above -
but I have no idea how to write JS unit tests though!

Oh, and I'm pleased that from T5.2.6 -> T5.3.x the
"ajaxExceptionHander" typo got corrected! (Should be "Handler"!)

Cheers,

Steve.

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



Re: [T5.3.x] One Small Thing...

2011-10-17 Thread Steve Eynon
https://issues.apache.org/jira/browse/TAP5-1702

Done.

--
Steve Eynon
---
"If at first you don't succeed,
   so much for skydiving!"



On 17 October 2011 19:36, Thiago H. de Paula Figueiredo
 wrote:
> On Sat, 15 Oct 2011 01:47:53 -0300, Steve Eynon
>  wrote:
>
>> ...could we please have a warning message logged when the default
>> application module is not found on startup? Something like,
>>
>> "Could not find the application module
>> 'com.mycompany.project.WoteverModule'"
>>
>> Because everytime (and it does seem to be *everytime*!) I start a new
>> project I miss-type, miss-spell, deploy the wrong web-override.xml or
>> do something that causes T5 to look in the wrong place for my Module.
>> It would be really, really useful on these occasions if T5 told me
>> where it was trying to look as oppose to silently moving on.
>>
>> I agree with the code comment that it's valid not to have a Module
>> class, but if not found, if T5 was a bit more verbose in telling where
>> it was attempting to look, that would be awesome!
>
> Sound good to me. :) Please file a JIRA. ;)
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>

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



Re: [ANN] JumpStart drops @Persist from Grid, Loop, and AjaxFormLoop examples!

2011-10-17 Thread Yohan Yudanara
Jumpstart is awesome.
Thank you very much for providing your time to develop jumpstart.
I think it's the most useful guide to Tapestry users.

On Mon, Oct 17, 2011 at 4:19 PM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:

> Hi all,
>
> JumpStart's been updated to get rid of @Persist from these examples:
>
>- Editable Grid
>- Editable Loop
>- Grid with Delete Column
>- Loop with Delete Column
>- AjaxFormLoop Tailored
>
> and @Persist has almost been removed from this example:
>
>- AjaxFormLoop
>
> How was this possible? By using encoders better.
>
> The new JumpStart version is 5.4.20 and it is running in the usual place:
>
>http://jumpstart.doublenegative.com.au/jumpstart/
>
> Cheers,
>
> Geoff


Re: PeriodicExecutor: services and Hibernate

2011-10-17 Thread Howard Lewis Ship
The PeriodExecutor uses the PerThreadManager to execute your
runnables.  Translation: the normal end-of-request processing (closing
of connections, etc.) applies here as well.

On Mon, Oct 17, 2011 at 10:43 AM, Tony Nelson  wrote:
> Using tapestry-hibernate mine seemed to just work.  I have a job that runs 
> every 5 minutes that simply inserts a new row into a table.  I inject the 
> service, which in turn uses an injected DAO.  No fussing w/ sessions as far 
> as I can tell.
>
> Tony
>
> On Oct 17, 2011, at 12:45 PM, 9902468 wrote:
>
>> Hi,
>>
>> I can inject services to the job that is going to be periodically executed.
>> Do I have to manage my own transactions (using HibernateSessionManager) and
>> clean up after each execution using PerthreadManager?
>>
>> If so, are you going to provide support for those in the future?
>> Additionally, is it guaranteed that the job will execute even if it has
>> previously thrown exception?
>> How the executor behaves in cluster?
>>
>> I couldn't find documentation about this, is there any?
>>
>> - Ville
>>
>> --
>> View this message in context: 
>> http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> -
>> 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
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



RE: Practical jQuery Integration

2011-10-17 Thread Wechsung, Wulf
Hi Janko,

1) there should be a line where jquery assigns to $ (not _$) or window.$. This 
one needs uncommenting.
2) it should be possible to set break points in the JS via firebugs. If it's 
still not working, try setting breakpoints to see if the
right stuff is called and everything has the value it should.

Best Regards,
Wulf

-Original Message-
From: joch40 [mailto:janko.jochim...@urios-beratung.de] 
Sent: Montag, 17. Oktober 2011 23:00
To: users@tapestry.apache.org
Subject: RE: Practical jQuery Integration

Hi ,

thank you all for your support. Great community.

but


I installed Firebug and you are right I think I will need it.

First I fund an error in my method 

javaScriptSupport.addScript(scriptstring, "a",
"Test Alarm");
with 
String scriptstring = "jQuery.noConflict();
jQuery(document).ready(function(){ jQuery(%s).click(function(event){
alert(%s); event.preventDefault();  }); });";

so the  jQuery(%s).click part became jQuery(a).click what was wrong

so I changed it to 

javaScriptSupport.addScript(scriptstring, "\"a\"",
"Test Alarm");

Now the funny thing is that FireBug dosen´t shows an script error
 
the HTML View shows 







so this looks like it should.

As a next step  I commended out the following part of the jQuery file.

// Map over the $ in case of overwrite
//  _$ = window.$,

after some deleting an inserting this Version showed up in the FireBug
"script" Tab. But still no result, no error but just not working

Cheers


Janko








the funny thing is



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Practical-jQuery-Integration-tp4906814p4911548.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



RE: Practical jQuery Integration

2011-10-17 Thread joch40
Hi ,

thank you all for your support. Great community.

but


I installed Firebug and you are right I think I will need it.

First I fund an error in my method 

javaScriptSupport.addScript(scriptstring, "a",
"Test Alarm");
with 
String scriptstring = "jQuery.noConflict();
jQuery(document).ready(function(){ jQuery(%s).click(function(event){
alert(%s); event.preventDefault();  }); });";

so the  jQuery(%s).click part became jQuery(a).click what was wrong

so I changed it to 

javaScriptSupport.addScript(scriptstring, "\"a\"",
"Test Alarm");

Now the funny thing is that FireBug dosen´t shows an script error
 
the HTML View shows 







so this looks like it should.

As a next step  I commended out the following part of the jQuery file.

// Map over the $ in case of overwrite
//  _$ = window.$,

after some deleting an inserting this Version showed up in the FireBug
"script" Tab. But still no result, no error but just not working

Cheers


Janko








the funny thing is



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Practical-jQuery-Integration-tp4906814p4911548.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: An Appeal To Use the Latest Betas

2011-10-17 Thread Geoff Callender
chenille-kit is a blocker for me, too.

On 17/10/2011, at 9:56 PM, antalk wrote:

> http://www.localhost.nu/java/tapestry-spring-security/index.html  Im using 
> 
> nu.localhost.tapestry
> tapestry-spring-security
> 3.0.0
> 
> 
> And
> 
> http://www.chenillekit.org/ 
> 
> org.chenillekit
> chenillekit-tapestry
> 1.3.2
> 
> 
> Altough the later could already have a snapshot available ?
> 
> Oh.. actually there are 3
> 
> 
> us.antera
> t5-restful-webservices
> 0.2.1
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/An-Appeal-To-Use-the-Latest-Betas-tp4900917p4909469.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> 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: Problems using JPA with 5.3

2011-10-17 Thread Igor Drobiazko
There must be something wrong either with your configuration or your
environment. You need to provide more details in order to get help.

On Sun, Oct 16, 2011 at 9:54 PM, jesse  wrote:

> Hi, I've run in to a couple of JPA related issues that are keeping me from
> moving to 5.3.  My app previously worked fine with tynamo jpa, but now
> throws eclipselink exceptions and won't start with Tapestry 5.3
> (5.3-beta-22).
>
> My app works great with tynamo JPA, tynamo resteasy, eclipselink (2.2.1),
> and Tapestry 5.2.6.  I had to do one small hack due to the fact that the
> tynamo code relies on Defense.  No big deal though, and it's all working.
>
> I've tried to switch to 5.3, and I believe I have everything set up
> correctly (obviously I've removed the tynamo jpa dependency from my pom).
>  I
> don't know if this is important or not, but my entities are not
> auto-discovered, but rather explicitly listed in persistence.xml (the
> package name is not entities, but I would change this if I got everything
> working).
>
> I now have the following issues
>
> 1) I can't start my application due to errors from Eclipselink.  Here's the
> important parts:
>
> Exception [EclipseLink-60] (Eclipse Persistence Services -
> 2.2.1.v20110722-r9776):
> org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: The method [_persistence_set_section_vh] or
> [_persistence_get_section_vh] is not defined in the object
> [com.stellalingua.app.entity.MyEntity].
> Internal Exception: java.lang.NoSuchMethodException:
> com.stellalingua.app.entity.MyEntity._persistence_get_section_vh()
> Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[section]
> Descriptor: RelationalDescriptor(com.stellalingua.app.entity.MyEntity-->
> [])
>
> Exception [EclipseLink-218] (Eclipse Persistence Services -
> 2.2.1.v20110722-r9776):
> org.eclipse.persistence.exceptions.DescriptorException
> Exception Description: A NullPointerException would have occurred accessing
> a non-existent weaved _vh_ method [_persistence_get_section_vh].  The class
> was not weaved properly - for EE deployments, check the module order in the
> application.xml deployment descriptor and verify that the module containing
> the persistence unit is ahead of any other module that uses it.
>
> 2) To even get this far, I had to change the name used for my data source
> in
> persistence.xml even though I did not actually change the name of the data
> source in jetty.  Minor, but still odd.
>
> I'd really like to switch to 5.3, but can't because of this.
>  Unfortunately,
> also tynamo jpa seems to not work with tapestry 5.3.
>
>
>
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Problems-using-JPA-with-5-3-tp6898469p6898469.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de


Re: tapestry5-beta22 html5 doctype

2011-10-17 Thread Thiago H. de Paula Figueiredo
On Mon, 17 Oct 2011 16:34:53 -0200, Howard Lewis Ship   
wrote:



I'm considering what it would take to allow HTML5 to be the default on
any template that does not define its own DOCTYPE.  That might be a
breaking change for the (very rare case) of a page that does not
render HTML (for instance, a page that exists to be an RSS feed).


Why not having this as a symbol with a default value of false (to avoid  
backward-compatible problems)?


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: tapestry5-beta22 html5 doctype

2011-10-17 Thread Howard Lewis Ship
This is true.  You need to use  on any component that
references a named HTML entity.

I'm considering what it would take to allow HTML5 to be the default on
any template that does not define its own DOCTYPE.  That might be a
breaking change for the (very rare case) of a page that does not
render HTML (for instance, a page that exists to be an RSS feed).

This is unfortunately necessary when using SAX parser APIs, as there
isn't any way to intercept entity references as pass them though, the
way we'd like.

Perhaps Tapestry needs its own special-purpose (somewhat limited) XML
parser that gives us this control?  That seems like a reasonable idea
on the surface, but it much more likely to introduce bugs (especially
w.r.t. to charsets) and be slower than the standard XML parsers
available to the JVM.


On Mon, Oct 17, 2011 at 11:17 AM, Lenny Primak  wrote:
> I believe that the way html5 doctype is implemented in tapestry this is 
> correct behavior. You must declare html5 doctype on every page.
>
>
>
> On Oct 17, 2011, at 2:12 PM, Tony Nelson  wrote:
>
>> I have added the html5 doctype to my base layout.  In the base layout, I can 
>> use html entities as expected.
>>
>> Any page that I create that uses the layout, throw an exception that I 
>> haven't declared the entity unless I explicitly add the html5 doctype to the 
>> page.
>>
>> Is this the expected behavoir or should the page inherit the doctype from 
>> the layout?
>>
>> Thanks
>> Tony Nelson
>> -
>> 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
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: tapestry5-beta22 html5 doctype

2011-10-17 Thread Lenny Primak
I believe that the way html5 doctype is implemented in tapestry this is correct 
behavior. You must declare html5 doctype on every page. 



On Oct 17, 2011, at 2:12 PM, Tony Nelson  wrote:

> I have added the html5 doctype to my base layout.  In the base layout, I can 
> use html entities as expected.
> 
> Any page that I create that uses the layout, throw an exception that I 
> haven't declared the entity unless I explicitly add the html5 doctype to the 
> page.  
> 
> Is this the expected behavoir or should the page inherit the doctype from the 
> layout?
> 
> Thanks
> Tony Nelson 
> -
> 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



tapestry5-beta22 html5 doctype

2011-10-17 Thread Tony Nelson
I have added the html5 doctype to my base layout.  In the base layout, I can 
use html entities as expected.

Any page that I create that uses the layout, throw an exception that I haven't 
declared the entity unless I explicitly add the html5 doctype to the page.  

Is this the expected behavoir or should the page inherit the doctype from the 
layout?

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



Re: PeriodicExecutor: services and Hibernate

2011-10-17 Thread Tony Nelson
Using tapestry-hibernate mine seemed to just work.  I have a job that runs 
every 5 minutes that simply inserts a new row into a table.  I inject the 
service, which in turn uses an injected DAO.  No fussing w/ sessions as far as 
I can tell.

Tony

On Oct 17, 2011, at 12:45 PM, 9902468 wrote:

> Hi,
> 
> I can inject services to the job that is going to be periodically executed.
> Do I have to manage my own transactions (using HibernateSessionManager) and
> clean up after each execution using PerthreadManager?
> 
> If so, are you going to provide support for those in the future? 
> Additionally, is it guaranteed that the job will execute even if it has
> previously thrown exception? 
> How the executor behaves in cluster?
> 
> I couldn't find documentation about this, is there any?
> 
> - Ville
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> 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: Problems using JPA with 5.3

2011-10-17 Thread Dimitris Zenios
Jesse i am using tapestry-jpa with hibernate and it works great except
the problem of value encoder.Maybe you did something wrong in the
persistence.xml or you didn't place it in the correct location.

On Mon, Oct 17, 2011 at 8:07 PM, jesse  wrote:
> Thanks Thiago,
>
> I have read the documentation on the new JPA stuff in Tapestry.  I'm pretty
> sure I have it set up correctly.  I did everything the documentation
> suggests and I'm still having the issue.  The only reason I mentioned tynamo
> was just to make it clear that I did at one point have JPA working in my
> project, so the problem likely isn't with eclipselink or my persistence.xml
> configuration.
>
> --
> View this message in context: 
> http://tapestry-users.832.n2.nabble.com/Problems-using-JPA-with-5-3-tp6898469p6901440.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> -
> 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



afterRender AjaxFormLoop

2011-10-17 Thread George Christman
Does anybody know of a way to listen to the AjaxFormLoop event similar to how
you do it using Tapestry.ZONE_UPDATED_EVENT with zones in the afterRender?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/afterRender-AjaxFormLoop-tp4910720p4910720.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: An Appeal To Use the Latest Betas

2011-10-17 Thread jesse
I would love to be using the latest version of tapestry, but sadly can't due
to the jpa issue I'm having with it, described here: 
http://tapestry-users.832.n2.nabble.com/Problems-using-JPA-with-5-3-td6898469.html

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/An-Appeal-To-Use-the-Latest-Betas-tp6890825p6901448.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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



Re: Page is getting cached in Tapestry 5.0.18

2011-10-17 Thread ManuPK
Thanks Thiago and Wulf's for helping.

I don't get this issue every time but happens too-often in some machines and
pages. Is there any settings possible in  browser?

If I use the "no-cache" attributes even t he images will not be cached? Will
it create any performance issue?


-
Thanks,
Manu PK
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Page-is-getting-cached-in-Tapestry-5-0-18-tp4905016p4910658.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Problems using JPA with 5.3

2011-10-17 Thread jesse
Thanks Thiago,

I have read the documentation on the new JPA stuff in Tapestry.  I'm pretty
sure I have it set up correctly.  I did everything the documentation
suggests and I'm still having the issue.  The only reason I mentioned tynamo
was just to make it clear that I did at one point have JPA working in my
project, so the problem likely isn't with eclipselink or my persistence.xml
configuration.

--
View this message in context: 
http://tapestry-users.832.n2.nabble.com/Problems-using-JPA-with-5-3-tp6898469p6901440.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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



PeriodicExecutor: services and Hibernate

2011-10-17 Thread 9902468
Hi,

I can inject services to the job that is going to be periodically executed.
Do I have to manage my own transactions (using HibernateSessionManager) and
clean up after each execution using PerthreadManager?

If so, are you going to provide support for those in the future? 
Additionally, is it guaranteed that the job will execute even if it has
previously thrown exception? 
How the executor behaves in cluster?

I couldn't find documentation about this, is there any?

 - Ville

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/PeriodicExecutor-services-and-Hibernate-tp4910599p4910599.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: T3.5 datepicker problem

2011-10-17 Thread Robert Zeigler
Hopefully you meant T5.3, not T3.5? :)

You'll need to be a bit more specific about which version you downloaded... but 
probably you downloaded 5.3.0, which was more of a milestone build than a 
"stable" release.

Please try the most recent beta and report back if you're still having issues.

Robert

On Oct 17, 2011, at 10/179:30 AM , captain_rhino wrote:

> 
> I've download T3.5 using maven and have just added a few datepicker to my
> simple pages, but none of the javascript datepickers actually work - they
> display but no interactivity.
> 
> I've noticed that none of the js libraries are present in my project such as
> /assets/1.0-SNAPSHOT/stack/en/core-datefield.js"
> 
> Is there anything I've abviously done wrong please?
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T3-5-datepicker-problem-tp4910072p4910072.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> 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: Locale + in tapestry 5.3

2011-10-17 Thread Robert Zeigler
Please file a JIRA for localizing the "Today" and "None" labels in the core 
datefield component.

Robert

On Oct 17, 2011, at 10/179:05 AM , parranz wrote:

> Hi,
> 
> I'd like to insert some date fields in my application. I started using the
> dateField component from Tapestry (I'm using tapestry 5.3) which works
> perfect, but I have the problem that the buttons "Today" and "None" don´t
> get translated to spanish. I've seen the javascript code deployed on the
> server, and it seems that only the months names depend on the locale, but
> not this 2 buttons (they seem to be hardcoded). Am I missing something? Is
> there any way to get them translated? 
> 
> I've tried a workaround too, using instead of the tapestry's component the
> one from tapx's library, but I get this excepcion when I start the server:
> 
> java.lang.RuntimeException: Service id 'DynamicTemplateParser' has already
> been defined by
> com.howardlewisship.tapx.core.services.CoreModule.buildDynamicTemplateParser(DynamicTemplateParserImpl,
> UpdateListenerHub) (at CoreModule.java:127) and may not be redefined by
> org.apache.tapestry5.internal.dynamic.DynamicTemplateParserImpl(ClasspathURLConverter,
> BindingSource, PageSource) (at DynamicTemplateParserImpl.java:42) via
> org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at
> TapestryModule.java:440). You should rename one of the service builder
> methods. 
>at
> org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:226) 
>at
> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:178) 
>at
> org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:216)
>  
>at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95) 
>at
> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) 
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
>at
> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589) 
>at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) 
>at
> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) 
>at
> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510) 
>at
> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) 
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
>at
> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) 
>at org.mortbay.jetty.Server.doStart(Server.java:222) 
>at
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
>at RunTestTapestry5.main(RunTestTapestry5.java:31) 
> 
> thats the dependency that I'm using:
> 
>
>com.howardlewisship
>tapx-datefield
>1.1-SNAPSHOT
> 
> 
> It seems like this library isn't compatible with tapestry 5.3 anymore.
> 
> thanx in advance!!
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Locale-t-dateTime-in-tapestry-5-3-tp4909983p4909983.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> 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: Registry Shutdown - beta-21

2011-10-17 Thread Tony Nelson
Your implementation was simple to understand, simple to implement, and it seems 
to just work.

Thanks
Tony

On Oct 14, 2011, at 5:51 PM, Howard Lewis Ship wrote:

> I'm about to commit changes to allow for registry "will" shutdown 
> notifications.
> 
> On Fri, Oct 14, 2011 at 1:20 PM, Tony Nelson  wrote:
>> I have a bunch of threads that I've spawned off that I'd like to shut down 
>> gracefully.
>> 
>> On Oct 14, 2011, at 4:14 PM, Steve Eynon wrote:
>> 
>>> Alas no, there is no other method (I'm aware of) that lets you know
>>> the registry is "about to shutdown", just the one that tells you it's
>>> in the process of.
>>> 
>>> There have been a couple of situations when I wished there was though!
>>> (e.g. to log the shutdown event to a database.)
>>> 
>>> Steve.
>>> 
>>> On 15 October 2011 03:51, Tony Nelson  wrote:
 I have successfully registered a shutdown listener as described in the 
 document ion.  It seems that registryDidShutdown() is called after the 
 registry is done shutting down and I no longer have access to any of the 
 services the registry previously held.  Is there another method I can use 
 to be notified just before the registry is shut down?  The exception I'm 
 seeing is this:
 
 [ERROR] TapestryIOCModule.RegistryShutdownHub Error notifying 
 com.starpoint.instihire.services.AppModule$ThreadShutdownListener@54030e7b 
 of registry shutdown: Exception constructing service 'EmailQueue': Proxy 
 for service EmailQueue is no longer active because the IOC Registry has 
 been shut down.
 java.lang.RuntimeException: Exception constructing service 'EmailQueue': 
 Proxy for service EmailQueue is no longer active because the IOC Registry 
 has been shut down.
at 
 org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:78)
at 
 org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:56)
at $InstiHireQueue_124caf428070f755.delegate(Unknown Source)
at $InstiHireQueue_124caf428070f755.getQueueReader(Unknown Source)
at 
 com.starpoint.instihire.services.AppModule$ThreadShutdownListener.registryDidShutdown(AppModule.java:292)
at 
 org.apache.tapestry5.ioc.internal.services.RegistryShutdownHubImpl.fireRegistryDidShutdown(RegistryShutdownHubImpl.java:57)
at 
 org.apache.tapestry5.ioc.internal.RegistryImpl.shutdown(RegistryImpl.java:384)
at 
 org.apache.tapestry5.ioc.internal.RegistryWrapper.shutdown(RegistryWrapper.java:41)
at 
 org.apache.tapestry5.TapestryFilter.destroy(TapestryFilter.java:192)
at 
 org.mortbay.jetty.servlet.FilterHolder.destroyInstance(FilterHolder.java:127)
at 
 org.mortbay.jetty.servlet.FilterHolder.doStop(FilterHolder.java:107)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.servlet.ServletHandler.doStop(ServletHandler.java:176)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
at 
 org.mortbay.jetty.servlet.SessionHandler.doStop(SessionHandler.java:125)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
at 
 org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:592)
at 
 org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:537)
at 
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStop(Jetty6PluginWebAppContext.java:123)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerCollection.doStop(HandlerCollection.java:169)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at 
 org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
at org.mortbay.jetty.Server.doStop(Server.java:283)
at 
 org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
at org.mortbay.jetty.Server$ShutdownHookThread.run(Server.java:561)
 Caused by: java.lang.IllegalStateException: Proxy for service EmailQueue 
 is no longer 

T3.5 datepicker problem

2011-10-17 Thread captain_rhino

I've download T3.5 using maven and have just added a few datepicker to my
simple pages, but none of the javascript datepickers actually work - they
display but no interactivity.

I've noticed that none of the js libraries are present in my project such as
/assets/1.0-SNAPSHOT/stack/en/core-datefield.js"

Is there anything I've abviously done wrong please?


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T3-5-datepicker-problem-tp4910072p4910072.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Locale + in tapestry 5.3

2011-10-17 Thread parranz
Hi,

I'd like to insert some date fields in my application. I started using the
dateField component from Tapestry (I'm using tapestry 5.3) which works
perfect, but I have the problem that the buttons "Today" and "None" don´t
get translated to spanish. I've seen the javascript code deployed on the
server, and it seems that only the months names depend on the locale, but
not this 2 buttons (they seem to be hardcoded). Am I missing something? Is
there any way to get them translated? 

I've tried a workaround too, using instead of the tapestry's component the
one from tapx's library, but I get this excepcion when I start the server:

java.lang.RuntimeException: Service id 'DynamicTemplateParser' has already
been defined by
com.howardlewisship.tapx.core.services.CoreModule.buildDynamicTemplateParser(DynamicTemplateParserImpl,
UpdateListenerHub) (at CoreModule.java:127) and may not be redefined by
org.apache.tapestry5.internal.dynamic.DynamicTemplateParserImpl(ClasspathURLConverter,
BindingSource, PageSource) (at DynamicTemplateParserImpl.java:42) via
org.apache.tapestry5.services.TapestryModule.bind(ServiceBinder) (at
TapestryModule.java:440). You should rename one of the service builder
methods. 
at
org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:226) 
at
org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:178) 
at
org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:216)
 
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95) 
at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) 
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589) 
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) 
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) 
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:510) 
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) 
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) 
at org.mortbay.jetty.Server.doStart(Server.java:222) 
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39) 
at RunTestTapestry5.main(RunTestTapestry5.java:31) 

thats the dependency that I'm using:


com.howardlewisship
tapx-datefield
1.1-SNAPSHOT
 

It seems like this library isn't compatible with tapestry 5.3 anymore.

thanx in advance!!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Locale-t-dateTime-in-tapestry-5-3-tp4909983p4909983.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Tapestry-JPA 5.3 beta22 Problem

2011-10-17 Thread Dimitris Zenios
OK i think i found it.

The constructor gets called but propertyAdapter is null.In order to
fix it had to change   idAttribute.getJavaMember().getName(); to
idAttribute.getName(). I dont know if it matters but the annotations
in my entity are placed on the methods and not on the properties.

On Mon, Oct 17, 2011 at 1:46 PM, Dimitris Zenios
 wrote:
> It seems there is a problem with Tapestry JPA.From what i can tell,
> value encoder does not work.I am using tapestry 5.3 beta 22.toClient
> of value encoder is not called and if i go to the page by hand in
> order to force toValue method then i get this exception
>
>
>
> org.apache.tapestry5.runtime.ComponentEventException: Exception in
> method com.magneta.pages.Vouchers.activatePage(com.magneta.entities.Batch),
> parameter #1: java.lang.NullPointerException
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1123)
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3100(ComponentPageElementImpl.java:61)
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.invoke(ComponentPageElementImpl.java:1044)
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.invoke(ComponentPageElementImpl.java:1041)
>        at 
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
>        at 
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
>        at 
> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1024)
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
>        at 
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1040)
>        at 
> org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
>        at 
> org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
>        at $PageActivator_4365465652ec5.activatePage(Unknown Source)
>        at 
> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
>        at 
> org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2216)
>        at $PageRenderRequestHandler_4365465652ecf.handle(Unknown Source)
>        at $PageRenderRequestHandler_4365465652e27.handle(Unknown Source)
>        at 
> org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
>        at 
> org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
>        at $ComponentRequestHandler_4365465652e28.handlePageRender(Unknown 
> Source)
>        at 
> org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:50)
>        at $ComponentRequestFilter_4365465652e25.handlePageRender(Unknown 
> Source)
>        at $ComponentRequestHandler_4365465652e28.handlePageRender(Unknown 
> Source)
>        at $ComponentRequestHandler_4365465652dfb.handlePageRender(Unknown 
> Source)
>        at 
> org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
>        at $Dispatcher_4365465652dfd.dispatch(Unknown Source)
>        at $Dispatcher_4365465652df8.dispatch(Unknown Source)
>        at 
> org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
>        at 
> org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
>        at $RequestHandler_4365465652df9.service(Unknown Source)
>        at 
> org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:900)
>        at $RequestHandler_4365465652df9.service(Unknown Source)
>        at 
> org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:890)
>        at $RequestHandler_4365465652df9.service(Unknown Source)
>        at 
> org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
>        at $RequestHandler_4365465652df9.service(Unknown Source)
>        at com.magneta.services.AppModule$1.service(AppModule.java:172)
>        at $RequestFilter_4365465652df4.service(Unknown Source)
>        at $RequestHandler_4365465652df9.service(Unknown Source)
>        at 
> org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
>        at 
> org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
>        at 
> org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
>        at 
> org.apache.tapestry5.internal.services.Check

RE: [ANN] JumpStart drops @Persist from Grid, Loop, and AjaxFormLoop examples!

2011-10-17 Thread Wechsung, Wulf
Thanks Geoff! The jumpstart is a terrific resource and has been a life saver on 
occasion. Thanks for all your efforts!

-Original Message-
From: Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] 
Sent: Montag, 17. Oktober 2011 11:19
To: Tapestry users
Subject: [ANN] JumpStart drops @Persist from Grid, Loop, and AjaxFormLoop 
examples!

Hi all,

JumpStart's been updated to get rid of @Persist from these examples:

- Editable Grid
- Editable Loop
- Grid with Delete Column
- Loop with Delete Column
- AjaxFormLoop Tailored

and @Persist has almost been removed from this example:

- AjaxFormLoop

How was this possible? By using encoders better.

The new JumpStart version is 5.4.20 and it is running in the usual place:

http://jumpstart.doublenegative.com.au/jumpstart/

Cheers,

Geoff

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



RE: Practical jQuery Integration

2011-10-17 Thread Wechsung, Wulf
Hello Janko,

I think it's possible that noConflict doesn’t work. To make sure, simply delete 
the lines in jQuery.js that assign to $ or window.$.
Regarding the rest of your example, it's really hard to diagnose but I would 
just bet that if you open your example with firebugs or 
the Chrome javascript console it will say that there are script errors. I would 
generally recommend to get familiar with either 
of those because otherwise javascript development won't be a lot of fun ;)

Best Regards, Wulf

-Original Message-
From: joch40 [mailto:janko.jochim...@urios-beratung.de] 
Sent: Montag, 17. Oktober 2011 00:36
To: users@tapestry.apache.org
Subject: Re: Practical jQuery Integration

Hello Sigbjørn, 

I have seen https://github.com/got5/tapestry5-jquery , but this seems to
work only in  tml / 

Re: Problems using JPA with 5.3

2011-10-17 Thread Dimitris Zenios
Sorry wrong reply :).I though it was for a previous mail

On Mon, Oct 17, 2011 at 2:38 PM, Dimitris Zenios
 wrote:
> Thiago i am using tapestry-jpa.I haven’t tested tynamo-jpa.From what i
> can see at the source code of JpaModule.java there is a method
>
>
>    @Contribute(ValueEncoderSource.class)
>    public static void provideValueEncoders(final
> MappedConfiguration configuration,
>
> @Symbol(JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERS)
>                                            final boolean
> provideEncoders, final EntityManagerSource entityManagerSource,
>                                            final EntityManagerManager
> entityManagerManager, final TypeCoercer typeCoercer,
>                                            final PropertyAccess
> propertyAccess, final LoggerSource loggerSource)
>    {
>
>        if (!provideEncoders)
>            return;
>
>        for (final PersistenceUnitInfo info :
> entityManagerSource.getPersistenceUnitInfos())
>        {
>            final EntityManagerFactory emf =
> entityManagerSource.getEntityManagerFactory(info.getPersistenceUnitName());
>
>            final Metamodel metamodel = emf.getMetamodel();
>
>            for (final EntityType entity : metamodel.getEntities())
>            {
>                final Class javaType = entity.getJavaType();
>
>                final ValueEncoderFactory factory = new ValueEncoderFactory()
>                {
>                    public ValueEncoder create(final Class type)
>                    {
>                        return new JpaValueEncoder(entity,
> entityManagerManager, info.getPersistenceUnitName(),
>                                propertyAccess, typeCoercer,
> loggerSource.getLogger(javaType));
>                    }
>                };
>
>                configuration.add(javaType, factory);
>            }
>        }
>    }
>
>
> This is the method that converts entities to string and strings to
> Entities.I am sure that this method gets called but after that its not
> working.And before anybody asks
> JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERS is set to true by default and
> i didn’t change it
>
> On Mon, Oct 17, 2011 at 2:32 PM, Thiago H. de Paula Figueiredo
>  wrote:
>> On Sun, 16 Oct 2011 17:54:29 -0200, jesse  wrote:
>>
>>> My app works great with tynamo JPA, tynamo resteasy, eclipselink (2.2.1),
>>> and Tapestry 5.2.6.  I had to do one small hack due to the fact that the
>>> tynamo code relies on Defense.  No big deal though, and it's all working.
>>>
>>> I've tried to switch to 5.3, and I believe I have everything set up
>>> correctly (obviously I've removed the tynamo jpa dependency from my pom).
>>
>> Check the tapestry-jpa documentation, as it's not based in tynamo-jpa and
>> they may have different behavior.
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>>
>> -
>> 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: Problems using JPA with 5.3

2011-10-17 Thread Dimitris Zenios
Thiago i am using tapestry-jpa.I haven’t tested tynamo-jpa.From what i
can see at the source code of JpaModule.java there is a method


@Contribute(ValueEncoderSource.class)
public static void provideValueEncoders(final
MappedConfiguration configuration,

@Symbol(JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERS)
final boolean
provideEncoders, final EntityManagerSource entityManagerSource,
final EntityManagerManager
entityManagerManager, final TypeCoercer typeCoercer,
final PropertyAccess
propertyAccess, final LoggerSource loggerSource)
{

if (!provideEncoders)
return;

for (final PersistenceUnitInfo info :
entityManagerSource.getPersistenceUnitInfos())
{
final EntityManagerFactory emf =
entityManagerSource.getEntityManagerFactory(info.getPersistenceUnitName());

final Metamodel metamodel = emf.getMetamodel();

for (final EntityType entity : metamodel.getEntities())
{
final Class javaType = entity.getJavaType();

final ValueEncoderFactory factory = new ValueEncoderFactory()
{
public ValueEncoder create(final Class type)
{
return new JpaValueEncoder(entity,
entityManagerManager, info.getPersistenceUnitName(),
propertyAccess, typeCoercer,
loggerSource.getLogger(javaType));
}
};

configuration.add(javaType, factory);
}
}
}


This is the method that converts entities to string and strings to
Entities.I am sure that this method gets called but after that its not
working.And before anybody asks
JpaSymbols.PROVIDE_ENTITY_VALUE_ENCODERS is set to true by default and
i didn’t change it

On Mon, Oct 17, 2011 at 2:32 PM, Thiago H. de Paula Figueiredo
 wrote:
> On Sun, 16 Oct 2011 17:54:29 -0200, jesse  wrote:
>
>> My app works great with tynamo JPA, tynamo resteasy, eclipselink (2.2.1),
>> and Tapestry 5.2.6.  I had to do one small hack due to the fact that the
>> tynamo code relies on Defense.  No big deal though, and it's all working.
>>
>> I've tried to switch to 5.3, and I believe I have everything set up
>> correctly (obviously I've removed the tynamo jpa dependency from my pom).
>
> Check the tapestry-jpa documentation, as it's not based in tynamo-jpa and
> they may have different behavior.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> -
> 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: [T5.3.x] One Small Thing...

2011-10-17 Thread Thiago H. de Paula Figueiredo
On Sat, 15 Oct 2011 01:47:53 -0300, Steve Eynon  
 wrote:



...could we please have a warning message logged when the default
application module is not found on startup? Something like,

"Could not find the application module  
'com.mycompany.project.WoteverModule'"


Because everytime (and it does seem to be *everytime*!) I start a new
project I miss-type, miss-spell, deploy the wrong web-override.xml or
do something that causes T5 to look in the wrong place for my Module.
It would be really, really useful on these occasions if T5 told me
where it was trying to look as oppose to silently moving on.

I agree with the code comment that it's valid not to have a Module
class, but if not found, if T5 was a bit more verbose in telling where
it was attempting to look, that would be awesome!


Sound good to me. :) Please file a JIRA. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Problems using JPA with 5.3

2011-10-17 Thread Thiago H. de Paula Figueiredo

On Sun, 16 Oct 2011 17:54:29 -0200, jesse  wrote:


My app works great with tynamo JPA, tynamo resteasy, eclipselink (2.2.1),
and Tapestry 5.2.6.  I had to do one small hack due to the fact that the
tynamo code relies on Defense.  No big deal though, and it's all working.

I've tried to switch to 5.3, and I believe I have everything set up
correctly (obviously I've removed the tynamo jpa dependency from my  
pom).


Check the tapestry-jpa documentation, as it's not based in tynamo-jpa and  
they may have different behavior.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Tapestry failing to inject a service into a Translator with @Inject?

2011-10-17 Thread Thiago H. de Paula Figueiredo

On Sun, 16 Oct 2011 17:46:17 -0200, Julien Martin  wrote:


Hello,


Hi!


public class PostcodeTranslator implements Translator {

@Inject
BignibouService service;


Try making the field private. And don't forget that Tapestry-IoC just  
injects dependencies in objects instatiated by it.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Page is getting cached in Tapestry 5.0.18

2011-10-17 Thread Thiago H. de Paula Figueiredo

On Sat, 15 Oct 2011 07:54:18 -0300, ManuPK  wrote:

I am using tapestry version 5.0.18. In my application the tapestry pages  
are getting cached. ie, when I hit the  URL to load the page the request  
is not reaching the server. I need to press ctrl+F5 to get the valid  
page.

Is it because of the page pooling?


No. This is browser behavior.

Or how can I make sure always the request is reached the server and the  
fresh data is loaded to the page.


There's no 100% guaranteed way, but you can use Wulf's suggestions.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Browser Back Button

2011-10-17 Thread Olga
Hi all.
I have this question.
I use this annotation for create session:

@SessionState(create = false)
private User user;

and if loggin pass i do this:
public Object onSubmitFromLoginForm() throws SQLException {
user = userService.getUser(username, password);
if (user != null) {
return Home.class;
} else
return null;
}

If i want logout, i do this:
@Log
public Object onActionFromLogout()
{
user = null;
return Index.class;
}


All this work good, but if i do logout and after press Browser Back Button
then previous page displayed and user is logged in, but correct behavior is
that nothind change. I mean after press to back button we can't come back to
previous page we must loggin.

Do you have ideas how i can solve my problem.

Thank

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Browser-Back-Button-tp4909542p4909542.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: An Appeal To Use the Latest Betas

2011-10-17 Thread antalk
http://www.localhost.nu/java/tapestry-spring-security/index.html  Im using 

nu.localhost.tapestry
tapestry-spring-security
3.0.0


And

http://www.chenillekit.org/ 

org.chenillekit
chenillekit-tapestry
1.3.2


Altough the later could already have a snapshot available ?

Oh.. actually there are 3


us.antera
t5-restful-webservices
0.2.1





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/An-Appeal-To-Use-the-Latest-Betas-tp4900917p4909469.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Tapestry-JPA 5.3 beta22 Problem

2011-10-17 Thread Dimitris Zenios
It seems there is a problem with Tapestry JPA.From what i can tell,
value encoder does not work.I am using tapestry 5.3 beta 22.toClient
of value encoder is not called and if i go to the page by hand in
order to force toValue method then i get this exception



org.apache.tapestry5.runtime.ComponentEventException: Exception in
method com.magneta.pages.Vouchers.activatePage(com.magneta.entities.Batch),
parameter #1: java.lang.NullPointerException
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1123)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3100(ComponentPageElementImpl.java:61)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.invoke(ComponentPageElementImpl.java:1044)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$4.invoke(ComponentPageElementImpl.java:1041)
at 
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at 
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at 
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1024)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1040)
at 
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
at 
org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
at $PageActivator_4365465652ec5.activatePage(Unknown Source)
at 
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
at 
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2216)
at $PageRenderRequestHandler_4365465652ecf.handle(Unknown Source)
at $PageRenderRequestHandler_4365465652e27.handle(Unknown Source)
at 
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
at 
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
at $ComponentRequestHandler_4365465652e28.handlePageRender(Unknown 
Source)
at 
org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:50)
at $ComponentRequestFilter_4365465652e25.handlePageRender(Unknown 
Source)
at $ComponentRequestHandler_4365465652e28.handlePageRender(Unknown 
Source)
at $ComponentRequestHandler_4365465652dfb.handlePageRender(Unknown 
Source)
at 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
at $Dispatcher_4365465652dfd.dispatch(Unknown Source)
at $Dispatcher_4365465652df8.dispatch(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
at 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
at $RequestHandler_4365465652df9.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:900)
at $RequestHandler_4365465652df9.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:890)
at $RequestHandler_4365465652df9.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
at $RequestHandler_4365465652df9.service(Unknown Source)
at com.magneta.services.AppModule$1.service(AppModule.java:172)
at $RequestFilter_4365465652df4.service(Unknown Source)
at $RequestHandler_4365465652df9.service(Unknown Source)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
at $RequestHandler_4365465652df9.service(Unknown Source)
at $RequestHandler_4365465652deb.service(Unknown Source)
at 
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
at 
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
at $HttpServletRequestHandler_4365465652ded.service(Unknown So

Re: An Appeal To Use the Latest Betas

2011-10-17 Thread Bob Harner
Which 2 libraries?
On Oct 17, 2011 3:33 AM, "antalk"  wrote:

> I would love too, but our 2 Tapestry applications are heavily dependent on
> 2
> extra libraries that are not in sync with Tap5.3 and thus fail to
> start/run.
>
> Without these libraries our application is pretty much useless so i'll have
> to wait for the final version or update these libraries myself  (but we
> dont
> have the time for that) , which leads to being not really a drop-in
> replacement...
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/An-Appeal-To-Use-the-Latest-Betas-tp4900917p4908984.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANN] JumpStart drops @Persist from Grid, Loop, and AjaxFormLoop examples!

2011-10-17 Thread Muhammad Gelbana
Great stuff. Thanks a lot :)

On Mon, Oct 17, 2011 at 11:19 AM, Geoff Callender <
geoff.callender.jumpst...@gmail.com> wrote:

> Hi all,
>
> JumpStart's been updated to get rid of @Persist from these examples:
>
>- Editable Grid
>- Editable Loop
>- Grid with Delete Column
>- Loop with Delete Column
>- AjaxFormLoop Tailored
>
> and @Persist has almost been removed from this example:
>
>- AjaxFormLoop
>
> How was this possible? By using encoders better.
>
> The new JumpStart version is 5.4.20 and it is running in the usual place:
>
>http://jumpstart.doublenegative.com.au/jumpstart/
>
> Cheers,
>
> Geoff




-- 
*Regards,*
*Muhammad Gelbana
Java Developer*


[ANN] JumpStart drops @Persist from Grid, Loop, and AjaxFormLoop examples!

2011-10-17 Thread Geoff Callender
Hi all,

JumpStart's been updated to get rid of @Persist from these examples:

- Editable Grid
- Editable Loop
- Grid with Delete Column
- Loop with Delete Column
- AjaxFormLoop Tailored

and @Persist has almost been removed from this example:

- AjaxFormLoop

How was this possible? By using encoders better.

The new JumpStart version is 5.4.20 and it is running in the usual place:

http://jumpstart.doublenegative.com.au/jumpstart/

Cheers,

Geoff

Re: An Appeal To Use the Latest Betas

2011-10-17 Thread antalk
I would love too, but our 2 Tapestry applications are heavily dependent on 2
extra libraries that are not in sync with Tap5.3 and thus fail to start/run.

Without these libraries our application is pretty much useless so i'll have
to wait for the final version or update these libraries myself  (but we dont
have the time for that) , which leads to being not really a drop-in
replacement...

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/An-Appeal-To-Use-the-Latest-Betas-tp4900917p4908984.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: The difference between "ValueEncoder" and "Translator"

2011-10-17 Thread derkoe

dick_hu wrote:
> 
> Now I use the FCKeditor, because of it often has many html tags,so the
> value's length often over the db's words limit.So I want to transform the
> html tags to short string.
> I want to use the "Translator",But I find "ValueEncoder" seems has the
> same feature.
> Which one can I choose? Can AnyOne tell me the difference  between
> "ValueEncoder" and "Translator".
> 

ValueEncoder is for converting between objects and strings to be used in
links, select values, etc. (so computer readable).
Translator is for converting between objects and strings for humans - e.g.
in inputs.

See also JavaDoc:
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ValueEncoder.html
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/Translator.html

-- 
Chris

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/The-difference-between-ValueEncoder-and-Translator-tp4908456p4908962.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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