RE: licensing q.

2006-05-25 Thread Kristian Marinkovic
i think this link might help: http://people.apache.org/~cliffs/3party.html regards, kris Norbert Sándor <[EMAIL PROTECTED]

licensing q.

2006-05-25 Thread Norbert Sándor
Hello, My question: with what conditions is it allowed for a GLP licensed software to use the ASL licensed Hivemind and Tapestry? Could you please point me a resource which answers this question? Thanks in advance, Norbi - To

Re: ibasictablemodel help

2006-05-25 Thread Gunna Satria
Hi Amit, Make sure you implement your getCurrentPageRows() method right. Why don't you post the code for the method above, it may help us to figure out the problem. Thanks. Gunna Jun Tsai <[EMAIL PROTECTED]> wrote: 2006/5/3, Amit Gupta : > > hi all, > am working on a ibasicta

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Mark
No, I know that... I'm just playing around with the simple baby steps for now and will add Transactions later on... But thank you for the warning. MARK Konstantin Iignatyev wrote: autocommit is not the best approach. I suggest you to have a glance at the article for inspiration http://www.o

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Konstantin Iignatyev
autocommit is not the best approach. I suggest you to have a glance at the article for inspiration http://www.onjava.com/pub/a/onjava/2005/05/18/swingxactions.html?page=1 Mark wrote: I added "hibernate.connection.autocommit=true" to my hibernate.properties and that fixed it... So I assume Spr

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Mark
I added "hibernate.connection.autocommit=true" to my hibernate.properties and that fixed it... So I assume Spring by default does no Session/TX handling, unless I use the HibernateTransactionManager or do programmatic transaction handling... One last question, to get back to Tapestry - is Spri

How to store the query parameters in a Table component?

2006-05-25 Thread Jun Tsai
hi all, I have a search form and a talbe in a page.When I enter some search text in form and click search button,results was shown in table component.ButWhen I click the second page link.I found the results is all records not by search parameters.How to store the search text in table pages? I

Re: ibasictablemodel help

2006-05-25 Thread Jun Tsai
2006/5/3, Amit Gupta <[EMAIL PROTECTED]>: hi all, am working on a ibasictablemodel implementation. i am executing a query and returning all results into this table. now the table returns all good queries, however the navigation on the table does not work. if i click on any other page link, the s

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Mark
Lutz Hühnken wrote: I asked for applicationContext.xml, and I get a mysql log... well, near enough :) Sorry, I thought what I had found in the mysql log (the "set autocommit=0, no "commit" call and explicit "Rollback" call issued by Hibernate at shutdown) changed things a lot, but maybe not. F

Re: Lazy Exception in Contrib:Table

2006-05-25 Thread Shovon
We may have the same underlying issue. I think the component saves some object in the session, and tries to reuse it instead of reading it from the source each time. I will try your recommendations. Thank you. Shovon -- View this message in context: http://www.nabble.com/Lazy+Exception+in+Co

RE: Hibernate modifying POJOs before rollback...

2006-05-25 Thread James Carman
Thanks, but I've already written it. I will take a look, though. -Original Message- From: Javier Sanchez [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:42 PM To: Tapestry users Subject: Re: Hibernate modifying POJOs before rollback... I think you need a Transactions Manager fo

Re: Hibernate modifying POJOs before rollback...

2006-05-25 Thread Javier Sanchez
I think you need a Transactions Manager for Java Objects such as JBoss Transactions to do that. Look at http://labs.jboss.com/portal/index.html?ctrl:id=page.default.info&project=jbosstm JAVIER SANCHEZ. On 5/23/06, James Carman <[EMAIL PROTECTED]> wrote: All, I am trying to add some code into

Re: What do you think of my horrible testing strategy

2006-05-25 Thread Henri Dupre
Ah that is funny! We have a similar strategy except we don't have any fake service implementation or lower level testing... That is too much work and too much code to write all the jmock stuff. We had some for T3 but we are slowly dropping them. We only have jmock for several small things. We foun

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Henri Dupre
On 5/25/06, Lutz Hühnken <[EMAIL PROTECTED]> wrote: Yes, the Spring HibernateTemplate will take care of that for you. The actual behaviour depends on your transaction management, but let's not get into that for now. So, the save you call will commit the changes to the database. Hibernate then d

Script component placement

2006-05-25 Thread Eric Schneider
Hi, I have a Script component that renders an embedded video player with javascript document.write() statements. Problem I'm having is that the video player renders directly under the tag regardless of where the script component declaration is in the template. Is there a way to change that? T

RE: Tapernate "squeezer" refactored...

2006-05-25 Thread James Carman
I mean that he doesn't have to have Tapernate reattach them for him. He can work with the detached objects and choose when to reattach them manually. But, as you point out, I don't like to have to think about it. It's nice that they're automatically reattached for me. :-) -Original Message-

TablePages Component Question

2006-05-25 Thread Robert Breidecker
I'm working on a table that uses a TablePages component to navigate from page to page within the tables data model. The table is editable, so I am trying to hook validation up onto one of the columns. However, when I click on one of the TaglePages navigation links, it looks like the validation is

Re: Tapernate "squeezer" refactored...

2006-05-25 Thread Jesse Kuhnert
I prefer having my objects re-attached when possible. It's a slipperly slope to go down with hibernate when you have to start thinking about which members have been lazily initialized and which have not. On 5/25/06, James Carman <[EMAIL PROTECTED]> wrote: Well, you don't have to auto-reattach t

RE: Tapernate "squeezer" refactored...

2006-05-25 Thread James Carman
Well, you don't have to auto-reattach them if you don't want. -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:50 PM To: Tapestry users Subject: Re: Tapernate "squeezer" refactored... Absolutely, that would really suck. As I said, it is really r

Re: Tapernate "squeezer" refactored...

2006-05-25 Thread Ted Steen
Absolutely, that would really suck. As I said, it is really redundant. What are your thoughts on the edit-domain-objects-problem? I can see, in your example, that you simply setRollbackOnly(); when something didn't validate, but I can't say that I think it is a clean solution. What do you think o

RE: Tapernate "squeezer" refactored...

2006-05-25 Thread James Carman
Yes, but if you edit a copy of the domain object, then you start to develop the "parallel hierarchy" code smell (assuming you'd create a "value object" for each type of domain object). -Original Message- From: Ted Steen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:29 PM To: T

Fwd: InputValidation

2006-05-25 Thread Pedro Garcia
Hi, I am writing just to tell that I found the solution. That problem was that I was looking at the wrong place. Thanks for the attention Pedro -- Forwarded message -- From: Pedro Garcia Date: May 25, 2006 11:33 AM Subject: InputValidation

Re: Tapernate "squeezer" refactored...

2006-05-25 Thread Ted Steen
Ah, this is a lot cleaner than the previous solution with DataClasses. The URLs are prettier too, nice work! The problem with editing a talked about in another thread could be solved by not working on the domain object, but a copy of the domain object, or individual getters and setters for every

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
It's like that at all. The annotation workers run before the normal enhancement workers (like property setters and such), whoever claims the property first wins. (you can control when your worker is called via hivemind's awesome pipeline ability ). On 5/25/06, Dan Adams <[EMAIL PROTECTED]> wrote:

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
Hmmm. That gives me an idea. I was thinking that the reason I couldn't claim the method is that it would be possible for another annotation like @InjectObject for instance to be used and then I would have to preserve whatever changes were put in there by InjectObject. But since I suppose this annot

Re: new logo for Tapestry - more comps

2006-05-25 Thread Peter Svensson
Ac!!(ref: http://en.wikipedia.org/wiki/Bill_the_Cat) :) This is the first time things really clicked! I like the braids. I can't defend them, and I don't know why, but I like them. A lot. Very good work! Cheers, PS On 5/25/06, Steve Motola <[EMAIL PROTECTED]> wrote: More braid. I'm dig

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Lutz Hühnken
I asked for applicationContext.xml, and I get a mysql log... well, near enough :) From your last mail I understand you have the same problem if you use the mysql command line client. Makes me wonder why you thought the problem had to do with Hibernate in the first place (let alone Tapestry, for

Re: new logo for Tapestry - more comps

2006-05-25 Thread Steve Motola
More braid. I'm diggin the brown and orange. Comments? Color exercise: http://www.thelabllc.com/lab/tapestrylogos/color%20test%20copy.pdf Positioning exercise: http://www.thelabllc.com/lab/tapestrylogos/position%20test.pdf Ack: http://www.thelabllc.com/lab/tapestrylogos/ ..

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
You should be able to do this fine using the existing annotation page logic. In your annotation stuff for handling your specific type "claim" the property specified using EnhancementOperation and then define a method body that does the caching logic you describe and you'll be all set. (there are

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
Thank you for the time you guys have already spent on this, but if you have any other comments I would really appreciate them. Is there just no way to do this given the current tapestry annotation class structure? On Thu, 2006-05-25 at 10:51 -0400, Dan Adams wrote: > Well, I've been digging around

Re: Best directory stucture

2006-05-25 Thread Carl Pelletier
Thank you very much, that what I looking for. Sorry to ask a stupid question like that, I scan the Documentation many times, but english is not my natural language and I guess I just never read it like it should be. Thanks again! Carl Pelletier - Original Message From: Erik Husby <[EM

RE: Tapernate "squeezer" refactored...

2006-05-25 Thread James Carman
Oh, this feature, the squeezer pipeline has been submitted as a patch for Tapestry 4.1. So, in the future, I'll probably just re-implement my filter using the Tapestry 4.1 API as opposed to the Tapernate API. Either way, there should be no impact to client code (unless you write your own filter).

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Mark
So... - have you checked the rest of your code? Are you sure this piece of code is actually called? Step through it or add debugging output. I don't know how else I would get the Hibernate log output: "Hibernate: insert into room (roomType, roomNumber, smoking, active) values (?, ?, ?, ?)"

Tapernate "squeezer" refactored...

2006-05-25 Thread James Carman
All, Tapernate's entity "squeezer" has been refactored. No longer do you need to tell it what your "data class" (the common entity superclass/interface) is. Tapernate turns the data squeezer service into a pipeline and puts its EntitySqueezerFilter into the pipeline. If it can't squeeze the obje

Overriding Default Radio Button Renderer

2006-05-25 Thread Jeff Parsons
I've extended RadioPropertySelectionRenderer and overridden the appropriate methods. I'm brand new to Tapestry and I'm stuck trying to figure out how to tell Tapestry to use my new Renderer class. Any help would be appreciated. Thanks

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
True. But, on the one hand it would be relatively easy to have an aspect put the code in wherever the annotation is used. But on the other hand: - it should also be easy to add new annotations using hivemind - i would like throw any exceptions about mis-use of the annotation when the class is const

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
Well, I've been digging around in all the annotation source for 4.0.1 and I seem to be stuck. It seems like there isn't any way to get to the javassist methods or to do what I'm trying to do. I've looked at the hivemind config and how to add the annotation. My only problem is how to actually get th

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
Don't get me wrong, I understand your reluctance to introduce AspectJ into your build environment. But, this is a perfect case for AspectJ, IMHO. -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:39 AM To: Tapestry users Subject: RE: Help in wri

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
Ah well...The annotations stuff in tapestry is pretty easy to follow (just added a lot of logic in this area myself). It would be best for you to refer to the tapestry annotations source, but the biggest thing is to also remember that annotations are done almost the same way that the "enhancement"

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
I thought about using it but I thought that putting in an annotation seemed like a natural course of action. Plus, using aspecj would put some constraints on the project build environment. On Thu, 2006-05-25 at 10:02 -0400, James Carman wrote: > Have you looked into AspectJ? > > -Original Mes

Re: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
You are right about this. I hadn't realized you could do that with parameters. But that doesn't really apply to my problem since @Once won't normally be used on parameters. It came up because in some situations you have a method that does a hibernate query and returns a list of objects and you'd li

Re: Best directory stucture

2006-05-25 Thread Erik Husby
In Tapestry 4, you can put your pages (the .html and .page files) in subdirectories that live under WEB-INF. That means that you address your pages like "contact/home" or "contact/gestionContacts/contactList" So your directories would be WEB-INF/contact and WEB-INF/contact/ gestionContacts

InputValidation

2006-05-25 Thread Pedro Garcia
Hi, I'm using Tapestry 4 and I am having a hard time with number inputvalidation with TextField component. Can anyone tell me how to check if the value is an Integer and how to check if the value is a Float and how to check if the value is a Double. and how to set the decimal separator to be a ',

Re: Best directory stucture

2006-05-25 Thread corsair
Hello! Try to read UsersGuide http://jakarta.apache.org/tapestry/UsersGuide/template.html#template.locations http://jakarta.apache.org/tapestry/UsersGuide/page-class.html http://jakarta.apache.org/tapestry/UsersGuide/configuration.html

Re: Help in writing a custom annotation

2006-05-25 Thread Jesse Kuhnert
Doesn't tapestry support marking a parameter as cache-able already? On 5/25/06, James Carman <[EMAIL PROTECTED]> wrote: Have you looked into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help

Re: Best directory stucture

2006-05-25 Thread Rui Pacheco
I may be wrong, but I think you can put your .page files under WEB-INF and your .html under the context. That way you'll have them separated. On 5/25/06, Carl Pelletier <[EMAIL PROTECTED]> wrote: Hi everyone, I`m starting a project with Tapestry 4.0 and was wondering if someone have recommendat

Best directory stucture

2006-05-25 Thread Carl Pelletier
Hi everyone, I`m starting a project with Tapestry 4.0 and was wondering if someone have recommendation on how to structure my project. I don`t really understand how Tapestry work with directory. It`s like everything is in the same folder. For us, it`s doesnt fit to have juste one directory with

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
Have you looked into AspectJ? -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 10:00 AM To: Tapestry users Subject: RE: Help in writing a custom annotation Okay, my annotation is called @Once and if put on accessor will make sure that the method i

RE: Help in writing a custom annotation

2006-05-25 Thread Dan Adams
Okay, my annotation is called @Once and if put on accessor will make sure that the method is only executed once and then the return value is cached. Any further calls to the method will just return the saved value. I've got pretty far but I think I'm stuck as I want to do something that I could do

RE: Help in writing a custom annotation

2006-05-25 Thread James Carman
I'd look at the one that injects messages, or beans, or even the one that I wrote for "autowiring" (available in SVN on the 4.1 branch). -Original Message- From: Dan Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 10:44 PM To: Tapestry users Subject: Help in writing a custom

RE: [OT] hivemind book

2006-05-25 Thread James Carman
I have spoken with a publishing company about putting together a HiveMind book in the past. I think I'll probably wait until we get the 2.0 version of HiveMind out the door before writing it, though. And, as someone else said, an Eclipse plugin for HiveMind would be really cool too. Unfortunately

Re: [OT] hivemind book

2006-05-25 Thread Hugo Palma
There's an effort to provide a hivemind descriptor editor here http://sourceforge.net/projects/hivemind-editor. In my opinion, i really don't think that a Hivemind book is necessary. I find that Jame's excellent article on TSS does a great job as a first introduction. Once you get all the concept

Re: Lazy Exception in Contrib:Table

2006-05-25 Thread Jérôme BERNARD
I'm not sure I'm talking about the same problem as you have, but I found a way to solve pagination problems with LazyExceptions (basically the first page was ok, but not the others -- don't know why). What I did was to use a different source for the table: instead of giving the whole list returne

Re: Hibernate persisted data never makes it to DB

2006-05-25 Thread Lutz Hühnken
Yes, the Spring HibernateTemplate will take care of that for you. The actual behaviour depends on your transaction management, but let's not get into that for now. So, the save you call will commit the changes to the database. Hibernate then disconnects the session, I believe, anyhow, there is no