Re: eclipse tapestry 4.0 and WTP doctype issue?

2006-04-22 Thread Kris Rasmussen
My mistake, I was attempting to declare the component in the library without a jwc file. Kris - Original Message From: Kris Rasmussen <[EMAIL PROTECTED]> To: tapestry-user@jakarta.apache.org Sent: Saturday, April 22, 2006 7:37:41 PM Subject: eclipse tapestry 4.0 and WTP doctype issue?

eclipse tapestry 4.0 and WTP doctype issue?

2006-04-22 Thread Kris Rasmussen
I finally made the move to tapestry 4.0, and am having some problems with template parsing. It appears Xerces does not like my component templates because they do not have a DOCTYPE declared. The error I get is... Document root element "html", must match DOCTYPE root "null". I tried declaring

Re: Persistent Set

2006-04-22 Thread Todd Orr
Problem solved. Looks like I cannot embed the For in the Form element. Thanks again. On 4/22/06, Todd Orr <[EMAIL PROTECTED]> wrote: > Also, there is a For component on the page the attempts to display all > the Foos that have been created thus far. I think this is where the > problem is. If I rem

Re: Persistent Set

2006-04-22 Thread Todd Orr
Also, there is a For component on the page the attempts to display all the Foos that have been created thus far. I think this is where the problem is. If I remove the For, it works, but now my user has no idea how many/which Foos she's already created. Thanks. On 4/22/06, Todd Orr <[EMAIL PROTECT

Persistent Set

2006-04-22 Thread Todd Orr
I've got a form page that creates new foos, one after another. You input foo data and each time a new foo will be added to the persistent foo set. I am doing this in an attempt to collect multiple foos for bulk processing on subsequent pages. The page has the method: @Persist public abstract Set g

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 users' Subject:

RE: What to do if annotations are not available?

2006-04-22 Thread James Carman
Okay. I've got the auto-wire thing working. It's in my tapernate-example application. The source for it can be found here: http://www.carmanconsulting.com/svn/public/tapernate-example/trunk/src/java/ com/carmanconsulting/tapernate/example/web/enhance/HiveMindAutowireWorker.ja va I had to creat

Re: I have a dream...

2006-04-22 Thread Jason Dyer
On Saturday 22 April 2006 14:32, Mark wrote: > How about tighter Spring Integration? The problem I have with that statement is, AFAIK, hivemind and spring essentially do the same thing--IoC and method interception, right? In which case, isn't it sub-optimal to have two complicated libraries doi

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
Oh, and all of that stuff is publicly available. The spring transaction/hibernate support stuff is in a "hivemind" project at JavaForge (I'm moving it to honeycomb soon). The only thing that I have put into my own SVN repository is the "tapernate" stuff. But, I've talked to Howard about putting

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
You can directly extend the HibernateDaoSupport if you wish. I just added a setLog( Log log ) method, so that HiveMind would inject a Log object into my DAOs. The reason that I want to use HiveMind (besides the fact that I'm a committer on the HiveMind project) is that that's what Tapestry uses.

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 this? How

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread Hans L
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 whole object to keep the version information (unless of course you don't

Re: I have a dream...

2006-04-22 Thread Mark
How about tighter Spring Integration? There is a bunch of things that exist in Spring as well - transaction handling, validation logic, Hibernate session handling, etc, etc. As far as I am concerned, Tapestry and for that matter Hivemind is really only the web front-end, not the core. If you a

Re: I have a dream...

2006-04-22 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Bulling wrote: > ... that one day we have a solution to this repetitive problems with > Hibernate/sessions/transactions/demarcations/etc. which is > > - flexible enough to allow different usages (with/without manual demarcation, > session-per-

I have a dream...

2006-04-22 Thread Andreas Bulling
... that one day we have a solution to this repetitive problems with Hibernate/sessions/transactions/demarcations/etc. which is - flexible enough to allow different usages (with/without manual demarcation, session-per-request/-conversation, ...) for the people with their different needs - at the

Re: Hivemind

2006-04-22 Thread Mark Reynolds
Ted, I ran into this same problem. As far as I can tell, Hivetranse will not reuse a single hibernate Session across multiple transactions. Normally it will close the session after a transaction. If you use the DeferSessionClose option, it will keep the session around, but still create a new

Handing objects from listener to result page

2006-04-22 Thread Mark
Hi, I want to be able to hand objects from the listener that gets called as a result of a form submit or DirectLink to the page that is called next. In the VLib example, this is done like this (in this case the return value of updatedBook() would be the object that gets passed): public I

Re: What to do if annotations are not available?

2006-04-22 Thread Mark
Hi James, would you have a link to an example for this? How do I get to the ASM? Thanks, MARK James Carman wrote: You can look them up using the ApplicationStateManager. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: What to do if annotations are not available?

2006-04-22 Thread Mark
Hi Raul, thanks for the response. Inject doesn't scale because you need to do it in every single .page file. If you have a large application, you have lots of those. I have not a lot of experience but I think you can even have many pages that do not require .page files, so all of those now ne

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
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 whole object to keep the version information (unless of course you don't need the optimistic locking stuf

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread Andreas Bulling
On 22. Apr 2006 - 09:17:49, James Carman wrote: | 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

[Honeycomb] net.sourceforge.hivetranse.transaction.MandatoryTransactionException

2006-04-22 Thread Andreas Bulling
Hi folks, I tried to integrate the Honeycomb Squeezer into my web application but I get the following exception: --- net.sourceforge.hivetranse.transaction.MandatoryTransactionException No active transaction Stack Trace: # net.sourceforge.hivetranse.transaction.hibernate3.SessionProxyFactory$Se

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread Hans Lellelid
Hi Mark, Thanks for the tip -- that's really helpful to know. I'm also not sure yet whether my "strategy" is the right one for Hibernate objects, but it does seem to work consistently as long as I reattach things before I start modifying them. I'll probably stick with it for now, but hook in

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 Andreas Bulling
| Well, if you just store the id (and entity name) in the session, then you | totally circumvent the automatic optimistic locking capability of Hibernate | (you'd be reading the current version number every time instead of just | attempting to reattach the old object). Well, I have to admit that I

RE: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
Well, if you just store the id (and entity name) in the session, then you totally circumvent the automatic optimistic locking capability of Hibernate (you'd be reading the current version number every time instead of just attempting to reattach the old object). Squeezers aren't used by the client

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread Andreas Bulling
On 22. Apr 2006 - 08:44:59, James Carman wrote: | Yes, I'm sorry. I was thinking of my "squeezer" implementation. The | persistence strategy will store the object in the session, but reattach it | when necessary. You're right. Well, OK, but what's the advantage of your entity strategy in this c

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

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
Yes, I'm sorry. I was thinking of my "squeezer" implementation. The persistence strategy will store the object in the session, but reattach it when necessary. You're right. > On 21. Apr 2006 - 14:44:59, James Carman wrote: > | Basically, I copied the session persistence strategy implementation

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread Andreas Bulling
On 21. Apr 2006 - 14:44:59, James Carman wrote: | Basically, I copied the session persistence strategy implementation and | modified it a bit to actually just store the id of the persistent object in | the session. I've taken a look into your implementation in the meanwhile. No offense, but I do

Re: tapestry/hibernate sessions & pageBeginRender()

2006-04-22 Thread James Carman
My code doesn't use Spring as the container either. I use HiveMind. My code just uses the Spring classes inside HiveMind. Why re-invent the wheel? > On 21. Apr 2006 - 14:44:59, James Carman wrote: > | I use a custom persistence strategy for this: > | > | > http://www.carmanconsulting.com/svn/pu

Re: What to do if annotations are not available?

2006-04-22 Thread James Carman
You can look them up using the ApplicationStateManager. > Why doesn't scale? > As far as I know there are three ways to access your registry ASO's and > services: > > 1. annotations > 2. > 3. Creating a custom engine service and injecting the object via setter > based dependency using their inte

Re: How to edit a Set of values

2006-04-22 Thread Ted Steen
For some reason when I tried that again it worked :) thanks! On 4/21/06, Ron Piterman <[EMAIL PROTECTED]> wrote: > so the workflow looks like: > > some action ( submit? ) on page 1 >-> generate and set data on page 2 >-> display page 2 (data is ok) >-> submit form (page 2) >-> page

Re: Hivemind

2006-04-22 Thread Ted Steen
yes On 4/22/06, Raul Raja <[EMAIL PROTECTED]> wrote: > Do you have the following in your hivemodule.xml? > > > > > > Ted Steen wrote: > > Hi. > > > > This is a subset of my hivemodule.xml > > > >> interface="org.hibernate.Session"> > >> service-id="hivetranse.hibernate

Re: Hivemind

2006-04-22 Thread Raul Raja
Do you have the following in your hivemodule.xml? Ted Steen wrote: Hi. This is a subset of my hivemodule.xml

Re: What to do if annotations are not available?

2006-04-22 Thread Raul Raja
Why doesn't scale? As far as I know there are three ways to access your registry ASO's and services: 1. annotations 2. 3. Creating a custom engine service and injecting the object via setter based dependency using their interfaces as parameters for the setter, which in my opinion is even a

Re: Injecting an ASO into a Validator?

2006-04-22 Thread Massimo Lusetti
On 4/22/06, Michael Lake <[EMAIL PROTECTED]> wrote: > Do I need to make my validator a bean in the .page and pass it > information? If so, how? That's what i've done and it works. The documentation tells you how to do that. -- Massimo http://meridio.blogspot.com

Hivemind

2006-04-22 Thread Ted Steen
Hi. This is a subset of my hivemodule.xml