Re: engine.stateful - where is it now?

2005-09-09 Thread Massimo Lusetti
On 9/9/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > The engine is never stateful now. This: "...and this is accomplished by storing the Engine into the HttpSession..." from http://jakarta.apache.org/tapestry/UsersGuide/index.html#intro.engine-service-visit sates for the contrary, or i misun

Re: help with upload component in 4.0 in Tapestry portlet

2005-09-09 Thread Nick Stuart
I'm actually not 100% sure if its required or not but the sumbit button should have a jwcid="@Submit" on it. Try it out and see it works. On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a Tapestry portlet. Trying to get some of the basic components to > work, Upload in this case.

RE: help with upload component in 4.0 in Tapestry portlet

2005-09-09 Thread Muralidhar Y.
In the above specification you arew using binding element with attributes name, value. That is not right. You have to use attributes name, expression attributes with binding element. If you want to bind static value or if you want to use 'value' attribute you can go for static binding element. L

RE: Newbie:What is ExternalLink for?

2005-09-09 Thread Muralidhar Y.
What happens if some one is not using jsp at all. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Keep Smiling. Be happy All The Time.) -Original

Re: Performance problem : simple tapestry page takes long time to show up

2005-09-09 Thread JIM WEAVER
Hi, We're soon to go into production with a tapestry 3.0.3 application - any idea where I could look to determine if the client hostname is being logged in that version? Would that be going into an access log or where? jim On 9/9/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > Earlier T

Re: Newbie:What is ExternalLink for?

2005-09-09 Thread Robert Zeigler
DirectLinks are generally for application-internal links. For instance, a "Remove" link to remove a given item from a list... that's not a link you would want bookmarked, for example. External links are basically to support bookmarkable links. External is referring "links which can be exposed to ex

Newbie:What is ExternalLink for?

2005-09-09 Thread Rob Dennett
I am trying to understand the difference between the various services, but I am unclear on what ExternalLink is for. PageLink (and correct me if I am wrong) is for creating a simple hyperlink between pages that performs no additional processing. DirectLink is used for processing forms. I woul

Re: Performance problem : simple tapestry page takes long time to show up

2005-09-09 Thread Howard Lewis Ship
Earlier Tapestry (maybe 3.x, certainly 2.x) did trigger a reverse DNS by logging the client's hostname. That no longer occurs (or at least, it should not). On 9/9/05, Henri Dupre <[EMAIL PROTECTED]> wrote: > On 9/4/05, Manoj Prakash <[EMAIL PROTECTED]> wrote: > > Yes, I haven't disabled caching.

Re: help with upload component in 4.0 in Tapestry portlet

2005-09-09 Thread Howard Lewis Ship
Please add a bug to JIRA. I just checked ... I forgot to move the upload support from the Servlet pipeline to the generic pipeline (where it can be shared by the portlet code). On 9/9/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a Tapestry portlet. Trying to get some of the basic com

help with upload component in 4.0 in Tapestry portlet

2005-09-09 Thread steven . libonati
I have a Tapestry portlet. Trying to get some of the basic components to work, Upload in this case. Doesnt seem like my listener is getting invoked. Anything blatantly wrong? I have a System.out thats never getting hit. The portlet is deployed in JBoss portal 2.0. // View.page http://jakar

Re: How to write unit test for tapestry 4?

2005-09-09 Thread adasal
I think that the grinder httpunit and other functional testing approaches are subtly different. We use the grinder, although I haven't, but my recollection is that it is more for load testing, rather than coverage. We use selenium (it has been custom modified) for coverage. It was difficult at f

Re: engine.stateful - where is it now?

2005-09-09 Thread Howard Lewis Ship
The engine is never stateful now. What you can do is get the WebRequest (@InjectObject("infrastructure:request")) and see if it has a session. On 9/9/05, Wouter De Vaal <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to test whether the current request being processed is > stateful, in previou

Re: One more HTML Area Question

2005-09-09 Thread Joseph Hannon
It's been awhile on htmlarea. My interest was more around the CSS issue in general HTML where IE was barfing. I will look at what you did in the new htmlarea for some clues I think. Thanks, Joseph On 9/9/05, Robert Zeigler <[EMAIL PROTECTED]> wrote: > > Joseph, when did you dl htmlarea? I uplo

engine.stateful - where is it now?

2005-09-09 Thread Wouter De Vaal
Hi, I would like to test whether the current request being processed is stateful, in previous tapestry there was an isStateful method in the engine, but that's gone. How should I do it now? I'm using tapestry 4 beta 6 Cheers, Wouter --

Re: foreach within block only called once

2005-09-09 Thread Wouter De Vaal
I'll try that. A remark though: the apidoc doesn't show anything about Foreach being deprecated. Wouter On 9/9/05, Ron Piterman <[EMAIL PROTECTED]> wrote: > Am not sure if it will solve your problem, but Foreach is deprecated. > Try using For instead, may be it will work... > > > > Wouter De

Re: One more HTML Area Question

2005-09-09 Thread Robert Zeigler
Joseph, when did you dl htmlarea? I uploaded a revised version (the version Patrick mentions here) on August 27th. Robert Patrick Casey wrote: > Robert sent me an email last week (for testing) with some updated > .css that looked a lot better (it's not perfect, but it's a *lot* better). I >

Re: How to write unit test for tapestry 4?

2005-09-09 Thread Konstantin Ignatyev
The Grinder works perfectly for all kinds of web sites, it is not limited to Tapestry. Examples are here: http://kgionline.com/presentations/wa/readme/tests/technology.html Please ignore rest of the materials because they are not finalized and have many broken links and errors. --- Henri Dupre <

Re: How to write unit test for tapestry 4?

2005-09-09 Thread Henri Dupre
On 9/9/05, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I haven't used grinder, but I have used httpunit and found it incredibly > painful to get working properly in junit...I'm using testng now but have > since ditched all of that code in favor of tapestrys built-in "Creator" > class. Could you el

Re: How to write unit test for tapestry 4?

2005-09-09 Thread Jesse Kuhnert
I haven't used grinder, but I have used httpunit and found it incredibly painful to get working properly in junit...I'm using testng now but have since ditched all of that code in favor of tapestrys built-in "Creator" class. It lets you call all of the methods on your page/components, which is

Re: foreach within block only called once

2005-09-09 Thread Ron Piterman
Am not sure if it will solve your problem, but Foreach is deprecated. Try using For instead, may be it will work... Wouter De Vaal: Hi, I have a strange problem with a foreach component within a block that only gets called once, but the block renders multiple times. This code worked in tape

Re: How to write unit test for tapestry 4?

2005-09-09 Thread Konstantin Ignatyev
The Grinder - the best tool for the job http://grinder.sourceforge.net/ --- Henri Dupre <[EMAIL PROTECTED]> wrote: > I think Http unit is the best way to go for web page > testing. > I'd be curious to know if there are any ways to test > components. > > > On 9/8/05, Jun Tsai <[EMAIL PROTECTED]>

Re: How select some value in PropertySelection component?

2005-09-09 Thread Ron Piterman
The component points to a value/property which it should set, and displays the current value of this property as the selected value when the page is displayed: public abstract Color getColor(); if you set the color property to blue, the PropSel. component will also display it. ציטוט And

Re: Performance problem : simple tapestry page takes long time to show up

2005-09-09 Thread Henri Dupre
On 9/4/05, Manoj Prakash <[EMAIL PROTECTED]> wrote: > Yes, I haven't disabled caching. > > In our tests, we have seen tapestry doing pretty well if client is on > same network as server. > > We start to see the perf issue when: > 1. clients are on a separate network than the server, and in such c

Re: numberic valid field not showing zero

2005-09-09 Thread Paul Ferraro
A few betas ago, Howard introduced an "omitZero" property to NumberTranslator. Interestingly, omitZero is true by default. This means that, by default, 0's will be formatted as "", even though submitted "0"s are parsed as 0, and submitted ""s are parsed as null. I disagree that special treatment

Re: How to write unit test for tapestry 4?

2005-09-09 Thread Henri Dupre
I think Http unit is the best way to go for web page testing. I'd be curious to know if there are any ways to test components. On 9/8/05, Jun Tsai <[EMAIL PROTECTED]> wrote: > hi,all > How to write unit test for tapestry4? > Thanks. > Jun Tsai > > -- > Welcome to China Java Users Group(CNJUG). >

RE: One more HTML Area Question

2005-09-09 Thread Patrick Casey
Robert sent me an email last week (for testing) with some updated .css that looked a lot better (it's not perfect, but it's a *lot* better). I dunno if he's still playing with it in the hope of making it perfect, or if he's going to repackage it as is. Either way, he's definitely

RE: How would I send log4j dynamic info on each request?

2005-09-09 Thread Hensley, Richard
You could use a servlet filter that set's up the log4j ndc before the call's to the tapestry application servlet. The only trick would be to get the information out of the session. Inorder to do that, you will need to poke around in the Engine and see how a visit is stored. Richard -Origina

RE: disable the submit button

2005-09-09 Thread Velarde, Domonic R. - WMD
Thank you all that responded using your hints and suggestions I figured out a solution and it seems to work. Here is what I did. In the tag I have: And in the tag I have: Thanks again, Hope this can help someone else with similar situation. -Original Message- From: Paul Ferra

Re: Business object as a persistent property

2005-09-09 Thread Geoff Longman
Paul, how would you feel about building tapestry from the source repository? I know how to fix this particular problem (custom PageRecorders that is) but don't have the bandwith to drive an official release. Geoff On 9/9/05, Paul Field <[EMAIL PROTECTED]> wrote: > > Thanks Geoff - "pain in the

Re: One more HTML Area Question

2005-09-09 Thread Joseph Hannon
Pat, Any success on this CSS issue? I am experiencing the same type of thing using Tapestry 3.0.3, Firefox and IE. I am using XHTML and do have the XHTML DOCTYPE showing at the top of my html rendered source. Thanks, Joseph On 8/26/05, Patrick Casey <[EMAIL PROTECTED]> wrote: > > > I've got

How would I send log4j dynamic info on each request?

2005-09-09 Thread Joseph Hannon
Please excuse me if this is a duplicate of my earlier post. Not sure if the first one was posted correctly. I have a need to send log4j dynamic info during each reqest so that it will display the user id of the requestor. I am using log4j's Nested Diagnostic Context (NDC) to do this and it seems

How select some value in PropertySelection component?

2005-09-09 Thread Andriy
Hello! I have a problem with PropertySelection component. I can not set any option as selected when my page is displayed. The "value" parameter for the component is defined correctly to some property (this property changes after selecting some value). And this property is set correctly when the pa

foreach within block only called once

2005-09-09 Thread Wouter De Vaal
Hi, I have a strange problem with a foreach component within a block that only gets called once, but the block renders multiple times. This code worked in tapestry 3, but gives an overflow in tapestry 4 beta 6, because the foreach source doesn't get reevaluated I think. Regards, Wouter PS: I've

Re: Jetty Module hivemind is duplicated

2005-09-09 Thread Joel Charlesworth
Thanks for the tip Paul!. I was experiencing the same issue, and fell back to using Tomcat as I didn't have time to investigate. Regards, JRC On 9/5/05, seloha . <[EMAIL PROTECTED]> wrote: > > After looking on google I have solved this problem. For those who come up > against this it is necces

Re: New Tacos website

2005-09-09 Thread Jesse Kuhnert
Any release labeled as tacos4 should be compatible with various versions of tapestry. Anything without tacos4 (ie tacos-something) is compatible with tapestry 3. I haven't upgraded to tapestry4-beta-6 yet but will probably do so later today. On 9/9/05, Chris Chiappone <[EMAIL PROTECTED]> wrot

Re: New Tacos website

2005-09-09 Thread Chris Chiappone
Is tacos currently for tapestry 3 or 4? On 9/9/05, pickerel yee <[EMAIL PROTECTED]> wrote: > the demo is running ok in my server except that cpu is top to 99% > sometimes, i don't know why. > > On 9/9/05, Jun Tsai <[EMAIL PROTECTED]> wrote: > > How to access tacos cvs?I find the cvs in sf.net

RE: Allowing HTML characters in IPropertySelectionModel?

2005-09-09 Thread wouter.cleuren
I'm not quite sure about that -Original Message- From: Inge Solvoll [mailto:[EMAIL PROTECTED] Sent: vrijdag 9 september 2005 14:55 To: Tapestry users Subject: Re: Allowing HTML characters in IPropertySelectionModel? Wouldn't that cause the excact same result, with the '&' being escaped,

Re: Allowing HTML characters in IPropertySelectionModel?

2005-09-09 Thread Inge Solvoll
Wouldn't that cause the excact same result, with the '&' being escaped, so the literal string ' ' shows up in the dropdown? I think so. Inge [EMAIL PROTECTED] wrote: Try the entity number ( ) iso the entity name ( ) Source: http://www.w3schools.com/tags/ref_entities.asp gr -Original Me

numberic valid field not showing zero

2005-09-09 Thread Wouter De Vaal
Hi, I'm using tapestry 4 beta 6 and I have an issue using numeric validated/translated numbers. When I enter a zero valid, it gets saved just fine, but when I bring the page back up, it shows nothing, where I would like it to show '0' in my textfield. Here is my component spec:

Re: How to get hivemind object?

2005-09-09 Thread Howard Lewis Ship
1) Why do you "need to access the object directly" ... it's all about injection. Inject it is the right way. 2) Without annotations, you can use the element in the XML. Come on ... there's a link directly from the @InjectObject annotation to the doc for the element. On 9/9/05, pickerel yee <[E

Re: proposal: mapping page in subfolders to classes (T4)

2005-09-09 Thread Howard Lewis Ship
This is all the default behavior in Tapestry 4. Page "foo/Bar" will be template foo/Bar.html, specification WEB-INF/foo/Bar.jwc and the default class will be [some package].foo.Bar. On 9/9/05, Pete <[EMAIL PROTECTED]> wrote: > Hi! > > My intention was to put the page templates into subfolders. >

[ANNOUNCE] Tapestry 4.0-beta-6

2005-09-09 Thread Howard Lewis Ship
The latest beta release of Tapestry 4.0 is now available. Tapestry is a component based web application framework that provides lots of functionality with minimal Java coding, and creates an environment that supports high levels of reuse. This is another a bug fix release, building on the beta-5 re

Re: New Tacos website

2005-09-09 Thread pickerel yee
the demo is running ok in my server except that cpu is top to 99% sometimes, i don't know why. On 9/9/05, Jun Tsai <[EMAIL PROTECTED]> wrote: > How to access tacos cvs?I find the cvs in sf.net is not main > > cvs. > > On 9/9/05, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > > > T

Re: How to get hivemind object?

2005-09-09 Thread pickerel yee
i'm using jdk 1.4, and @InjectObject annotation cannot work.i think there's no way but to fetch Registry from the servlet context by the key 'org.apache.tapestry.Registry.ServletName' if i want to get hivemind object in my code, do it? On 9/9/05, Joe Trewin <[EMAIL PROTECTED]> wrote: > The My

proposal: mapping page in subfolders to classes (T4)

2005-09-09 Thread Pete
Hi! My intention was to put the page templates into subfolders. like that: /Home.html /admin/Login.html /shop/BrowseArticles.html My solution works by evaluating the app-property 'org.apache.tapestry.page-class-packages' which specifies the location of your class files. the code will _not_

Re: Presenting really large trees

2005-09-09 Thread Jonathan O'Connor
Nick, I went searching for this recently too. Apart from the left/right id trick, you can also add the path as a field of the record. Thus: ID PARENT_ID NAME PATH 1 null root root 2 1 A root.A 3 1 B root.B 4 2 X root.A.X etc... Now its easy to find all children of a given node:

how to attach a service to an application state object?

2005-09-09 Thread pickerel yee
there's a aso object, i configured it in the hivemind.xml: it's ok. now i add a property 'context' to the aso object, and i want to attach it to the reference of service tapestry.globals.WebContext, so i had to change the hivemind.xml to :

Re: Business object as a persistent property

2005-09-09 Thread Paul Field
Thanks Geoff - "pain in the ass" does some it up :-) Also, it is nice to define the strategy for storing/reconstituting an object in a single place. The squeezers are nice because a single class has the responsibility of how the object gets in/out of a URL. At the moment our Company object is

Adding/changing request parameters in a service

2005-09-09 Thread Joe Trewin
Hi, Is the a way to add or change request parameters (as accessed via cycle.getParameter) in a service? By the time the service is triggered the request has already been processed and available through the cycle. However, I need my service to augment these parameters (for my own nefarious purpos

RE: How to get hivemind object?

2005-09-09 Thread Joe Trewin
The MyService object is just your own service that provides access to the HiveMind module. What I've done is injected such an object into my Tapestry page/component (or another HiveMind service) using the @InjectObject annotation, and then used it to construct other services from the HiveMind r

Re: How to get hivemind object?

2005-09-09 Thread Jun Tsai
How to inject MyService object ? On 9/9/05, Joe Trewin <[EMAIL PROTECTED]> wrote: > > I've done this by injecting the hivemind Module that your services come > from (via a configuration) into your service that needs to use the registry > - you can then access the registry from this. > > Sample

RE: How to get hivemind object?

2005-09-09 Thread Joe Trewin
I've done this by injecting the hivemind Module that your services come from (via a configuration) into your service that needs to use the registry - you can then access the registry from this. Sample hivemind config:

RE: Need help in creating session object

2005-09-09 Thread Joe Trewin
I've accomplished a similar process by setting my ApplicationState object to be a simple wrapper object. When a user logs in I create an authentication session object, which I then set in the actual ASO wrapper object. So I can find out if someone is logged in by checking the ASO to see if it conta

Re: New Tacos website

2005-09-09 Thread Jun Tsai
How to access tacos cvs?I find the cvs in sf.net is not main cvs. On 9/9/05, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > The http://tacos.sourceforge.net project web-site has been upgraded to use > forrest for documentation and site generation. Other than new information > being

Re: New Tacos website

2005-09-09 Thread Jun Tsai
When I use tacos. 16:50:39.562 WARN!! [SocketListener0-1] net.sf.tacos.ajax.impl.InjectAjaxComponentRenderWorker.performEnhancement( InjectAjaxComponentRenderWorker.java:79) >79> Error performing ajax enhancement on component classposioning.login.HomePage 16:50:47.390 WARN!! [SocketListener0-1]

Re: Image from InputStream

2005-09-09 Thread rverlind
On Thu, 2005-09-08 at 16:24 +0200, rverlind wrote: > Is there any possibility I could show an image coming from an > InputStream using Tapestry? > This was my first post on the jakarta mailing list and I was suprised (In a good way ofcourse) to receive some good suggestions to solve my problem wi

RE: Allowing HTML characters in IPropertySelectionModel?

2005-09-09 Thread wouter.cleuren
Try the entity number ( ) iso the entity name ( ) Source: http://www.w3schools.com/tags/ref_entities.asp gr -Original Message- From: Inge Solvoll [mailto:[EMAIL PROTECTED] Sent: donderdag 8 september 2005 19:22 To: Tapestry users Subject: Allowing HTML characters in IPropertySelectionMo

Re: New Tacos website

2005-09-09 Thread Ivano
Nothing exciting to see because all the Live Demo links are broken? =D I can't seem to reach any link for the tacos.mine.nu server. Ivano. Jesse Kuhnert wrote: The http://tacos.sourceforge.net project web-site has been upgraded to use forrest for documentation and site generation. Other than