Re: assets in src/main/resources (classpath?) vs. src/main/webapp (context?)

2009-02-26 Thread manuel aldana
Your understanding is correct, root path of context is src/main/webapp as root context-folder and for classpath src/main/resources. Generally I tend to put js libraries or page wide css as context assets (src/main/webapp/js or src/main/webapp/css) and very specific artifacts (e.g. related to o

Re: Providing service mocks for integration tests

2009-02-26 Thread Hugo Palma
I was just going to try out the alias/alias override but stopped before i got to that. How do i tell my application to use a different application module when testing ? On Tue, Feb 24, 2009 at 4:04 AM, Robert Zeigler wrote: > One thing I've done is to create a test module that @SubModule's the >

Re: Providing service mocks for integration tests

2009-02-26 Thread Hugo Palma
PageTester doesn't actually run a servlet container. It sets up the runtime environment for you so that you can render a page and make assertions on the rendered DOM. It's much faster than AbstractIntegrationTestSuite but it doesn't provide as much flexibility. On Wed, Feb 25, 2009 at 1:37 PM, Ang

Re: T5: Thread safe binding

2009-02-26 Thread Inge Solvoll
Even though I've tried what you suggested, Thiago, your question really pointed me in the right direction, both the custom binding and the aliasing of the ComponentMessagesSource work now! :) I made a couple of mistakes along the way: 1. I assumed the Request service is per-thread. It obviously i

Re: T5: Thread safe binding

2009-02-26 Thread Inge Solvoll
I tried similar things. But now you set me up with something that I think is a good idea :) I'll try it and report back what I did and whether I succeeded. In spite of all the struggling, I'm really beginning to see the fun in this IOC business :) On Thu, Feb 26, 2009 at 9:14 PM, Thiago H. de Pau

Re: T5: Thread safe binding

2009-02-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Feb 2009 16:57:08 -0300, Inge Solvoll escreveu: The problem is, I can't seem to find a way to make my binding or bindingfactory act as a per-thread service. Is there any way to do that? What about your binding or binding factory using a per-thread service that pulls the message

Re: T5: Thread safe binding

2009-02-26 Thread Inge Solvoll
On the same note, I'm also trying to do similar things with other localization features of T5, to connect it to my company's DB based language system which enables each of our customers to have their own specific message catalogue stored in our DB. I want to decorate ComponentMessagesSource, same

T5: Thread safe binding

2009-02-26 Thread Inge Solvoll
Hi! I'm trying to make a Binding that retrieves a localized text from the database with information from the currently logged in user as parameters, like this. ${m:my.localized.text.from.db} The problem is, I can't seem to find a way to make my binding or bindingfactory act as a per-thread servi

Re: Euro symbol with ISO-8859-1 output

2009-02-26 Thread Markus Joschko
ISO-8859-1 does not contain the € symbol. You might want to switch to ISO-8859-15 or UTF-8 If this is not possible you can give the € entity a try. More information around the euro symbol can be found here: http://www.cs.tut.fi/~jkorpela/html/euro.html Regards, Markus On Thu, Feb 26, 2009 at 6

Re: Hi Lo tutorial, HIbernate cfg errors

2009-02-26 Thread tfecw
Excellent. I cleaned up dependencies list and everything is good to go now. Thanks! Thiago H. de Paula Figueiredo wrote: > > Try removing the tapestry-hibernate dependency from your application > pom.xml. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and

Re: Hi Lo tutorial, HIbernate cfg errors

2009-02-26 Thread Thiago H. de Paula Figueiredo
Try removing the tapestry-hibernate dependency from your application pom.xml. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail

Hi Lo tutorial, HIbernate cfg errors

2009-02-26 Thread tfecw
Im' trying to get through the Hi Lo game and I'm having a lot more difficulties than I should be having (i tried tomcat 5 for a day before moving over to jetty) I'm at the part of the tutorial where you guess the number by clicking on links. for some reason this line of code: ${guess}

Re: T5: possible to combine prototype and scriptaculous js-files?

2009-02-26 Thread Howard Lewis Ship
I have plans to automatically combine and minimize JavaScript, but I don't know if it will make it into 5.1. On the other hand, the use of far-future expires header (and a version number in the URL) means that the client will aggresively cache the javascript, so there's just a first-page cost. On

Forms, Loops and Checkboxes, Please Help

2009-02-26 Thread Daniel Jones
Hi Everyone, I have an application state object which contains a list of objects which in turn contain a list of boolean options that I want to set using checkboxes. I am trying to dynamically create Checkboxes in a form using a loop and I have ran into a few problems (concerning the loop). As

Forms, Loops and Checkboxes, Please Help

2009-02-26 Thread Daniel Jones
-- View this message in context: http://www.nabble.com/Forms%2C-Loops-and-Checkboxes%2C-Please-Help-tp9137p9137.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-un

T5: possible to combine prototype and scriptaculous js-files?

2009-02-26 Thread Britske
is there a way to configure tapestry to use a custom js-file including all the prototype and scriptaculous files I need? Currently my setup uses 7 js-files, 6 of which are added by tapestry. From a performance standpoint this can be improved. Thanks, Britske -- View this message in context:

Euro symbol with ISO-8859-1 output

2009-02-26 Thread Reinhold Gruber
Hi! MarkupWriter replaces € with an ? if ISO-8859-1 HTML output is configured via configuration.add(SymbolConstants.CHARSET, "ISO-8859-1"); public class Test { @BeginRender public void render(MarkupWriter writer) { String money = NumberFormat.getCurrencyInstan

T5: accessing assets/files using apache httpd instead of tomcat

2009-02-26 Thread Britske
for speed reasons, etc. I would like apache httpd to handle css,js and images instead of tomcat Of course apache httpd doesn't know of the resources bundled in the tapestry webapp. For those of you who are using tapestry with tomcat and a apache httpd frontend: I'm interested in knowing what kin

Re: Trouble with Transactions in tapestry-hibernate

2009-02-26 Thread Ville Virtanen
Check MySQL documentation, MyISAM tables DO NOT support TRANSACTIONS OR FOREIGN KEYS... (the correct one is innodb, use configuration.setProperty(Environment.DIALECT, MySQL5InnoDBDialect.class.getName()); to force Hibernate to use inno db tables when creating database...) - Ville Kejo Starost

Re: Trouble with Transactions in tapestry-hibernate

2009-02-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Feb 2009 04:34:28 -0300, Kejo Starosta escreveu: I've a problem with the rollback of transactions on tapestry-hibernate. I use Typestry 5.0.18 with MySql on the backend. Are your sure you're not using MyISAM tables? They don't have transaction support . . . -- Thiago H. de Pa

Re: T5: Quickstart archetype not working

2009-02-26 Thread Christian Edward Gruber
No problem, I know there are a lot of problems from Maven that have been corrected, but persist in people's memory and instinct. It'll take some time to undo the damage of some of the less wise decisions early in the M2 lifecyce. As to your specific issue, I would look for anythi

Re: Trouble with Transactions in tapestry-hibernate

2009-02-26 Thread Kristian Marinkovic
Tapestry 5 will open a new Transaction on every request. If you do not call commit explicitly Tapestry will rollback the Transaction after the request. i'd guess it has something to do with your mysql settings. have you tried using hsqldb? does your problem still occur? g, kris Kejo Starost

Trouble with Transactions in tapestry-hibernate

2009-02-26 Thread Kejo Starosta
Hi! I've a problem with the rollback of transactions on tapestry-hibernate. I use Typestry 5.0.18 with MySql on the backend. If make 80 Inserts and I try to rollback the transaction with HibernateSessionManager.abort() nothing happens, everything is committed and stored into the database. Yeste

Re: T5: Quickstart archetype not working

2009-02-26 Thread Massimo Lusetti
On Thu, Feb 26, 2009 at 3:36 PM, Christian Edward Gruber wrote: >    Ok, the problem here has nothing to do with snapshots or maven acting > non-deterministically.  It's that you haven't provided a groupId, > artifactId, and java package for your quickstarted project.  You're running > this in ba

Re: T5: Weird behavior treating unicode urls, after T 5.0.15 version

2009-02-26 Thread Grigoris Ioannou
Thank you for the prompt response. I created a JIRA for this: https://issues.apache.org/jira/browse/TAP5-539 On Thu, Feb 26, 2009 at 4:16 PM, Thiago H. de Paula Figueiredo wrote: > Em Thu, 26 Feb 2009 11:01:13 -0300, Grigoris Ioannou > escreveu: > >> Hi all, > > Hi! > >> http://localhost:8080/ap

Re: T5: Ajax response content-tpye

2009-02-26 Thread Zsombor Nemestóthy
Hi, I've found a solution: overriding the AjaxPartialResponseRenderer service. In my module class I put this: public static void bind(ServiceBinder binder) { binder.bind(AjaxPartialResponseRenderer.class, StbAjaxPartialResponseRenderer.class).withId("StbAjaxPartialResponseRenderer"); } publi

Re: T5: Quickstart archetype not working

2009-02-26 Thread Christian Edward Gruber
Hi Massimo, Ok, the problem here has nothing to do with snapshots or maven acting non-deterministically. It's that you haven't provided a groupId, artifactId, and java package for your quickstarted project. You're running this in batch-mode, for reasons I don't understand, unless yo

Re: T5: Quickstart archetype not working

2009-02-26 Thread Massimo Lusetti
On Wed, Feb 25, 2009 at 6:51 PM, Christian Edward Gruber wrote: > Can you provide the full command-line, and I'll try it out on an empty local > repo and see what I get? For the records here is the complete output from a complete empty .m2/repository folder: mvn archetype:generate -DarchetypeC

Re: T5: Weird behavior treating unicode urls, after T 5.0.15 version

2009-02-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Feb 2009 11:01:13 -0300, Grigoris Ioannou escreveu: Hi all, Hi! http://localhost:8080/app/viewcity/Krak$00f3w-Poland-Europe/9584 and http://localhost:8080/app/viewcity/N$00eemes-France-Europe/7196 These URLs are really, really ugly. This behaviour was changed in some versio

Re: T5: Quickstart archetype not working

2009-02-26 Thread Massimo Lusetti
On Wed, Feb 25, 2009 at 6:51 PM, Christian Edward Gruber wrote: > No.  If that is the case, it's a bug that should be aggressively addressed > with JIRA.  The release rules do not allow snapshot dependencies within the > Maven sphere. > > If you use -U, you're then playing with fire, because you'

Re: Enumeration - blankOption=NEVER

2009-02-26 Thread Thiago H. de Paula Figueiredo
Em Thu, 26 Feb 2009 11:07:30 -0300, Luther Baker escreveu: In a BeanEditForm, when displaying an enum member of a Hibernate Entity is there programmatic way to set blankOption="NEVER"? No. Or must I explicitly create a Yes. :) -- Thiago H. de Paula Figueiredo Independent Java co

Enumeration - blankOption=NEVER

2009-02-26 Thread Luther Baker
In a BeanEditForm, when displaying an enum member of a Hibernate Entity is there programmatic way to set blankOption="NEVER"? Or must I explicitly create a

T5: Weird behavior treating unicode urls, after T 5.0.15 version

2009-02-26 Thread Grigoris Ioannou
Hi all, I have this strange behavior in my Tapestry application: What I want to do is read the name of a city and its country from the database and I pass these names in the corresponding url, along with the city id. So, the urls, using T 5.0.15, become like the following, which is the desired r

Re: Disabling onBlur field validation

2009-02-26 Thread Scott Russell
Ok, I created a JIRA improvement request for this - TAP5-538 - http://issues.apache.org/jira/browse/TAP5-538 -Scott On Thu, 26 Feb 2009 02:52:25 Peter Stavrinides wrote: > Thanks for this Russell, saves me some work! any Jira open for this? > > - Original Message - > From: "Scott Russe