T5: 5.0.8 snapshot java.lang.ClassNotFoundException for array

2008-01-17 Thread Foror
In 5.0.7 snapshot properties with type "String[]" normally worked, after update last revision problems have begun: java.lang.ClassNotFoundException java/lang/String[] Stack trace * java.lang.Class.forName0(Native Method) * java.lang.Class.forName(Class.java:247) * org.apa

Re: [T4.1.3] Problems with async DireckLink

2008-01-17 Thread Ulrich Stärk
This looks correct to me. I even tried your code with Tapestry 4.1.3 and it works correctly both in Firefox and IE 6.0. Are you really sure, that the whole page is reloading? How do you know? Uli Am Do, 17.01.2008, 08:13, schrieb Pai911: > > So, you read this in mail box > Then I think I should r

pass response

2008-01-17 Thread comett
in my service, public void service(IRequestCycle cycle), i pass "HttpServletResponse" to new Thread, in the new thread, i execute response.getwriter().print("xxx").. , i get the bottom error. if i not using new thread, response print can display properly, but with thread, i cannot do that. any id

Re: T5: using TapestryTestCase

2008-01-17 Thread Igor Drobiazko
Mock the session and pass through to the constructor: Session session = newMock(Session.class); Service service = new Service(session); On Jan 17, 2008 8:14 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there any tutorial on using TapestryTestCase ? say, I'd like to test a > service

Re: T5: Some problem with prob binding

2008-01-17 Thread Foror
I have solved a problem. In Team changed setId(String id) to setId(Object id) when ok. F> In the project there is a following: F> public interface ISimpDesc { F>public getId(); F> } F> public class Team implements ISimpDesc { F> // hibernate annotations F> @DocumentId F>

t5: getting parameter from request

2008-01-17 Thread Angelo Chen
Hi, in a dispatcher, public boolean dispatch(Request request, Response response) if I pass url :http://localhost:8080/myapp/profile/262 in the browser, request.getPath() returns '/profile', I'd like to get 262 as well, anyway to retrieve this? Thanks, A.C. -- View this message in context:

RE: bidirectional dom interface

2008-01-17 Thread DR_GLoPeL_BouCa
Hello people, I've the similar problem, the browser not display the response of ajax submit, I've form with submit async="true" and updateComponents="ognl:customerTable", when the ajax response come browser don't display any change, but in the fireBug bar, inspect de response and is in there, what

Re: Tapestry & IDEA

2008-01-17 Thread Matt Brock
Alejandro Scandroli wrote: > > Idea needs you to explicitly hit CRTL-SHIFT-F9 (to compile just one > class) or CTRL-F9 (make project) You can also use the ANT BUILD dialog window pane. You can even assign shortcuts to particular build definitions. I usually have at least three in any build: a

Re: Programmatically generating DirectLinks with updateComponents

2008-01-17 Thread Kaspar Fischer
For others running into a similar problem. I've solved it as follows. My markup contains: updateComponents="result" async="true" parameters="ognl: {page.parameter}"> At the place where I need to programmatically generate the link, I call my page's setLinkText() method (which I added as

Re: [T4] escaping text for Javascript

2008-01-17 Thread Matt Brock
Kalle Korhonen-2 wrote: > > I needed to escape some strings pulled from database for Javascript, and > it > turned out to be surprisingly difficult. AFAIK, none of the Tapestry/Tacos > markup writers/character translators escapes a single quote ' Well, that's because you don't necessarily have t

Re: [T4] AJAX: reender whole page or just send back the markup of the div

2008-01-17 Thread Kaspar Fischer
On 11.01.2008, at 05:02, Pai911 wrote: Hi! I don't think that Tapestry will render the whole page when a listener is in invoked Asynchronously. Hm, I think not: When I open the link in a new window, the whole page shows. So I think the whole page is actually rendered, returned to the

T5: dynamically set disabled attribute

2008-01-17 Thread Eric BIANCHI
Hello List, Using Tapestry 5, I'd like to dynamically set the disabled attribute of a Field depending of its id. So, on the same form, I could say : component1 has the disabled attribute set to true, component2 has the disabled attribute set to false and so on. I tried the following on th

@ApplicationState fields keyed by class, not instance

2008-01-17 Thread kwaclaw
I am new to Tapestry 5 (never looked at previous versions). Forgive my possibly naive question: It seems ApplicationState annotated fields are keyed by class, so this really supports only one instance (singleton) per class (and per scope, usually session). Would it not be useful to be able to pa

Re: T5: Autocomplete not working in form in block in zone

2008-01-17 Thread Daniel Jue
I am just starting with Zones, but is Zone support for forms working at all? I seem to recall on the nightly docs that form support is not working yet. On Jan 17, 2008 1:13 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > Before entering a JIRA, wanted to hit the list. Didn't see this in search. >

T5: Autocomplete not working in form in block in zone

2008-01-17 Thread Bill Holloway
Before entering a JIRA, wanted to hit the list. Didn't see this in search. I put an autocomplete textfield in a form and put that in a block which I then inject into a zone component with an actionlink. The autocomplete so configured does not complete. Doesn't even issue the XHR call. Thoughts

Re: [T4] escaping text for Javascript

2008-01-17 Thread Kalle Korhonen
On 1/17/08, Matt Brock <[EMAIL PROTECTED]> wrote: > > Kalle Korhonen-2 wrote: > > I needed to escape some strings pulled from database for Javascript, and > > it > > turned out to be surprisingly difficult. AFAIK, none of the > Tapestry/Tacos > > markup writers/character translators escapes a singl

Re: Using a component in a subpackage

2008-01-17 Thread Michael Courcy
I found the answer myself it's explain here http://lombok.demon.co.uk/tapestry5Demo/test/components/colorpickerdemosource sorry Michael Courcy a écrit : Hi I made a component call Personne in ${tapetry-root-package}/components package and it works fine But I'd like to move my component in

T5: Reading context before persistent fields are read

2008-01-17 Thread Ted Steen
I need to hook in somewhere between where the context is available and the persistent fields are read. I need to read a context variable just before my PersistentFieldStrategy tries to read from the session, as I need a value from the context when reading from the session. What should I inject int

Re: Tapestry & IDEA

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 11:33 AM, Kevin Menard <[EMAIL PROTECTED]> wrote: > Hi all, > > It's time for me to ask about IDEA and Tapestry again. I seem to go in > cycles with the whole thing. > > Recent traffic indicates that there's now a decent number of people using > IDEA with Tapestry. My question is

Re: @ApplicationState fields keyed by class, not instance

2008-01-17 Thread Howard Lewis Ship
Long experience has shown that these objects tend to be singletons. It's generally things like the user's identity or account information or shopping basket. Earlier versions of Tapestry uses a mechanism similar to what you have. It was always a lot of unwanted configuration. This streamlined ap

Re: Tapestry & IDEA

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 12:04 PM, Michael Lake <[EMAIL PROTECTED]> wrote: > > For T5, in lieu of jettyLauncher you might try looking into extending > the following class somewhere in your test sources: > > org.apache.tapestry.test.JettyRunner > > make a wrapper around it with a class that has a static mai

Re: pass response

2008-01-17 Thread Ted Steen
many services only lives during the request/response cycle, so doing things in threads is not a good idea as the objects behind the proxies may be invalid when/while you use them. so the solution would be not to use threads. what are you trying to do? 2008/1/17, comett <[EMAIL PROTECTED]>: > in m

[T5] Choosing components at runtime

2008-01-17 Thread johnowenatala
Hi, i have a place in a page where i wanna put a component, but which component is desided in runtime (can be from configuration or from request parameters). I tried to do this by putting a delegate component, but i couldn't inject in runtime an unknowed component in compilation time. What do you

Re: [T5] Choosing components at runtime

2008-01-17 Thread Michael Courcy
Taken from http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html Rendering Components Instead of returning true or false, a render phase method may return a component. The component may have been injected via the Component

Re: tapestry-spring

2008-01-17 Thread HongDa Tang
After strictly following the instructions provided http://howardlewisship.com/tapestry-javaforge/ , the maven gave the same error. This error first appeared as http://howardlewisship.com/repository/ website stop generating directory listings. You can reproduce this error by remove your .m2/re

Re: [T5] Choosing components at runtime

2008-01-17 Thread Chris Lewis
Perhaps you could try this. In your template, have a component that grabs it's id from the page like so: I'm not sure if T5 allows expansions here, but you can try this and maybe a prop: binding. Assuming you're able, add this in your page class: public String getComponentId() { return c

Re: bidirectional dom interface

2008-01-17 Thread Thiago HP
On Jan 17, 2008 12:12 PM, DR_GLoPeL_BouCa <[EMAIL PROTECTED]> wrote: > > Hello people, I've the similar problem, the browser not display the > response > of ajax submit, I've form with submit async="true" and > updateComponents="ognl:customerTable", when the ajax response come browser > don't disp

Re: tapestry-spring

2008-01-17 Thread Ulrich Stärk
I'm sorry, tapestry-javaforge is indeed needed as this is the parent pom for tapestry-spring. But it's working nonetheless. I just double checked this, just to make sure. http://www.howardlewisship.com/repository/com/javaforge/tapestry/tapestry-javaforge/1.0.0-SNAPSHOT/maven-metadata.xml lists

Re: tapestry-spring

2008-01-17 Thread Howard Lewis Ship
I'll be looking at this today, in a few hours. On Jan 17, 2008 1:37 PM, HongDa Tang <[EMAIL PROTECTED]> wrote: > After strictly following the instructions provided > http://howardlewisship.com/tapestry-javaforge/ , the maven gave the same > error. This error first appeared as http://howardlewis

Re: tapestry-spring

2008-01-17 Thread Ulrich Stärk
http://howardlewisship.com/repository/com/javaforge/tapestry/tapestry-spring/1.0.0/tapestry-spring-1.0.0.pom works OK. As does http://howardlewisship.com/repository/com/javaforge/tapestry/tapestry-spring/1.0.0/tapestry-spring-1.0.0.jar It's just the directory listings that aren't but that shouldn

Re: [T5] Choosing components at runtime

2008-01-17 Thread johnowenatala
Thanks, but that has the same problem that using delegate: in the page class I can't make this: @Component private OnePosibleComponentToPut comp1; @Component private OtherPosibleComponentToPut comp2; because apparently you can only inject components that are already present in the template, and

Re: T5: Reading context before persistent fields are read

2008-01-17 Thread Howard Lewis Ship
If you mean the event context (as opposed to the page activation context), then ... The path of least resistance is: 1) Define a service with a simple read/write property to store the context. Make sure this is perthread scope. 2) Contribute a filter to the ComponentActionRequestHandler pipeline

Re: t5: getting parameter from request

2008-01-17 Thread Howard Lewis Ship
That's odd, it doesn't do that for me. What is your web.xml and what servlet container are you using? On Jan 17, 2008 2:37 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > in a dispatcher, > > public boolean dispatch(Request request, Response response) > > if I pass url :http://localhost:808

Re: TAP-5: Tapestry Release Semantics and legacy thereof

2008-01-17 Thread Howard Lewis Ship
On Jan 16, 2008 10:38 AM, Ken in nashua <[EMAIL PROTECTED]> wrote: > > Hi, > > I have been watching tapestry release semantics for many years now, as they > happen, as they impact the commercial field and related hurdles. > > Given the maturity of the framework and it's concepts... is it reasonabl

Re: T5: Reading context before persistent fields are read

2008-01-17 Thread Ted Steen
Yep, that did it. Thanks! 2008/1/18, Howard Lewis Ship <[EMAIL PROTECTED]>: > If you mean the event context (as opposed to the page activation > context), then ... > > The path of least resistance is: > > 1) Define a service with a simple read/write property to store the > context. Make sure this

Re: T5: dynamically set disabled attribute

2008-01-17 Thread Howard Lewis Ship
Beginner's level Tapestry: Bind the disabled parameter of each field to a property that returns true when the field should be disabled and false otherwise. Journeyman level Tapestry: An alternative would be to define a special kind of binding for this purpose. I'd need more details, but a Bindi

Re: T5: Reading context before persistent fields are read

2008-01-17 Thread Howard Lewis Ship
The pipelines and chains of command make it easy to "slip in" specific logic. OH, an alternative to defining a service to contain the data is to just write it as a Request attribute. I've used that approach for handling a few awkward cases. On Jan 17, 2008 5:56 PM, Ted Steen <[EMAIL PROTECTED]>

Re: T5: Encoder and Loop

2008-01-17 Thread Howard Lewis Ship
That's the intent of the PrimaryKeyEncoder: to provide client/server synchronization so that TextFields inside Loops inside a Form can connect, when the client-side form is submitted, to equivalent server-side objects. The TextField components (and other form control element components) understand

Re: T5: using TapestryTestCase

2008-01-17 Thread Angelo Chen
Thanks, that works. one related question: I have this: public interface Mailer { public void send(); public String sendIt(); } then somewhere in the test, i'd like to make sure send is called, but it can not passed to expect as the latter expects a object, any way to 'expect' a void

Re: tapestry-spring

2008-01-17 Thread Howard Lewis Ship
FYI: I've been able to get in to my hosting provider and re-enable directory listings. On Jan 17, 2008 3:28 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > I'm sorry, tapestry-javaforge is indeed needed as this is the parent pom > for tapestry-spring. But it's working nonetheless. I just double chec

Re: T5: using TapestryTestCase

2008-01-17 Thread Andreas Andreou
Actually, take a look at some EasyMock tutorials (that's what's behind) i think their site has a few... Also, use: Mailer mailer = this.newMock(Mailer.class); expect(mailer.sendIt()).andReturn("done"); mailer.send(); On Jan 18, 2008 4:06 AM, Angelo Chen <[EMAIL PROTECTED]>

Re: T5: Autocomplete not working in form in block in zone

2008-01-17 Thread Bill Holloway
Ah! Thanks. I knew Howard wouldn't let that slide! Bill On Jan 17, 2008 10:31 AM, Daniel Jue <[EMAIL PROTECTED]> wrote: > I am just starting with Zones, but is Zone support for forms working > at all? I seem to recall on the nightly docs that form support is not > working yet. > > > On Jan 17,

Re: T5: Autocomplete not working in form in block in zone

2008-01-17 Thread Howard Lewis Ship
Yep, I haven't tackled the forms + ajax + zones work yet. On Jan 17, 2008 8:07 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > Ah! Thanks. I knew Howard wouldn't let that slide! > > Bill > > > On Jan 17, 2008 10:31 AM, Daniel Jue <[EMAIL PROTECTED]> wrote: > > I am just starting with Zones, but i

Re: T5: using TapestryTestCase

2008-01-17 Thread Howard Lewis Ship
Just invoke mailer.sendIt() while training your mocks, without an expect() call. Copious examples of this in the Tapestry code base. On Jan 17, 2008 6:06 PM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Thanks, that works. one related question: > > I have this: > > public interface Mailer { >

T5: Pretty URL

2008-01-17 Thread Joshua Jackson
Dear all, If I have pages under my pages package with this structures: + project + -- Detail.java + project.backlog + -- Panel.java Is it possible to have these URL : http://localhost:8080/pjx/project/999/backlog/panel ? So the id is in between instead of at the end of the URL to refer that the

T5: How to use the Zone component?

2008-01-17 Thread Joshua Jackson
Dear all, I'm trying to show a div element when an ActionLink component is hitted. This is the code: ${message:comment.add} ${message:comment} --- but instead of showing the div with id="zone" it returned an undefi

Re: T5: Pretty URL

2008-01-17 Thread Howard Lewis Ship
Sorry, no this isn't directly possible. Tapestry is pretty rigid about the format of the URLs: It's always the logical page name ("project/backlog/panel" for class (root).pages.project.backlog.Panel then the activation context (the 999 id in this example). It's basically like this: more flexibil

Re: T5: 5.0.8 snapshot java.lang.ClassNotFoundException for array

2008-01-17 Thread Howard Lewis Ship
Please add an issue and I'll figure out the fix. On Jan 17, 2008 12:33 AM, Foror <[EMAIL PROTECTED]> wrote: > In 5.0.7 snapshot properties with type "String[]" normally worked, after > update last revision problems have begun: > > java.lang.ClassNotFoundException > java/lang/String[] > > Stack tra

Re: T5: How to use the Zone component?

2008-01-17 Thread Geoff Callender
Off the top of my head, try this (untested): $ {message:comment.add} And some java: private boolean _myZoneVisible = false; @Component private Zone _myZone; Object onActionFromComment() { _myZoneVisible = !_myZoneVisible;

Re: T5: Pretty URL

2008-01-17 Thread Joshua Jackson
Thanks for the confirmation Howard, I'm going to find a workaround for this :) Best Regards, On 1/18/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Sorry, no this isn't directly possible. Tapestry is pretty rigid > about the format of the URLs: It's always the logical page name > ("project

Re: T5: How to use the Zone component?

2008-01-17 Thread Joshua Jackson
Thanks Geoff, It worked :) Best Regards, On 1/18/08, Geoff Callender <[EMAIL PROTECTED]> wrote: > Off the top of my head, try this (untested): > >$ > {message:comment.add} > > > And some java: > >private boolean _myZoneVisible = false; > >@Component >priv

Re: T5: Pretty URL

2008-01-17 Thread Angelo Chen
Hi, How about adding a dispatcher which will inspect the path first, if it's http://localhost:8080/pjx/project/999/backlog/panel then change it to: http://localhost:8080/pjx/project/backlog/panel/999, possible? Howard Lewis Ship wrote: > > Sorry, no this isn't directly possible. Tapestry is