Re: tapestryIoC + architecture

2009-11-13 Thread Alfonso Quiroga
Oh thanks, it was really easy and I didn't saw it, thanks again On Sat, Nov 14, 2009 at 3:19 AM, Kalle Korhonen wrote: > On Fri, Nov 13, 2009 at 9:56 PM, Alfonso Quiroga > wrote: >> My question about tapestryIoC is... it doesn't use XML (I love that) >> but if I'm in web layer (i.e. AppModule.j

Re: tapestryIoC + architecture

2009-11-13 Thread Kalle Korhonen
On Fri, Nov 13, 2009 at 9:56 PM, Alfonso Quiroga wrote: > My question about tapestryIoC is... it doesn't use XML (I love that) > but if I'm in web layer (i.e. AppModule.java) and I want to reference > a server implementation, I CAN'T. I need via programming to do this: >   binder.bind(common.Login

tapestryIoC + architecture

2009-11-13 Thread Alfonso Quiroga
Hi! I've been using java for 3 years aprox, and when I was working on projects, we used to have this projects (architecture) project-common (model, and services) project-server (services implementations!) project-web (we used struts2 so... jsp, actions, etc) I had a good architect, he used maven,

Re: Tapestry-Spring in standalone mode

2009-11-13 Thread Fernando Padilla
what do your "jobs" do? Why do they need anything from Tapestry? On 11/13/09 2:54 PM, Joost Schouten (ml) wrote: Do you mean timed java jobs (java equivalent of cron jobs)? If so, since you are already working with Spring, have a look at: http://static.springsource.org/spring/docs/2.5.x/refere

Re: javascript locale for numbers

2009-11-13 Thread Joost Schouten (ml)
I went down the javascript number and date formatting track for a while and droped it in the end. I now use Tapestries AJAX to do it server side for me. Maybe a tiny bit slower, but saves me lots of troubles. Cheers, Joost Israel Rodrigues wrote: A component to display formatted numbers and

Re: Tapestry-Spring in standalone mode

2009-11-13 Thread Joost Schouten (ml)
Do you mean timed java jobs (java equivalent of cron jobs)? If so, since you are already working with Spring, have a look at: http://static.springsource.org/spring/docs/2.5.x/reference/scheduling.html Not tapestry, but very simple too ;-) Good luck, Joost Juan E. Maya wrote: Hi, We are using

Re: Switching between Stage & Production DB with Tapestry5 & Hibernate3

2009-11-13 Thread Juan E. Maya
U could also use maven for this using maven profiles and resource filtering. src/main/resources true This would allow to create variables i

Re: Switching between Stage & Production DB with Tapestry5 & Hibernate3

2009-11-13 Thread Kalle Korhonen
Best practice - use a combination of Tapestry and Hibernate "tricks". Use separate configuration files, and pick to use based on the mode you are running in your AppModule: public void contributeHibernateSessionSource(OrderedConfiguration configurer, @InjectService

Switching between Stage & Production DB with Tapestry5 & Hibernate3

2009-11-13 Thread Alessandro Bottoni
Hi All, I'm almost completely new to Tapestry and Hibernate so, please, be patient.. In your opinion, what's the best (simplest/most-maintainable) way to deal with two different databases with T5 and H3? I have the classical stage/production environment with the same software (and the same RDBMS)

Re: Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Paul Field
You need to be very careful about calling tester.injectInto() yourself because the superclass TapestryTest is already doing that for you. It contains this code: @BeforeClass(alwaysRun=true) public final void processInjectAnnotation() { tester.injectInto(this); } So I would t

Re: Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Ben Gidley
Augusto, I just fixed this by making the 'TapestryTester' not static. THis removes the issue. However this does seem to defeat some of the point of testify as we now have a lot slower tests are we will be initialising the tester for each test. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On F

RE: Getting I18n messages from another page

2009-11-13 Thread Blower, Andy
You could give both pages a base class (assuming that the app catalog is not an appropriate solution) then the base class has the properties and they can be referenced by both pages. (note that the pages shouldn't have prop files) > -Original Message- > From: Stephan Windmüller [mailto:s

Re: Customizing tapestry grid row

2009-11-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Nov 2009 13:52:10 -0200, Durgesh_Kab escreveu: Thank you very much... :) I found one some reference on: http://tapestry.formos.com/nightly/ioko-tapestry-commons/tapestry-mixins/ Why don't you use it or at least read its sources to draw inspiration from it? But, as this i

Testify + TestNG: more than one object marked as @ForComponents

2009-11-13 Thread Augusto Rodriguez
Hi All, I'm using testify to test my pages, but I can only run one test successfully and all the other tests, whether they are in another class or in the same class, fail with the message: Found more than one object marked as @ForComponents of type uk.co.test.services.PageInformation It looks

Re: Customizing tapestry grid row

2009-11-13 Thread Durgesh_Kab
Thank you very much... I was working for this requirement from last one week... You were right... that i will like it... ;) I have another requirement... don't laugh on me if i am more demanding... but now it seems to be interesting... I have to have a checkbox for the id column in grid header..

Re: Customizing tapestry grid row

2009-11-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Nov 2009 07:26:35 -0200, Durgesh_Kab escreveu: Thiago, Hi! Thank you for showing me the way... I was able to hide the rows.. Now, I have a hyperlink as [+], I want to show the hidden rows once i click on this hyperlink. Any idea? Use Prototype's $$() function to get all the

Re: Tapestry5 Grid Coloumn Bolded when sorted

2009-11-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 13 Nov 2009 10:09:31 -0200, sandeepraj singh escreveu: Hi, Hi! I want to make Grid Columns bolded when they are sorted. Take a look at the generated HTML. Grid adds the "t-sort-column-ascending" CSS class to a header cell when it's used for sorting ascending and "t-sort-colu

Re: Hibernate question

2009-11-13 Thread Juan E. Maya
u can also let Tapestry-Hibernate take care of that for u. On Fri, Nov 13, 2009 at 3:18 PM, Szemere Szemere wrote: > Afaik any Hibernate object stored in the HTTPSession will be > Hibernate-detached between HTTP requests. It is not refreshed/merged > automatically on a new HTTP request, so it wil

Tapestry-Spring in standalone mode

2009-11-13 Thread Juan E. Maya
Hi, We are using Tapestry-Spring integration in our web tear without problems but we require to have a standalone application that will take care of the job executions. Has anybody successfully created such integration ? I was checking the code of the Spring SpringModuleDef and it's highly tied to

Re: Hibernate question

2009-11-13 Thread Szemere Szemere
Afaik any Hibernate object stored in the HTTPSession will be Hibernate-detached between HTTP requests. It is not refreshed/merged automatically on a new HTTP request, so it will be outside the Hibernate session on the second request which is probably not what you want. It is generally a much bette

Re: Getting I18n messages from another page

2009-11-13 Thread Juan E. Maya
I don't think that's possible. If u want to have a common message u should use the Application Catalog. On Fri, Nov 13, 2009 at 1:26 PM, Stephan Windmüller wrote: > Hello! > > One quick question: Is it possible to retrieve the I18n messages from > another page? I tried this: > > --- > > class Som

Getting I18n messages from another page

2009-11-13 Thread Stephan Windmüller
Hello! One quick question: Is it possible to retrieve the I18n messages from another page? I tried this: --- class SomePage { private Messages messages; public String getTitle() { return messages.get("title"); } } class AnotherPage { @InjectPage

Tapestry5 Grid Coloumn Bolded when sorted

2009-11-13 Thread sandeepraj singh
Hi, I want to make Grid Columns bolded when they are sorted. I am using my own grid "MyGrid" which has an embedded Tapestry5 Grid Any Pointers Thanks Sandeep -- View this message in context: http://old.nabble.com/Tapestry5-Grid-Coloumn-Bolded-when-sorted-tp26335659p26335659.html Sent from the

t5: testing t5 pages under SeleniumRC

2009-11-13 Thread Angelo Chen
Hi, I'm using SeleniumRC to test some pages under a T5 app, if I test: http://www.example.com/ this works. but if I test http://www.example.com/items and I got following It looks like your baseUrl (http://www.example.com/items) is pointing to a file, not a directory (it doesn't end with a

Re: Customizing tapestry grid row

2009-11-13 Thread Durgesh_Kab
Thiago, Thank you for showing me the way... I was able to hide the rows.. Now, I have a hyperlink as [+], I want to show the hidden rows once i click on this hyperlink. Any idea? @ DK Thiago H. de Paula Figueiredo wrote: > > Em Thu, 12 Nov 2009 11:27:56 -0200, Durgesh_Kab > escreveu: > >