Re: Last visited pages

2011-08-10 Thread Joakim Olsson
Aaaah...I understand. Let me think on that one for a little while. I don't see a solution right now. /Joakim On Wed, Aug 10, 2011 at 8:56 AM, Dominik Hurnaus wrote: > Hello Joakim > > I am also working on Gerolds project. The difference is that we do not only > need a static string (or message

Re: what is called when - ajax version

2011-08-10 Thread Peter Stavrinides
> However, there's still the possibility that > these are useful ... except that all the use cases I can come up with > are better served by a "perthread" scoped service, rather than > associated with the page instance. I am using them for a one time setup of tab groups (essentially linkedhashmaps)

Re: T5.3: customize validation messages (2)

2011-08-10 Thread stephanos2k
Hm, I just noticed that on deployment this line appears in the logs: /Could not add object with duplicate id 'ValidationMessages'. The duplicate object has been ignored./ So what am I supposed to do - contribute my customized validation messages at first somehow or use a different id? -- Vie

Re: Last visited pages

2011-08-10 Thread Magnus Kvalheim
Hi, I did something related and looked at org.apache.tapestry5.internal.transform.CachedWorker for inspiration. Basically you need access to BindingSource.. (Just put in in ComponentClassTransformWorker constructor) --from CachedWorker-- Binding binding = bindingSource.newBinding("@Cached watch",

Re: Last visited pages

2011-08-10 Thread Magnus Kvalheim
Dough... I missed the part with dispatcher! Thought it was a regular ComponentClassTransformWorker. Sorry guys. Not sure how to do that on top of my head... Will let you know if I think of any --magnus On Wed, Aug 10, 2011 at 12:28 PM, Magnus Kvalheim wrote: > Hi, I did something related and lo

Re: Zebra Grid in Tapestry 5.2.6

2011-08-10 Thread Bob Harner
The nth-child approach won't work on IE 6, 7 & 8, I believe. Bob Harner On Aug 9, 2011 9:15 AM, "TG" wrote: > Dmitry, your solution works like a charm :) ! I think it is the simplest that > works with Tapestry grid I have seen so far. > > Thanks a lot! > > -- > View this message in context: http:

Re: ANN: Tapestry-tagselect version 1.0 released

2011-08-10 Thread George Christman
So I'm seeing where my issue is based on your code. As indicated, I'd like to use this component as a replacement to a select menu, but here lies the problem. I have two tables, UserAccount and PurchaseRequest. There can only be one UserAccount per PurchaseRequest. I have a OneToMany from Use

Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread mat --
Hi there, I have run the Hibernate version of the Tapestry tutorial: http://tapestry.apache.org/using-tapestry-with-hibernate.html and it works fine for me. I am now trying to integrate it with the new 5,3 Tapestry version, running JPA instead of Hibernate. I have read instructions at http://tap

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread Lenny Primak
Can you give a full exception listing? Also make sure your entities are in he correct entities package. On Aug 10, 2011, at 11:02 AM, mat -- wrote: > Hi there, > > I have run the Hibernate version of the Tapestry tutorial: > http://tapestry.apache.org/using-tapestry-with-hibernate.html and

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread mat --
Hi Also make sure your entities are in he correct entities package <-- I think I have same files structure as in the Tapestry tutorial: - Address.java in entities package - Index.java in pages package - CreateAddress.java in pages.address package - AppModule.java in services package Can you give

merging global message catalogs T5.2.5

2011-08-10 Thread Jens Breitenstein
Hi all! We have a WebApp and are currently developing a more or less similar App with extended / slightly changed functionality (yes a customized versision). Instead of C&P we use inheritance through all technical layers (starting from Hibernate-DB over Spring-Services to T5-classes) to imple

Re: merging global message catalogs T5.2.5

2011-08-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Aug 2011 12:52:00 -0300, Jens Breitenstein wrote: Hi all! Hi! public static void contributeApplicationDefaults(final MappedConfiguration configuration) { configuration.add(SymbolConstants.APPLICATION_CATALOG, "xy.properties"); } Have you tried som

Re: ANN: Tapestry-tagselect version 1.0 released

2011-08-10 Thread George Christman
I found an example of what I was referring to with facebook. If you log into your account and edit profile, you'll see an option to edit your location / home town. It works exactly as desired. The way they handle languages is very nice and clean too. -- View this message in context: http://tap

Re: merging global message catalogs T5.2.5

2011-08-10 Thread Igor Drobiazko
You can contribute as many catalogs as you want. See the contribution to the ComponentMessagesSource service here: https://github.com/drobiazko/tapestry5inaction/blob/master/showcase/src/main/java/com/tapestry5inaction/services/AppModule.java On Wed, Aug 10, 2011 at 5:52 PM, Jens Breitenstein wro

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread Igor Drobiazko
Looks like your PersistenceManager is null. You need to share some of your code with us in order to get help. On Wed, Aug 10, 2011 at 5:35 PM, mat -- wrote: > Hi > > Also make sure your entities are in he correct entities package <-- I think > I have same files structure as in the Tapestry tutor

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread Lenny Primak
I think your issue is environmental. What's your persistence.xml look like? AppModule.java? Do you get login messages int he logs for EclipseLink? What are the contents of your WEB-INF/lib? On Aug 10, 2011, at 12:27 PM, Igor Drobiazko wrote: > Looks like your PersistenceManager is null. You ne

Re: merging global message catalogs T5.2.5

2011-08-10 Thread Jens Breitenstein
Wished I found that in your book (or I missed it?) Many thanks Igor, it works.. for all of you having the same problem. This is the contrib section based on Igor's solution: @Contribute(ComponentMessagesSource.class) public static void provideMessages(final @Value("/de/domain/client/x

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread mat --
Hi What's your persistence.xml look like? <-- Here it it: (as per the JPA integration instruction)? http://java.sun.com/xml/ns/persistence"; version="2.0"> Where exactly should the persistence.xml file b

Re: ANN: Tapestry-tagselect version 1.0 released

2011-08-10 Thread Joakim Olsson
I was thinking that it might be possible to have a check in the component if the value is a collection then I keep the existing behaviour and otherwise use it as a single value instead. I need to change the javascript a bit as well but it should be possible I think. I'll try to find some time for

Re: ANN: Tapestry-tagselect version 1.0 released

2011-08-10 Thread George Christman
That would be amazing if you got that working. I feel it would make for a much better UX. I'll check in with you tomorrow to see if you were able to make any progress. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry-tagselect-version-1-0-released-tp4639340p468

Re: merging global message catalogs T5.2.5

2011-08-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Aug 2011 13:09:38 -0300, Jens Breitenstein wrote: Hi Thiago! Hi! puh, this is more a less a real time chat not a mailinglist :-) That's definetely a plus of Tapestry. :) thanks for your answer, I tried it but it is not working. a) my global props are back (good 90% "missing

Re: merging global message catalogs T5.2.5 (SOLVED)

2011-08-10 Thread Jens Breitenstein
Hi Thiago! thanks, it's solved (see my mail based on Igor's sample) Jens Am 10.08.11 21:07, schrieb Thiago H. de Paula Figueiredo: On Wed, 10 Aug 2011 13:09:38 -0300, Jens Breitenstein wrote: Hi Thiago! Hi! puh, this is more a less a real time chat not a mailinglist :-) That's defin

Reusing form from CreateSomeBean on EditSomeBean

2011-08-10 Thread Eric Torti
Hello, guys, I`m trying to reuse the beaneditform I`ve came up with for one of my pages, whose responsibility is to CreateSomeBean. I would like to make the core form a compontent so that I could use it either on the CreateSomeBean as on the EditSomeBean page. Is there a tutorial or how to that p

Re: Reusing form from CreateSomeBean on EditSomeBean

2011-08-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Aug 2011 16:38:17 -0300, Eric Torti wrote: Hello, guys, Hi! I`m trying to reuse the beaneditform I`ve came up with for one of my pages, whose responsibility is to CreateSomeBean. I would like to make the core form a compontent so that I could use it either on the CreateSomeBea

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread Lenny Primak
If you are not getting the eclipse link login messages it's not going to work. The file is supposed to be in classpath/META-INF directory. Not web-inf. Whatever your source package is just add META-INF To that. Also what's your content of the WEB-INF/lib directory? The lack or incorrect libra

strange situation

2011-08-10 Thread David Canteros
Hi! I have a strange situation to share with you: a weird page appear when some users try to load some page of my tapestry application: a lot of strange symbols appear instead of the correct page. But if they try again (or if they reload the page with F5) the correct page appear. This happen

Re: strange situation

2011-08-10 Thread Howard Lewis Ship
I believe this was a bug where under certain circumstances, a corrupt GZIP stream of page content would be streamed to the client; this is fixed in 5.2.6 for sure, but I thought it was fixed in 5.2.5 as well. Failing that, you need to be sure its Tapestry generating the corrupt content, rather tha

Does message catalog retrieval look at containing component/page catalogs?

2011-08-10 Thread robert baker
Hi all, When you supply a message key, does Tapestry 5.1 scan the catalogs of containing components and/or pages? For example, if Index.tml contained component Foobar, and Foobar.tml had a TextField with a t:id="xyzzy", would Index.properties get hit for "xyzzy-label" after Foobar.properties gets

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread mat --
Thanks! I added ejb3-persistence and eclipselink dependencies to my pom.xml file. So presumably I now have all required dependencies, although I still don't see any Eclipse Link login messages in console... Q: Are there other required dependencies which are not already mentioned in the Hibernate v

Re: Does message catalog retrieval look at containing component/page catalogs?

2011-08-10 Thread Howard Lewis Ship
No, not containing components. It checks the component, and works up the *inheritance* of the component, then finally to the Global message catalog. On Wed, Aug 10, 2011 at 2:44 PM, robert baker wrote: > Hi all, > > When you supply a message key, does Tapestry 5.1 scan the catalogs of > containi

Re: ANN: Tapestry-tagselect version 1.0 released

2011-08-10 Thread Joakim Olsson
Alright, first try pushed to GitHub. Build it locally (mvn install) and change your dependency to version 1.3-SNAPSHOT and see if it does what you want now. I think I solved the problem with greater/less-than signs in the strings as well. :-) Regards, Joakim On Wed, Aug 10, 2011 at 8:21 PM, Geo

Re: Reusing form from CreateSomeBean on EditSomeBean

2011-08-10 Thread Taha Hafeez
There are a number of examples at http://jumpstart.doublenegative.com.au/jumpstart/ http://jumpstart.doublenegative.com.au/jumpstart/previews/easycrud/persons http://jumpstart.doublenegative.com.au/jumpstart/previews/totalcontrolcrud/persons regards Taha On Thu, Aug 11, 2011 at 1:19 AM, Thiago

IoC services - can they come from an external jar?

2011-08-10 Thread Chris Mylonas
Hi Tapestry Users, It gives me great pleasure to have a question to ask this list after picking up some tapestry deving again. I'm playing around with a new EJB3.1 book with icedtea6 (openjdk) running on glassfishv3.1.1. Using jumpstart's BusinessServicesLocator(BSL) and bind() -ing it in AppMod

Re: Issue while running Tapestry tutorial with JPA instead of Hibernate

2011-08-10 Thread Igor Drobiazko
Are you sure you added tapestry-jpa dependency? On Thu, Aug 11, 2011 at 12:39 AM, mat -- wrote: Two other questions, regarding the JPA integration doc: > > Q: Should one keep the tapestry-hibernate dependency when integrating with > JPA: import org.apache.tapestry5.hibernate.annotations.CommitAf