Re: [T5] How to handle DAOs?

2008-08-10 Thread Lutz Hühnken
Hi Sven,

this is the first time i hear of chenillekit.  So I'm wondering (and
I'm sure others are, too) - what the relationship is between
chenillekit and t5components ? Are those two names for the same
project?

Regards,

Lutz


On Sat, Aug 9, 2008 at 2:13 PM, Sven Homburg [EMAIL PROTECTED] wrote:
 myself is using the chenillekit modules
 for my own customer projects but the libraries
 are poorly documented.

 for the future i suggest the using of chenillekit
 http://code.google.com/p/chenillekit/



 --
 with regards
 Sven Homburg
 http://tapestry5-components.googlecode.com
 http://chenillekit.googlecode.com


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



Re: Tapestry5, grid and checkbox

2008-08-10 Thread Argo Vilberg
Here is the solution.

In tapestry  4.1.5, this form submit button does not work.
But work very vell in tapestry 4.0.5 version.

Also worked in tapestry5.(becouse of that i search example, but not found)


   t:form t:id=gridform
t:grid
source=CompanyList rowsPerPage=10 pagerPosition=both

include=valitud,businessName,registryCode,addressName,postalCode,streetField
t:rowClass=prop:evenodd.next
row=ariregitem
t:parameter name=valitudCell
t:checkbox value=ariregItem.valitud/
/t:parameter
/t:grid
t:submit value=Salvesta firmad/
/t:form



Argo


2008/8/9 Argo Vilberg [EMAIL PROTECTED]

 hi,


 Is it possible to user T5 GRID with combobox component?

 I want use grid in form component, and after form submits save checked
 items to database.

 Is this possible after all?

 I cant find any example.



 Argo



Environmental services during action requests

2008-08-10 Thread Markus Joschko
Hi list,
is there a way to have an environmental service during an action request?
In the docs a tabmodel is mentioned which can be put into the
environment during setupRender.
However if an event happens in an encapsulated tab component and it
wants to make any sanity checks against the provided model
it will fall flat as setupRender is not called during action requests.

Regards,
 Markus

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



Re: T5: Unpredictable deploy behaviour in tomcat 6 error - TapestryException FormSupport at ... corelib/pages/ExceptionReport.tml

2008-08-10 Thread Howard Lewis Ship
This is a good cautionary tail;  I develop using Jetty day to day, but
it is important to integration test using an environment as close to
your deployment setup as possible; in this case, using Tomcat.  There
shouldn't be glaring differences, but there still are.

On Sat, Aug 9, 2008 at 5:44 PM, adasal [EMAIL PROTECTED] wrote:
 All good.
 I notice I sent this seven hours ago, so 4 hours of work later ...
 1. I deployed into Jetty which has far better error messages. There may be a
 setting in tomcat for this? It told me there were bad class versions. Of
 course!
 2. In Eclipse land it is necessary to compile and run the container using
 the same version. If using ant to compile - I do as everything is packed
 into a war as needed by tomcat - then ant must use the same java version. OK
 I new that just didn't think!
 3. Troubles not completely over, also necessary to take out of the container
 launch config any conflicting jars, probably put in then when running
 something else indiscriminately, or just trying to make it work and
 forgotten they were there.

 Bottom line - jetty has more useful error messages and that can really
 matter to someone like me!
 Adam

 2008/8/9 adasal [EMAIL PROTECTED]

 org.apache.tapestry.ioc.internal.util.TapestryException:
 org.apache.tapestry.services.FormSupport [at
 classpath:org/apache/tapestry/corelib/pages/ExceptionReport.tml, line 11,
 column 45]

 Does anyone know the way round this?
 This is the basic test application - Tapestry5Test1.
 I have been able to deploy this once into tomcat 6 with tapestry 06 libs.
 I changed to 13 and then to 14 usually getting a class not found exception
 forg.apache.tapestry.ioc.annotations.InjectService.
 This exception has disappeared with the following issues.

 I have reverted to 06 and also deployed the 06 tutorial into tomcat 5. -
 Both OK

 I have redeployed Tapestry5Test1 under tomcat 6. - KO.

 When testing with newer libs I made necessary edits as I understand for the
 new tapestry5 package name and also in web.xml.
 I cannot understand why it would work once but not again, I assume I have
 made a mistake in the libs I have included, but I placed the originals
 elsewhere and just copied them back, so this doesn't make sense to me.
 What are the issues with tomcat 6?
 Jetty seems fine.
 BTW I have tried with 3 versions of javassist - javassist-3.4.jar,
 javassist-3.7.ga.jar, javassist-3.8.ga.jar. I can't trace the difficulties
 to this jar.
 Any ideas?

 Adam






-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: [T5] How to handle DAOs?

2008-08-10 Thread Onno Scheffers

 The thing to know about tapestry-hibernate is that it creates a proxy
 for the actual hibernate session. When you use the injected session it
 actually gets the session for the current thread, via the
 HibernateSessionManager I believe. So when you instantiate your DAO with
 a session in the constructor, they will always get the session for the
 current thread transparently.



Hi Chris, this clears up a lot for me. Thanks!


regards,

Onno


Re: [T5] How to handle DAOs?

2008-08-10 Thread Sven Homburg
here is a sample without using Factory

http://212.202.126.8:8080/chenillekit/chenillekit-hibernate/doa_sample.html

2008/8/10 Onno Scheffers [EMAIL PROTECTED]

 
  The thing to know about tapestry-hibernate is that it creates a proxy
  for the actual hibernate session. When you use the injected session it
  actually gets the session for the current thread, via the
  HibernateSessionManager I believe. So when you instantiate your DAO with
  a session in the constructor, they will always get the session for the
  current thread transparently.



 Hi Chris, this clears up a lot for me. Thanks!


 regards,

 Onno




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Re: t5 newbie's question: how to understa nd onActivate?

2008-08-10 Thread Chris Lewis
Michael,

Pages and their lifecycle methods in no way correspond to how a servlet
is structured. If you haven't gone all the way through the first
tutorial, start there and digest every bit of it. After that you will
have a general idea of T5's perspective on a how a web app works, and
you should be ready to dig in a bit deeper into how pages are handled:

http://tapestry.apache.org/tapestry5/guide/pagenav.html
http://tapestry.apache.org/tapestry5/guide/lifecycle.html

I strongly urge you to take a few hours, forget the word servlet, I
and take in the T5 perspective.

sincerely,
chris

Michael Wong wrote:
 I'm trying to learn Tapestry 5, here is my question:

 what onActivate does? say:

 public void onActivate() {

 }

 Does this onActivate corresponding to the servlet's request and response?
 when the url for the page class is called, onActivate is called for the
 'request' part, then since it return 'void', the 'response' is also
 called(that's the rendering of the class + template process?)


   

-- 
http://thegodcode.net


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