Re: T5 forward to page

2007-06-07 Thread Janko Muzykant
Being more precise I wanted to use DWR to re-generate my page once again via XMLHttpRequest. It looks like this: - javascript calls my ajax java method - ajax method calls DWR's forwardToString(..) which is essentialy getRequestDispatcher.forward and returns as a result html content. and here i r

Re: T5 Hibernate and Hibernate Annotations

2007-06-07 Thread Davor Hrg
I have a running app with t5 and HA if you follow a convention: your.package.pages - pages your.package.services - services and AppModule your.package.entities without any extra config besides connection data in hibernate.cfg.xml your entities will be recognized. you can do this by following th

Re: T5 forward to page

2007-06-07 Thread Howard Lewis Ship
Not sure why you would want to. Inside a T5 application, Tapestry takes care of sending redirects. From a JSP, a Tapestry page is simply the name of the page, i.e. foo.jsp: Back to the Tapestry Menu Page On 6/7/07, umrzyk <[EMAIL PROTECTED]> wrote: hi, as I noticed, it is not possible to c

Re: Wiring up AppModule

2007-06-07 Thread petros
If you class is called AppModule then the Tapestry Filter name in your web.xml needs to be app. For example app org.apache.tapestry.spring.TapestrySpringFilter Petros Ben Tomasini-2 wrote: > > I am working on a T5 application, and can't figure out how the AppModule > is > wired up t

RE: Cometd Implimentation

2007-06-07 Thread Craig Spry
Looks and works good, thanks for that, it always give me a good feeling when someone else can use what I have done. I also like the changes that you have done. Craig -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] On Behalf Of andyhot Sent: Friday, 8 June 2007 12:27 PM

Re: 4.1 programmatically define message key

2007-06-07 Thread Nick Westgate
Oops. Ognl method calls need the full name: ognl:messages.getMessage('message.' + value) Cheers, Nick. Paul Stanton wrote: I couldn't get the ognl call to work. I got the exception: Method "message" failed for object [EMAIL PROTECTED] java.lang.NoSuchMethodException message(java.lang.Stri

Re: Cometd Implimentation

2007-06-07 Thread andyhot
You're right, it works in tomcat too... The code is now in tacos (with minor changes) + there's a demo page in tacos-demo, so one can easily do mvn tomcat:run-war to see it working :) Craig Spry wrote: Andy, Although I haven't tested this yet I think this will work in other servlet containers

Re: T5 Grid Component for composite entities

2007-06-07 Thread Bill Holloway
On workaround would be to write synthetic accessor methods in the User class for the Address properties you would like to see; e.g., pubic String getStreetAddress () { return this.address.getStreetAddress(); } On 6/7/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Hi, I'm not sure if this kind of f

Re: 4.1 programmatically define message key

2007-06-07 Thread Paul Stanton
I couldn't get the ognl call to work. I got the exception: Method "message" failed for object [EMAIL PROTECTED] java.lang.NoSuchMethodException message(java.lang.String) Could be a 4.1.1 thing vs 4.1.2 getMessages().getMessage(String) in my java class works however, so I'll use that. Nick

RE: Cometd Implimentation

2007-06-07 Thread Craig Spry
Andy, Although I haven't tested this yet I think this will work in other servlet containers, because all the jar files from the Jetty will be packaged up in the war file. This is only a suspicion and I don't know what other problems this would have. Long term I'd like to write a tapestry service

T5 Grid Component for composite entities

2007-06-07 Thread Daniel Jue
Hi, I'm not sure if this kind of functionality is available with the current grid component, but this is a simple example of what I want to do: Lets say I have a User class and an Address class. Lets say a User has an Address object in it. Now I have a list of Users that I want to pump into a G

Re: Wiring up AppModule

2007-06-07 Thread Ben Tomasini
Never mind. I renamed the TapestryFilter. Here are the docs that cover my issue: From http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html Tapestry looks for a module builder class in the services package (under the root package). It capitalizes the and appends "Module". In th

T5 forward to page

2007-06-07 Thread umrzyk
hi, as I noticed, it is not possible to call request.getRequestDispatcher("/my/superb/page").forward(...) as such a page is not a "real" resource. all other resources like "/index.jsp" are obviously recognized correctly. is it somehow possible to forward request to page generated by T5 ? regar

Wiring up AppModule

2007-06-07 Thread Ben Tomasini
I am working on a T5 application, and can't figure out how the AppModule is wired up to the IoC container in the quickstart example. In may application, I am working on extending TapestryFilter and overriding provideExtraModuleDefs to wire up the module in my web application, but am convinced the

Re: T5: web.xml - multiple applications?

2007-06-07 Thread Howard Lewis Ship
That would take some doing, it's something I thought of and dismissed. T4 supports it, and that's one of the reasons it's so complex to discuss which files are stored where. To me, this would be a low-priority enhancement. On 6/7/07, Bruce Petro <[EMAIL PROTECTED]> wrote: I was thinking for dev

T5: web.xml - multiple applications?

2007-06-07 Thread Bruce Petro
I was thinking for development purposes it might be desirable to have multiple contexts. But I don't see how to tie a context-param (which determines which classes handle the requests) to a filter definition (which specifies a url pattern to handle) I'm making a wild guess that in the sample "app

Re: Filter mapping problem in Jetty

2007-06-07 Thread Ben Tomasini
Hmm... It looks like leaving the default mapping in place allows the tapestry filter to run (and I assume take care of my perthread cleanup) and does not interfere with my other servlet mappings. Very nice. Ben On 6/7/07, Ben Tomasini <[EMAIL PROTECTED]> wrote: I am running Tap5 from Jetty us

T5: banner message above form errors

2007-06-07 Thread Adam Zimowski
Hello, Is there a way to customize the default banner "You must correct the following errors before you may continue." message? I'd like to change this banner dynamically depending on the error. Specifically, I'd like to do something like this in my page class: try { // deal with form input } cat

Re: T5 Hibernate and Hibernate Annotations

2007-06-07 Thread Daniel Jue
Thanks Davor, I got it working, although it seems to require a myentity.hbm.xml, specified via the hibernate.cfg.xml. I was hoping I could use the @Entity, @Id, etc, annotations in my entity classes instead. From the Hibernate docs, it seems like enabling these "Hibernate Annotations" requires

Filter mapping problem in Jetty

2007-06-07 Thread Ben Tomasini
I am running Tap5 from Jetty using the Maven2 jetty:run plugin. All works fine with the following in the web.xml: TapestryFilter /* When I change to this: TapestryFilter /app/* and browse to /app/ under the web context, I get a 404. There are no errors in the logs. Can a

Re: T5: property lifecycle again

2007-06-07 Thread Martin Grotzke
On Thu, 2007-06-07 at 21:28 +0200, Martin Dietze wrote: > On Thu, June 07, 2007, Davor Hrg wrote: > > > It's a guess, but I think that you just need to persist the property. > > @Persist("flash") > > That's what I thought, but it does not work. It seems to have > to do with the way T5 initializes

Re: T5 equivilent to @Component(inheritInformalParameters=true)?

2007-06-07 Thread Dan Adams
https://issues.apache.org/jira/browse/TAPESTRY-1546 On Thu, 2007-06-07 at 10:56 -0700, Howard Lewis Ship wrote: > Doesn't exist. Please add an issue. > > On 6/7/07, Dan Adams <[EMAIL PROTECTED]> wrote: > > For instance: > > > > @Component(type="Any", inheritInformalParameters=true) > > public abs

Re: T5: property lifecycle again

2007-06-07 Thread Martin Dietze
On Thu, June 07, 2007, Davor Hrg wrote: > It's a guess, but I think that you just need to persist the property. > @Persist("flash") That's what I thought, but it does not work. It seems to have to do with the way T5 initializes its member variables (my guess)... Cheers, Martin -- ---

Re: T5: property lifecycle again

2007-06-07 Thread Davor Hrg
It's a guess, but I think that you just need to persist the property. @Persist("flash") action link generate action requests, if action request does not return a result it'self, page continues to render phase... but this does not happen in the same request, the page gets redirected to it self fir

Re: [T4.0.x] Converting a Direct Service into a Page Service

2007-06-07 Thread Norman Franke
Let me re-phrase that. I want to use the same URL for both an IExternalPage and and a DirectService. My ServiceEncoder then needs to be able to determine if the incoming request is a Direct Service request or not. Can this be done without modifying the URL? -Norman On Jun 6, 2007, at 3:53

T5: property lifecycle again

2007-06-07 Thread Martin Dietze
Hi, I want to load a page which displays a particular entry from a database. To accomplish this I create an action link in the parent page which causes the parent page's object to call a method of my display-an-entry page object passing the DB-bean as a parameter. Within that method I assign this

Re: T5 equivilent to @Component(inheritInformalParameters=true)?

2007-06-07 Thread Howard Lewis Ship
Doesn't exist. Please add an issue. On 6/7/07, Dan Adams <[EMAIL PROTECTED]> wrote: For instance: @Component(type="Any", inheritInformalParameters=true) public abstract Any getFieldset(); -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 -

T5 equivilent to @Component(inheritInformalParameters=true)?

2007-06-07 Thread Dan Adams
For instance: @Component(type="Any", inheritInformalParameters=true) public abstract Any getFieldset(); -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: ognl or tapestry problem?

2007-06-07 Thread Julian Wood
Ok it's http://jira.opensymphony.com/browse/OGNL-87 Thanks, J On 6-Jun-07, at 6:11 PM, Jesse Kuhnert wrote: Ok, if you file a jira issue I'll look at it. (in the ognl jira) On 6/6/07, Julian Wood <[EMAIL PROTECTED]> wrote: No I wasn't using that latest snapshot. For some reason, I thought

Re: T5 Hibernate and Hibernate Annotations

2007-06-07 Thread Davor Hrg
HibernateSessionManager being internal means you shouldn't be managing it your self. it's ok to : @Inject private HibernateSessionManager _sessionmanager; but creating it manualy is not a good solution, keep just the inject and tapestry ioc will provide it for you, Davor Hrg On 6/6/07, Dani

Re: async exceptions display

2007-06-07 Thread Julian Wood
Hey it's back! Thanks Jesse. J On 6-Jun-07, at 6:58 PM, Jesse Kuhnert wrote: Never mind I'm a liar.Guess I broke it the other day with a different change. Is fixed now and will be deployed whenever I run out of bug fixing steam. On 6/6/07, Julian Wood <[EMAIL PROTECTED]> wrote: Hm

Re: Refreshing a dojo Dialog on submit

2007-06-07 Thread Christian Dutaret
If your submit is async, just specify your form component id (or any component you want refreshed on submit) in the updateComponents attribute of the @Form. 2007/6/7, Stephane Decleire <[EMAIL PROTECTED]>: Hi, I've got a signon form in a dojo Dialog box. Is there a way to refresh the content o

Refreshing a dojo Dialog on submit

2007-06-07 Thread Stephane Decleire
Hi, I've got a signon form in a dojo Dialog box. Is there a way to refresh the content of the Dialog box in order to show authentication errors when the submit button is fired ? Thanks in advance. Stephane - To unsubscribe,

Re: Moving from ognl to T5 prop

2007-06-07 Thread Howard Lewis Ship
For the moment, you can use the negate parameter of the If component. I would eventually like to convert the prop: expression language from ad-hoc into something more formal, based on a real grammar. I don't think I ever want it to be as sophisticated as OGNL, but it would be nice if it could ha

Moving from ognl to T5 prop

2007-06-07 Thread Dan Adams
So I'm jumping into T5 and most of my ognl expressions like "foo.bar.baz" all transfer pretty effortlessly into prop. As for other more complicated expressions like "ognl:foo ? bar : baz" these I can move into a public method. But often I'll have expressions like "ognl:! foo". How do simple express

Namespace and @InjectPage

2007-06-07 Thread Stephane Decleire
Hi, Is there a way to set a namespace in the @InjectPage annotation ? Stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 Where to store CSS/JS files and images

2007-06-07 Thread Daniel Jue
You may want to look into the way the T5 Grid or Palette component is constructed, since they have their own js, css and images. I am assuming you are tryign to store the assets along with the page you are creating. Otherwise, the a good place to put them is: src/main/webapp/css src/main/webapp

How to use the third-party T5 Component in another T5 project

2007-06-07 Thread Allen Guo
Hi All, I use T5.0.4. I packaged some common components to common.jar. You know, in T3/4, we may add a configuration like contrib to .application file. But how can I use it in my another project base on T5? Thanks Allen Guo -

T5 Where to store CSS/JS files and images

2007-06-07 Thread Erik Vullings
Hi All, Could somebody tell me what's the best place in T5.0.5 to store general (i.e., they are not needed by Tapestry, but only to by the page) css files, js files and images, and where to store CSS/JS etc files specifically needed for building components? Thanks Erik

T4.1.2: dojo wipe effects broken with IE7

2007-06-07 Thread Christian Dutaret
Hi all, I have a page with a js script that uses dojo wipe animation. Here is a fragment of the js: wi = dojo.lfx.html.wipeIn(node, 400, null, null); wi.play(); This was working fine cross-browsers with whatever version of dojo that came with T4.1.1. After I upgraded to 4.1.2, it k

T4.1.2: very strange behavior using EventListener with form having only hidden fields

2007-06-07 Thread Christian Dutaret
Hi all, My app has a page with a form having only hidden fields. I use this form to rewind some values on async events. This was working fine with T4.1.1. After I upgraded to 4.1.2, and after some (unrelated) tweaks, it was also working fine on my dev windows laptop. After I deployed it on a "sem

RE: Tutorial on Friendly URL's

2007-06-07 Thread Kolesnikov, Alexander GNI
Sorry, I didn't realise that was about T5 :) Yeah, complete documentation would be helpful indeed but the world we live in isn't perfect ;) And the guys who are creating Tapestry are already doing quite a lot of work, so we need to find ways... -Original Message- From: Peter Stavrinides [m

Re: Tutorial on Friendly URL's

2007-06-07 Thread Igor Drobiazko
The documentation is not outdated. The example in the tutorial works fine for Tapestry 4.1.2 If you would post the corresponding parts of your web.xml and hivemodule.xmlit would be easier to find your problem. And maybe some lines of the exception stack trace you are getting. On 6/7/07, Peter Sta

Re: 4.1 programmatically define message key

2007-06-07 Thread Paul Stanton
Thanks guys. Nick Westgate wrote: I'm not working with T4, but if you control "value" carefully: ognl:messages.message('message.' + value) Cheers, Nick. Kolesnikov, Alexander GNI wrote: I would actually have a method in the page class to retrieve this message, but I wonder if something like

Re: Tutorial on Friendly URL's

2007-06-07 Thread Peter Stavrinides
Thanks Alexander I already have an old copy of Kent's book, and I am not getting the new one so close to Tapestry 5's release. Also, If I happened to be new to Tapestry I would be offended by being told to buy a book because the examples in the documentation don't work. It wouldn't hurt to upda

Re: T5: select component with support for attribute "multiple"

2007-06-07 Thread Martin Grotzke
On Thu, 2007-06-07 at 10:39 +0200, Michael Maier wrote: > Am 06.06.2007 um 23:00 schrieb Martin Grotzke: > > I didn't change the type of _value to be able to use the component > > with or without multiple="true", but perhaps it's better to have a > > dedicated multiselect component, so the _value c

Re: 4.1 programmatically define message key

2007-06-07 Thread Nick Westgate
I'm not working with T4, but if you control "value" carefully: ognl:messages.message('message.' + value) Cheers, Nick. Kolesnikov, Alexander GNI wrote: I would actually have a method in the page class to retrieve this message, but I wonder if something like this will work: ? -Original

RE: 4.1 programmatically define message key

2007-06-07 Thread Kolesnikov, Alexander GNI
I would actually have a method in the page class to retrieve this message, but I wonder if something like this will work: ? -Original Message- From: Paul Stanton [mailto:[EMAIL PROTECTED] Sent: 07 June 2007 09:19 To: Tapestry users Subject: 4.1 programmatically define message key Hi

Re: T5: select component with support for attribute "multiple"

2007-06-07 Thread Michael Maier
Am 06.06.2007 um 23:00 schrieb Martin Grotzke: Do you have getters/setters with a Set then? Does the method signature depend on the value? no, I use the value-encoder to map the objects in the set to strings and vice versa... I didn't change the type of _value to be able to use the component

RE: Tutorial on Friendly URL's

2007-06-07 Thread Kolesnikov, Alexander GNI
Kent Tong explains all this nicely in his book. -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 07 June 2007 09:17 To: Tapestry users Subject: Re: Tutorial on Friendly URL's Seen this page already, also tried the example at the bottom, but got frustrated by

4.1 programmatically define message key

2007-06-07 Thread Paul Stanton
Hi all, How would I write this without the If, with just one Insert programmatically selecting the appropriate message key? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: Tutorial on Friendly URL's

2007-06-07 Thread Peter Stavrinides
Seen this page already, also tried the example at the bottom, but got frustrated by this line: StringBuilder builder = new StringBuilder(_url); This example is a copy paste effort from 4.0, there is no linkFactory ? Igor Drobiazko wrote: http://tapestry.apache.org/tapestry4.1/usersguide/fri

Re: T4.1.1 - ComponentClass and Component annotation question

2007-06-07 Thread Paul Stanton
hows the release coming? Jesse Kuhnert wrote: I think I'm going to start a vote to release it this week, so if that goes well possibly this week. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Tutorial on Friendly URL's

2007-06-07 Thread Igor Drobiazko
http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html Look into the section 'page-service-encoder' On 6/7/07, Peter Stavrinides <[EMAIL PROTECTED]> wrote: Hi All Can anyone point me to an up-to-date tutorial on friendly URL's, the ones I have found so far are looking a little da

Tutorial on Friendly URL's

2007-06-07 Thread Peter Stavrinides
Hi All Can anyone point me to an up-to-date tutorial on friendly URL's, the ones I have found so far are looking a little dated. Ideally for Tapestry 4.1.2 Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit