Re: Create sub-package base on Tapestry5.0.4

2007-05-21 Thread Allen Guo
I did a lot of test yesterday. I found the real problem is If the page class start with package name then you put it under WEB-INF/sub package name, it won't work . For example, suppose there is a page class named Admin.java or Admin1.java lie in the sub package name is

Re: T5: Cobertura?

2007-05-21 Thread Jiri Mares
Hi Howard, I'm developing cobertura ... can you, please, give more information where the problem is to solve it ... or show me the way how to investigate, where it is ... Thanks Jirka Howard Lewis Ship napsal(a): Sorry if I was inexact; I'm shifting gears too constantly. On 5/17/07, Joel

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-21 Thread Massimo Lusetti
On 5/21/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: Wait for 5.0.5 ... I'm working on code for that right now, so you'll be able to write: img src=/products_images/${productImageURL}/ Still, from a maintainability situation, I would prefer that the complete URL come from the Java code

Re: page under web-inf subdirectory won't load

2007-05-21 Thread Paul Stanton
OK, so the strategy seems primed for a fairly limited approach; everything under web-inf or root. Why not also look under folders named the same as the package name (minus the value of 'org.apache.tapestry.page-class-packages') ? This is done in the root, so wouldn't it be just as simple to

How to override a service in T5?

2007-05-21 Thread Jun Tsai
In hivemind,I use implement to override an service . How to override a service in T5? -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

withId not override the service id in T5?

2007-05-21 Thread Jun Tsai
public static void bind(ServiceBinder binder){ binder.bind(MyPersistentFieldStorageImpl.class).withId(MyPersistentFieldStrategy); } public class MyPersistentFieldStorageImpl extends ClientPersistentFieldStorageImpl exception: Service interface

[T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Kristian Marinkovic
hi, i created a stylesheet component that does not allow informal parameters. i include my stylesheet component by using invisible instrumentation with t:id like below: link t:id=stylesheet href=style.css / Because T5 converts this to an Any component (see documentation) it tries to evaluate

Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Massimo Lusetti
On 5/21/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: is there a way to prevent this behaviour so T5 does not try to evaluate the (dummy text) parameters when using a component that does not allow informal parameters? Did you try literal prefix? -- Massimo http://meridio.blogspot.com

Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Kristian Marinkovic
hi massimo, it does work with literal: but i'd like to avoid that designers know more about Tapestry than t:id :). especially when they want to preview the template with a real stylesheet without tapestry. I've not looked deep enough into T5 template parsing but i expected it will ignore every

Re: T4.1.1 Validation issue - clientside + decoration works, but getHasErrors is false?

2007-05-21 Thread Jan Vissers
Silly mistake indeed. I forgot to include a delegate attribute on the form. -J. Jan Vissers wrote: I must be missing something very trivial here. I have a form with some 'required' validation specified, in the onSubmit I check for getHasErrors()==true. The strange thing is that this is always

Re: any idea to inject a ejb to tapestry?

2007-05-21 Thread #Cyrille37#
Andrea Chiumenti a écrit : With T4 ? Have a look here: http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html I've added a copy of that mail in the Tapestry's wiki like now we can search EJB3 in the wiki and find it.

Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Massimo Lusetti
On 5/21/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: it does work with literal: but i'd like to avoid that designers know more about Tapestry than t:id :). especially when they want to preview the template with a real stylesheet without tapestry. Specify it in the class file as component

Another validation question - poplists

2007-05-21 Thread Jan Vissers
Hi - How can I make sure that whenever I select an invalid value from a poplist - according to my validator - this faulty value is still selected when the form is redisplayed? Currently the poplist (selected) value 'rolls back' to the value it had prior to the invalid selection. Thanks, -J.

Antwort: Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Kristian Marinkovic
hi massimo, i already have: public class Stylesheet { @Inject private AssetSource assetSource; @Parameter private String href; . i think that was my problem i used the parameter name i defined in my template (href) as a component parameter. when i rename my component

Re: Antwort: Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Nick Westgate
Kristian Marinkovic wrote: . i think that was my problem i used the parameter name i defined in my template (href) as a component parameter. when i rename my component parameter to lets say paramhref everything works as expected. Yes, the documentation for informal parameters mentions

Re: 5.0.5-SNAPSHOTS

2007-05-21 Thread Weisu
Hi Jun, Had you figured out this problem, I had same problem. Jun Tsai-2 wrote: 2007/5/17, Howard Lewis Ship [EMAIL PROTECTED]: I've been making a number of important T5 bug fixes; I've just uploaded the latest snapshots to http://people.apache.org/~hlship/tapestry-repository/ Feedback

Re: 5.0.5-SNAPSHOTS

2007-05-21 Thread Nick Westgate
I'm not sure, but try adding snapshots enabledtrue/enabled /snapshots to the repository section. Cheers, Nick. Weisu wrote: Hi Jun, Had you figured out this problem, I had same problem. Jun Tsai-2 wrote: 2007/5/17, Howard Lewis Ship [EMAIL PROTECTED]: I've been

RE: T5: Cobertura?

2007-05-21 Thread Joel Wiegman
Jiri, I know one of the Cobertura problems involved here is related to this bug: http://jira.codehaus.org/browse/MCOBERTURA-57 Obviously, this is not Cobertura but the Cobertura plug-in that Maven uses. The other appears to be an instrumentation issue which I will let you and Howard work

[T5] xforms component ?

2007-05-21 Thread Francois Armand
Hello, I continue my investigation with Tapestry 5 and enjoy it. My targeted application will have to use a lot of XForms forms and I wonder if an Xforms support is envisaged in Tapestry 5, perhaps as a kind of BeanEditor component. Well, perhaps that an XForms integration with T5 is a whole

[ANN] Tapestry 4 Tutorial, issue 10

2007-05-21 Thread Kolesnikov, Alexander GNI
Please have a look: http://www.devshed.com/c/a/Apache/Apache-Tapestry-ASO-and-More-Component s/ Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the

Re: T5: Cobertura?

2007-05-21 Thread Jiri Mares
Hi Joel, yes, the best way would be send me (can be directly to email) the source file, class file, instrumented class file by tapestry, instrumented file by cobertura and instrumented file by cobertura tapestry, if it is possible. And of course keep it as simple as possible. Thanks Joel

Re: page under web-inf subdirectory won't load

2007-05-21 Thread Jesse Kuhnert
That ~is~ what happens in 4.1.2. ..so.Maybe you should just try that out. On 5/21/07, Paul Stanton [EMAIL PROTECTED] wrote: OK, so the strategy seems primed for a fairly limited approach; everything under web-inf or root. Why not also look under folders named the same as the package name

T5: PageTester problems

2007-05-21 Thread Joel Wiegman
I'm pretty sure the PageTester/unit testing framework is in a very gelatinous state right now, but I thought posting this error might help stabilize it. I'm getting a CNFE upon the first call to PageTester.renderPage (and yes, the page compiles and displays fine when not using the PageTester).

RE: T5: PageTester problems

2007-05-21 Thread Joel Wiegman
Never mind... I had a stale war in development. I needed to replace org.apache.tapestry.TapestryFilter with org.apache.tapestry.spring.TapestrySpringFilter in my web.xml. -Original Message- From: Joel Wiegman [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 9:31 AM To: Tapestry

tapestry-testng

2007-05-21 Thread Peter Schröder
hi, will there be a 1.0.0 version on http://howardlewisship.com/repository/? i would like to use testng in my project, but i cant use maven-release-plugin with a snapshot-dependency... kind regards, peter - To unsubscribe,

Re: tapestry-testng

2007-05-21 Thread Jesse Kuhnert
I don't have control over the howardlewisship.com repo but I can certainly push the latest version of http://tapestry.apache.org/tapestry4.1/tapestry-test/index.html out to the ibiblio repos if that will help. ? On 5/21/07, Peter Schröder [EMAIL PROTECTED] wrote: hi, will there be a 1.0.0

Re: Validation display format not good in IE(Tapestry5.0.4)

2007-05-21 Thread Juan Maya
it looks fine for me. What kind of problem do u have? On 5/19/07, Allen Guo [EMAIL PROTECTED] wrote: Hi All, Has anyone tried the validation message display in IE I found the validation message display in IE is not good, but it's fine in FireFox. The test is based on Tapestry5.0.4 or

AW: tapestry-testng

2007-05-21 Thread Peter Schröder
sure! -Ursprüngliche Nachricht- Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. Mai 2007 15:55 An: Tapestry users Betreff: Re: tapestry-testng I don't have control over the howardlewisship.com repo but I can certainly push the latest version of

Re: @InjectScript - and how to pick them up

2007-05-21 Thread Jesse Kuhnert
You can inject it as an asset and use that as a parameter to your span jwcid=@Script block ...but either way if you're not executing the script directly in your component then there doesn't seem to be much benefit to defining it there. (or you could just inject a Script component and use that)

Multiple clicks solutions

2007-05-21 Thread Geoff Callender
Fair point, Jesse. But it does seem crazy that we're all solving the same problem again and again. So I guess I was thinking that maybe it's possible to codify the typical solutions to multiple clicks and provide them as an option on the Submit and similar components eg. you could choose

Re: [T5] Question about invisible instrumentation with t:id

2007-05-21 Thread Howard Lewis Ship
On 5/21/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: hi, i created a stylesheet component that does not allow informal parameters. i include my stylesheet component by using invisible instrumentation with t:id like below: link t:id=stylesheet href=style.css / Because T5 converts this to

Re: Validation display format not good in IE(Tapestry5.0.4)

2007-05-21 Thread Howard Lewis Ship
I've seen this too; please add a bug to JIRA (preferably with a patch to default.css). I develop on Mac using Firefox; it's looking like I need to set up a virtual PC so I can check up on the Bastard Child. On 5/19/07, Allen Guo [EMAIL PROTECTED] wrote: Hi All, Has anyone tried the

Re: withId not override the service id in T5?

2007-05-21 Thread Howard Lewis Ship
Tapestry is doing exactly what you told it, just not what you want. Your implementation has it own id (you see it in the exception). However, it's type overlaps the built-in ClientPersistentFieldStorage class. When Tapestry tries to resolve the injection by that type, it sees both services.

How to use loop component in Tapestry5.0.4

2007-05-21 Thread Allen Guo
Hi All, If I use loop component like 1. t:loop source=products value=product 2. a t:type=pagelink page=productdetails context=product.id${product.name}a 3. /t:loop I must craete a property named 'product' in page class. It'll report exception if I don't do like this. Is it

Developing Tapestry applications in IntelliJ IDEA

2007-05-21 Thread Anton Litvinenko
Hello, Would someone be kind enough to explain how it is possible to use Tapestry abilities not to cache templates in IntelliJ? (if I am not mistaken, then at least Jesse uses IDEA ;) With Eclipse and WTP it was fairly easy --- just needed to specify the corresponding system variable in the

Re: Developing Tapestry applications in IntelliJ IDEA

2007-05-21 Thread Jesse Kuhnert
That's what I do. (shift- F9) Of course it's entirely dependent on how you have your project setup. ...I've also had it setup so that my compile output directory goes directly into my web-inf/classes so changes are picked up automaticallyThen you just point everything to your single web

Blog on Tapestry's Future

2007-05-21 Thread Howard Lewis Ship
Warner has posted a blog entry on Tapestry's future: http://jroller.com/page/WarnerOnstine?entry=why_hasn_t_tapestry_been I'd love to see more comments. Honest comments about your experiences going from 3 to 4, your thoughts on better adoption, how you feel about Tapestry 5 (especially if you

When to use annotations and when specification - please advice

2007-05-21 Thread Jan Vissers
Obviously this is not a question for T5, but... using T4.1.1 - what do you consider valid arguments to use annotations over page/component specification - provided we use Java5 obviously. Any comment welcomed, Thanks, -J. - To

Re: When to use annotations and when specification - please advice

2007-05-21 Thread Howard Lewis Ship
For me, because annotation changes require a restart, I tend to use them in base classes, or after a page has largely stabilized. On 5/21/07, Jan Vissers [EMAIL PROTECTED] wrote: Obviously this is not a question for T5, but... using T4.1.1 - what do you consider valid arguments to use

Re: How to override a service in T5?

2007-05-21 Thread Howard Lewis Ship
You supply a new implementation with a new id, and contribute to the Alias service configuration. This will allow injections based on type to prefer your implementation over the built-in one. On 5/20/07, Jun Tsai [EMAIL PROTECTED] wrote: In hivemind,I use implement to override an service .

Re: page under web-inf subdirectory won't load

2007-05-21 Thread Paul Stanton
:O OK .. thanks When is 4.1.2 expected to have a production ready release? Jesse Kuhnert wrote: That ~is~ what happens in 4.1.2. ..so.Maybe you should just try that out. On 5/21/07, Paul Stanton [EMAIL PROTECTED] wrote: OK, so the strategy seems primed for a fairly limited approach;

Re: page under web-inf subdirectory won't load

2007-05-21 Thread Jesse Kuhnert
I'm not sure. My most reliable ognl tester had the nerve to go on some kind of honeymoon this week so the lack of reported issues may be a false positive. ...I think I really need to get this out the door now-ish though, so I think we'll do it next week. Just need to upgrade dojo to 0.4.3 this

T5: add request parameter to url

2007-05-21 Thread Martin Grotzke
hello, i'm just trying to implement a simple search form, that displays some items after the search. additionally, the url shall contain the request parameter then, so that the url /myapp/search becomes /myapp/search/query/ipod or /myapp/search/ipod if the user searched for ipod. is there a

Re: T5: add request parameter to url

2007-05-21 Thread Howard Lewis Ship
Yes, what you describe is called a page activation context, additional data added to the URL after the page name is identified. Please check the documentation. On 5/21/07, Martin Grotzke [EMAIL PROTECTED] wrote: hello, i'm just trying to implement a simple search form, that displays some

Does the 'source' of @For in a form got evaluated during a rewind ?

2007-05-21 Thread talk.small
form jwcid=cartForm table class=shoppingcart tr td/td td/td /tr /table /form I thought upon a rewind, the source=ognl:itemList will not be evaluated by pulling data from server side database, becuase the itemlist has been stores as hidden

Re: T5: add request parameter to url

2007-05-21 Thread Martin Grotzke
Hi Howard, i just found that I have to return a Link instance in the submit method, that contains the desired parameters. Now i realized that my stylesheet is no longer loaded correctly, so I added this to my page class: @Inject @Path(context:css/screen.css) private Asset

Re: Does the 'source' of @For in a form got evaluated during a rewind ?

2007-05-21 Thread Jesse Kuhnert
The reason being is that most of the time storing an entire object (serializing / size / etc ) is a huge amount of overhead both in terms of bandwidth and server execution time. You'd be better off using the convert / keyExpression or primaryKeys parameter to the component - in which case only

Re: Blog on Tapestry's Future

2007-05-21 Thread Jesse Kuhnert
I don't really want to add my comments to a blog but I guess I can make some here. Specifically - I'll just go down the list he referenced at the top as being concerns of sorts: -) JSF - Yes, there certainly is a lot of news about JSF all the time. I hear that some people are actually using it

Re: How to load a image dynamiclly in tapestry5.0.4

2007-05-21 Thread Allen Guo
Thanks , It's running now But suppose there is five properties of Product is relative with image Product class looks like class Product{ private String _img1; private String _img2; private String _img3; private String _img4; private String _img5; } So for show the img, I have to define the

Re: page under web-inf subdirectory won't load

2007-05-21 Thread Paul Stanton
Wow, that's cool. I was expecting you to say when it's ready ... :) Jesse Kuhnert wrote: I'm not sure. My most reliable ognl tester had the nerve to go on some kind of honeymoon this week so the lack of reported issues may be a false positive. ...I think I really need to get this out the door

T5 5.0.4 loop and checkbox

2007-05-21 Thread jason lea
Hi, I am new to Tapestry and have started a project where we want to use Tapestry 5. My question is about how I can use the loop and checkbox with my code. I will have a few objects to play with like User and Category. User has a Set of Category objects. Category just holds an id and string

Re: T5 5.0.4 loop and checkbox

2007-05-21 Thread 蝈蝈龙
Category.java should look like // Category.java class Category{ ... @persist private List _myList = new ArrayList(); public List getMyList(){return this._myList;} public void setMyList(List _myList){ this_myList = _myList}; // RowItem my be a DTO, just keep the checked status(from page) and

Re: Does the 'source' of @For in a form got evaluated during a rewind ?

2007-05-21 Thread talk.small
Jessek, thanks for your reply! I know there is 'convert' mechnism to save the network bandwidth, my understanding is, even with 'convert' mechnism, the question is still there: That is, upon rewinding, the item list of the for loop is constructed from server side (e.g. by invoking

The link is not available in FireFox

2007-05-21 Thread Allen Guo
Hi All, Had anyone visit http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html in FireFox2.0? It won't jump to appropriate position if you click the index link on the page. Allen Guo from Shanghai. - To