RE: Testing pages

2006-05-05 Thread James Carman
When you use the Creator, you pass in a Map of properties. I believe the map keys are the property names and the values are the values that the Creator will bind to the properties. So, you'd put your mock object into the map with the appropriate property name as the key. -Original Message---

RE: Accessing state.ApplicationObject in ServicePoint

2006-05-05 Thread James Carman
ssing state.ApplicationObject in ServicePoint thanks James :) how do i get a reference to this object in my Service? On 5/5/06, James Carman <[EMAIL PROTECTED]> wrote: > > Look it up using the ApplicationStateManager. > > -Original Message- > From: John Menke [mailt

RE: Generic creation of an ICallback: surely there's a better way?

2006-05-05 Thread James Carman
interface). -Original Message- From: Henri Dupre [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 11:21 AM To: Tapestry users Subject: Re: Generic creation of an ICallback: surely there's a better way? On 5/5/06, James Carman <[EMAIL PROTECTED]> wrote: > > How about if the IEn

RE: Accessing state.ApplicationObject in ServicePoint

2006-05-05 Thread James Carman
Look it up using the ApplicationStateManager. -Original Message- From: John Menke [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 11:23 AM To: Tapestry User Subject: Accessing state.ApplicationObject in ServicePoint I have a state object that i want to inject into a service i define

RE: Generic creation of an ICallback: surely there's a better way?

2006-05-05 Thread James Carman
How about if the IEngineService interface had a createCallback(IRequestCycle) method? Would that help? -Original Message- From: Henri Dupre [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 11:02 AM To: Tapestry users Subject: Re: Generic creation of an ICallback: surely there's a bet

RE: HTML tables

2006-05-04 Thread James Carman
Well, since Brian says that the docs are fixed in SVN, you could download it and build the site (maven site) yourself. Then, refer to the "unrealeased" docs from your local system. Or, refer to the free WAR file that I sent earlier. It really helped me understand tables in Tapestry a bit better.

RE: HTML tables

2006-05-04 Thread James Carman
There is a great reference for Tapestry tables in the form of a war file example: http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1. html I'm not saying don't buy Kent's book (I just bought it and I really like it), but there *are* free resources. -Original Message-

RE: List of logged users

2006-05-04 Thread James Carman
Perhaps you can key your logged in user list (make it a map) by the session id? Wouldn't that work? -Original Message- From: Oscar Picasso [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:54 PM To: Tapestry users Subject: Re: List of logged users I have tried to implement the H

RE: Initialize a state object? StateObjectFactory

2006-05-04 Thread James Carman
Try this... -Original Message- From: Stanczak Group [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:09 PM To: Tapestry users Subject: Re: Initialize a state object? StateObjectFactory I've crated a service that implements the interface StateObjectFactory. Then I added the in

RE: Autowiring not working

2006-05-04 Thread James Carman
You have multiple services which implement the same interface. HiveMind can only auto-wire if there is exactly one service point which supports the interface. -Original Message- From: Rob Dennett [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 12:01 PM To: Tapestry users Subject:

RE: Is it safe to inject HiveMind services into an ASO?

2006-05-04 Thread James Carman
nStateObjectProvider. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Reynolds Sent: Thursday, May 04, 2006 11:33 AM To: tapestry-user@jakarta.apache.org Subject: Re: Is it safe to inject HiveMind services into an ASO? Expanding on what James said and following up on a hint

RE: List of logged users

2006-05-04 Thread James Carman
Oops! The static field is private. But, I guess you could hard-code what it's set to (or we can ask the tapestry folks to open that up). -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 8:40 AM To: 'Tapestry users' Subject: RE:

RE: List of logged users

2006-05-04 Thread James Carman
The HiveMind registry is located in the ServletContext. You can look it up by doing: servletContext.getAttribute( ApplicationServlet.REGISTRY_KEY_PREFIX + ); Where is the name of your application servlet in web.xml (you can probably set that up as a servlet context parameter if you have to).

RE: can I set any other page as default except Home page

2006-05-04 Thread James Carman
This was sent through the forum. I don't know (I doubt) if it'll get posted back to the forum if you just reply via email. -Original Message- From: Greg Cormier [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 8:32 AM To: Tapestry users Subject: RE: can I set any other page as defa

RE: List of logged users

2006-05-04 Thread James Carman
You can use a session listener for this: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionListener .html You register it in your web.xml file. -Original Message- From: Oscar Picasso [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 8:15 AM To: Tapestry users S

RE: [tapernate] Session-Per-Conversation...

2006-05-04 Thread James Carman
that because you were thinking about annotations for the transaction demarcation... James Carman wrote: > I'll have to look at it, but I don't know that I use any 1.5-specific > features. I think I only have one place where I use a "typed" collection > (in the persiste

RE: Tapernate Questions

2006-05-03 Thread James Carman
Ben, Sorry I didn't get back to you. But, with respect to the persistence strategy, that's about right. I think you've got it. The squeezer does squeeze the entities based on their persistent identity also. James -Original Message- From: Ben Dotte [mailto:[EMAIL P

RE: Tapestry to generate mails ?

2006-05-03 Thread James Carman
Tapestry is for creating interactive HTML, not a static HTML-formatted email (IMHO). I think you're trying to use an elephant gun to hunt squirrel here. Velocity is perfect for generating email text. You can still use your architecture, you just put some helper beans in the VelocityContext. ---

RE: HTML tables

2006-05-03 Thread James Carman
Of course, pointing someone to *free* external resources would be a bit nicer. -Original Message- From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 11:50 AM To: Tapestry users Subject: Re: HTML tables Such attitude is VERY bad in my

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
forum first and only after that promote them to JIRA bug tracking if necessary. James Carman <[EMAIL PROTECTED]> wrote: Well, I would still consider it a bug. It's one thing to expect Hibernate to rollback values that I set on my objects during the course of a transaction. It does

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
Paul P.S. Yes, Konstantin, I guess I am a little too hard on Struts. It was really the lack of squeezers I'm thinking of -- the need to manually stuff/unstuff objects every time they go to and from the client. That creates a lot of grunt work. On May 3, 2006, at 10:05 AM, James Car

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
7;bug'. SaveOrUpdate is a 'convenience' feature and if different strategy is necessary then it can be implemented /easily/ in the application DAO layer. Although I personally never needed that, saveOrUpdate magic combined with 'assigned' identifiers work quite well for me. James Ca

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
ther working copy of an object) and later it can be merged with Hibernate session /session.merge() / when necessary For the comparison fairness I simply pointed to the fact that Struts does not require all the object fieds to be duplicated in ActionForm as people often do. James Carman <[EMAIL P

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
I ended up going > with tapernate. > > I feel it most closely fits in with the style of development that tapestry > and hivemind both try to achieve. (funny that, considering that James is > one > of the core hivemind devs ;) ) > > It would be nice to see the two merge or

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
a client I ended up > going > > with tapernate. > > > > I feel it most closely fits in with the style of development that > tapestry > > and hivemind both try to achieve. (funny that, considering that James is > > one > > of the core hivemind devs ;) )

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
omb approachs are too diferent implementation wise for them to be merged into a single project ? On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote: > > I chose to use the Spring stuff to manage the current sessions and allow > for > declarative transaction demarcation since I know that

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
s long as i don't have to use Spring IOC(hivemind will do just fine) for me it's just another jar in the classpath. On 5/3/06, James Carman <[EMAIL PROTECTED]> wrote: > > One big difference is the usage of the Spring classes within Tapernate. > This is just a differen

RE: Honeycomb vs Tapernate or Honeycomb with Tapernate

2006-05-03 Thread James Carman
One big difference is the usage of the Spring classes within Tapernate. This is just a difference of opinion/direction. -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 9:04 AM To: Tapestry users Subject: Honeycomb vs Tapernate or Honeycomb wit

RE: Insert/Update pages and Hibernate

2006-05-03 Thread James Carman
This is exactly what they're trying to avoid, putting "business objects" into their page logic. The problem with that, as pointed out earlier, is that it can leave your business objects in an invalid state (they have an identifier assigned to them, but the record isn't actually in the database). S

RE: [tapernate] Session-Per-Conversation...

2006-05-03 Thread James Carman
I'll have to look at it, but I don't know that I use any 1.5-specific features. I think I only have one place where I use a "typed" collection (in the persistence strategy), but that's not a must. I'll see what I can do. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: We

RE: Tapernate squeezer implementation generates loong sp:s

2006-05-03 Thread James Carman
is, but you can override the implementation. How does that sound? The trick is that the "id" can be any serializable object. So, for the general case, I can't just append it to a string. What if it's a composite id? You do have to "squeeze" the id at least. James

RE: Insert/Update pages and Hibernate

2006-05-02 Thread James Carman
action and maybe try to figure out how to code around it)? Thanks, James -Original Message- From: Jim Steinberger [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 8:16 PM To: Tapestry users Subject: RE: Insert/Update pages and Hibernate Paul, Thanks much -- I take your points w

RE: Insert/Update pages and Hibernate

2006-05-02 Thread James Carman
As Paul said, you can use the transaction-per-request strategy and set the rollback-only flag if something goes wrong. This will ensure that nothing is written to the database, but the POJOs in the session will still remain untouched. If you want to get off the ground quite quickly, you can use "

RE: Tapernate squeezer implementation generates loong sp:s

2006-05-02 Thread James Carman
Well, people could also "spoof" the classname/id stuff quite easily. -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 5:16 PM To: Tapestry users Subject: Tapernate squeezer implementation generates loong sp:s James, As long as you jus

RE: Is it safe to inject HiveMind services into an ASO?

2006-05-02 Thread James Carman
Create a service which returns the "current" business object. That service can lookup the ASO and get the key. Then, your client code just calls the service. -Original Message- From: Paul Field [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 11:46 AM To: tapestry-user@jakarta.apac

RE: [tapernate] Session-Per-Conversation...

2006-05-02 Thread James Carman
t a demo application that I have on my own SVN server. I'll try to set it up soon, I promise. James -Original Message- From: Henri Dupre [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 10:00 AM To: Tapestry users Subject: Re: [tapernate] Session-Per-Conversation... What is the

RE: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread James Carman
The example application is working. To rollback a transaction (in my case, if the message contains "Ni!"), you just use the TransactionUtils.setRollbackOnly() method (see my EditMessage page for an example). Remember, tapernate includes auto-wiring code, so all you have to do is declare an abstra

RE: Doubt in Tapestry Tutorials

2006-05-02 Thread James Carman
Well, you don't actually *have* to register your application. You can autodeploy it by dropping your war into the webapps directory. Those type of deployment descriptors weren't added until Tomcat 5.x: http://tomcat.apache.org/tomcat-5.0-doc/deployer-howto.html -Original Message- From

[tapernate] Session-Per-Conversation...

2006-05-02 Thread James Carman
ich is only request-scoped). But, this would clutter up the code with these join/end conversation requests. I'd like to use annotations for this, but haven't come up with a nice way of doing so. I might be able to use an EnhancementWorker to do it. James -

RE: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread James Carman
Ted, I use the mysql-connector-3.1.12. I've checked in the changes to tapernate-example so you can see an example of how to enable c3p0 with MySQL. Just uncomment some stuff in your build.properties (once you copy it from example-build.properties) and the hivemodule.xml template.

RE: [Tapernate] Error when trying to use c3p0 connection pooling

2006-05-02 Thread James Carman
Ted, I just changed my tapernate-example to use MySQL and it worked fine. If you would like, I can check in the changes so you can see it. James -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 7:26 AM To: Tapestry users Subject: Re: [Tapernate

RE: Localized messages in service

2006-05-01 Thread James Carman
CTED] On Behalf Of Andreas Bulling Sent: Monday, May 01, 2006 2:30 PM To: Tapestry users Subject: Re: Localized messages in service On 01. Mai 2006 - 14:26:25, James Carman wrote: | What file are you expecting it to read those message definitions from? >From my_appl

RE: Localized messages in service

2006-05-01 Thread James Carman
What file are you expecting it to read those message definitions from? -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Monday, May 01, 2006 2:20 PM To: Tapestry users Subject: Localized messages in service Hi folks, probably it's a no

RE: Injecting services and static method

2006-05-01 Thread James Carman
Dependency injection allows you to easily unit test your logic. If you use a static method, you can't substitute a "dummy" implementation of the mail sending logic during unit testing. -Original Message- From: ZedroS Schwart [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 10:42 AM T

RE: Access Registry

2006-05-01 Thread James Carman
ay, May 01, 2006 10:00 AM To: Tapestry users Subject: Re: Access Registry Yes, Hibernate interceptor. I'm not using Spring. I'm using Tapestry/HiveMind/Hibernate. I was referring to the article you wrote. I didn't know you had a framework. James Carman wrote: > Justin, > >

RE: Access Registry

2006-05-01 Thread James Carman
bject: service:MyHibernateInterceptor This will set up the interceptor to be used by your Hivemind sessions. Hope this helps! James -Original Message- From: Stanczak Group [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 9:16 AM To: Tapestry users Subject: Re: A

RE: Access Registry

2006-04-30 Thread James Carman
You can create a service implementation factory which injects the contributing module into your service implementation. From there, you can lookup stuff in the registry. Refer to an example here: http://www.carmanconsulting.com/svn/public/tapernate-example/trunk/src/java/ org/apache/tapestry/enh

RE: Tapernate ?

2006-04-29 Thread James Carman
and the advantages. I'm pretty newbe to all this stuff... Is here a presentation page somewhere, with the mean features and interests of tapernate ? :$ ZedroS On 4/29/06, James Carman <[EMAIL PROTECTED]> wrote: > > Well, nobody has to use it, but it's free and it works for s

RE: Tapernate ?

2006-04-29 Thread James Carman
and widely used Spring-way of handling interceptors etc. > Which comes with the price of beeing dependent on the spring library. > > I guess James could give you some more info, as he is the creator of > tapernate :) > > > On 4/29/06, ZedroS Schwart <[EMAIL PROTECTED]> wr

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
, 2006 6:15 PM To: Tapestry users Subject: Re: One question concerning Tapernate On 28. Apr 2006 - 17:47:09, James Carman wrote: | Well, it'd be quite easy. I'll write it tonight over a couple of beers. :-) *lol You're a bit crazy if I may say that ;-) Not that I want to complain about

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
On 28. Apr 2006 - 10:33:11, James Carman wrote: | You have to make sure your changes go on within a transaction. I'm going to | add transaction-per-request support in Tapernate soon. Well, I'm urgently waiting for this feature then ;)

RE: One question concerning Tapernate

2006-04-28 Thread James Carman
You have to make sure your changes go on within a transaction. I'm going to add transaction-per-request support in Tapernate soon. -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Friday, April 28, 2006 10:31 AM To: Tapestry users Subje

RE: SqueezeAdaptor heads up

2006-04-28 Thread James Carman
This is another reason for changing the squeezer framework to a pipeline. -Original Message- From: Jun Tsai [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 7:00 AM To: Tapestry users; [EMAIL PROTECTED] Subject: Re: SqueezeAdaptor heads up Thank you very much !! 2006/2/7, A

RE: Separate language file for each customer

2006-04-28 Thread James Carman
any id for looking up that company's >> properties >> > files. I >> > > > > guess each company will have a separate folder containing its >> > properties >> > > > > files. >> > > > > >> > >

RE: PropertySelectionModel

2006-04-27 Thread James Carman
So, you want a generic way to generate the value for the objects in the collection (and the display text I presume)? -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 1:26 PM To: Tapestry users Subject: Re: PropertySelectionModel I provided code

RE: Squeezer Pipeline?

2006-04-27 Thread James Carman
Oh, I just caught what you said. Yes, I meant to say "Hibernate API" and not "HiveMind API." Guess I've got HiveMind on the brain lately. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 27, 2006 9:41 AM To: 'Tapestry users' Subject: RE: Squeeze

RE: I have a dream...

2006-04-27 Thread James Carman
I really liked Spring in Action (along with Hibernate in Action). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Gendler Sent: Thursday, April 27, 2006 9:55 AM To: Tapestry users Subject: Re: I have a dream... > > Which book if I may ask? I'm intere

Re: Squeezer Pipeline?

2006-04-27 Thread James Carman
generally applicable, then this is a restriction. > On 27. Apr 2006 - 09:23:30, James Carman wrote: > | Yeah, but for my EntitySqueezer, you have to pick a common superclass > for > | your entities so the squeezer can say "I can squeeze these types of > | objects." > &

Re: Squeezer Pipeline?

2006-04-27 Thread James Carman
Yeah, but for my EntitySqueezer, you have to pick a common superclass for your entities so the squeezer can say "I can squeeze these types of objects." > Hi James, > > from my understanding the current implementation is already > something like a pipeline: Every squeezer gets

Re: Cognition

2006-04-27 Thread James Carman
eady scores good > in my book. It has many flavors of IBM's Websphere RAD JSF tooling from > the > looks of it (i.e. drag and drop components, RAD for ORM, etc). > > Cognition link: http://dev.thelabllc.com/cognition/ > > Aaron Bartell > http://mowyourlawn.com/blog &g

Squeezer Pipeline?

2006-04-27 Thread James Carman
ueezer could be found for type blah blah blah. I think this would be much more robust. What do you think? James Carman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ASO <-> "normal" service

2006-04-27 Thread James Carman
I try. ;-) > On 27. Apr 2006 - 08:50:44, James Carman wrote: > | Pages and components. If you declare an abstract getter for a type > that's > | in the HiveMind registry as a service, then it'll enhance your > | page/component class and provide the service object when

Re: ASO <-> "normal" service

2006-04-27 Thread James Carman
: > What does your HiveMindAutowireWorker.java class "enhance"? > > Thanks! > Andreas > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED

Page cleanup after an Exception?

2006-04-27 Thread James Devenish
Hi, Is anyone familiar with the lifecycle of a page when an Exception is thrown by a component? Obviously, the Exception Reporter mechanism is activated and we see the Exception report page. However, what happens with regards with detach(), initialize(), pageEndRender(), etc? Can we (and how can w

Re: ASO <-> "normal" service

2006-04-27 Thread James Carman
object_B_id as parameters > and which throws a SecurityException if necessary. Should I take > an ASO or is a normal service "enough"? > > Thanks! > Andreas > > -----

RE: [OT] OMG! A dynamic div component in JSF

2006-04-26 Thread James Carman
Tapestry (or the contrary) is insane. -- Mário On 4/26/06, James Carman <[EMAIL PROTECTED]> wrote: > That's what Trails/Cognition are trying to do, though, make Tapestry more > RAD. > > -Original Message- > From: Mário Lopes [mailto:[EMAIL PROTECTED] > Sent: Wedn

RE: [OT] OMG! A dynamic div component in JSF

2006-04-26 Thread James Carman
That's what Trails/Cognition are trying to do, though, make Tapestry more RAD. -Original Message- From: Mário Lopes [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 3:10 PM To: Tapestry users Subject: Re: [OT] OMG! A dynamic div component in JSF I've used Ruby on Rails for pr

RE: [OT] OMG! A dynamic div component in JSF

2006-04-26 Thread James Carman
: SHA1 Hugo - No one would ever say anything like that! :-) *adding incense to his offering for the plugin gods in hopes of a speedy journey to completion for Hugo and Geoff* James Carman wrote: > No no no! Keep working on it, please! :-) > > -Original Message- > From

RE: [OT] OMG! A dynamic div component in JSF

2006-04-26 Thread James Carman
No no no! Keep working on it, please! :-) -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 11:54 AM To: Tapestry users Subject: Re: [OT] OMG! A dynamic div component in JSF Are you trying to say that all the efforts i'm putting in the Tapest

RE: I have a dream...

2006-04-26 Thread James Carman
d be most helpful. Thanks! -- Mark R Nick Faiz wrote: > Hi James, > > Yes, I'm aware that there are different approaches too. It seems to me > that this same topic has been bandied back and forth across the list > several times in the last month or so. > > Most of yo

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Hans L Sent: Monday, April 24, 2006 4:05 PM To: tapestry-user@jakarta.apache.org Subject: Re: tapestry, hivemind, spring Thanks, James. I'll play around with this & if I get any transaction annotation support working I'll send it al

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
-user@jakarta.apache.org Subject: Re: tapestry, hivemind, spring Hi James, Actually, I'd be very happy to try my hand at writing support for the @Transactional stuff, based on the Annotation support in Spring & the TransactionInterceptorFactory in com.javaforge.hivemind.spring.transacti

RE: tapestry, hivemind, spring

2006-04-24 Thread James Carman
: tapestry-user@jakarta.apache.org Subject: tapestry, hivemind, spring Hi, I'm wondering if anyone (James?) can give me some advice on configuring tapestry service points with spring. I am using spring to build my sessionFactory and autoproxy my DAO beans to use [annotation-based] declarati

Re: Form.js

2006-04-24 Thread James Devenish
ervice but I don't know why. At first glance, it seems like a very simple and direct service. James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Help me!!!!

2006-04-24 Thread James Carman
Well, did you figure it out? Was it not on the classpath? -Original Message- From: Pedro Garcia [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 10:55 AM To: Tapestry users Subject: Re: Help me Thanks for the help On 4/24/06, James Carman <[EMAIL PROTECTED]> wrote: &

RE: Help me!!!!

2006-04-24 Thread James Carman
d its name. Could this be the cause? On 4/24/06, James Carman <[EMAIL PROTECTED]> wrote: > > Your hivemind.jar is not on your classpath (or at least HiveMind doesn't > think it is). > > -Original Message- > From: Pedro Garcia [mailto:[EMAIL PROTECTED] > Sent: Mo

RE: Help me!!!!

2006-04-24 Thread James Carman
Your hivemind.jar is not on your classpath (or at least HiveMind doesn't think it is). -Original Message- From: Pedro Garcia [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 10:27 AM To: [EMAIL PROTECTED]; tapestry-user@jakarta.apache.org Subject: Help me Hi I am having a very

RE: [Honeycomb] net.sourceforge.hivetranse.transaction.MandatoryT ransactionException

2006-04-24 Thread James Carman
ngs much simpler. But, there are those rare cases. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 9:52 AM To: 'Tapestry users' Subject: RE: [Honeycomb] net.sourceforge.hivetranse.transaction.MandatoryT ransactionException James,

RE: [Honeycomb] net.sourceforge.hivetranse.transaction.MandatoryT ransactionException

2006-04-24 Thread James Carman
If you use the OpenSessionInViewFilter, this problem goes away, as only one session is used for the entire request cycle. The transaction interceptor doesn't just begin/commit transactions. It also allows you to declare which exceptions would need to cause a rollback (and which do not). Using

RE: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate

2006-04-23 Thread James Carman
T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate 2006/4/24, James Carman <[EMAIL PROTECTED]>: > > There are multiple ways to use it. You can have a DirectLink which uses > parameters to call a listener method (the parameters will be > squeezed). You > can have a Hidden component

RE: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate

2006-04-23 Thread James Carman
PROTECTED] Sent: Sunday, April 23, 2006 11:03 PM To: Tapestry users Subject: Re: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate 2006/4/24, James Carman <[EMAIL PROTECTED]>: > > The client persistence strategy doesn't use the "squeezers." H

RE: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate

2006-04-23 Thread James Carman
The client persistence strategy doesn't use the "squeezers." -Original Message- From: Jun Tsai [mailto:[EMAIL PROTECTED] Sent: Sunday, April 23, 2006 10:56 PM To: Tapestry users Subject: Re: T4 DataSqueezer/SqueezeAdaptor, Spring & Hibernate How to use MySqueezeAdaptor ? ? Jun Tsai

RE: What to do if annotations are not available?

2006-04-23 Thread James Carman
you have any references or links to how EnhancementWorkers work in general (or other T4 internals for that matter)? Thanks, MARK James Carman wrote: > Well, all you have to do is declare a getter which returns an > ApplicationStateManager in any page that you want. Then, if you use my

RE: I have a dream...

2006-04-23 Thread James Carman
There's nothing wrong with it at all. It's just a different approach. I had to write much less code to achieve the same result. And, I'm reusing a proven technology (the Spring classes) which people are familiar with already. -Original Message- From: Nick Faiz [mailto:[EMAIL PROTECTED]

RE: What to do if annotations are not available?

2006-04-23 Thread James Carman
er the lifetime of the page of course... > You're not going to like this, but you inject it! :-) > > > -Original Message- > From: Mark [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 22, 2006 11:42 AM > To: Tapestry users > Subject: Re: What to do if

RE: What to do if annotations are not available?

2006-04-23 Thread James Carman
ns are not available? I agree, but I would add a way for manual wiring - in case the "auto" part does the wrong thing for whatever reason. James Carman wrote: > What we really need is the ability to "autowire" services into our > components/pages. Maybe we should set some

RE: I have a dream...

2006-04-23 Thread James Carman
Well, Andreas, I hate to say it, but I am the man of your dreams! :-) I have already integrated the Spring transaction/ORM support into HiveMind. HiveTranse basically took a "grow your own" strategy, because the author wasn't familiar with Spring (at least that's what I remember being one of the r

RE: I have a dream...

2006-04-23 Thread James Carman
One thing that HiveMind does that Spring does not is configurations. Spring doesn't have the rich configuration facilities that HiveMind does. Don't get me wrong. I love Spring. That's why I use the Spring transaction/ORM stuff within HiveMind. To borrow a phrase from Howard, it's all just "ob

RE: Persistent Set

2006-04-23 Thread James Carman
If it's saying that it can't find a strategy for class Foo, then that means that it's trying to "squeeze" it (if you wrote a class named Charmin, would it say "I can't squeeze the Charmin"?). The reason it's trying to squeeze it is because you're using the @For component ("it will automatically st

RE: What to do if annotations are not available?

2006-04-22 Thread James Carman
I've created a JIRA issue with this code attached as a patch (I changed the package names, of course): http://issues.apache.org/jira/browse/TAPESTRY-917 -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Saturday, April 22, 2006 5:22 PM To: 'Tapestry user

RE: What to do if annotations are not available?

2006-04-22 Thread James Carman
ected by other means. If the tapestry team likes this (Jesse?), feel free to go ahead and include it in the core library. It's Apache v2.0 licensed. Do you want me to create a JIRA issue and attach a patch to it? -Original Message- From: James Carman [mailto:[EMAIL PROTECTED]

RE: What to do if annotations are not available?

2006-04-22 Thread James Carman
What we really need is the ability to "autowire" services into our components/pages. Maybe we should set something up that does that? So, if a page has a setPersonDao() method, it would automatically have the proxy for the service that implements the PersonDao interface injected into it. I can l

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
bernate sessions & pageBeginRender() Hi James, James Carman wrote: > Well, if you just store the Person object, you have to reattach it to the > current session (which is what my code does). > > I don't want to store just the id in the session. You need to store the > wh

RE: I have a dream...

2006-04-22 Thread James Carman
HiveMind is not the "web front-end." HiveMind can be used in all tiers of your application. HiveMind has nothing to do with Tapestry. Tapestry just uses it to wire all of its pieces together and configure itself. -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Saturday,

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
estry uses. I see no reason to use two different DI containers. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Hans L Sent: Saturday, April 22, 2006 3:14 PM To: tapestry-user@jakarta.apache.org Subject: Re: tapestry/hibernate sessions & pageBeginRender() Hi James,

RE: What to do if annotations are not available?

2006-04-22 Thread James Carman
You're not going to like this, but you inject it! :-) -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Saturday, April 22, 2006 11:42 AM To: Tapestry users Subject: Re: What to do if annotations are not available? Hi James, would you have a link to an example for

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
going to live (javaforge vs. sourceforge). -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Saturday, April 22, 2006 10:49 AM To: Tapestry users Subject: Re: tapestry/hibernate sessions & pageBeginRender() On 22. Apr 2006 - 09:17:49, James

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
1. Well, here's what would happen. Suppose I want to update a Person object on my EditPerson page. I use the "session" persistence strategy and I just store the id of the person. So, I render the EditPage and it shows a form. I edit some values and I submit my request. Suppose someone beat me

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
the client persistence strategy, unfortunately. -Original Message- From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Bulling Sent: Saturday, April 22, 2006 8:55 AM To: Tapestry users Subject: Re: tapestry/hibernate sessions & pageBeginRender() On 22. Apr 2006 - 0

Tapestry 4: "stale link exception" for disabled form components

2006-04-22 Thread James Devenish
Hi, Tapestry 4 is documented as supporting the "disabled" attribute of HTML Form elements (e.g., INPUT, SELECT, TEXTAREA). Has anyone ever achieved this? (1) For me, Tapestry puts for component IDs into the hidden "formids" field. However, disabled form elements are by definition not submitted by

  1   2   3   4   >