Paul Grimwood/GNS is out of the office.

2006-05-24 Thread Paul Grimwood
I will be out of the office starting  24/05/2006 and will not return until
29/05/2006.

I will respond to your message when I return.



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



include link

2006-05-24 Thread Yunfeng Hou

IncludeLink is used to include another html file into
current file, it is a sub-class of ExternalLink, so
you can use paramter page and parameters to control
the included page.

use include, we can seperate pages into small pieces,
which will have better reusabilty and can have
different caching control. For example, UserInfo.html
can be included into another cachable page, but
UserInfo.html is not cachable. The page will display
the current logged in user, or a login form if not
signed in.

Parameters:
page: included tapestry page, with extension omitted.
parameters: parameters passed to the page. (see
ExternalPage)
url: a free style url, can point to any web resources
ssi: using ssi or client side include

(note: one of page and url must be provided)

ssi: generate html with ssi enabled, web server must
have ssi enabled
!--#include virtual=/cgi-bin/counter.pl --

Client side include: use javascript to include the
file, browser must have javascript enabled.

There are two methods to control whether the
IncludeLink use ssi or not.
1. global setting. in hivemodule.xml add the following
config:

2. specific to the SimpleLink, just set the ssi
parameter of the component

Usage:
span jwcid=[EMAIL PROTECTED]:IncludeLink
page=include /

span jwcid=[EMAIL PROTECTED]:IncludeLink
url=include.html ssi=false /

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

IncludeLink.js
Description: 1067502962-IncludeLink.js
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Paul Grimwood/GNS is out of the office.

2006-05-24 Thread Paul Grimwood
I will be out of the office starting  24/05/2006 and will not return until
29/05/2006.

I will respond to your message when I return.



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



Re: Paul Grimwood/GNS is out of the office.

2006-05-24 Thread Nick Westgate

Ok, 4 days * 24 hours = 96 out of office replies.
Can a committer please unsubscribe this guy?

Cheers,
Nick.


Paul Grimwood wrote:

I will be out of the office starting  24/05/2006 and will not return until
29/05/2006.

I will respond to your message when I return.



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




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



Spindle - refererences unknown component on startup

2006-05-24 Thread Daniel M Garland

Hi all

When I load a particular tapestry project in Eclipse, spindle will flag 
a component as an unknown component. If I amend the file, say by adding 
a whitespace somewhere and saving it again, the problem goes away. I 
don't know if this a bug, or if anyone has experienced this before?


I'm on eclipse 3.1 and spindle 3.2.14.

TIA
--
Dan Garland

[EMAIL PROTECTED]
office: +44 (0) 207 803 1947
icq: 120963437
aim: dmgarland1767


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


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



Re: Tapernate - Rollback problem

2006-05-24 Thread Marcus Matèrn

The new version of Tapernate seems to solve this problem completely.

Thank you!




On 5/24/06, James Carman [EMAIL PROTECTED] wrote:

Okay.  I'm seeing it now, too.  Unfortunately, the Spring interceptor throws
an exception when the global transaction is marked as rollbackOnly when it's
participating.  I need to figure out what the best way is to handle this.
By the way, I just got Tapernate to rollback the pojos that are changed
during a rolled back transaction.  This is helping me avoid a LOT of
problems!  More to follow...

James

-Original Message-
From: Marcus Matèrn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 7:24 PM
To: Tapestry users
Subject: Re: Tapernate - Rollback problem

Yes, I'm using spring.transaction.TransactionInterceptor on my DAO. I
am doing getTransactionUtils().setRollbackOnly() outside my DAO in the
same way as you are doing in tapernate-example.

Here is a stack trace. I will get back to you with more logging.
http://pastebin.com/734105


in AbstractPlatformTransactionManager.commit(...)  :

if (!shouldCommitOnGlobalRollbackOnly() 
defStatus.isGlobalRollbackOnly()) {
...
processRollback(defStatus);
throw new UnexpectedRollbackException(
Transaction has been rolled back
because it has been marked as
rollback-only);
}



Thanks
Marcus


On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
 I will take a look at it.  Are you using a transaction interceptor?  Can
you
 paste more of your stack trace?  Can you turn up logging so we can see
 exactly what's going on?


 -Original Message-
 From: Marcus Matèrn [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 23, 2006 6:10 PM
 To: Tapestry users
 Subject: Tapernate - Rollback problem

 I'm trying to use setRollBackOnly() in tapernates TransactionUtils
 which results in:

 UnexpectedRollbackException: Transaction has been rolled back because
 it has been marked as rollback-only

 when the commit runs in:


org.springframework.transaction.support.AbstractPlatformTransactionManager.c
 ommit(AbstractPlatformTransactionManager)

 I am getting the same problem when running tapernate-example.
 Does someone (James?) know a solution to my problem?


 Marcus

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




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



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




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




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



Error trying to implement Custom Exception Page

2006-05-24 Thread Deon Visagie
Hi All

I have implemented a custom engine class extending BaseEngine so that I
could override activateExceptionPage in order to have different error pages
for development and production purposes.

Inside my custom activateExceptionPage function I have the following code:

cycle.activate(CustomException);
renderResponse(cycle);

to supposedly render my error page.

However I am getting a blank html page when an exception does occur. I have
set my application to use my engine class and it works fine if in
activateExceptionPage() I just call super.activateExceptionPage(cycle,
cause).

I get the following error in my application log file:

2006-05-24 09:44:06,734 [http-8080-Processor24] WARN
tapestry.error.RequestExceptionReporter - activateExceptionPage()

Have I missed something?? Does anyone have any suggestions where I am going
wrong here.

Thanks,
Deon


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



RE: Lazy Exception in Contrib:Table

2006-05-24 Thread James Carman
There is an example application downloadable via SVN at:

www.carmanconsulting.com/svn/public/tapernate-example/trunk

Tapernate will be moving very soon to the tapestry-javaforge project.  Your
code shouldn't have to change much once we do.

-Original Message-
From: Shovon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 2:19 AM
To: users@tapestry.apache.org
Subject: RE: Lazy Exception in Contrib:Table


Can you please point me to any documentation? I am currenlty using Spring
for
hibernate with the OpenSessionInView filter. Will it be pretty easy to
migrate?

Thanks ...

Shovon
--
View this message in context:
http://www.nabble.com/Lazy+Exception+in+Contrib%3ATable-t1673050.html#a45361
30
Sent from the Tapestry - User forum at Nabble.com.


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



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



RE: Paul Grimwood/GNS is out of the office.

2006-05-24 Thread James Carman
Can someone please temporarily unsubscribe Mr. Grimwood?  I don't really
want to get a message from him for every message sent to the list.  Jesse,
maybe we can set him up as moderated temporarily?  

Thanks.


-Original Message-
From: Paul Grimwood [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 2:32 AM
To: Tapestry users
Subject: Paul Grimwood/GNS is out of the office.

I will be out of the office starting  24/05/2006 and will not return until
29/05/2006.

I will respond to your message when I return.



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



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



Socket Communication

2006-05-24 Thread Peter Dawn

i am trying to enable socket comm in my web app. the problem is that
once i start a new socket on a port and am waiting for messages, the
page wouldnt load up any further till i have received some message.
what i am trying to do is get it to run in the background while the
app runs as usual in the backgroud. i have put the current code in
PSEngine.
any suggestions.

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



Re: Avoid template parsing

2006-05-24 Thread Norbert Sándor
What about commenting out the javascript (!-- js --), or embedding it 
in a CDATA block (![CDATA[ js ]])?


BR,
Norbi

Mário Lopes wrote:
Is there any tag to avoid a certain block of code from being parsed on 
a .html?


I have some javascript on that file and it complains about things it 
shouldn't.


Regards.

-- Mário

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







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



Re: about validation error messages

2006-05-24 Thread marcopar
that could be a problem but right now Tapestry whines at the @Form line
that is before that.
btw, isn't the % used for localized messages? I want to hard code them for
now. One step at a time :)


In data Tue, 23 May 2006 11:03:28 -0700 (PDT), Carl Pelletier ha scritto:

 A quick look at your code and I see that you missing the % before your 
 message in the validators:
  
 bad:
 input jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
 displayName=Name validators=validators:minLength=15[Sorbole]/
  
 good:
 input jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
 displayName=Name validators=validators:minLength=15[%Sorbole]/
 
  
 Good luck !
  
 Carl Pelletier
 
 - Original Message 
 From: marcopar [EMAIL PROTECTED]
 To: users@tapestry.apache.org
 Sent: Tuesday, May 23, 2006 11:32:48 AM
 Subject: about validation error messages
 
 
 Hi, i'm following the EnjoyWebDevWithTapestry book and i'm trying to
 display error messages coming from the validators. The only difference is
 that i'm trying to do it without using .page files.
 
 - First of all i want to say that i still not had understood clearly the
 notation for passing parameters to the components, for example:
 form jwcid=[EMAIL PROTECTED] success=doSubmit IS GOOD
 and
 form jwcid=[EMAIL PROTECTED] success=listener:doSubmit IS GOOD TOO
 and
 label jwcid=@FieldLabel field=component:nameName/label IS GOOD
 but
 label jwcid=@FieldLabel field=nameName/label IS NOT GOOD
 
 i can't actually understand what is the correct syntax in all cases
 
 - Now with the error messages problem:
 the relevant HTML stuff is:
 form jwcid=[EMAIL PROTECTED] success=doSubmit delegate=beans.delegate
 input jwcid=[EMAIL PROTECTED] value=ognl:pid/
 span jwcid=@Delegator delegate=beans.delegate.firstError/span
 table border=1 cellspacing=1 cellpadding=2
 tbody
 tr
 tdlabel jwcid=@FieldLabel field=component:nameName/label/td
 tdinput jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
 displayName=Name validators=validators:minLength=15[Sorbole]//td
 /tr
 
 the relevant JAVA stuff is:
 @Bean
 public abstract ValidationDelegate getDelegate();
 
 on the @Form line i get the error:
 Error converting value for template parameter delegate: No type converter
 for type org.apache.tapestry.valid.IValidationDelegate is available.
 
 
 
 ciao
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Reading component parameters in ITemplateSourceDelegate.findTemplate()

2006-05-24 Thread Karl
One more thing - when component (extending BaseComponent) without template is 
found I see that my custom ITemplateSourceDelegate.findTemplate() method is 
called. But when Tapestry can't find page template it just throws exception 
without calling this method (page not found in namespace IIRC). According to 
API:

Acts as a delegate to the [EMAIL PROTECTED] 
org.apache.tapestry.services.TemplateSource}, 
providing access to *PAGE* and component templates after the normal search 
mechanisms have failed.

I've seen similar topics (loading templates from DB) many times - if someone 
could post complete example (with Hivemind related configuration) of custom 
ITemplateSourceDelegate implementation, I would be extremaly happy

TIA, Karl


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



RE: about validation error messages

2006-05-24 Thread Schulte Marcus
  form jwcid=[EMAIL PROTECTED] success=doSubmit 
 delegate=beans.delegate

try: delegate=ognl:beans.delegate
or: delegate=bean:delegate

hth, marcus

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



Re: New version of Tapernate...

2006-05-24 Thread Massimo Lusetti

On 5/24/06, James Carman [EMAIL PROTECTED] wrote:


No problem!  Just to be clear about why your situation is working now, I
removed the transaction interceptor from the persistence strategies and the
squeezer.  With transaction-per-request turned on, these features work
just fine.  You can disable transaction-per-request, but I would imagine
that the majority of Tapernate users are using it.  Again, Tapernate is a
work in progress, so I'm trying to figure out the best way to get around
this issue.  I really don't like the fact that the Spring transaction
interceptor throws an exception.  I think I can let it just go by without
rolling back the transaction and without throwing an exception.  I'll try to
figure that out.


Well James i think you mistaken person, but my thanks goes anyway! :)

--
Massimo
http://meridio.blogspot.com

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



RE: New version of Tapernate...

2006-05-24 Thread James Carman
Oops!  I'm sorry, Massimo.  I was up late last night coding that stuff, so I
must have been a bit tired.  I meant to reply to Marcus Matèrn.  He was
having an issue with rollbacks in Tapernate. 

-Original Message-
From: Massimo Lusetti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 9:36 AM
To: Tapestry users
Subject: Re: New version of Tapernate...

On 5/24/06, James Carman [EMAIL PROTECTED] wrote:

 No problem!  Just to be clear about why your situation is working now, I
 removed the transaction interceptor from the persistence strategies and
the
 squeezer.  With transaction-per-request turned on, these features work
 just fine.  You can disable transaction-per-request, but I would imagine
 that the majority of Tapernate users are using it.  Again, Tapernate is a
 work in progress, so I'm trying to figure out the best way to get around
 this issue.  I really don't like the fact that the Spring transaction
 interceptor throws an exception.  I think I can let it just go by without
 rolling back the transaction and without throwing an exception.  I'll try
to
 figure that out.

Well James i think you mistaken person, but my thanks goes anyway! :)

-- 
Massimo
http://meridio.blogspot.com

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




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



Re: Spindle - refererences unknown component on startup

2006-05-24 Thread Francis Amanfo

Hi Dan,

Don't expect a quick response from Geoff on this one anytime soon because
he's currently swiming and enjoying himself in the new warm and nice GWT
swiming pool ;-)

F

On 5/24/06, Daniel M Garland [EMAIL PROTECTED] wrote:


Hi all

When I load a particular tapestry project in Eclipse, spindle will flag
a component as an unknown component. If I amend the file, say by adding
a whitespace somewhere and saving it again, the problem goes away. I
don't know if this a bug, or if anyone has experienced this before?

I'm on eclipse 3.1 and spindle 3.2.14.

TIA
--
Dan Garland

[EMAIL PROTECTED]
office: +44 (0) 207 803 1947
icq: 120963437
aim: dmgarland1767


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

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




Re: about validation error messages

2006-05-24 Thread marcopar
In data Wed, 24 May 2006 15:12:02 +0200, Schulte Marcus ha scritto:

 form jwcid=[EMAIL PROTECTED] success=doSubmit 
 delegate=beans.delegate
 
 try: delegate=ognl:beans.delegate

whoaaa... the ognl way worked. thank you.
i still remain dubious on when i should use ognl:, listener:, delegate: or 
nothing. What does it mean really that keyword: stuff?

form jwcid=[EMAIL PROTECTED] success=listener:doSubmit 
delegate=ognl:beans.delegate
input jwcid=[EMAIL PROTECTED] value=ognl:pid/
span jwcid=@Delegator delegate=ognl:beans.delegate.firstError/span
table border=1 cellspacing=1 cellpadding=2
tbody
tr
tdlabel jwcid=@FieldLabel field=component:nameName/label/td
tdinput jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name 
displayName=Name validators=validators:minLength=15[Sorbole]//td
/tr


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



RE: Is Tapernate production ready ?

2006-05-24 Thread James Carman
It depends.  If you want to use transaction-per-request with
open-session-in-view, then it could work for you now.  If you need
conversation support (something we're working to build in), then it's not
ready for you just yet.  Tapernate can automagically reattach your
persistent page properties (that are Hibernate entities) to the current
session quite easily.  And, the POJO rollback feature will save you some
headaches if you use the TransactionUtils.setRollbackOnly method, which will
be moving to another module (the one that defines all the transaction stuff
in the first place, spring.transaction), since it's really not related to
tapestry at all.

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 9:48 AM
To: Tapestry users
Subject: Is Tapernate production ready ?

I know it's a WIP, still, how confident can i be when choosing to use
Tapernate in a project starting in a few weeks ?
Is there any estimate to when the project will be rock solid, with the
production ready stamp ?

I mainly looking for Jame's opinion and from everyone that has used
Tapernate in a medium/big size project.


Thanks in advance,

Hugo



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



RE: Is Tapernate production ready ?

2006-05-24 Thread James Carman
Oh, and I'd wait on using the squeezer feature until Tapestry 4.1 comes
out.  Tap4.1 will turn the data squeezer into a pipeline rather than just a
regular service.  I have a patch in Jira for this.  I just need to add some
test cases to it.  I guess I could build the logic into Tapernate which
replaces the implementation of the squeezer service so that it's compatible
with 4.0.  But, I think I'd rather wait and say that it only works on 4.1+.



-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 10:02 AM
To: 'Tapestry users'
Subject: RE: Is Tapernate production ready ?

It depends.  If you want to use transaction-per-request with
open-session-in-view, then it could work for you now.  If you need
conversation support (something we're working to build in), then it's not
ready for you just yet.  Tapernate can automagically reattach your
persistent page properties (that are Hibernate entities) to the current
session quite easily.  And, the POJO rollback feature will save you some
headaches if you use the TransactionUtils.setRollbackOnly method, which will
be moving to another module (the one that defines all the transaction stuff
in the first place, spring.transaction), since it's really not related to
tapestry at all.

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 9:48 AM
To: Tapestry users
Subject: Is Tapernate production ready ?

I know it's a WIP, still, how confident can i be when choosing to use
Tapernate in a project starting in a few weeks ?
Is there any estimate to when the project will be rock solid, with the
production ready stamp ?

I mainly looking for Jame's opinion and from everyone that has used
Tapernate in a medium/big size project.


Thanks in advance,

Hugo



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



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



RE: contrib:Table very slow - sorry for insisting

2006-05-24 Thread James Carman
To verify you hunch, why not try replacing your query with a static list
of objects rather than something that's retrieved from the db.  If it's
still slow, then maybe it's something you're doing wrong with the table
classes.  If not, then I'd look into your query again.

-Original Message-
From: Rui Pacheco [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 10:09 AM
To: Tapestry users; Tapestry users
Subject: contrib:Table very slow - sorry for insisting

I am sorry for insisting on this, but its really confusing me.

I am using a normal table, fed from a ResultSet with 30 rows. I've set the
table to show 10 rows at each iteraction.
The problem is, after navigating back and forth on the data 3 or 4 times,
the page becomes unusable. It simply wont load.

I think the problem is not with my connection to the database because I only
do the query when the page is loaded, on my pageBeginRender, so the query is
not called again during the navigation.

I dont have any error messages on my logs, and so its very hard to see whats
happening. Can anyone help me shed some light into this?

-- 
Cumprimentos,
Rui Pacheco



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



Re: contrib:Table very slow - sorry for insisting

2006-05-24 Thread Mike Snare

pageBeginRender gets run every time the page renders -- which happens
every time the user navigates the table.  Check that.

Have you tried the standard System.out.println debugging or -- better
yet -- real debugging?

-Mike

On 5/24/06, Rui Pacheco [EMAIL PROTECTED] wrote:

I am sorry for insisting on this, but its really confusing me.

I am using a normal table, fed from a ResultSet with 30 rows. I've set the
table to show 10 rows at each iteraction.
The problem is, after navigating back and forth on the data 3 or 4 times,
the page becomes unusable. It simply wont load.

I think the problem is not with my connection to the database because I only
do the query when the page is loaded, on my pageBeginRender, so the query is
not called again during the navigation.

I dont have any error messages on my logs, and so its very hard to see whats
happening. Can anyone help me shed some light into this?

--
Cumprimentos,
Rui Pacheco




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



Re: Avoid template parsing

2006-05-24 Thread Jason Dyer
On Wednesday 24 May 2006 06:42, James Carman wrote:
 Can you give an example of the things it shouldn't?

Here's one:

script type=text/javascript
  var unappliedAmount = 0;
  updateTotal((+document.getElementById(startingUnapplied).innerHTML));
//  alert(startingUnapplied = +unappliedAmount);

  function updateTotal(val) {
alert(updateTotal:  + val);
unappliedAmount = (+val);
var o = document.getElementById('toApplyAmount');
o.innerHTML = val;
if (unappliedAmount  0) {
  o.style.color = '#CC';
} else {
  o.style.color = '#00';
}
  }
  function setAmount(o, val) {
var iobj = o.parentNode.nextSibling.nextSibling.firstChild;
iobj.value = Math.min(val, unappliedAmount);
var echange = document.createEvent(HTMLEvents);
echange.initEvent('change', true, false);
iobj.dispatchEvent(echange);
  }
/script

If the '' in 'if (unappliedAmount  0) {' is removed/replaced, no problem, 
but as is, tapestry throws a parsing error because it apparently thinks that 
the '' is the start of a tag...

My solution, btw, was to move the script to an external .js file.

-J




 -Original Message-
 From: Mário Lopes [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 6:35 AM
 To: Tapestry users
 Subject: Avoid template parsing

 Is there any tag to avoid a certain block of code from being parsed on a
 .html?

 I have some javascript on that file and it complains about things it
 shouldn't.

 Regards.

 -- Mário


-- 
Any given program costs more and takes longer. 
-- Murphy's Laws of Computer Programming n°8
--
Jason Dyer
BlueTarp Financial, inc.

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



RE: about validation error messages

2006-05-24 Thread Schulte Marcus
It's a so-called binding-prefix. This has a long and venerable history ;).
In the beginning there were only literal (no prefix), message and ognl
binding.
Back then most interesting bindings were ognl: and people used to access a
lot 
of interesting things via special collections of pages/components
(ognl:beans, ognl:listeners, ognl:components, ...). In Tap 4 shortcuts these
important collections got their own binding prefix.
This made .html slightly more concise. And I believe it's speedier, because
ognl is notoriously not-so-fast. Through the advent of hivemind you can very
easily add your own binding prefixes ...

 -Original Message-
 From: marcopar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 3:54 PM
 To: users@tapestry.apache.org
 Subject: Re: about validation error messages
 
 
 In data Wed, 24 May 2006 15:12:02 +0200, Schulte Marcus ha scritto:
 
  form jwcid=[EMAIL PROTECTED] success=doSubmit 
  delegate=beans.delegate
  
  try: delegate=ognl:beans.delegate
 
 whoaaa... the ognl way worked. thank you.
 i still remain dubious on when i should use ognl:, listener:, 
 delegate: or 
 nothing. What does it mean really that keyword: stuff?
 
 form jwcid=[EMAIL PROTECTED] success=listener:doSubmit 
 delegate=ognl:beans.delegate
 input jwcid=[EMAIL PROTECTED] value=ognl:pid/
 span jwcid=@Delegator 
 delegate=ognl:beans.delegate.firstError/span
 table border=1 cellspacing=1 cellpadding=2
 tbody
 tr
 tdlabel jwcid=@FieldLabel 
 field=component:nameName/label/td
 tdinput jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name 
 displayName=Name 
 validators=validators:minLength=15[Sorbole]//td
 /tr
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Is Tapernate production ready ?

2006-05-24 Thread Schulte Marcus
I've not used it, but I had a look at the code-base. It's so concise and
easy-to-change that you'll certainly be better off starting with it than
starting with something self-made from scratch. That's the real benefit
of open-source, after all (imo).

 -Original Message-
 From: Hugo Palma [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 3:48 PM
 To: Tapestry users
 Subject: Is Tapernate production ready ?
 
 
 I know it's a WIP, still, how confident can i be when choosing to use
 Tapernate in a project starting in a few weeks ?
 Is there any estimate to when the project will be rock solid, with the
 production ready stamp ?
 
 I mainly looking for Jame's opinion and from everyone that has used
 Tapernate in a medium/big size project.
 
 
 Thanks in advance,
 
 Hugo
 

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



Re: Is Tapernate production ready ?

2006-05-24 Thread Hugo Palma

Thanks for the overview
You got me convinced Tapernate is the way to go :o)

On 5/24/06, James Carman [EMAIL PROTECTED] wrote:


Oh, and I'd wait on using the squeezer feature until Tapestry 4.1 comes
out.  Tap4.1 will turn the data squeezer into a pipeline rather than just
a
regular service.  I have a patch in Jira for this.  I just need to add
some
test cases to it.  I guess I could build the logic into Tapernate which
replaces the implementation of the squeezer service so that it's
compatible
with 4.0.  But, I think I'd rather wait and say that it only works on 4.1+
.



-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 10:02 AM
To: 'Tapestry users'
Subject: RE: Is Tapernate production ready ?

It depends.  If you want to use transaction-per-request with
open-session-in-view, then it could work for you now.  If you need
conversation support (something we're working to build in), then it's not
ready for you just yet.  Tapernate can automagically reattach your
persistent page properties (that are Hibernate entities) to the current
session quite easily.  And, the POJO rollback feature will save you some
headaches if you use the TransactionUtils.setRollbackOnly method, which
will
be moving to another module (the one that defines all the transaction
stuff
in the first place, spring.transaction), since it's really not related to
tapestry at all.

-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 9:48 AM
To: Tapestry users
Subject: Is Tapernate production ready ?

I know it's a WIP, still, how confident can i be when choosing to use
Tapernate in a project starting in a few weeks ?
Is there any estimate to when the project will be rock solid, with the
production ready stamp ?

I mainly looking for Jame's opinion and from everyone that has used
Tapernate in a medium/big size project.


Thanks in advance,

Hugo



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



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




Re: Is Tapernate production ready ?

2006-05-24 Thread Hugo Palma

I agree, still, the intention of my post was to get a clearer picture of how
complete Tapernate really was so that i can predict if i'll have to spend
some time extending it, or finding bugs, which in some project it's time i
don't have.

On 5/24/06, Schulte Marcus [EMAIL PROTECTED] wrote:


I've not used it, but I had a look at the code-base. It's so concise and
easy-to-change that you'll certainly be better off starting with it than
starting with something self-made from scratch. That's the real benefit
of open-source, after all (imo).

 -Original Message-
 From: Hugo Palma [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 24, 2006 3:48 PM
 To: Tapestry users
 Subject: Is Tapernate production ready ?


 I know it's a WIP, still, how confident can i be when choosing to use
 Tapernate in a project starting in a few weeks ?
 Is there any estimate to when the project will be rock solid, with the
 production ready stamp ?

 I mainly looking for Jame's opinion and from everyone that has used
 Tapernate in a medium/big size project.


 Thanks in advance,

 Hugo


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




Re: about validation error messages

2006-05-24 Thread marcopar
In data Wed, 24 May 2006 16:54:27 +0200, Schulte Marcus ha scritto:

 It's a so-called binding-prefix. This has a long and venerable history ;).

many thanks!


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



Re: Is Tapernate production ready ?

2006-05-24 Thread Chris Chiappone

I have just moved my application into production using tapernate.  So far so
good nothing unexpected.

On 5/24/06, Hugo Palma [EMAIL PROTECTED] wrote:


I agree, still, the intention of my post was to get a clearer picture of
how
complete Tapernate really was so that i can predict if i'll have to spend
some time extending it, or finding bugs, which in some project it's time i
don't have.

On 5/24/06, Schulte Marcus [EMAIL PROTECTED] wrote:

 I've not used it, but I had a look at the code-base. It's so concise and
 easy-to-change that you'll certainly be better off starting with it than
 starting with something self-made from scratch. That's the real benefit
 of open-source, after all (imo).

  -Original Message-
  From: Hugo Palma [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, May 24, 2006 3:48 PM
  To: Tapestry users
  Subject: Is Tapernate production ready ?
 
 
  I know it's a WIP, still, how confident can i be when choosing to use
  Tapernate in a project starting in a few weeks ?
  Is there any estimate to when the project will be rock solid, with the
  production ready stamp ?
 
  I mainly looking for Jame's opinion and from everyone that has used
  Tapernate in a medium/big size project.
 
 
  Thanks in advance,
 
  Hugo
 

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







--
~chris


Re: new logo for Tapestry

2006-05-24 Thread Brian K. Wallace
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

oh, now - raked isn't at all what I was going for... although it does
have a certain ring to it. :-)

I've got a push going on this week but will be opening it up this
weekend. To be clear - I _will_ be putting up the current as well as the
'unicorn' logo submissions. Some feel we should keep the current -
that's fine. Some like the unicorn logo - that's fine, too. But yes -
there will be defined requirements list for the logo.

Brian

Steve Motola wrote:
 Despite expressing doubts and getting raked over the coals by Brian's sarcasm,
 I'm still +1 for contest.  So who is taking that on?
 
 As an aside, here are some comps (remember, just ideas, not refined) put
 together by a designer.  I like the following the best:
 
   http://www.thelabllc.com/lab/tapestrylogos/tapestry%20ok%2002.pdf
 
 As mentioned, it comes down to what are the criteria and what is the 'brand
 identity'? (I wasn't willing to have a high end person walk me through the
 whole  branding excercise, but that is something we could benefit from.)  Some
 key concepts I wanted to convey:
 
 power
 simplicity
 elegance
 easy
 bringing together
 weaving, thread or other tie in with an actual tapestry
 
 Another one to add to the contest.  Any feedback is appreciated.
 
 Some others he produced, you can see the different directions he went in, most
 of which were just off mark:
 
   http://www.thelabllc.com/lab/tapestrylogos/
 
 
 Some logo links per list so far:
 
 http://eris.apache.org/viewvc/tapestry/tapestry-logo/web/
 
 http://www.takethebanana.co.uk/tapestry/tapestrylogos_v006.jpg
 
 http://www.takethebanana.co.uk/tapestry_logo_ideas.pdf
 
 http://svarog.homeip.net/tapestry-logo/all-proposed-logos-so-far.jpg
 
 http://www.mclink.it/personal/ML4516/tapestry/tapestry_logo.jpg
 
 http://dwiardiirawan.multiply.com/photos/album/5
 
 http://www.agileskills2.org/EWDT/Tapestry.jpg
 
 http://www.agileskills2.org/EWDT/logos.html
 
 
 
 
 Steve Motola
 [EMAIL PROTECTED]
 (310) 422-5521
 
 The Lab, LLC
 http://www.thelabllc.com
 
 Content is for intended recipient only.
 
 
 This message was sent using IMP, the Internet Messaging Program.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)

iD8DBQFEdIHeaCoPKRow/gARAtRuAJ4w3k+tFzb8oGShiY8jbQLasJWSWQCggdS3
L1hazHYrATaiklGWAkuFKH4=
=B5rx
-END PGP SIGNATURE-

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



Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Mark

Hi James,

to you first question - since I am ultimately the one who has to fix 
problems once stuff goes into production - yes, I do want to know the 
internals of things. I am pretty convinced that without that knowledge 
you only get that far.
Sure it's nice to use something that will just magically work, but I 
generally like the feeling of knowing what I do and why, although it 
takes longer that way - that's why I am going the hard route ;-)


About the transaction part: I use Spring's HibernateTemplate, so I am 
thinking that will do it for me, no?

Here is my save method of my DAO:

public class RoomDao extends HibernateDaoSupport implements RoomDaoIF {

   public void save(RoomIF room) {
   getHibernateTemplate().saveOrUpdate(room);
   }
...
}

Generally, I am still planning on using Tapernate or something similar, 
but so far I was under the impression that the one main thing they deal 
with is the lazy-load problem and that they are an alternative to just 
adding a traditional OpenSessionInView filter. Plus some very convenient 
bonus add-ons of course, but those seemed to be secondary. But I might 
be wrong.


That's why I wanted to wait with using Tapernate until I actually run 
into the lazy-load problem. I want so first see what problems come up 
and why.
Once I have figured that out, and  I switch to Tapernate and the 
lazy-load problem goes away, I know that I am using Tapernate the right way.



MARK


James Carman wrote:

Unless you really want to know the guts of what's going on, I'd suggest
using a framework (shameless pluglike tapernate for example/shameless
plug) to get you up and running.  Are you ever committing your transaction?

 

 

 

  _  

From: Mark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 11:16 AM

To: Tapestry users
Subject: Hibernate persisted data never makes it to DB

 


Hi everybody,

I have a problem with my persistence and I am not sure if it has to do with
the often-discussed Hibernate-Tapestry interaction, OpenSessionInView
filters (and me not using any), just my cache settings or something entirely
different altogether.

I am running Tapestry with Spring and Hibernate. Spring has the Hibernate3
session factory configured through a
org.springframework.orm.hibernate3.LocalSessionFactoryBean

I am not using any OpenSessionInView filters yet - intentionally, because I
wanted to run into the lazy-load problems first in order to verify that what
I would then do will actually fix the problem.

Here is the problem that I currently have:
When I start up Tomcat, Hibernate gets properly initiated, loads my
mappings, shows the proper DB connection details (MySQL 5.0) and then waits
for work.
I go to my app's Add page (just basic CRUD for now) to add a new oject.
The Tomcat console shows the proper SQL INSERT statement generated by
Hibernate. However, the database is still empty.
I add another bunch of objects, go back to my list page, and they are all
there. The database table is still empty.

I thought this probably has to do with the fact that Hibernate keeps the
data cached for a while untit it really writes it to the DB. But even after
I shut down Tomcat, the table is empty.
When I start up again, all my records are gone.

I also thought that Tomcat maybe shuts down before Hibernate could persist
everything and that therefore there needs to be a shutdown-listener that
tells Hibernate to flush the cash to the DB. If that was the case, I would
expect that hundreds of beginners made the same mistake as I did and there
should be plenty of info about this on the web, but google came back with
nothing...

Both Tomcat console and Tomcat logs show absolutely no error message -
neither related nor unrelated.

Does anybody know what the problem is?

This is the first time ever that I play with all Hibernate, Tapestry and
Tomcat, so it may very well be a stupid error by a bloody beginner ... :-)

Thanks,

MARK



P.S.: My log4j is configured to write out a log file for hibernate, but I
can not find it. Where would that get created?

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=hibernate.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L -
%m%n

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

  



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



RE: New version of Tapernate...

2006-05-24 Thread James Carman
It's available via svn from my server
http://www.carmanconsulting.com/svn/public/tapernate/trunk

Or, you can download the example application which has all the jars you'll
need already set up for you to use.

http://www.carmanconsulting.com/svn/public/tapernate-example/trunk



-Original Message-
From: Henri Dupre [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 12:18 PM
To: Tapestry users
Subject: Re: New version of Tapernate...

Hi James,


On 5/24/06, James Carman [EMAIL PROTECTED] wrote:


 2.  Taperate now has support for three types of property persistence,
 reattach-merge (used to be called entity), reattach-lock, and
 reattach-update, corresponding to the three different types of reattach
 strategies.  You can choose which one you want to use for your situation
 (reattach-update doesn't support POJO rollback, though since Hibernate
 will
 not give me the previous values for some reason) giving you more
 fine-grained control.

 3.  The spring.hibernate3 module now supports an interceptor pipeline.
 So, you can add as many interceptor filters as you wish, which can do
 various actions (logging, auditing, etc.).  The POJO rollback is
 implemented
 as an interceptor filter.

 Tapernate will move soon.  I finally got the Maven2 build to work, so now
 I
 just have to upload it and set up some docs for it.  For those of you who
 are currently using Tapernate, you don't have to upgrade, but it's
 strongly
 suggested.


Again, where is tapernate located? I searched last time on Howard's site
where he has tapestry-spring and other small projects but I couldn't find
your project.

I'd be interested to know more about your different reattach strategies...
Do you understand in details which one to use when?
To me lock should always be used unless you have duplicate objects, right?
And having duplicate objects is not good in hibernate, if I get it right?

I like the idea of an interceptor pipeline... Would it allow easily to
monitor performance of DAO methods?

Thanks,

Henri.



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



Re: about validation error messages

2006-05-24 Thread marcopar
In data Wed, 24 May 2006 17:09:27 +0200, marcopar ha scritto:

 In data Wed, 24 May 2006 16:54:27 +0200, Schulte Marcus ha scritto:
 
 It's a so-called binding-prefix. This has a long and venerable history ;).
 
 many thanks!
 

i finally found the docs about that... i think i should read them:
http://jakarta.apache.org/tapestry/UsersGuide/bindings.html


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



Re: Spindle - refererences unknown component on startup

2006-05-24 Thread Geoff Longman

:-P

There seems to be an issue in 3.2.14 - I would recommend using 3.2.13
instead until I get a chance to look at it.

Pls check the existing bug about 3.2.14 at sf and add a comment/attach
your log file.

thx.

G

On 5/24/06, Francis Amanfo [EMAIL PROTECTED] wrote:

Hi Dan,

Don't expect a quick response from Geoff on this one anytime soon because
he's currently swiming and enjoying himself in the new warm and nice GWT
swiming pool ;-)

F

On 5/24/06, Daniel M Garland [EMAIL PROTECTED] wrote:

 Hi all

 When I load a particular tapestry project in Eclipse, spindle will flag
 a component as an unknown component. If I amend the file, say by adding
 a whitespace somewhere and saving it again, the problem goes away. I
 don't know if this a bug, or if anyone has experienced this before?

 I'm on eclipse 3.1 and spindle 3.2.14.

 TIA
 --
 Dan Garland
 
 [EMAIL PROTECTED]
 office: +44 (0) 207 803 1947
 icq: 120963437
 aim: dmgarland1767


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __

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







--
The Spindle guy. http://spindle.sf.net
Blog:  http://jroller.com/page/glongman
Other interests:  http://www.squidoo.com/spaceelevator/

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



Re: New version of Tapernate...

2006-05-24 Thread Marcus Matèrn

One question,

If I retrieve an object from my DAO and change something in that
object without doing a session.update(...), the change will be
persisted (to the DB). Is this the way it should work (not having to
do a manual update) ?

public Product getProduct()
{
Product product;

product = getProductAccess().getProduct(getId());

product.setContent(this text will be written to DB);

return product;
}



Marcus




On 5/24/06, Marcus Matèrn [EMAIL PROTECTED] wrote:

Henri,
http://www.carmanconsulting.com/svn/public/


James, I'm also very greatful. Thanks!



On 5/24/06, Henri Dupre [EMAIL PROTECTED] wrote:
 Hi James,


 On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
 
 
  2.  Taperate now has support for three types of property persistence,
  reattach-merge (used to be called entity), reattach-lock, and
  reattach-update, corresponding to the three different types of reattach
  strategies.  You can choose which one you want to use for your situation
  (reattach-update doesn't support POJO rollback, though since Hibernate
  will
  not give me the previous values for some reason) giving you more
  fine-grained control.
 
  3.  The spring.hibernate3 module now supports an interceptor pipeline.
  So, you can add as many interceptor filters as you wish, which can do
  various actions (logging, auditing, etc.).  The POJO rollback is
  implemented
  as an interceptor filter.
 
  Tapernate will move soon.  I finally got the Maven2 build to work, so now
  I
  just have to upload it and set up some docs for it.  For those of you who
  are currently using Tapernate, you don't have to upgrade, but it's
  strongly
  suggested.


 Again, where is tapernate located? I searched last time on Howard's site
 where he has tapestry-spring and other small projects but I couldn't find
 your project.

 I'd be interested to know more about your different reattach strategies...
 Do you understand in details which one to use when?
 To me lock should always be used unless you have duplicate objects, right?
 And having duplicate objects is not good in hibernate, if I get it right?

 I like the idea of an interceptor pipeline... Would it allow easily to
 monitor performance of DAO methods?

 Thanks,

 Henri.





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



RE: New version of Tapernate...

2006-05-24 Thread James Carman
Yes, that's correct.  Using an ORM requires a different mindset.  In fact,
there was a pretty interesting post on TheServerSide.com yesterday about
this very topic:

http://www.theserverside.com/news/thread.tss?thread_id=40581



-Original Message-
From: Marcus Matèrn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 1:28 PM
To: Tapestry users
Subject: Re: New version of Tapernate...

One question,

If I retrieve an object from my DAO and change something in that
object without doing a session.update(...), the change will be
persisted (to the DB). Is this the way it should work (not having to
do a manual update) ?

public Product getProduct()
{
Product product;

product = getProductAccess().getProduct(getId());

product.setContent(this text will be written to DB);

return product;
}



Marcus




On 5/24/06, Marcus Matèrn [EMAIL PROTECTED] wrote:
 Henri,
 http://www.carmanconsulting.com/svn/public/


 James, I'm also very greatful. Thanks!



 On 5/24/06, Henri Dupre [EMAIL PROTECTED] wrote:
  Hi James,
 
 
  On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
  
  
   2.  Taperate now has support for three types of property persistence,
   reattach-merge (used to be called entity), reattach-lock, and
   reattach-update, corresponding to the three different types of
reattach
   strategies.  You can choose which one you want to use for your
situation
   (reattach-update doesn't support POJO rollback, though since Hibernate
   will
   not give me the previous values for some reason) giving you more
   fine-grained control.
  
   3.  The spring.hibernate3 module now supports an interceptor
pipeline.
   So, you can add as many interceptor filters as you wish, which can
do
   various actions (logging, auditing, etc.).  The POJO rollback is
   implemented
   as an interceptor filter.
  
   Tapernate will move soon.  I finally got the Maven2 build to work, so
now
   I
   just have to upload it and set up some docs for it.  For those of you
who
   are currently using Tapernate, you don't have to upgrade, but it's
   strongly
   suggested.
 
 
  Again, where is tapernate located? I searched last time on Howard's site
  where he has tapestry-spring and other small projects but I couldn't
find
  your project.
 
  I'd be interested to know more about your different reattach
strategies...
  Do you understand in details which one to use when?
  To me lock should always be used unless you have duplicate objects,
right?
  And having duplicate objects is not good in hibernate, if I get it
right?
 
  I like the idea of an interceptor pipeline... Would it allow easily to
  monitor performance of DAO methods?
 
  Thanks,
 
  Henri.
 
 


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




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



Tapestry Gurus in Cincinnati?

2006-05-24 Thread James Carman
All,

I am in need of a Tapestry person for a project at my client.  They would be
billing through me.  We need someone who can work on-site here in
Cincinnati, OH.  I hope this isn't inappropriate use of this mailing list.

James



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



Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Lutz Hühnken

my two cents, in three parts...

- about the problem:
well, usually, it kind of works. This may sound silly, but do you
maybe have hbm2ddl.auto set to create-drop ? Or when you check if
something has been stored, are you sure you're checking the right
database? I'm not making fun of you, I have seen these things happen,
to very smart people. One more: are you using the HibernateTemplate
from the right package (there is a hibernate and a hibernate3 package.
Actually, I don't know what happens if you use the wrong one, might
even work).

Anyhow, if nothing is stored and yet you don't get any error message,
I guess you have to recheck your configuration carefully.

- about the log file location
if you just give the filename, it will be created in the current
working directory. If you start Tomcat from the command line, that
will be $CATALINA_HOME/bin. If you start it using the Eclipse plugin,
the location is, well, eclipsed - I have not managed to find it yet.
Anyhow, both variants are not very desirable, so you might consider
providing an absolute path to your logfile (as in
/var/log/hibernate.log). Personally, on my development machine, I just
log to stdout.

- about the wanting to know the internals:
don't get me wrong, no offense intended, and it's really none of my
business, I just can't keep the thought to myself: I think it is a
very valid standpoint, but I also think it is slightly contradictory
in your case. You claim you want to know internals, but yet you use
the Spring HibernateTemplate? Isn't that all about hiding a lot of
internals?

hth,
Lutz

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



Re: Template parser chokes on CDATA?

2006-05-24 Thread Jesse Kuhnert

try :


script type=text/javascript
//!-- ![CDATA[
...
//--]]
/script

?
On 5/24/06, Dan Adams [EMAIL PROTECTED] wrote:


I have a template that has something like:

script type=text/javascript
//![CDATA[
...
//]]
/script

and I get a parse exception:
Tag ![CDATA[ on line 82 contains more than one 'sFlashVars:textalign'
attribute.

Any suggestions? Thanks. :)

--
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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





--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Template parser chokes on CDATA?

2006-05-24 Thread Erik Husby
Or choose the simple way out and put the javascript into a Tapestry  
Script file.


span jwcid=@Script script=MyJavascript.script/
---
Erik Husby
Senior Software Engineer
Broad Institute of MIT and Harvard
Rm. 2192, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: [EMAIL PROTECTED] AIM: ErikAtBroad



What do you think of my horrible testing strategy

2006-05-24 Thread Rob Dennett
I am not sure if a consensus has been reached as to what constitutes the best 
practice for testing a Tapestry app, so I came up with this little strategy 
that is rather inelegant and I would greatly appreciate any improvements that 
you would care to offer.

 

Step one:  Have ant build a fake war using a dummy hivemodule.xml that 
instantiates fake service implementations.

 

Step two:  Have ant launch jetty (I picked jetty because I am under the 
impression that my testing cycle will be faster than if I use Tomcat here)

 

Step three:  Have ant execute HtmlUnit unit tests which test the rendered 
output from my pages.

 

Step four:  Have ant build the real war and deploy it to Tomcat.

 

Step five: Rerun the HtmlUnit tests against the fully integrated application.

 

How dumb is this plan and how would you improve upon it?

 

Thanks for your help,

Rob


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.7.0/346 - Release Date: 5/23/2006
 


Having trouble with creating an ASO

2006-05-24 Thread Dan Adams
I'm trying the following in my hivemind.xml:
contribution configuration-id=tapestry.state.ApplicationObjects
  state-object name=user-data scope=session
invoke-factory
object=instance:org.apache.tapestry.engine.state.NamedClassStateObjectFactory,className=com.ifactory.cms.UserData
 /
  /state-object
/contribution

and I'm getting a NPE in NamedClassStateObjectFactory:

public Object createStateObject()
{
try
{
Class c = _classResolver.findClass(_className);  NPE IS
HERE

return c.newInstance();
}
catch (Exception ex)
{
throw new
ApplicationRuntimeException(StateMessages.unableToInstantiateObject(
_className,
ex), getLocation(), ex);
}
}

But before I was doing it this way with no problem:

contribution configuration-id=tapestry.state.ApplicationObjects
  state-object name=user-data scope=session
invoke-factory object=service:UserDataFactory /
  /state-object  
/contribution

  service-point id=UserDataFactory
interface=org.apache.tapestry.engine.state.StateObjectFactory
invoke-factory service-id=hivemind.BuilderFactory
construct class=UserDataFactory /
/invoke-factory
  /service-point

Where UserDataFactory just extended NamedClassStateObjectFactory and set
className. Any suggestions?

-- 
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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



[OT] hivemind book

2006-05-24 Thread Dan Adams
Any plans for a hivemind book? I, for one, would get it if such a book
existed.

-- 
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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



Re: Template parser chokes on CDATA?

2006-05-24 Thread Paul Cantrell
This is the best thing to do. It buys you some excellent (though very  
poorly documented) functionality for doing substitutions in your JS  
code, too.


In spite of this good solution, it is really unfortunate that the  
Tapestry parser doesn't understand CDATA.


P

On May 24, 2006, at 2:59 PM, Erik Husby wrote:

Or choose the simple way out and put the javascript into a Tapestry  
Script file.


span jwcid=@Script script=MyJavascript.script/
---
Erik Husby
Senior Software Engineer
Broad Institute of MIT and Harvard
Rm. 2192, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: [EMAIL PROTECTED] AIM: ErikAtBroad



_
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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



Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Mark




Thanks for your email, Lutz. Please see below for
comments..


my two cents, in three parts...
  
  
- about the problem:
  
well, usually, it kind of works. This may sound silly, but do you
  
maybe have hbm2ddl.auto set to "create-drop" ? 
Don't know what that does but I'll try it later, once I figure out how
and where to set that...


Or when you check if
  
something has been stored, are you sure you're checking the right
  
database? I'm not making fun of you, I have seen these things happen,
  
to very smart people. One more: are you using the HibernateTemplate
  
from the right package (there is a hibernate and a hibernate3 package.
  
Actually, I don't know what happens if you use the wrong one, might
  
even work).
  

Yes, it's the right DB (only have one) and package.

Anyhow, if nothing is stored and yet you don't get any error message,
  
I guess you have to recheck your configuration carefully.
  
  
- about the log file location
  
if you just give the filename, it will be created in the current
  
working directory. If you start Tomcat from the command line, that
  
will be $CATALINA_HOME/bin. If you start it using the Eclipse plugin,
  
the location is, well, eclipsed - I have not managed to find it yet.
  
Anyhow, both variants are not very desirable, so you might consider
  
providing an absolute path to your logfile (as in
  
/var/log/hibernate.log). Personally, on my development machine, I just
  
log to stdout.
  

I didn't find it in the Tomcat directory (I dont use Eclipse plugins),
but I just switched to console output...
I did notice this during startup:
INFO: Second-level cache: enabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory
createCacheProvider
INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled

So it seems like the only cache is the L2 cache. Could it be stuck
there?


- about the "wanting to know the internals":
  
don't get me wrong, no offense intended, and it's really none of my
  
business, I just can't keep the thought to myself: I think it is a
  
very valid standpoint, but I also think it is slightly contradictory
  
in your case. You claim you want to know internals, but yet you use
  
the Spring HibernateTemplate? Isn't that all about hiding a lot of
  
internals?
  

Well... it's not like I don't want to use the shortcuts, I just want to
know how it would work without them first, so I better know what the
shortcuts do and why... 
But still - if you put it that way, then I guess you're kind of right -
I could first do the whole thing without HibernateTemplates and then
switch to using them once I figured out how thing work without them...
;-)
Guess I was so focused on Spring and Hibernate that I left that step
out :-)

MARK



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



Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Mark
By the way - I am right to assume that what I experience here is not 
normal Hibernate behaviour?


MARK



Lutz Hühnken wrote:

my two cents, in three parts...

- about the problem:
well, usually, it kind of works. This may sound silly, but do you
maybe have hbm2ddl.auto set to create-drop ? Or when you check if
something has been stored, are you sure you're checking the right
database? I'm not making fun of you, I have seen these things happen,
to very smart people. One more: are you using the HibernateTemplate
from the right package (there is a hibernate and a hibernate3 package.
Actually, I don't know what happens if you use the wrong one, might
even work).

Anyhow, if nothing is stored and yet you don't get any error message,
I guess you have to recheck your configuration carefully.

- about the log file location
if you just give the filename, it will be created in the current
working directory. If you start Tomcat from the command line, that
will be $CATALINA_HOME/bin. If you start it using the Eclipse plugin,
the location is, well, eclipsed - I have not managed to find it yet.
Anyhow, both variants are not very desirable, so you might consider
providing an absolute path to your logfile (as in
/var/log/hibernate.log). Personally, on my development machine, I just
log to stdout.

- about the wanting to know the internals:
don't get me wrong, no offense intended, and it's really none of my
business, I just can't keep the thought to myself: I think it is a
very valid standpoint, but I also think it is slightly contradictory
in your case. You claim you want to know internals, but yet you use
the Spring HibernateTemplate? Isn't that all about hiding a lot of
internals?

hth,
Lutz

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







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



Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Daniel Lydiard

Are you using OpenSessionInViewFilter (spring/hibernate)?

The default flushmode is set to NEVER, so you need to override 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

@Override

protected Session getSession(SessionFactory sessionFactory) throws 
DataAccessResourceFailureException {


Session session = super.getSession(sessionFactory);

session.setFlushMode(FlushMode.AUTO);

return session;

}

@Override

protected void closeSession(Session session, SessionFactory sessionFactory) 
{


session.flush();

super.closeSession(session, sessionFactory);

}

- Original Message - 
From: Mark [EMAIL PROTECTED]

To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, May 24, 2006 1:58 PM
Subject: Re: Hibernate persisted data never makes it to DB


By the way - I am right to assume that what I experience here is not 
normal Hibernate behaviour?


MARK



Lutz Hühnken wrote:

my two cents, in three parts...

- about the problem:
well, usually, it kind of works. This may sound silly, but do you
maybe have hbm2ddl.auto set to create-drop ? Or when you check if
something has been stored, are you sure you're checking the right
database? I'm not making fun of you, I have seen these things happen,
to very smart people. One more: are you using the HibernateTemplate
from the right package (there is a hibernate and a hibernate3 package.
Actually, I don't know what happens if you use the wrong one, might
even work).

Anyhow, if nothing is stored and yet you don't get any error message,
I guess you have to recheck your configuration carefully.

- about the log file location
if you just give the filename, it will be created in the current
working directory. If you start Tomcat from the command line, that
will be $CATALINA_HOME/bin. If you start it using the Eclipse plugin,
the location is, well, eclipsed - I have not managed to find it yet.
Anyhow, both variants are not very desirable, so you might consider
providing an absolute path to your logfile (as in
/var/log/hibernate.log). Personally, on my development machine, I just
log to stdout.

- about the wanting to know the internals:
don't get me wrong, no offense intended, and it's really none of my
business, I just can't keep the thought to myself: I think it is a
very valid standpoint, but I also think it is slightly contradictory
in your case. You claim you want to know internals, but yet you use
the Spring HibernateTemplate? Isn't that all about hiding a lot of
internals?

hth,
Lutz

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







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




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



Re: New version of Tapernate...

2006-05-24 Thread Ted Steen

This brings up some questions..

If I work directly on my domain model in the tapestry layer, then
data on forms that do _not_ validate, get persisted. This on the other
hand could be solved by calling setRollBackOnly() if the form didn't
validate.

But if the edited object get passed around on different pages (e.g.
some kind of preview service or multiple step form wizard etc..) the
object gets saved outside of my control.
I want my altered objects to go through my business layer before they
get persisted.

Any suggestions here? I need to settle for a design that gives me
total control of what is persisted and what is not.
Maybe I shouldn't have domain objects in my tapestry layer...?


2006/5/24, James Carman [EMAIL PROTECTED]:

Yes, that's correct.  Using an ORM requires a different mindset.  In fact,
there was a pretty interesting post on TheServerSide.com yesterday about
this very topic:

http://www.theserverside.com/news/thread.tss?thread_id=40581



-Original Message-
From: Marcus Matèrn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 1:28 PM
To: Tapestry users
Subject: Re: New version of Tapernate...

One question,

If I retrieve an object from my DAO and change something in that
object without doing a session.update(...), the change will be
persisted (to the DB). Is this the way it should work (not having to
do a manual update) ?

public Product getProduct()
{
Product product;

product = getProductAccess().getProduct(getId());

product.setContent(this text will be written to DB);

return product;
}



Marcus




On 5/24/06, Marcus Matèrn [EMAIL PROTECTED] wrote:
 Henri,
 http://www.carmanconsulting.com/svn/public/


 James, I'm also very greatful. Thanks!



 On 5/24/06, Henri Dupre [EMAIL PROTECTED] wrote:
  Hi James,
 
 
  On 5/24/06, James Carman [EMAIL PROTECTED] wrote:
  
  
   2.  Taperate now has support for three types of property persistence,
   reattach-merge (used to be called entity), reattach-lock, and
   reattach-update, corresponding to the three different types of
reattach
   strategies.  You can choose which one you want to use for your
situation
   (reattach-update doesn't support POJO rollback, though since Hibernate
   will
   not give me the previous values for some reason) giving you more
   fine-grained control.
  
   3.  The spring.hibernate3 module now supports an interceptor
pipeline.
   So, you can add as many interceptor filters as you wish, which can
do
   various actions (logging, auditing, etc.).  The POJO rollback is
   implemented
   as an interceptor filter.
  
   Tapernate will move soon.  I finally got the Maven2 build to work, so
now
   I
   just have to upload it and set up some docs for it.  For those of you
who
   are currently using Tapernate, you don't have to upgrade, but it's
   strongly
   suggested.
 
 
  Again, where is tapernate located? I searched last time on Howard's site
  where he has tapestry-spring and other small projects but I couldn't
find
  your project.
 
  I'd be interested to know more about your different reattach
strategies...
  Do you understand in details which one to use when?
  To me lock should always be used unless you have duplicate objects,
right?
  And having duplicate objects is not good in hibernate, if I get it
right?
 
  I like the idea of an interceptor pipeline... Would it allow easily to
  monitor performance of DAO methods?
 
  Thanks,
 
  Henri.
 
 


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




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





--
/ted

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



Re: [OT] hivemind book

2006-05-24 Thread Peter Svensson

+Sixteen bushels of wheat

On 5/24/06, Dan Adams [EMAIL PROTECTED] wrote:


Any plans for a hivemind book? I, for one, would get it if such a book
existed.

--
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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




Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Mark

Is there a way to set this in the hibernate.properties?

Right now I do not use OpenSessionInViewFilter...

MARK


Daniel Lydiard wrote:

Are you using OpenSessionInViewFilter (spring/hibernate)?

The default flushmode is set to NEVER, so you need to override 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter

@Override

protected Session getSession(SessionFactory sessionFactory) throws 
DataAccessResourceFailureException {


Session session = super.getSession(sessionFactory);

session.setFlushMode(FlushMode.AUTO);

return session;

}

@Override

protected void closeSession(Session session, SessionFactory 
sessionFactory) {


session.flush();

super.closeSession(session, sessionFactory);

}




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



Re: Hibernate modifying POJOs before rollback...

2006-05-24 Thread Henri Dupre

On 5/23/06, James Carman [EMAIL PROTECTED] wrote:


All,

I am trying to add some code into Tapernate which will rollback the
POJOs
that Hibernate has changed when a transaction is rolled back (the version
or
auto-generated id properties).  I am going to attempt it using an
interceptor.  Has anyone every tried to do this before?  I'm just
wondering
if there is a better approach.



I'm a little confused on the objective... If you load a pojo from your db
through hibernate, then you start a transaction, modify it, roll back the
transaction... if your pojo is proxied, wouldn't hibernate do it
automatically?

Thanks,

Henri.


Re: Hibernate persisted data never makes it to DB

2006-05-24 Thread Mark
Does anybody have a standard plain-vanilla hibernate.conf file for me so 
I can compare it to mine?

Also, I am not using any hibernate.cfg.xml, but I assume I don't have to...

MARK


Lutz Hühnken wrote:

Hm... given that you don't use OpenSessionInViewFilter, I think it is
really pretty optimistic to believe your current problem can be solved
by subclassing it and/or changing its flushing behaviour.



On 5/25/06, Mark [EMAIL PROTECTED] wrote:

Is there a way to set this in the hibernate.properties?

Right now I do not use OpenSessionInViewFilter...

MARK


Daniel Lydiard wrote:
 Are you using OpenSessionInViewFilter (spring/hibernate)?

 The default flushmode is set to NEVER, so you need to override
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
 @Override

 protected Session getSession(SessionFactory sessionFactory) throws
 DataAccessResourceFailureException {

 Session session = super.getSession(sessionFactory);

 session.setFlushMode(FlushMode.AUTO);

 return session;

 }

 @Override

 protected void closeSession(Session session, SessionFactory
 sessionFactory) {

 session.flush();

 super.closeSession(session, sessionFactory);

 }



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




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







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



Help in writing a custom annotation

2006-05-24 Thread Dan Adams
I want to write an annotation that will intercept a method and add a
property to the class. I've started digging around in some of the
annotation sources but it's going pretty slow. Can someone point me at
the right place to look for where to start?

-- 
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


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



Re: Lazy Exception in Contrib:Table

2006-05-24 Thread Shovon

Can anyone shed some light on my original problem? I am upgrading from
Tapestry 3.x to 4.x. I would look at something like Tapernate once the
upgrade is done. 

Thank you for your help.

Shovon

--
View this message in context: 
http://www.nabble.com/Lazy+Exception+in+Contrib%3ATable-t1673050.html#a4554283
Sent from the Tapestry - User forum at Nabble.com.


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