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?
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
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
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
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
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:
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
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
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
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
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,
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.
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
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
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
-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-
... 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
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
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
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
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
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
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
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
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
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
| 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
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
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
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
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
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
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
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
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
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
Do you have the following in your hivemodule.xml?
Ted Steen wrote:
Hi.
This is a subset of my hivemodule.xml
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
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
Hi.
This is a subset of my hivemodule.xml
40 matches
Mail list logo