Re: form post-redirect

2007-10-05 Thread Kalle Korhonen
Better yet, inject external link directly using tacos-annotations: http://tacos.sourceforge.net/tacos4.1/tacos-annotations/index.html (cuts down on the boilerplate code!) Kalle On 10/5/07, Patrick Kelly <[EMAIL PROTECTED]> wrote: > > Great - did just what I needed. > > IExternalThanks! > > On 4-O

Re: form post-redirect

2007-10-05 Thread Patrick Kelly
Great - did just what I needed. IExternalThanks! On 4-Oct-07, at 10:58 AM, Martino Piccinato wrote: IExternalPage http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/ IExternalPage.html You'll have to generate an IExternalLink http://tapestry.apache.org/tapestry4.1/apidocs/o

Use of scriptaculous

2007-10-05 Thread mnguyen21
How can I alter the way the default error message handling works for the beanEditForm? I see that T5 uses scriptaculous as its Javascript library. What I want to do is alter the way the error messages pop up. Instead of the Blind up Effect I want to use something else. Thanks, Michael -- Vie

T5: how to use message catalogs for individual page

2007-10-05 Thread mnguyen21
Hello, I'm trying to follow the form tutorial and am having some trouble with the message catalog. The tutorial states to put the CreateAddress.properties file under src/main/resources/org/apache/tapestry/tutorial/pages/address/CreateAddress.properties I have done that and nothing I've entered

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread jblier
Hi Josh! I tried two archetype: "com.companyname.tapestry.myapp" and "org.example.myapp" in two different project for 5.0.6-SNAPSHOT. The paths shown below are for "org.example.myapp" I should have included the archtype as well as the paths. Sorry for the confusion. I'm back to 5.0.5 for now.

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread Josh Canfield
> > Java files: > \workspace\myapp\src\main\java\org\example\myapp\pages\*.java > I'm guessing that this is the problem: -DpackageName=com.companyname.tapestry.myapp I believe that you should be putting your classes in \workspace\myapp\src\main\java\com\companyname\tapestry\myapp\pages\*.java O

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread jblier
I want to use 5.0.6 for the DOCTYPE fix mostly. I want it to be sent to the client. http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> You are right, for now maybe I don't need to go to 5.0.6. - Jacques Daniel Jue wrote: > > A side note: > If you are really new to Tapestry, or web applications,

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread jblier
Workspace: \workspace\myapp\src\main\webapp Java files: \workspace\myapp\src\main\java\org\example\myapp\pages\*.java TML files: \workspace\myapp\src\main\webapp\*.tml In 5.0.6-SNAPSHOT only Start.tml works (in webapp/). In 5.0.5 all *html files work (in webapp/WEB-INF/). Thanks for your help

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread Daniel Jue
A side note: If you are really new to Tapestry, or web applications, I would suggest using the 5.0.5 release, now that it is out of Snapshot. Unless there is some pressing fix or addition that you presently know about in 5.0.6. -

Re: T5: Newbie question - what is log4j?

2007-10-05 Thread Daniel Jue
Quck and dirty, since my first Tapestry project was also the first time I worked with log4j: This warning is gonna show up until you declare a log4j.properties file. Put it here: http://wiki.apache.org/tapestry/Tapestry5WhereToStoreConfigurationResources The file can be simple or even blank I t

Re: t5: no root element has been defined

2007-10-05 Thread Christian Gruber
Actually, I'm getting it from the tutorial as well. That is, I'm getting [ERROR] Tapestry 5 Tutorial #1 /: java.lang.IllegalStateException: No root element has been defined. at org.apache.tapestry.dom.Document.toMarkup(Document.java:89) at org .apache .tapestry .internal.services

Re: t5: no root element has been defined

2007-10-05 Thread Christian Gruber
I'm still gettin g the no root element thing, and that's on a quickstart project (with my patch to put Start.tml in the right place), with a build from trunk. Problem is I can't get Start.tml to work in any of the new or old locations, in resources or src/main/webapp. No matter what, I get

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread Josh Canfield
Hi, Where are you putting your java files? What's the full physical path to one of the pages that is getting a 404. Josh On 10/5/07, jblier <[EMAIL PROTECTED]> wrote: > > > By using the same archetype and pointing to a 5.0.5 release, everything > works > fine. When using 5.0.6-SNAPSHOT only Sta

T4: Servlet mapping problem

2007-10-05 Thread Bill Holloway
I haven't seen a lot of coverage on this recently. We have configured friendly urls for services with the usual .svc extension. In our web.xml, we map "/home" to the tapestry servlet rather than "/app". The service links look fine (e.g., http://host/restart.svc) but winds up redirected to /app?

Re: T5: Newbie question - what is log4j?

2007-10-05 Thread Josh Canfield
Hi, Don't forget to use your favorite search engine to help figure some things out. If you type log4j into Google, or Yahoo or any of the others you can learn all about it. You aren't getting an error here, it's a warning telling you that the logging package (log4j) has not been configured and th

Re: T5: Newbie question - creating and accessible a new page (Begining of a solution)

2007-10-05 Thread jblier
By using the same archetype and pointing to a 5.0.5 release, everything works fine. When using 5.0.6-SNAPSHOT only Start works, other pages are giving a 404 error. Do I need log4j to build 5.0.6-SNAPSHOT pages? Or, does 5.0.6-SNAPSHOT need a special component that my archetype does not load? In

Re: t5: no root element has been defined

2007-10-05 Thread Marcus
Hi Bob, T505 - templates .htmlin src/main/webapp/WEB-INF/ or src/main/resources//pages/ T506 - templates .tmlin src/main/webapp/or src/main/resources//pages/ http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469 Marcus

Re: T5: Newbie question - creating and accessible a new page

2007-10-05 Thread Marcus
HI Jacques, Maybe this help. T505 - templates .htmlin src/main/webapp/WEB-INF/ or src/main/resources//pages/ T506 - templates .tmlin src/main/webapp/or src/main/resources//pages/ http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469 Marcus

T5: Newbie question - what is log4j?

2007-10-05 Thread jblier
Is log4j needed to build Tapestry projects? What does is stand for? With 5.0.6-SNAPSHOT I get this error when running the application: log4j:WARN No appenders could be found for logger (org.mortbay.util.Container). log4j:WARN Please initialize the log4j system properly. With 5.0.5 No errors are

How to coordinate two renderBlock instances as one

2007-10-05 Thread Ken nashua
Folks, I am doing a Gallery widget... it is rendering now with output. See attached... I have a quirky question here... I have a BLOCK declaration And I want to render two instances of it... (intended top of page and bo

Re: T5: Newbie question - creating and accessible a new page

2007-10-05 Thread jblier
Something interesting, In myapp, there is a bin folder that contains Java .class files. In /bin/org/example/myapp/pages/ there is only the Start.class file. and in /bin/org/example/myapp/services/ there is AppModule.class and AppMudule$1.class. Does this mean that my other pages are not built?

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread Alex Tian
I can hardly say it's just for fun... put it short: from the technical point of view, it demonstrates several things: complex drawing algorithms to construct the family tree graph and a number of advanced JSP/html techniques from the business point of view, one could use it as the core system for

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread meisam4910
Dear alex I checked the web site and also other examples, I know the details almot, if I want to start building it, what should i do alex ?thanks, you just give me the clue and keywords, if i were not successful I will back to you if you dun mind of course. Dear Alex I just did not understand t

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread meisam4910
Dear Alex I just did not understand the goal and objective of the family tree web application ? is it only for fun ? Speaking honestly, it's a tough one to do(though it's a really revolutionary great topic), especially for undergraduates, but one the other side, you might have more time than i

Re: T5: Newbie question - creating and accessible a new page

2007-10-05 Thread jblier
I've restarted the server numerous times and it still does not work. Is there a bug in 5.0.6-snapshot or is it simply that I miss something important? - Jacques Nick Westgate wrote: > > This should work if you restarted the server after creating the new page. > > Hugo just posted he is havin

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread Alex Tian
Speaking honestly, it's a tough one to do(though it's a really revolutionary great topic), especially for undergraduates, but one the other side, you might have more time than i had... It took me 2 months to do it using a number of advanced java web technologies and it was for my M.Sc. final proje

Re: [T4.0.2] Strange ArrayIndexOutOfBoundsException in WebRequestServicePipelineBridge?

2007-10-05 Thread andyhot
Not really sure + the whole stacktrace of the original exception is getting hidden... But, try creating your own WebRequestServicePipelineBridge (original is https://svn.apache.org/repos/asf/tapestry/tapestry4/branches/4.0/framework/src/java/org/apache/tapestry/services/impl/WebRequestServicerP

Re: For compoenent

2007-10-05 Thread Nick Westgate
Please post relevant source snippets so someone can comment on them. Cheers, Nick. Ravi Shankar wrote: I am using tapestry 4.1.3 and I am quite new to the framework. I am adding a for component to a page class that is used in HTML table for generating data rows. The source for the component is

[T4.0.2] Strange ArrayIndexOutOfBoundsException in WebRequestServicePipelineBridge?

2007-10-05 Thread Daniel M Garland
Hi all, I've been running a Tapestry 4.0.2 web application in our production environment for some months without any major hiccups; until recently when our Tomcat servers began to crash suddenly and unexpectedly. After some investigation it seems that amongst the last things to happen before

Re: t5: no root element has been defined

2007-10-05 Thread Howard Lewis Ship
Sorry that you got caught in the lurch. Starting with 5.0.6, we have a much better system ... the main web site represents the most recent formal release, and the nightly build site contains the latest documentation. So you SHOULD be able to got to http://tapestry.apache.org/tapestry5 to get the

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread meisam4910
I am really gald to have a quick reply from you, thank you in advance. let me be very frank with you, I just heard of it in the appfuse forum and started searching about the family tree web app, I am going to build a web application for my final year project in university(I am in Malysia), then so

Re: T4: Message component, is there any?

2007-10-05 Thread Geoff Callender
I don't know of one. It's common to make your own, eg. ShowError.html: condition="ognl:page.beans.validationDelegate.hasErrors"> delegate="ognl:page.beans.validationDelegate.firstError">Error Message and perhaps a more generalised message com

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread Alex Tian
I ve done it using Tapestry java web framework... and mine is a web app... can you state more specific about your problem or what sort of info you need from me... happy to help... meisam4910 wrote: > > Hi, > > I need to build a family tree maker based on web application using java, > would yo

Re: Family Tree web app problem with image map using Tapestry 4..

2007-10-05 Thread meisam4910
Hi, I need to build a family tree maker based on web application using java, would you help me and tell me the steps please ? I really appreciate if you would help me to kick start this application. Alex Tian wrote: > > hi, everyone, I know it's gonna be a lenthy statement below, but I > despe

For compoenent

2007-10-05 Thread Ravi Shankar
I am using tapestry 4.1.3 and I am quite new to the framework. I am adding a for component to a page class that is used in HTML table for generating data rows. The source for the component is an array class and has quite a few items in the collection. However, the rows generated do not have values

T4: Message component, is there any?

2007-10-05 Thread Joshua Jackson
Dear all, Is there any Message component in T4 for displaying messages on pages upon success or failed process? Or should I use Insert component instead? Thanks in advance. -- It's not just about coding, it's a matter of fulfilling your core being YM!: thejavafreak Blog: http://joshuajava.word

Re: t5: no root element has been defined

2007-10-05 Thread Robin Helgelin
On 10/5/07, Heck, Bob <[EMAIL PROTECTED]> wrote: > Ok, renamed, rebuilt, redeployed. Made sure old .tml were not there and > pages were .html. > > Same error with html files - No root element has been defined. In 5.0.5, page html files should be located in WEB-INF, they didn't move to webroot unti

Re: Combined Component Model - Is it supported ?

2007-10-05 Thread Martino Piccinato
Hi Ken, don't know if I get it rigth but it seems you just need a list with pagination and the content to be reloaded "dynamically" (with an ajax request) when changing page ( = clicking on one of the pagination links). You could certainly go with JSON but I suggest you for such a thing to have a

RE: t5: no root element has been defined

2007-10-05 Thread Heck, Bob
Ok, renamed, rebuilt, redeployed. Made sure old .tml were not there and pages were .html. Same error with html files - No root element has been defined. I really wish that that's all it was. But something else is going on. Any help appreciated. Thanks, Bob -Original Message- From: Ni

Re: t5: no root element has been defined

2007-10-05 Thread Nick Westgate
5.0.5 uses *.html 5.0.6 uses *.tml Cheers, Nick. Heck, Bob wrote: Am I really this dense? I just can't get this to work. Simple hello world Start.tml Start.java in package described in web.xml Using Tapestry 5.0.5 Try my local:8080/Start and get this java.lang.IllegalStateException No r

re: t5: no root element has been defined

2007-10-05 Thread Kristian Marinkovic
5.0.5 templates have a .html suffix 5.0.6 needs templates with .tml suffix "Heck, Bob" <[EMAIL PROTECTED]> 05.10.2007 11:03 Bitte antworten an "Tapestry users" An Kopie Thema t5: no root element has been defined Am I really this dense? I just can't get this to work. Simple hell

t5: no root element has been defined

2007-10-05 Thread Heck, Bob
Am I really this dense? I just can't get this to work. Simple hello world Start.tml Start.java in package described in web.xml Using Tapestry 5.0.5 Try my local:8080/Start and get this java.lang.IllegalStateException No root element has been defined. As a matter of fact, any Tapestry page, s

Re: How can this be made session safe?

2007-10-05 Thread adasal
I thought of replying pointing out that this is the same session in the original post since the first browser has not closed (by definition), although it is, in fact, possible to start IE in a new session. On my computer this is achieved by clicking on the desktop link, whereas openeing a new windo