Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Sagara Gunathunga
Hi Andreas, Thanks for the help , I'm also use same environment T5.0.14 with axis2, I try to use various pattern including your suggestion , but not works for me . Also I notice that regard less of url pattern contributeIgnoredPathsFilte method is not call by T5 any time, I think problem is there

Re: T5 arguments to methods in expressions

2008-10-27 Thread Howard Lewis Ship
On Mon, Oct 27, 2008 at 11:26 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > Does T5 support arguments to methods in expressions? > > e.g. something like the argument to the inner loop source below: > > > > item > ${var:index} I expect to revamp the property express

New JIRA: Tapestry does not pick pages, components and templates after application startup

2008-10-27 Thread Thiago H. de Paula Figueiredo
Hi! Tapestry 5's live class reloading is a huge productivity boost, specially when compared to almost any other web framework out there. Maybe 90% of all web app reloads are eliminated. But there is the remaining 10% of the reloads. Most of them are related to new pages and components. In

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Andreas Pursian
Hi Sagara, try to add /* at the end of your filter path like this public static void contributeIgnoredPathsFilter(Configuration configuration) { configuration.add("/services/.*"); } At least this works for me with t5.0.14 and axis2. cheers andreas Sagara Gunathunga wrote: Hi, W

Re: T4.1 AJAX Indicators

2008-10-27 Thread Norman Franke
I've now upgraded to T4.1.6 and the problem remains on Firefox, IE and Safari. Here is how I coded it: dojo.event.connect(dojo.byId('delete'), 'onclick', function (evt) { if (!confirm('Are you sure?')) { dojo.event.browser.stopEvent(evt);

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-27 Thread shymon
akochnev wrote: > > Shymon, >I'm not sure what the solution to your problem is going to be. The > reason > why things worked in the original setup is that when you specify > archiveClasses to false, when the app is deployed in Glassfish, it's > deployed as an exploded war; thus, when you upd

Re: [T5] Grid default sort column

2008-10-27 Thread Christoph Jäger
Hi Szemere, you are right, I also thought about this. But the result is a bit confusing: 1. the nice little arrows don't show which column is sorted initially (because Grid doesn't know about the sort order) 2. if the user figures out that the Grid is sorted by, say, the "Code" column, an

Re: What is the difference between a "Translator" and "FieldTranslator"

2008-10-27 Thread Alex Kotchnev
Geoff, you rock !!! I should get into the habit of looking at JumpStart first before trying to figure things out on my own. I was moving from 5.0.14 to 5.0.15, dealt w/ the same problem on my own, then saw your examples :-) Cheers, Alex Kotchnev On Sun, Oct 26, 2008 at 4:12 PM, Christoph Jäg

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 18:32:07 -0300, Alex Kotchnev <[EMAIL PROTECTED]> escreveu: Maybe one of the more experienced folks on the list can chime in on how best to handle the development workflow with a module that's still under development. 1) Use Jetty for development. When tested in Je

Re: T5 arguments to methods in expressions

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 15:26:24 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Hi, Does T5 support arguments to methods in expressions? Out of the box, no. The prop binding, the default for the most component parameters, just use properties (getters and setters). On the ogher hand, using

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-27 Thread Alex Kotchnev
Shymon, I'm not sure what the solution to your problem is going to be. The reason why things worked in the original setup is that when you specify archiveClasses to false, when the app is deployed in Glassfish, it's deployed as an exploded war; thus, when you update the class files, T5 is able t

Re: The URL encoding issue

2008-10-27 Thread Howard Lewis Ship
Yes, it is now the URLEncoder service, so that you can easily override it. On Mon, Oct 27, 2008 at 3:58 AM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Mon, 27 Oct 2008 07:22:00 -0300, kranga <[EMAIL PROTECTED]> escreveu: > >> As long as your custom scheme can also handle UTF-8 s

Re: T5: Grid bug - Grid is not collection type aware

2008-10-27 Thread Howard Lewis Ship
Glad you found the solution. Yes, when the collection of objects in the grid is not uniform, you should provide the BeanModel explicitly. On Fri, Oct 24, 2008 at 6:04 AM, tapestryphoto <[EMAIL PROTECTED]> wrote: > > Ok, after some experimentation I can see that I can do this by providing a > Bean

Re: Persist issue with Paging

2008-10-27 Thread Howard Lewis Ship
It can be innefficient, but setting the page's default persistent strategy to "client" will do the job. The Grid component will pick up this default. The persistent field data will end up in the URL. On Mon, Oct 27, 2008 at 12:39 PM, tapestry5 <[EMAIL PROTECTED]> wrote: > > I am working on 5.0.1

Persist issue with Paging

2008-10-27 Thread tapestry5
I am working on 5.0.13 version of Tapestry. I have a page with list of employees using t:grid. I have a paging feature in that. Now there are 2 fields which i want to send as a parameter. I can insert @Persist annotation on those fields but i don't want any session to be maintained, as i have c

T5 arguments to methods in expressions

2008-10-27 Thread Joel Halbert
Hi, Does T5 support arguments to methods in expressions? e.g. something like the argument to the inner loop source below: t:source="promotedCols(${var:index})">item ${var:index} Is this allowed? I ask because the above code does not throw an exception,

Re: T5: Using with hibernate and Mysql

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 11:55:24 -0300, James Sherwood <[EMAIL PROTECTED]> escreveu: Thank you very much for your help. You're welcome again. :) Tutorials on this sort of thing are SO hard to find at the moment(and not be outdated severely or just skim the very surface). Tapestry 5 is new,

T5: Global entity validation not in the entity

2008-10-27 Thread James Sherwood
Hello, I was wondering if there is a way to do global validation on entities without using @validate in the entity. If I have: Public class user{ @Validate("required") Private string username; Private string password; Getters/setters } I want to be able to replace the @Va

Re: T5: help required: Context and PageLink

2008-10-27 Thread Andy Pahne
By the way: you start threads by clicking "reply" to any unrelated message. This causes my (and many other peolple's newsreaders) to file your messages under the wrong thread. Please write a new message for a new thread. Thanks tapestryphoto schrieb: I have a PageLink thus: > and

Re: T5: help required: Context and PageLink

2008-10-27 Thread Tobias Wehrum
Hi, the problem is not your pagelink, the problem is your stylesheet link. When it trys to load, it seems to search in "viewMetadata/style.css", thus being passed as an activation context which of course cannot be coerced to long. Anyway, in my opinion the best way to pass the stylesheet is

Re: T5: help required: Context and PageLink

2008-10-27 Thread Andy Pahne
In your second example, "5" is interpreted as String. In your first example, I am not sure. What type is listItem.metadata.metadataId? Maybe it is not long? Andy tapestryphoto schrieb: I have a PageLink thus: > and code thus: public void onActivate(long metadataId) { Sys

T5: help required: Context and PageLink

2008-10-27 Thread tapestryphoto
I have a PageLink thus: > and code thus: public void onActivate(long metadataId) { System.out.println("METADATA ID = "+metadataId); this.metadata = repository.getMetaDataById(metadataId); } Although every time I click on the link I get taken to the correc

Re: JSON return from an event

2008-10-27 Thread Howard Lewis Ship
The JSON response is only recognized for Ajax requests; Tapestry differentiates between traditional requests and Ajax requests when handling the return value from an event handler method. When you use the zone parameter of an action link, Tapestry adds JavaScript to observe the click event on the

RE: T5: Using with hibernate and Mysql

2008-10-27 Thread James Sherwood
Thank you very much for your help. Tutorials on this sort of thing are SO hard to find at the moment(and not be outdated severely or just skim the very surface). I am quite surprised at the chunkiness of foreign key manipulation when using the beaneditform when you compare it to the gracefulness

Re: T5: Using with hibernate and Mysql

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 10:36:39 -0300, James Sherwood <[EMAIL PROTECTED]> escreveu: I cannot figure out how to produce the SelectionModel from a list of occupations. I am not sure if I am just being dumb and have been staring at this too long now or what:) Use an SelectModel implementation. Y

Re: tapestry5-acegi version to work with Tapestry 5.0.15

2008-10-27 Thread Robin Helgelin
On Mon, Oct 27, 2008 at 2:22 PM, Mahen Perera <[EMAIL PROTECTED]> wrote: > nslookup is giving me: > > "DNS request timed out. >timeout was 2 seconds." > Also, when I try to use the IP 212.247.86.108 , I get 404's when trying > to access the URL > http://212.247.86.108/java/mvn/nu/localhost/tap

RE: T5: Using with hibernate and Mysql

2008-10-27 Thread James Sherwood
Thank you for your quick responses. I cannot figure out how to produce the SelectionModel from a list of occupations. I am not sure if I am just being dumb and have been staring at this too long now or what:) My method is this: public SelectModel getOccupationModel(){ return _ses

RE: tapestry5-acegi version to work with Tapestry 5.0.15

2008-10-27 Thread Mahen Perera
nslookup is giving me: "DNS request timed out. timeout was 2 seconds." Also, when I try to use the IP 212.247.86.108 , I get 404's when trying to access the URL http://212.247.86.108/java/mvn/nu/localhost/tapestry/tapestry5-acegi/1.1 .1/ -Original Message- From: Robin Helgelin

Re: T5: Using with hibernate and Mysql

2008-10-27 Thread Thiago H. de Paula Figueiredo
Ooops, one detail was forgotten: in order to your occupation field to appear, you need to add it to the BeanModel used by the BeanEditForm. If you do not provide one, one is created automatically, and this one does not include fields that are other entity objects. The easily way to do that is usin

Re: [T5] How to overwrite the Locale (domain specific)

2008-10-27 Thread superoverdrive
Thanks a lot! Original-Nachricht > Datum: Mon, 27 Oct 2008 13:33:54 +0100 > Von: Christian Gorbach <[EMAIL PROTECTED]> > An: Tapestry users > Betreff: Re: [T5] How to overwrite the Locale (domain specific) > implement a filter like: > > public class HostBasedLocaleFilter imple

Re: T5: Using with hibernate and Mysql

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 09:42:25 -0300, James Sherwood <[EMAIL PROTECTED]> escreveu: Thank you again:) You're welcome again! :) I used: @OnEvent(component = "userEditor", value=Form.PREPARE) public void instantiateObject() { user = new User(); } This produces the form

RE: T5: Using with hibernate and Mysql

2008-10-27 Thread James Sherwood
Thank you again:) I used: @OnEvent(component = "userEditor", value=Form.PREPARE) public void instantiateObject() { user = new User(); } This produces the form but without a dropdown of occupation. The user.occupation is just an occupation object and not a list so how do

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Sagara Gunathunga
HI, I tried with static modifier but cant see any success , I'm wonder why this *contributeIgnoredPathsFilter *not call by Tapestry , Is there any different way to ignore paths in Tapestry 5.0.14 .? may be Howard have an idea about this ? Thanks, On Mon, Oct 27, 2008 at 5:48 PM, Thia

Re: [T5] How to overwrite the Locale (domain specific)

2008-10-27 Thread Christian Gorbach
implement a filter like: public class HostBasedLocaleFilter implements RequestFilter { private Map serverNameMapping; private Locale defaultLocale; private ThreadLocale threadLocale; public HostBasedLocaleFilter(final ThreadLocale threadLocale, final Locale defaultLocale,

Re: Grid with editable fields

2008-10-27 Thread Thiago H. de Paula Figueiredo
Two simple steps: 1) Put your Grid inside a Form. 2) Use to show a tag instead of just showing the property value. As almost anything in Tapestry 5, it's very simple. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/th

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Hugo Palma
I think that problem is that IgnoredPathsFilter doesn't actually filter the context path. I think changing the Tapestry filter mapping in web.xml to something other than /* would be a best option in your case. On Mon, Oct 27, 2008 at 12:13 PM, Sagara Gunathunga < [EMAIL PROTECTED]> wrote: > Hi, >

Grid with editable fields

2008-10-27 Thread Toby Hobson
Hi guys, Currently I have a master-detail screen for some admin pages which uses the grid and beaneditform components. It work nicely, however I would like to implement a grid which can be edited in place. Specifically I have some fields which I would like to display as drop down selection boxes s

Re: T5: Using with hibernate and Mysql

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 09:20:01 -0300, James Sherwood <[EMAIL PROTECTED]> escreveu: Thank you, it seems to have created all the classes with annotations correctly! You're welcome! I tried to create a beaneditform off the User class but I get the error: Exception instantiating instance of com

RE: T5: Using with hibernate and Mysql

2008-10-27 Thread James Sherwood
Thank you, it seems to have created all the classes with annotations correctly! I tried to create a beaneditform off the User class but I get the error: Exception instantiating instance of com.james.taphib.entities.Users (for component 'AddUser:user.editor'): Error invoking constructor com.james.

Re: tapestry5-acegi version to work with Tapestry 5.0.15

2008-10-27 Thread Robin Helgelin
On Mon, Oct 27, 2008 at 12:25 PM, Mahen Perera <[EMAIL PROTECTED]> wrote: > Robin, > Are you sure this site is up? > > I cannot get to it, cannot find the DNS entry. The server is fine, what does dig give you? Or nslook if you're running Windows. [EMAIL PROTECTED] ~]$ dig www.localhost.nu ; <<>>

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 09:13:39 -0300, Sagara Gunathunga <[EMAIL PROTECTED]> escreveu: Hi, Hi! Well, I can't see anything wrong with your code. As a desperate measure, make all methods in your AppModule static. Anyway, it is a good practice. -- Thiago H. de Paula Figueiredo Independent Jav

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Sagara Gunathunga
Hi, Thiago, thanks for your quick reply , here is my AppModule public class AppModule { public static void bind(ServiceBinder binder) { // binder.bind(MyServiceInterface.class, MyServiceImpl.class); // Make bind() calls on the binder object to define most IoC services.

Re: problems with Tapestry IgnoredPaths

2008-10-27 Thread Thiago H. de Paula Figueiredo
Could you post you AppModule please? Em Mon, 27 Oct 2008 09:00:40 -0300, Sagara Gunathunga <[EMAIL PROTECTED]> escreveu: Hi, We are using Tapestry 5.0.14 for our project , and there is a requirement to expose some Web services using Axis on same application , so I put my Axis servle

problems with Tapestry IgnoredPaths

2008-10-27 Thread Sagara Gunathunga
Hi, We are using Tapestry 5.0.14 for our project , and there is a requirement to expose some Web services using Axis on same application , so I put my Axis servlet/mapping under web.xml file but when I try to access the services it does not work, as a example when I try to access http://local

RE: tapestry5-acegi version to work with Tapestry 5.0.15

2008-10-27 Thread Mahen Perera
Robin, Are you sure this site is up? I cannot get to it, cannot find the DNS entry. -Original Message- From: Robin Helgelin [mailto:[EMAIL PROTECTED] Sent: 24 October 2008 18:51 To: Tapestry users Subject: Re: tapestry5-acegi version to work with Tapestry 5.0.15 On Fri, Oct 24, 2008 a

Re: [T5] How to overwrite the Locale (domain specific)

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 08:14:03 -0300, <[EMAIL PROTECTED]> escreveu: I have already asked before, but maybe nobody has read it ;-) I still have not found a solotion how to set the Locale in Tapestry5 depending on the domain name/subdomain. Implement a RequestFilter and put it before any other.

[T5] How to overwrite the Locale (domain specific)

2008-10-27 Thread superoverdrive
I have already asked before, but maybe nobody has read it ;-) I still have not found a solotion how to set the Locale in Tapestry5 depending on the domain name/subdomain. In Tapestry4 using Hivemind, the ThreadLocale could be injected into a service etc... In Tapestry5 + Spring I don't know ho

Re: [T5] Grid default sort column

2008-10-27 Thread Konstantin
Hi! I've had similar issue. My grid had custom model, and I've uses @Persist on it instead of @Retain. And page refresh issue was solved. Christoph Jäger wrote: > > It works on 5.0.15 the first time a page is displayed. For the second > time (just clicking the same link in my menu), I get a

Re: The URL encoding issue

2008-10-27 Thread Thiago H. de Paula Figueiredo
Em Mon, 27 Oct 2008 07:22:00 -0300, kranga <[EMAIL PROTECTED]> escreveu: As long as your custom scheme can also handle UTF-8 standard scheme so that libraries that we integrated with (JS libraries and others) that produce encoded URLs don't break. In addition, I suggest something obvious: t

Re: The URL encoding issue

2008-10-27 Thread kranga
As long as your custom scheme can also handle UTF-8 standard scheme so that libraries that we integrated with (JS libraries and others) that produce encoded URLs don't break. - Original Message - From: "Massimo Lusetti" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Saturday, October

Re: Deep linking to tapestry pages from jps. Conversion

2008-10-27 Thread Ian Petzer
Hi Howard, Unfortantely this approach of encoding the information is request params is not really ideal. As Russel has said, we are halfway through converting our application. We have created Tapestry pages to supply some new functionality (various RSS feeds in this case) however we need to link

RE: Deep linking to tapestry pages from jps. Conversion

2008-10-27 Thread Russell Brown
Hi Borut, We are migrating a Struts app at the moment so if you have any specific questions about stuff then fire away as we _may_ have solved one or two problems that you might face already. Such a guide would be a good idea: it is ideal to start a nice new app with a nice new framework but i

Re: reference pages by logical id (rather than by path)

2008-10-27 Thread Joel Halbert
I like using classes, as you say it makes it re-factor proof. This is in-fact what Wicket does too. Thiago H. de Paula Figueiredo wrote: Em Sun, 26 Oct 2008 06:39:21 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: Is possible to reference pages by logical id rather than by path? i.e. I woul