RE: accessing state objects from EngineService

2006-10-09 Thread Schulte Marcus
Do something like this. c'tor of your service: public ExcelService( ApplicationStateManager asoMgr ) { this.asoMgr = asoMgr; } Anywhere in your service: asoMgr.get("whateverAsoName") hth, Marcus > -Original Message- > From: Marcus Irven [mailto:[EMAIL PROTECTED] > S

RE: tapernate NonUniqueObjectException

2006-09-26 Thread Schulte Marcus
Can't you just check in your login listener whether the user already has a valid session? Wouldn't that help? Generally, the problem seems to be, that your code executes before the page-setup involving the merge-back of properties takes place. Do you load your objects in a normal listener? Or in Pa

[Honeycomb] new release

2006-09-18 Thread Schulte Marcus
I've put together a new release of honeycomb ( http://honeycomb.javaforge.com/index.html ), tapestry hibernate integration with session-per-conversation support). Biggest changes are: * re-structuring into 4 libraries * replaced the template

RE: Tapestry with Hibernate vs JSF with Hibernate (Object binding question)

2006-08-21 Thread Schulte Marcus
Maybe http://howardlewisship.com/tapestry-javaforge/tapestry-flash/ is of help here, ... > -Original Message- > From: Detlef Schulze [mailto:[EMAIL PROTECTED] > Sent: Monday, August 21, 2006 2:19 PM > To: Tapestry users > Subject: RE: Tapestry with Hibernate vs JSF with Hibernate > (Obj

RE: Tapestry 4.1....

2006-08-15 Thread Schulte Marcus
Hi Feeling a bit adventurous yesterday, I threw the latest 4.1.1 SNAPSHOT at one of my 4.0 apps. I had only 2 hrs or so to spend on this, so I've surely missed something. What I found was: - API's stable - as promised, good - number validation doesn't work. I spent a fair amount of time to get

RE: Scheduling tasks

2006-07-27 Thread Schulte Marcus
> > Could anyone post some code showing how to implement this? yes, of course: first, the usage example: package ch.bmw.jobscheduler.test; __ import java.util.Date; import junit.framework.TestCase; import org.apache.hivemi

Re: Scheduling tasks

2006-07-18 Thread Schulte Marcus
Using Quartz is not very difficult. I did it in the following steps - write a HivemindServiceJobFactory which takes HiveMind-Services implementing "Job" or "Runnable" and wrap them into an adapter taking care of calling setupThread and cleanupThread on the registry. The service-id is taken from

RE: Display explorer like file structure

2006-07-02 Thread Schulte Marcus
Tacos' tree component should work fine here. I've used it and liked it very much (it's a lot better than the contrib:tree). You can get it at tacos.sourceforge.net Have a look at the example, it should get you started quickly. > -Original Message- > From: Peter Dawn [mailto:[EMAIL PROTECT

RE: Inheritance (asset/bean)

2006-06-29 Thread Schulte Marcus
What you can do, is factor out part of the base-class spec into a separate file and include it as an external xml-entity in all specs of your hierarchy. Downside of this: this works only in T3, it's broken in T4 - and Spindle doesn't get it right. Marcus > -Original Message- > From: Gent

RE: [OT] Tapernate and Optimistic Locking

2006-06-19 Thread Schulte Marcus
You could use session-per-conversation (object's stay attached to the session, but the session is detached from the DB-connection at the end of each request). It's described here: http://hibernate.org/42.html . A tapestry-implementation comes with honeycomb: http://honeycomb.javaforge.com . > --

RE: Setting selected values on Palette

2006-06-15 Thread Schulte Marcus
electedObj ) returns > true when > > > it > > should. > > > > What do you mean? The object that I pass to the selected parameter > > should be the same as the model? But the documentation mentions a > > List. Should I pass a List of models, then? > &

RE: Setting selected values on Palette

2006-06-14 Thread Schulte Marcus
You can use any collection of Model-objects (the objects which are returned by getOption(int) from your PropertySelectionModel). Just be sure that modelObj.equals( selectedObj ) returns true when it should. Marcus > -Original Message- > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > Sent

RE: Clarification about ASOs with scope="application"

2006-06-13 Thread Schulte Marcus
That's the way it is. It'll be put in some Map, of which only one instance per VM exists. > -Original Message- > From: Alan Chaney [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 13, 2006 4:41 PM > To: Tapestry users > Subject: Clarification about ASOs with scope="application" > > Hi >

RE: honeycomb does not commit on redirect

2006-06-13 Thread Schulte Marcus
Hi Valdemaras, That looks like bug to me. I think the way to go is catching alle exceptions-that-are-not-really-exceptions and commit in that case. I'll test it and put it in the repo, then. It's not looking like great code, but the Tapestry way of redirecting per exception is not so beautiful ei

RE: DirectLink listening to session state method

2006-06-06 Thread Schulte Marcus
Probably you need a getter on your ASO returning an IActionListener-instance which calls your method. Then you can say with : class YourStateObjectClass { IActionListener getSomeMethod() { return new IActionListener() { ... } } > -Original Message- > From: Will

RE: List loaded twice from DB

2006-05-31 Thread Schulte Marcus
the pool it may be outdated by the time the page is used the next time. Thanks, MARK Schulte Marcus wrote: do you have caching disabled? I suspect the following? Tap inits your prop 1. whenever your page is built from the spec/template 2. whenever it's put back into the po

RE: Cleanup when the session expires

2006-05-31 Thread Schulte Marcus
you can use javax.servlet.http.HttpSessionAttributeListener instead. You have to register the class in web.xml hth, Marcus > -Original Message- > From: Christian Surlykke [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 30, 2006 10:52 AM > To: tapestry-user@jakarta.apache.org > Subject: Clea

RE: Locale switching question

2006-05-31 Thread Schulte Marcus
Overriding the engine's setupForRequest does it for me: class YourEngine extends BaseEngine { protected void setupForRequest( RequestContext context ) { super.setupForRequest( context ); String lang = context.getParameter("lang"); if (lang!=null) setLocale( ne

RE: List loaded twice from DB

2006-05-30 Thread Schulte Marcus
do you have caching disabled? I suspect the following? Tap inits your prop 1. whenever your page is built from the spec/template 2. whenever it's put back into the pool after use. With caching disabled 1. and 2. will occur in each request-cycle. With production settings, 1 *and* 2 will

RE: Retrieve the old value of a field in the form listener

2006-05-29 Thread Schulte Marcus
imo each form-component should have a paramter called "changeListener" which does the obvious - like in desktop gui-programming. I proposed this some time ago with no echo ... So, those who would like that, should scream "DO IT" now :-) > -Original Message- > From: Stephane Decleire [mail

RE: Retrieve the old value of a field in the form listener

2006-05-29 Thread Schulte Marcus
Here you go, it's for Tap4 btw: Usage example: value is the property to watch, listener will be called at the end of the rewind cycle, if the prop did change. ___ file Watch.java /* * Erstellt am 23.05.2005 von schultma * copyright, 2005 BMW (Schweiz) AG * * $

RE: Retrieve the old value of a field in the form listener

2006-05-29 Thread Schulte Marcus
I've written a small component called @Watch for this. It calls a given listener whenever a value is changed. It uses a hidden field to submit the old value along with the new one. If you're interested I could post the code. > -Original Message- > From: Stephane Decleire [mailto:[EMAIL PRO

RE: contrib:Table and utf-8 characters

2006-05-29 Thread Schulte Marcus
I think .properties files are always iso-latin-8. Try that encoding, I think it should be fine for all west-european characters (I'm using german & french successfully) You can however use explicit unicode ordinals like this: \u20AC (the Euro-character) > -Original Message- > From: Rui P

File-Inclusion in Tap-3 Specifications (.page, .jwc)

2006-05-29 Thread Schulte Marcus
Hi all, when I had to rework an older (Tap3, annotation-free) application I stumbled over repetitive declaration of delegate & validator beans and base-class properties. My solution, which I wanted to share, is this: 1. put the duplicate xml-code into a separate file. 2. refer to that file fr

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

RE: about validation error messages

2006-05-24 Thread Schulte Marcus
sly 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

RE: about validation error messages

2006-05-24 Thread Schulte Marcus
> > 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: Script problems

2006-05-23 Thread Schulte Marcus
Putting it in WEB-INF/ and refering to it as should work fine. I had a very "funny" problem recently, where Tomcat could not find a resource in WEB-INF when the app was defined by a in server.xml. Moving the into its own file helped in that instance - but I'm just guessing ... > -Original

RE: new logo for Tapestry

2006-05-18 Thread Schulte Marcus
Actually, I think the spam assassin logo does a great job in referencing Apache without just copy-pasting the feather - and thus without sacrificing the integrity of the design. > -Original Message- > From: Paul Cantrell [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 18, 2006 10:44 PM > T

RE: List blocking files

2006-05-18 Thread Schulte Marcus
I have a 30 MB mailbox limit - and customers who actually send word files/printscreens around. So: -1 > -Original Message- > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 18, 2006 1:04 PM > To: Tapestry users > Subject: Re: List blocking files > > > +1 > > On 5/18/

RE: new logo for Tapestry (just my opinion and my other idea pic, don't mad OK)

2006-05-17 Thread Schulte Marcus
if there will be a contest, you've the chance to win it. I like it! > -Original Message- > From: Dwi Ardi Irawan [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 18, 2006 7:20 AM > To: Tapestry users > Subject: Re: new logo for Tapestry (just my opinion and my other idea > pic, don't mad O

RE: ServletContext

2006-05-17 Thread Schulte Marcus
gt; > > >> > > >> -Original Message- > > >> From: Rui Pacheco [mailto:[EMAIL PROTECTED] > > >> Sent: Wednesday, May 17, 2006 10:15 AM > > >> To: Tapestry users > > >> Subject: Re: ServletContext > > >> >

RE: ServletContext

2006-05-17 Thread Schulte Marcus
> -Original Message- > > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, May 17, 2006 6:20 AM > > To: Tapestry users > > Subject: Re: ServletContext > > > > For the sake of simplicity, lets assume I'm also using dbcp > > &

RE: ServletContext

2006-05-17 Thread Schulte Marcus
t; DataSource and retrieve that from the registry, and then go > on. Is that it? > > Well, can you or someone else provide an example of the > implementation? :) > > On 5/17/06, Schulte Marcus <[EMAIL PROTECTED]> wrote: > > > > This

RE: [tacos] Problems with DirtyFormWarning and @LinkSubmit

2006-05-17 Thread Schulte Marcus
> I figured that would be due to @LinkSubmit setting it's name > on a hidden field to indicate the link that submitted the form. > > So I added a script to my save-button component that does > something like > >document.forms['${formName}']._linkSubmit.value = '${saveId}'; > That was nons

RE: perform Post on external link

2006-05-17 Thread Schulte Marcus
Would work? The input's in the form would then also have to be @Any's ... > -Original Message- > From: Craig Hamilton [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 17, 2006 3:15 AM > To: 'Tapestry users' > Subject: perform Post on external link > > > I have a shopping cart, and on

[tacos] Problems with DirtyFormWarning and @LinkSubmit

2006-05-16 Thread Schulte Marcus
A UI-Design change I had to turn @Submit into @LinkSubmit. After that, I got warnings form @tacos:DirtyFormWarning when the user hits the save-button. I figured that would be due to @LinkSubmit setting it's name on a hidden field to indicate the link that submitted the form. So I added a script

RE: ServletContext

2006-05-16 Thread Schulte Marcus
This works for apache dbcp ... I hope it's similar for proxool _ Default Config für Testumgebung > -Original Message- > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > Sent

RE: I do not like the new tapestry logo (constructive criticism)

2006-05-16 Thread Schulte Marcus
ha, now I feel compelled to throw in my wisdom ;) I'd try to make something which contains the Apache-feather. Lots of other apache projects do it. And the Apache-Connection IS important for Tapestry. I know I would have had a much harder time selling tapestry in my corp if it wasn't under the a

RE: Strange situation with ognl

2006-05-12 Thread Schulte Marcus
can you post the exception-stack you're getting? > -Original Message- > From: Rui Pacheco [mailto:[EMAIL PROTECTED] > Sent: Friday, May 12, 2006 12:51 PM > To: Tapestry users > Subject: Strange situation with ognl > > > Hi all > > I have a class extending BasePage. That class declares a

RE: 3.x docs?

2006-05-10 Thread Schulte Marcus
look there: http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/index.html > -Original Message- > From: Mark Stang [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 10, 2006 5:26 PM > To: Tapestry users; Tapestry users > Subject: 3.x docs? > > > They were here... > > http://j

RE: ServletRequestServicerFilter not getting exceptions?

2006-05-10 Thread Schulte Marcus
> I'm curious if you've encountered any reason to override the > other services, > besides direct? For example, we use ExternalLink quite a > bit, although > AFAIK, no data actually gets updated from those pages, they > are still wrapped > in a transaction. No, not yet. But I also felt a ti

RE: ServletRequestServicerFilter not getting exceptions?

2006-05-09 Thread Schulte Marcus
Tapernate relies on spring's ta-demarcation stuff to mark ta's for rollback. So, if something happens above your dao-layer, spring can't know it. I override DirectService to this end, see below. Something similar should also work with tapernate-style SessionFactory instead of "svc". public class

RE: Slightly OT: Public Tapestry based site and service is seekin g users, testers, and contributers

2006-05-08 Thread Schulte Marcus
Looks really nice - I hope it'll catch on! > -Original Message- > From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 11:18 PM > To: TapestryUsers > Subject: Slightly OT: Public Tapestry based site and service > is seeking > users, testers, and contributers >

RE: Concatenating strings in OGNL

2006-05-08 Thread Schulte Marcus
That should work just fine - which error do you get? > -Original Message- > From: Mark [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 09, 2006 8:16 AM > To: Tapestry users > Subject: Concatenating strings in OGNL > > > Hi, > > how can I concatenate strings using OGNL? > > What I would