retrieve resource as a stream

2007-10-03 Thread Peter Stavrinides
Hi all, In tapestry 4, I could retrieve an asset from the context and then use it as a stream like this: @Asset("/XML/irmsitemap.xml") public abstract IAsset getNavigationMap(); InputStream stream = getNavigationMap().getResourceAsStream(); I have tried to convert this code to tapestry 5, but

[T5] Annotations are too static

2007-10-03 Thread Julien HENRY
Hi, I really like the way you can configure beaneditform and grid with annotations in T5 (Validation, Column ordering, ...). Therefore, for the kind of projects I have to deal with, I think it will be too static. Exemple: I have a page with a big form allowing user to create/update a card. The f

T5: Domain level localization

2007-10-03 Thread Angelo Chen
Hi, I'm not so sure if this Tapestry related, my T5 app can switch locales between English and Chinese using persistentLocaleService.set(Locale.SIMPLIFIED_CHINESE); Now I like the localization also in the domain level, let's say, I have two domains, namely mydomain.com and mydomain.com.cn, if us

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread ?
I tried on 5.0.5, then it works! Thank you so much. -- Ken: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to turn off element type warnings/errors in Eclipse?

2007-10-03 Thread Nick Westgate
I'm using the standard WTP in Eclipse 3.3, and have no warnings in templates that begin with: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> Cheers, Nick. Robert A. Decker wrote: http://tapestry.apache.org/schema/tapestry_5_0_

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread ?
Nick Westgate wrote: That's a bit old now. ;-) Oh, I see... Anyway thanks a lot. -- Ken: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
That's a bit old now. ;-) See how you go with 5.0.5 first. If that works ok, start reading the posts in the list about the changes to upgrade to 5.0.6. Cheers, Nick. (?) ?? wrote: You restarted the container, right? Tomcat or Jetty? Either way, it should have worked. I restarted Jetty b

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread ?
You restarted the container, right? Tomcat or Jetty? Either way, it should have worked. I restarted Jetty but doesn't work. Tapestry 5.0.5 or 5.0.6? My Tapestry is 5.0.4. Is this wrong? -- Ken: [EMAIL PROTECTED] - To unsu

Re: [T5] Basic Ajax

2007-10-03 Thread Nick Westgate
You want to use an action link, not a page link. See the example in this post: http://article.gmane.org/gmane.comp.java.tapestry.user/49791/ You'll probably want to alter it to do something like: return TextStreamResponse("text/html", ...) Cheers, Nick. Borut Bolčina wrote: I am making s

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
But I rename it to "app.properties" and move to WEB-INF, It did not work. You restarted the container, right? Tomcat or Jetty? Either way, it should have worked. Tapestry 5.0.5 or 5.0.6? Cheers, Nick. - To unsubscribe, e-mail:

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread (株)ジインズ 岸野
Angelo Chen wrote: then in your template, you do: ${message:name-label} ? A string "[[missing key: name-label]] " was displayed. Nick Westgate wrote: > How are you using the messages? I use BeanEditForm. I made a Bean "MyBean" like: public class MyBean { private int _id; p

Re: T5:image component in wiki

2007-10-03 Thread Nick Westgate
The primary reason I put it there is for people who (like me) want to create Tapestry templates that are "previewable". That is, you can just open them with a web browser see something similar to what will be generated at runtime. In this case if the src path is valid you'll see the image. Cheer

T5:image component in wiki

2007-10-03 Thread Angelo Chen
Hi, I'm looking at the image component in wiki:http://wiki.apache.org/tapestry/Tapestry5ImageComponent how different from < img >, under what situation to use it? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3Aimage-component-in-wiki-tf4565529.html#a13031735 Sent from

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Angelo Chen
then in your template, you do: ${message:name-label} ? (株)ジインズ 岸野 wrote: > > Sorry. > > I made "app.properties" under "WEB-INF". > But ignored. > >> file name should be app.properties and put it under WEB-INF directory. >> >> >> (株)ジインズ 岸野 wrote: >> >>>Hi, >>> >>>I want to use Applicatio

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Nick Westgate
How are you using the messages? Cheers, Nick. (株)ジインズ 岸野 wrote: Sorry. I made "app.properties" under "WEB-INF". But ignored. file name should be app.properties and put it under WEB-INF directory. (株)ジインズ 岸野 wrote: Hi, I want to use Application Message Catalog to define common labels.

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread (株)ジインズ 岸野
Sorry. I made "app.properties" under "WEB-INF". But ignored. file name should be app.properties and put it under WEB-INF directory. (株)ジインズ 岸野 wrote: Hi, I want to use Application Message Catalog to define common labels. http://tapestry.apache.org/tapestry5/tapestry-core/guide/localizati

Re: T5: How can I use Application Message Catalog

2007-10-03 Thread Angelo Chen
file name should be app.properties and put it under WEB-INF directory. (株)ジインズ 岸野 wrote: > > Hi, > > I want to use Application Message Catalog to define > common labels. > > > http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html > > In URL above, it says "WEB-INF/AppNa

Re: @Inject("alias:Request")

2007-10-03 Thread Angelo Chen
how about this: @Inject @Service("RequestGlobals") private RequestGlobals requestGlobals; Request request = requestGlobals.getRequest(); A.C. Heck, Bob wrote: > > I am having a hard time getting to the regular Tomcat session info. > > I have tried putting > > @Inject("alias:

T5: How can I use Application Message Catalog

2007-10-03 Thread (株)ジインズ 岸野
Hi, I want to use Application Message Catalog to define common labels. http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html In URL above, it says "WEB-INF/AppName.properties" is the Application Message Catalog and says AppName is the name of filter in "web.xml". My web.xm

@Inject("alias:Request")

2007-10-03 Thread Heck, Bob
I am having a hard time getting to the regular Tomcat session info. I have tried putting @Inject("alias:Request") in my Tapestry 5 class file, but it keeps complaining that "The attribute value is undefined for the annotation type Inject" I have searched and searched but can't seem to find an

T5: retrieve user defined parameter at start of Tapestry

2007-10-03 Thread Angelo Chen
Hi, I'm thinking of putting some parameters in web.xml and retrieve them when the application starts, any hint how to do this? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-retrieve-user-defined-parameter-at-start-of-Tapestry-tf4565342.html#a13031181 Sent from the Ta

Re: [T4]: Where is the Foreach component ?

2007-10-03 Thread Joshua Jackson
Thanks for the confirmation Nick. :) Regards, joshua On 10/3/07, Nick Westgate <[EMAIL PROTECTED]> wrote: > Please replace "Foreach" with "For" and log a doicumentation JIRA. > > Cheers, > Nick. -- It's not just about coding, it's a matter of fulfilling your core being YM!: thejavafreak Blog:

Re: simple Layout component

2007-10-03 Thread Daniel Jue
Yes, I it's recommended to have a pages/ and components/ directory. You should really only have web.xml in your WEB-INF, but I guess static html files can go there too. YourApp/src/main/webapp/WEB-INF/ (web.xml) YourApp/src/main/java/com/mycompany/myapp/base/ (java classes you want your componen

Re: simple Layout component

2007-10-03 Thread Robert A. Decker
I found some info in the archives of the mailing list: http://mail-archives.apache.org/mod_mbox/tapestry-users/200704.mbox/% [EMAIL PROTECTED] However, I don't understand the fix: "Layout is a component, not a page. It goes into the components package. So Layout.java needs to be in foo.bar.co

simple Layout component

2007-10-03 Thread Robert A. Decker
I'm trying to create the simple layout component described here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html (I've also read the wiki info on components) But I'm getting an exception: java.lang.IllegalStateException This markup writer does not have a current element. T

BindingException after Tapestry 4.1.3 Upgrade

2007-10-03 Thread cpnguyen
I have this weird error that I have found a work around for, but I just wanted to report it to the group. In Tapestry 4.0, I had a select box of OptionModels mapping integer values to String labels which worked fine. After upgrading to Tapestry 4.1.3, I receive the following error: Exception: Un

Re: [T5] Basic Ajax

2007-10-03 Thread Borut Bolčina
I am making some progress. I my AjaxBasic.tml file I have a

Re: T4.1.3: "Upgrade" from 4.1.2 problem with messages

2007-10-03 Thread andyhot
Patrick, you've already commented on https://issues.apache.org/jira/browse/TAPESTRY-234 and Jesse has reopened it Malin, i'm wondering, what's the VM's default locale? Patrick Klein wrote: Hello! Thanks Patrick - feels good I might have some sanity left then :) So - is this a bug?

Re: T4.1.3: "Upgrade" from 4.1.2 problem with messages

2007-10-03 Thread Patrick Klein
Hello! > Thanks Patrick - feels good I might have some sanity left then :) > > So - is this a bug? > Good question, looks like one to me, but I'm not 100% sure... At least it is a change in the localization handling which I could not locate in the changelog > I'm not sure what you mean with the

Re: [T5] Basic Ajax

2007-10-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Oct 2007 15:59:57 -0300, Borut Bolčina <[EMAIL PROTECTED]> escreveu: Hello, How should a url look like to be T5-ish in this javascript function: What about . . . function validate() { var idField = document.getElementById("userid"); var url = "validate/111=" + encodeURICom

Re: tapestry hibernate problem

2007-10-03 Thread Davor Hrg
you shouldn't persist any object from hibernate @ApplicationState private Customer _customer; same object will be referenced in you second request, and the second request will have different session, tapestry-hibernate integration is still basic, and for now you should just change

RE: T5: How do i reference components and pages from libraries in templates ?

2007-10-03 Thread Mark Stang
I like that idea! Mark J. Stang Software Engineer office: +1 303.468.2900 Ping Identity -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wed 10/3/2007 11:25 AM To: Tapestry users Subject: Re: T5: How do i reference components and pages from libraries in templa

[T5] Basic Ajax

2007-10-03 Thread Borut Bolčina
Hello, I am trying to create a T5 version of http://java.sun.com/developer/technicalArticles/J2EE/AJAX/ How should a url look like to be T5-ish in this javascript function: function validate() { var idField = document.getElementById("userid"); var url = "validate?id=" + encodeURIComponent(

tapestry hibernate problem

2007-10-03 Thread T. Papke
Hi, i have tried the tapestry-hibernate package to handle my hibernate sessions. I have setup the package in maven and add the hibernate Session to all constructors of my services. I started with my CustomerService getting and setting my customerbeans (each of them having a Set of AddressBea

Re: T5: GridPager with Grid Question

2007-10-03 Thread Howard Lewis Ship
Basically GridPage.rowsPerPage is dynamically connected to Grid.rowsPerPage. So you just need to be able to control Grid.rowsPerPage. So if Grid.rowsPerPage is bound to a page property, and you change the page property, it works as you'd expect. On 10/3/07, Josh Penza <[EMAIL PROTECTED]> wrote:

tapestry hibernate problem

2007-10-03 Thread T. Papke
Hi, i have tried the tapestry-hibernate package to handle my hibernate sessions. I have setup the package in maven and add the hibernate Session to all constructors of my services. I started with my CustomerService getting and setting my customerbeans (each of them having a Set of AddressBea

T5: GridPager with Grid Question

2007-10-03 Thread Josh Penza
I have made components similar to the GridPager and Grid component. But now I have the following problem. How can I update the _rowsPerPage property in the Pager component? Because initial it is passed through with a Parameter. @Component(parameters="rowsPerPage=rowsPerPage"...) private Pager _

Re: T4.1.3: "Upgrade" from 4.1.2 problem with messages

2007-10-03 Thread Malin Ljungh
Thanks Patrick - feels good I might have some sanity left then :) So - is this a bug? I'm not sure what you mean with the table columns handling and the '_'/'.' - what's that? \\Malin On 10/3/07, Patrick Klein <[EMAIL PROTECTED]> wrote: > > Hello! > > I can confirm this behavior. > It looks lik

Re: T5: How do i reference components and pages from libraries in templates ?

2007-10-03 Thread Howard Lewis Ship
I'll try and find it later. A thought that occurs would be to copy what Flex does, and leverage namespaces to reference components inside libraries. Thus Thoughts? On 10/3/07, Hugo Palma <[EMAIL PROTECTED]> wrote: > So if the component name is "folder1/mycomponent" the way to do it would

How to turn off element type warnings/errors in Eclipse?

2007-10-03 Thread Robert A. Decker
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd doesn't seem to be complete and so I want to turn of warnings/errors in the html/xml part of my project. However, for the life of me I can't find where in the eclipse preferences I can do this. These are the errors like: "Element type t:f

Re: T5: Newbie question - Context sensitive properties

2007-10-03 Thread jblier
Thanks for the information. I am not looking at folder specific properties. It looks like that page/component messages iswhat I am looking for. I found out about http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/parameters.html document. Regards, - Jacques Howard Lewis Ship w

T5: Mixin on Form does not work as expected

2007-10-03 Thread Kristian Marinkovic
sure... sorry i forgot..org.apache.tapestry.ioc.internal.util.TapestryExceptionlocation    classpath:com/poi/cross/adm/licensing/components/LicenseEditor.tml, line 23, column 35    18      19      20      21      22      23      24  License Ordering:    25      26  order    27      28  17:21:25,075

Re: T5: the scanner and JBoss

2007-10-03 Thread Robin Helgelin
On 10/3/07, Geoff Callender <[EMAIL PROTECTED]> wrote: Thanks for the tips for Tomcat/JBoss users! > I haven't got any of this working with .tml files, but maybe they > aren't supported in T.0.5? No, 5.0.6-SNAPSHOT only at the momemt. -- regards, Robin

Re: T5: Mixin on Form does not work as expected

2007-10-03 Thread Howard Lewis Ship
A stack trace would be helpful. On 10/3/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > > hi, > > i get an exception from the Form.cleanupRender method although > i have a Mixin attached that returns false on setupRender. > > as i understand the documentation correctly the Form component > sh

Re: T5: the scanner and JBoss

2007-10-03 Thread Geoff Callender
There were a couple of typos in the last post, so here it is again... Good news for JBoss 4.2.1 with T5.0.5 - I've found there's no need to switch to the JBoss classloader to get auto-loading to work. The default classloader works fine if you do this: 1. Set reloadable="true" in the Tomcat

Re: T5: the scanner and JBoss

2007-10-03 Thread Geoff Callender
Good news for JBoss 4.2.1 with T5.0.5 - I've found there's no need to switch to the JBoss classloader to get auto-loading to work. The default classloader works fine if you do this: 1. Set reloadable="true" in the Tomcat context.xml 2. Put classes and templates together in WEB-INF/classes/ I

T5: Mixin on Form does not work as expected

2007-10-03 Thread Kristian Marinkovic
hi, i get an exception from the Form.cleanupRender method although i have a Mixin attached that returns false on setupRender. as i understand the documentation correctly the Form component should never enter the cleanupRender method/event... can someone point me to my error? i'm trying to shor

Re: [T5] Null fields and BeanEditForm?

2007-10-03 Thread Howard Lewis Ship
We're definitely getting into some contention here, as others are just as eloquent that nulls should be coerced to zeros (and that's a code change that went in last week). I think this needs more consideration. I'm thinking this needs to be decided using a translator and there should be an easy w

T4: LinkSubmit not working in IFRAME'd app caused by unavailable tapestry.form javascript

2007-10-03 Thread Marnix Bindels
Dear All, I developed my tapestry 4.1.2 app top level in my browser. However, it is meant to run inside an IFRAME of some other application beyond my control. I used LinkSubmit on some forms and they worked great, calling the JavaScript function tapestry.form.submit(), at toplevel in my brow

Re: T4.1.3: "Upgrade" from 4.1.2 problem with messages

2007-10-03 Thread Patrick Klein
Hello! I can confirm this behavior. It looks like the fallback to the default property file is not done in case there is no match for the given key in the current locale's property file... Additionally there is a change in the table colums handling which breaks your localization if the keyword con

Re: T5: How do i reference components and pages from libraries in templates ?

2007-10-03 Thread Hugo Palma
So if the component name is "folder1/mycomponent" the way to do it would be: or ? I can't find the test class where i can check this. Can you please point me to it ? Thanks Howard Lewis Ship wrote: I think there are examples in the test suite. Basically, libraries are mapped to a vi

[T5] Null fields and BeanEditForm?

2007-10-03 Thread Tom Davies
I'd like to be able to have optional values in a BeanEditForm linked bean represented as null, e.g. if they are of type Integer. I get the exception below. Should 'null' just coerce straight to null, unless it is trying to go to a primitive type? In TypeCoercerImpl, perhaps: // Treat null

T4.1.3: "Upgrade" from 4.1.2 problem with messages

2007-10-03 Thread Malin Ljungh
I have a localized app with all literals in properties file. I recently downloaded the latest 4.1.3, earlier I used 4.1.2. Some messages which are not locale dependent (like the app version and webmaster email for example) I have stored in the MyApp.properties file and it worked fine with 4.1.2. B

T5 Tapestry 5 and JCaptcha

2007-10-03 Thread sameera
Hi, I'm a bit new to Tapestry. I'm working on a project which uses version Tapestry version 5. Now I'm trying to integrate JCaptcha but couldn't find an example for this version. I found some examples using tapestry 4 but I'm a bit confused with the different syntax it's been using. Please post

Re: Typo or intentional mistake?

2007-10-03 Thread Nick Westgate
A tragic mistake! The only paragraph about Tapestry and they get it wrong! Cheers, Nick. Borut Bolčina wrote: Hello, can't help myself to let all know. On pages 10 and 11 of the "Beggining JBoss Seam From Novice to Professional" there is a paragraph about Tapestry: Tapestry is another web fr

Re: [T4]: Where is the Foreach component ?

2007-10-03 Thread Nick Westgate
Please replace "Foreach" with "For" and log a doicumentation JIRA. Cheers, Nick. Joshua Jackson wrote: When running to examples located here: http://tapestry.apache.org/tapestry4.1/components/form/select.html I get this exception: org.apache.hivemind.ApplicationRuntimeException Component 'For

Typo or intentional mistake?

2007-10-03 Thread Borut Bolčina
Hello, can't help myself to let all know. On pages 10 and 11 of the "Beggining JBoss Seam From Novice to Professional" there is a paragraph about Tapestry: Tapestry is another web framework that has been around for a long time. The major recent upgrade of Tapestry 4 is powerful. One of its bigges

[T4]: Where is the Foreach component ?

2007-10-03 Thread Joshua Jackson
When running to examples located here: http://tapestry.apache.org/tapestry4.1/components/form/select.html I get this exception: org.apache.hivemind.ApplicationRuntimeException Component 'Foreach' not found in [EMAIL PROTECTED]]. When I opened the tapestry-framework library, there is no Foreach co

Missing book

2007-10-03 Thread Borut Bolčina
Hello, there is a book on Amazon "*Pro Ajax and Java Frameworks" * http://www.amazon.com/Pro-Ajax-Java-Frameworks/dp/1590596773/ref=pd_bbs_sr_2/102-7742188-1702530?ie=UTF8&s=books&qid=1191400626&sr=8-2 which could be in the books section at as it covers ajax and T4 http://tapestry.apache.org/arti

Tapestry IRC chan

2007-10-03 Thread Francois Armand
Hello everybody, It's just a little mail to remind every body (and especially new users of this ml) that an IRC channel exists for Tapestry. The chan is : #tapestryonirc.freenode.net There is almost every time 4~8 people here, some of them more than beginner on tapestry 4 or ta