AW: Trouble with the Tap 5 tutorial

2007-04-03 Thread Peter Schröder
i think that there is no need for a tutorial that does not work. i would appreciate it, if someone fixes the archetype, so that beginners dont have to deal with deprecated stuff. -Ursprüngliche Nachricht- Von: Massimo Lusetti [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 3. April 2007

RE: Prerendering a field

2007-04-03 Thread Anton Nikitin
Neat, that looks like it could work - thx Andreas! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Andreou Sent: Tuesday, April 03, 2007 11:56 PM To: Tapestry users Subject: Re: Prerendering a field http://tapestryjava.blogspot.com/2004/12/back-fr

Re: T5 Hibernate long conversations (session-per-conversation)

2007-04-03 Thread Bill Holloway
Well, we will probably head into clustering some day. What pattern, then, can we use to do optimistic locking without hibernate "long conversations"? I don't think session-per-request can do it. bill On 4/3/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: My problem with session-per-conversat

Page w/o specification [T4.1.1]

2007-04-03 Thread Anton Nikitin
This probably has been answered in the past, sorry if I'm repeating. Creating a simple page without specification (just the .html file, without the .page) always throws PageNotFoundException: "Page '' not found in application namespace." However, documentation mentions (http://tapestry.apache.org

Re: Prerendering a field

2007-04-03 Thread Andreas Andreou
http://tapestryjava.blogspot.com/2004/12/back-from-shoppingcom-defer-component.html could give some ideas though... On 4/4/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: None that I know of. It's extremely hacky as it is with just FieldLabel / TextField. On 4/3/07, Anton Nikitin <[EMAIL PROTECTE

Re: Prerendering a field

2007-04-03 Thread Jesse Kuhnert
None that I know of. It's extremely hacky as it is with just FieldLabel / TextField. On 4/3/07, Anton Nikitin <[EMAIL PROTECTED]> wrote: Hi all, Is there a quick way to trigger prerendering of some field (for a standard component, like @TextField) before another field, similar to @FieldLabel's

Prerendering a field

2007-04-03 Thread Anton Nikitin
Hi all, Is there a quick way to trigger prerendering of some field (for a standard component, like @TextField) before another field, similar to @FieldLabel's "prerender" attribute? I'm trying to find a workaround for T's trick where if I want field A rewound before field B, I have to change seque

Re: Create Shoutcast service in Tapestry.

2007-04-03 Thread Jesse Kuhnert
You can still do HttpServletResponse.setStatus(int code, String message); It's deprecated so there may be a better way but who knows..It wouldn't make sense if they didn't let you do it. On 4/3/07, Hans Drexler <[EMAIL PROTECTED]> wrote: On Tue, 03 Apr 2007 14:11:03 +0100, Richard Kirby wrote >

Re: T5 Hibernate long conversations (session-per-conversation)

2007-04-03 Thread Howard Lewis Ship
My problem with session-per-conversation is that its totally incompatible with clustering, since the objects in the detached session are not propogated to other servers. That being said; yes some kind of mechanism (as service, an ASO) to hold onto the sessions between requests, to support detach

T5 Hibernate long conversations (session-per-conversation)

2007-04-03 Thread Bill Holloway
Has anyone implemented session-per-conversation (my preferred way to handle optimistic locking) in T5? Right now, tapestry-hibernate implements session-per-request. I'm thinking an application state object is a good place to start here with methods like startConversation() and endConversation()

Re: Creating ajax-based expandable tree-like structures

2007-04-03 Thread andyhot
Also, 2 very useful implementations of a KeyProvider and a TreeContentProvider where added in tacos-4.1 http://fisheye3.cenqua.com/browse/tacos/tacos-4.1/trunk/tacos-core/src/java/net/sf/tacos/model/impl/BeanPropertyKeyProvider.java?r=469 http://fisheye3.cenqua.com/browse/tacos/tacos-4.1/trunk/t

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Jesse Kuhnert
Resolved as not valid. :) Just so everyone else is clear, elements && component event listeners work equally well in components as they do pages. On 4/3/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Filed under https://issues.apache.org/jira/browse/TAPESTRY-1398 Jesse Kuhnert wrote: > Ah .

Re: Trouble with the Tap 5 tutorial

2007-04-03 Thread Massimo Lusetti
On 4/3/07, Andy Zimmerman <[EMAIL PROTECTED]> wrote: Any suggestions on the "correct" way to resolve this problem? Please have a look at ML archives. That annotations are gone since T5-ioc has lost namespace capablities they are no more needed, now use the correct naming convention. -- Massim

Trouble with the Tap 5 tutorial

2007-04-03 Thread Andy Zimmerman
While trying to follow along through the Tap 5 tutorial (I realize it isn't finished), I ran into a problem. The create archetype made an AppModule class that has a couple of imports that do not resolve. Specifically: import org.apache.tapestry.ioc.annotations.Contribute; import org.apache.tape

Re: It's working now - but HOW does it work? ;-)

2007-04-03 Thread Sam Gendler
I've run into this problem on some heavyweight pages using Tap 4.0 and Tacos 4.0. I basically had to modify all my pages so that models are initialized only on access. If I need a model to reinitialize after the rewind cycle, I set it back to null during a listener method. In Tap4.0 + tacos, ev

Re: Creating ajax-based expandable tree-like structures

2007-04-03 Thread Borut Bolčina
Have a look at this blog http://andyhot.di.uoa.gr/blojsom/blog/default/java/2006/08/17/Tapestry-Building-Trees-with-Tacos-and-Annotations.html It sure helped me. Cheers, Borut Wojtek Ciesielski wrote: Hi all, I am trying to figure out some elegant way to use Tapestry to build dynamic ajax-ba

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Borut Bolčina
Filed under https://issues.apache.org/jira/browse/TAPESTRY-1398 Jesse Kuhnert wrote: Ah .It could be that element event listeners don't work in components, but component event listeners will work. Did anyone file a bug for that? On 4/3/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Hello,

Re: [T4.1] Question About @Shell and @Body

2007-04-03 Thread Jesse Kuhnert
I think you still have to use a @Body even without the @Shell but you can use the @ScriptIncludes instead of the shell - which ~only~ includes js on the page: http://tapestry.apache.org/tapestry4.1/components/general/scriptincludes.html On 4/3/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I am

Re: Creating ajax-based expandable tree-like structures

2007-04-03 Thread Jesse Kuhnert
I think you want: http://opencomponentry.com:8080/tacos/ajax/TreeExample.html On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponent

Creating ajax-based expandable tree-like structures

2007-04-03 Thread Wojtek Ciesielski
Hi all, I am trying to figure out some elegant way to use Tapestry to build dynamic ajax-based tree-like UI widget. In general it's about showing some hierarchical data: * Some data item * some sub property * some sub property * last level of props * some sub property Each leve

RE: T4.1.1: injecting service into page/component

2007-04-03 Thread Ben Dotte
This should do the trick @InjectObject("engine-service:page") public abstract IEngineService getPageService(); Ben -Original Message- From: Wojtek Ciesielski [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 11:18 AM To: Tapestry users Subject: T4.1.1: injecting service into page/

Re: BeanEditForm

2007-04-03 Thread Howard Lewis Ship
I'm currently innundated ... working full time for a T4 customer, and putting together a bunch of presentations for NFJS, OSCON and JavaOne. Try checking around the T5 integration tests, I think there's a useful example there. On 4/3/07, Graham Ford <[EMAIL PROTECTED]> wrote: Thanks Howard. Is

[T4.1] Question About @Shell and @Body

2007-04-03 Thread Chris Chiappone
I am wondering if the @Shell and @Body components are required in order to get the ajax function to work with tapestry pages. I already have a header and footer defined using jsp's in a legacy application. I am beginning to introduce Tapestry pages as we are moving forward. Is there a way of man

T4.1.1: injecting service into page/component

2007-04-03 Thread Wojtek Ciesielski
Hi there - I need to obtain PageService within a method of my page/component (to get textual link to the injected page). How can I do this? @InjectObject("service:tapestry.services.Page") public abstract PageService getPageService(); is not working... Thanks in advance, Wojtek

Re: .jwc-file-free components for libraries (4.1.1)

2007-04-03 Thread Jesse Kuhnert
I do remember being annoyed by this lately, if you file a jira issue for it I'll fix it quickly. On 4/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: We are trying to move a little library of ours to Java-5 with full usage of annotations, without jwc-files. While a component itself is recogni

.jwc-file-free components for libraries (4.1.1)

2007-04-03 Thread Marcus.Schulte
We are trying to move a little library of ours to Java-5 with full usage of annotations, without jwc-files. While a component itself is recognised this way. Asset-resolution relative to the (non-existing) specification doesn't work. Did I overlook anything? Or would that be an improvement-issue in

Re: Tapestry 4.1.2

2007-04-03 Thread Gareth
Thanks Jesse. - Original Message From: Jesse Kuhnert <[EMAIL PROTECTED]> To: Tapestry users Sent: Tuesday, 3 April, 2007 2:34:52 PM Subject: Re: Tapestry 4.1.2 Maybe another week or two. It is entirely dependent on seeing the ognl features stabilize. On 4/3/07, Gareth <[EMAIL PROTECTED

Re: It's working now - but HOW does it work? ;-)

2007-04-03 Thread Jesse Kuhnert
You can call IRequestCycle.getResponseBuilder().isDynamic() to see if it's a dynamic request and skip any heavy operations you don't need to perform. On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Jesse Kuhnert wrote: > I don't think "onClick" will be a valid js event name to listen to.

It's working now - but HOW does it work? ;-)

2007-04-03 Thread Wojtek Ciesielski
Jesse Kuhnert wrote: I don't think "onClick" will be a valid js event name to listen to. In this instance it has to be "onclick" . Thanks, it could be a reason (I was changing several things at once trying to fix it so I'm only 90% sure that that's it ;-)). And I've noticed that even when @E

Re: Create Shoutcast service in Tapestry.

2007-04-03 Thread Hans Drexler
On Tue, 03 Apr 2007 14:11:03 +0100, Richard Kirby wrote > Hi Hans, > > The status line is output by the servlet engine - not Tapestry, > since it is a core part of the HTTP spec. > > What you may be able to do, is create a javax.servlet.Filter which > reads the response from Tapestry into a str

Re: Tapestry 4.1.2

2007-04-03 Thread Jesse Kuhnert
Maybe another week or two. It is entirely dependent on seeing the ognl features stabilize. On 4/3/07, Gareth <[EMAIL PROTECTED]> wrote: Hi All, Is there a likely approximate release date for tapestry 4.1.2 yet? If so, could you please share it, I couldn't find it on the website anywhere. Than

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Jesse Kuhnert
Ah .It could be that element event listeners don't work in components, but component event listeners will work. Did anyone file a bug for that? On 4/3/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Hello, event listeners aren't called in components, only in pages. I had the same problem and

Tapestry 4.1.2

2007-04-03 Thread Gareth
Hi All, Is there a likely approximate release date for tapestry 4.1.2 yet? If so, could you please share it, I couldn't find it on the website anywhere. Thanks Gareth ___ What kind of emailer are you? Find out today - g

Re: HandyTapestry 1.0, Intellij Idea Tapestry plugin

2007-04-03 Thread Borut Bolčina
Thanks for the reply Jesse. P.S. Any progress on http://jira.opensymphony.com/browse/OGNL-16 which is closed, but I still have problems? On 3.4.2007 14:27, Jesse Kuhnert wrote: I use it to develop / use 4.1 - so I guess it has pretty good support there. I don't know if it has any specific 4.1

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Borut Bolčina
Hello, event listeners aren't called in components, only in pages. I had the same problem and then moved the listener to enclosing page. See "@EventListener in Border" post. -Borut On 3.4.2007 13:55, Wojtek Ciesielski wrote: Hi all, I cant get dojo EventListener to work. The same happen

Re: Create Shoutcast service in Tapestry.

2007-04-03 Thread Richard Kirby
Hi Hans, The status line is output by the servlet engine - not Tapestry, since it is a core part of the HTTP spec. What you may be able to do, is create a javax.servlet.Filter which reads the response from Tapestry into a stream, hopefully including the status line - and then just re-output

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Jesse Kuhnert
I don't think "onClick" will be a valid js event name to listen to. In this instance it has to be "onclick" . On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: I've made it ultra-simple...: SimplePage.java: === public abstract class SimplePage extends BasePage { private static

Re: BeanEditForm

2007-04-03 Thread Graham Ford
Thanks Howard. Is there any chance anyone could give a bit more info on this. I have got the BeanModel and tried to add the fields of the child object to it, but I am always getting an error. I am probably doing something dumb, but if anyone could show me the way, I would be grateful. Graham

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
I've made it ultra-simple...: SimplePage.java: === public abstract class SimplePage extends BasePage { private static final Logger log = Logger.getLogger(SimplePage.class); @EventListener(elements = "someId", events="onClick", async=true) public void testEvent() { log.info("Cau

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Jesse Kuhnert
Yeah you should see something along the lines of : dojo.event.connect(dojo.byId("someId"), ... . towards the bottom of your page. You might also try using Tapestry 4.1.2 instead of 4.1.1. They should both work equally well but I can't remember if 4.1.1 had any issues in this area or not. O

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
Jesse Kuhnert wrote: Offhand I'd say the PageEvent object looks suspicious. It supports a BrowserEvent object but might just pass your method by if it sees a parameter it doesn't know about. What effects in the rendered page source should such annotation cause? Currently I'm not seeing anythi

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
Jesse Kuhnert wrote: Offhand I'd say the PageEvent object looks suspicious. It supports a BrowserEvent object but might just pass your method by if it sees a parameter it doesn't know about. My experiments with a method with no arguments are also failing... @EventListener(elements = "someId",

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Jesse Kuhnert
Offhand I'd say the PageEvent object looks suspicious. It supports a BrowserEvent object but might just pass your method by if it sees a parameter it doesn't know about. On 4/3/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Hi all, >> I cant get dojo EventListener to work. The same happens w

Re: HandyTapestry 1.0, Intellij Idea Tapestry plugin

2007-04-03 Thread Jesse Kuhnert
I use it to develop / use 4.1 - so I guess it has pretty good support there. I don't know if it has any specific 4.1 feature support though. (nor could I think of any specific feature in 4.1 that it would need to handle in an ide ) On 4/3/07, Borut Bolčina <[EMAIL PROTECTED]> wrote: Any plans

Re: Cant get Ajax @EventListener to work :( [+1]

2007-04-03 Thread Wojtek Ciesielski
Hi all, I cant get dojo EventListener to work. The same happens with me :( Are there any preparatory steps to perform to use EventListener? I have a template : MyTemplate: click here... ... Within MyTemplate.java: public abstract class MyTemplate extends BaseComponent {

Re: HandyTapestry 1.0, Intellij Idea Tapestry plugin

2007-04-03 Thread Borut Bolčina
Any plans for 4.1.x support? Cheers, Borut On 2.4.2007 13:34, Alexei Orishchenko wrote: HandyTapestry 1.0 released If you develop a http://tapestry.apache.org/ Tapestry web application using http://www.jetbrains.com/idea IntelliJ Idea then try http://handyedit.com/handytapestry.html

Re: HandyTapestry 1.0, Intellij Idea Tapestry plugin

2007-04-03 Thread Alexei Orishchenko
Dmitriy Vsekhvalnov wrote: > > Is it commercial one? > Or will go to commerce in future? > The HandyTapestry is shareware. You http://handyedit.com/eval.html try it (45-day evaluation license). After trial period you http://handyedit.com/order.html buy the license or remove the plugin from

Create Shoutcast service in Tapestry.

2007-04-03 Thread Hans Drexler
We try to create a Tapestry-service that generates a Shoutcast stream. The problem is that the shoutcast response must have a status line that reads: ICY 200 OK Instead, the status line we get is always: HTTP/1.1 200 OK Many mediaplayers (WinAmp, Xmms, iTunes) accept the header with HTTP status

Re: pageBeginRender and submit

2007-04-03 Thread Martino Piccinato
You can look here: http://tapestry.apache.org/tapestry4.1/faq.html#submit-lifecycle on form submit pageBeginRender is called before the form submit listener discarding output in order to set page and page components in the proper status before your listener is called. As your next question might

pageBeginRender and submit

2007-04-03 Thread paolo
Hi, I'm quiet new of tapestry. I have a problem in calling a page. My form in MyPage.html is In MyPage.java I have a method submitMainForm(IRequestCycle cycle) and the pageBeginRender method. When I press submit button, I see that is called: pageBeginRender method, submitMainForm pa