Re: dynamically disable field

2008-07-29 Thread Howard Lewis Ship
This is because the default binding prefix for the disabled parameter is "prop" (i.e., a property expression). Using disabled="${disabled}" is the hard way to do things. On Tue, Jul 29, 2008 at 5:45 AM, Lance Java <[EMAIL PROTECTED]> wrote: > java: > class MyPage { > @Property > private Str

Re: dynamically disable field

2008-07-29 Thread Tan [EMAIL PROTECTED]
hi, as the documentation mentioned. " If true, then the field will render out with a disabled attribute (to turn off client-side behavior). Further, a disabled field ignores any value in the request when the form is submitted." this is not i want. i need to dynamically set the field read-on

Re: first tapestry component

2008-07-29 Thread Howard Lewis Ship
I think I changed the 5.0.14 Maven archetype to enable debug logging of the application, something you definitely want to roll back once you get started. On Tue, Jul 29, 2008 at 2:47 PM, Sven Homburg <[EMAIL PROTECTED]> wrote: > this is the important part of the stacktrace: > >... 64 more

Re: EagerLoad service doesn't use PerThread service correctly

2008-07-29 Thread Howard Lewis Ship
I would subclass TapestryFilter; override init() to get the service and store it somewhere (i.e., a static variable somewhere). Override destroy() to clear out the static variable (to avoid memory leaks). On Tue, Jul 29, 2008 at 2:39 PM, Franz Amador <[EMAIL PROTECTED]> wrote: > > Thanks again.

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Josh Long
+1 me too On Tue, Jul 29, 2008 at 1:04 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > From me too. > > Uli > > Filip S. Adamsen schrieb: > > +1 on this one. >> >> -Filip >> >> On 2008-07-29 16:39, Howard Lewis Ship wrote: >> >>> Well, it's not like we're pushing a bytestream from the web browser

Re: first tapestry component

2008-07-29 Thread Sven Homburg
this is the important part of the stacktrace: ... 64 more Caused by: org.apache.tapestry5.internal.services.TransformationException: Class ee.softpro.components.Border contains field(s) (get User) that are not private. You should change these fields to private, and add accessor methods if

Re: EagerLoad service doesn't use PerThread service correctly

2008-07-29 Thread Franz Amador
Thanks again. Putting the registry in the ServletContext looks right, but I'm not sure it's enough for my use case. I need access to the Hibernate session from deep in the bowels of my legacy ORM framework, and the ServletContext is not easily accessible from there. I may just be stuck with a s

Re: first tapestry component

2008-07-29 Thread Argo Vilberg
I add this public static void contributeApplicationDefaults( MappedConfiguration configuration) { configuration.add(SymbolConstants.PRODUCTION_MODE, "false"); } to AppModule.java but still no more stac trace: An unexpected application exception has occurred. ja

Re: first tapestry component

2008-07-29 Thread Filip S. Adamsen
You need to enable production mode. See the tapestry.production-mode symbol: http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html -Filip On 2008-07-29 22:59, Argo Vilberg wrote: And this is only stack trace in browser: An unexpected application exception has occurred. java

Re: first tapestry component

2008-07-29 Thread Argo Vilberg
And this is only stack trace in browser: An unexpected application exception has occurred. java.lang.ClassNotFoundException: caught an exception while obtaining a class file for ee.softpro.components.Border 2008/7/29 Carl Crowder <[EMAIL PROTECTED]> > Can you post the rest of the stack

Re: first tapestry component

2008-07-29 Thread Argo Vilberg
sorry www.softpro.ee/tapestry5/arendus5.zip Stack trace? Where do i get this. There are no message in console or tomcat log files. Argo 2008/7/29 Carl Crowder <[EMAIL PROTECTED]> > Can you post the rest of the stacktrace? > > Also I got a 404 for the zip file you linked to > > Argo Vilberg w

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Ulrich Stärk
From me too. Uli Filip S. Adamsen schrieb: +1 on this one. -Filip On 2008-07-29 16:39, Howard Lewis Ship wrote: Well, it's not like we're pushing a bytestream from the web browser to the database, or vice-versa. Everything is being read into memory as UTF, whether it starts as UTF-8 in the

Re: first tapestry component

2008-07-29 Thread Carl Crowder
Can you post the rest of the stacktrace? Also I got a 404 for the zip file you linked to Argo Vilberg wrote: > hi, > > > What i do wrong? > > > I want create tapestry border component. > > > In webapp: > > tapestry.app-package > ee.softpro > > > Then i create > ee

first tapestry component

2008-07-29 Thread Argo Vilberg
hi, What i do wrong? I want create tapestry border component. In webapp: tapestry.app-package ee.softpro Then i create ee.softpro.components.Border.java file and also Border.tml file. in ee/softpro/components/ directory. And use them in Start.tml file http://tapest

Re: T5: Service disambiguation

2008-07-29 Thread Filip S. Adamsen
Hi, You have to alias the Cookies service. public static void bind(ServiceBinder binder) { binder.bind(SecureCookies.class, SecureCookiesImpl.class).withId("SecureCookies"); } public static void contributeAliasOverrides(Configuration configuration, @InjectService("SecureCookies")

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Howard Lewis Ship
I'm already coding it up, but I created a pre-change tag just in case it turns out to be a problem. I think this is the right approach. On Tue, Jul 29, 2008 at 11:54 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > +1 on this one. > > -Filip > > On 2008-07-29 16:39, Howard Lewis Ship wrote: >> >

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Filip S. Adamsen
+1 on this one. -Filip On 2008-07-29 16:39, Howard Lewis Ship wrote: Well, it's not like we're pushing a bytestream from the web browser to the database, or vice-versa. Everything is being read into memory as UTF, whether it starts as UTF-8 in the browser, or ISO-8859-1 in the database. As it

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Thiago H. de Paula Figueiredo
Em Tue, 29 Jul 2008 14:44:03 -0300, Blower, Andy <[EMAIL PROTECTED]> escreveu: Thiago, Hi! Sorry I don't understand your objection. Could you expand on it please? Especially where you say "have a memory and bandwidth penalty using 2 bytes to encode many characters that would be encoded

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Marcus
UTF-8 as default +1

RE: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Blower, Andy
Thiago, Sorry I don't understand your objection. Could you expand on it please? Especially where you say "have a memory and bandwidth penalty using 2 bytes to encode many characters that would be encoded as 1 in UTF-8". In my experience char encoding can be an absolute nightmare and having as m

Re: dynamically disable field

2008-07-29 Thread Josh Canfield
> > > Disabled is a parameter to the textfield component. It's default binding is prop so you don't want the ${} around disabled. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/TextField.html Josh On Tue, Jul 29, 2008 at 5:45 AM, Lance Java <[EM

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Christian Edward Gruber
Strings are stored in UTF-16 by default anyway in Java (a Char type is 16bits), so unless you're constructing the strings in very creative ways, you're already paying the memory cost. The question of what you output to the browser or the database is a matter for adaptation and transmission

Re: dynamically disable field

2008-07-29 Thread Tan [EMAIL PROTECTED]
hi, thank you for your reply. i will try on it. :) On Tue, Jul 29, 2008 at 8:45 PM, Lance Java <[EMAIL PROTECTED]> wrote: > java: > class MyPage { > @Property > private String value; > > @Property > private boolean disabled; > } > > tml: > > > On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAI

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Marcelo Lotif
I agree with using UTF-8 as default... We're using the UTF-8 Filter for a while with some different db's (PostgreSql and SqlServer, encoded with ISO-8859-1) and we never had any problem with it. +1 -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do E

Re: [T5] Tapestry & FLASH Objects ?

2008-07-29 Thread Toby Hobson
Hi Steve We're actually trailing red5 at the moment. So far we've had mixed results but these have been issues related to the server itself, nothing relating to T5 integration. OpenLaszlo is a pretty compelling alternative to Flex because it's relatively mature and there is a large amount of do

AW: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Martin Kersten
Hi There, can't we just go with the UTF-8 by default (pages, forms etc.) and specify only changes to this default mapping (global or local or even on activate or using the actual writer. Often you end up using UTF-8 by default and you are messing with filter and forms and stuff. This is indeed

Looking for a t5 contractor

2008-07-29 Thread Dan Adams
Hey everyone, I have a t5 project that is need of full-time contractor over the next 3 months. Working remote is fine. Please feel free to contact me at the number below any time or email me if interested. Dan Adams Senior Software Engineer Interactive Factory p: 617.235.5857

Re: Serving a JNLP

2008-07-29 Thread Carl Crowder
Wait, never mind. I have had my head in XML mode, I forgot about StreamResponses and this page: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile Sorry! Carl Crowder wrote: > Hi again, > > My app needs to serve JNLP files, and these files are dynamically > generated. I'm d

Serving a JNLP

2008-07-29 Thread Carl Crowder
Hi again, My app needs to serve JNLP files, and these files are dynamically generated. I'm doing this by simply having the tapestry page render a template as normal, but using the JNLP element as the page root. I then set the content type on the page to be the JNLP MIME-type. This all works fine

Re: Access control with dispatchers and annotations

2008-07-29 Thread Carl Crowder
Cheers for all the replies - I've taken Moritz's approach in the end :) I've updated the wiki page to reflect this. Carl Moritz Gmelin wrote: > Hi, > > I think there is a bug in the Wiki. Try this instead > > Component page = componentSource.getPage(pageName); > Private prvAnno

Re: [T5]: form submission broken?

2008-07-29 Thread Marcelo Lotif
The book from Alexander Kolesnikov uses the 5.0.6 version, which is a little different from the latest one (5.0.13)... According with the component reference (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html), you have to change your code t

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Thiago H. de Paula Figueiredo
Em Tue, 29 Jul 2008 11:39:21 -0300, Howard Lewis Ship <[EMAIL PROTECTED]> escreveu: My observation is that the current design; allowing every page to have its own charset, is beginning to feel like overkill, especially given that the solution has a number of frayed edges. What about setting

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Howard Lewis Ship
Well, it's not like we're pushing a bytestream from the web browser to the database, or vice-versa. Everything is being read into memory as UTF, whether it starts as UTF-8 in the browser, or ISO-8859-1 in the database. As its read from one source or written to another, the character set is going

Re: How to create my ValidationDecorator in T5?

2008-07-29 Thread devilabit
We had a requirement to put an image after each label for form fields that were required. I am new to tapestry but after some investigation and by following Howard's pattern I was able to do this. Firstly I decorated the DefaultValidationDecorator class and added the image inside the label. I

Re: Access control with dispatchers and annotations

2008-07-29 Thread Sven Homburg
massimo, i ask me sometimes, now i ask you ;-) why do you use the the Restriced annotation not directly your code RestrictedWorker class seach for Restriced class an injected some metas into the page/component after that the AccessValidatorImpl ask for the private meta ??? why not directly work th

Re: Access control with dispatchers and annotations

2008-07-29 Thread photos
I've been trying to use the same code. The problem lies apparently in the fact that the class returned by getAnnotation is not Private but a proxy... ... page anno class=$Proxy40 ... Quoting Moritz Gmelin <[EMAIL PROTECTED]>: Hi, I think there is a bug in the Wiki. Try this instead

Re: Access control with dispatchers and annotations

2008-07-29 Thread Massimo Lusetti
On Tue, Jul 29, 2008 at 1:41 PM, Carl Crowder <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to create an access control system using a dispatcher as > described on the wiki page. > > I'm following this: > http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess > So that I can use an annotati

Re: dynamically disable field

2008-07-29 Thread Lance Java
java: class MyPage { @Property private String value; @Property private boolean disabled; } tml: On 29/07/2008, Tan [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hi all, > > i'm newbie in tapestry. May i know is there any dynamically way to > code it in java to control over tml

RE: T5: Service disambiguation

2008-07-29 Thread Russell Brown
Hi Thanks for the response. What do I alias though? The PersistentLocaleImpl? I've tried creating an alias for Cookies and SecureCookies. The problem is when TapestryModule tries to build PersistentLocaleImpl it finds two Cookies interfaces (SecureCookies that extends Cookies and Cookies itself (a

[T5]: form submission broken?

2008-07-29 Thread photos
Again, I'm trying to follow what is in the Kolesnikov book and I can't get it to work: template: value="Submit"/>

Re: EJB 3.0 + Tapestry

2008-07-29 Thread Geoff Callender
Try http://files.doublenegative.com.au/jumpstart . On 28/07/2008, at 11:41 PM, draxtor wrote: Hi, Does anyone know some good beginners walkthrough or tutorial about creating enterprise applications with tapestry. Or if anyone has some good advice. I tried by my self with Tapestry 4.15, EJB

Re: Access control with dispatchers and annotations

2008-07-29 Thread Moritz Gmelin
Hi, I think there is a bug in the Wiki. Try this instead Component page = componentSource.getPage(pageName); Private prvAnnot = page.getClass().getAnnotation( Private.class); when your Annotation is called Private of course. You'll get th

dynamically disable field

2008-07-29 Thread Tan [EMAIL PROTECTED]
hi all, i'm newbie in tapestry. May i know is there any dynamically way to code it in java to control over tml

Re: T5: Service disambiguation

2008-07-29 Thread Filip S. Adamsen
Hi Russell, Take a look at aliases - should do the trick: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/alias.html -Filip On 2008-07-29 13:38, Russell Brown wrote: Hi Chris, Do I? I'm not sure. Will that help the fact that PersistentLocalImpl has a problem disambiguating bet

Re: onActivate called twice when overriding from abstract generic superclass

2008-07-29 Thread Filip S. Adamsen
Hi, Both you and Thiago are of course right. I just remember Howard saying something about this being very difficult to do. Probably has something to do with Javassist. -Filip On 2008-07-29 05:30, Ivan Dubrov wrote: Filip S. Adamsen wrote: Hi, As far as I know it's very difficult - if not

Access control with dispatchers and annotations

2008-07-29 Thread Carl Crowder
Hi, I'm trying to create an access control system using a dispatcher as described on the wiki page. I'm following this: http://wiki.apache.org/tapestry/Tapestry5HowToControlAccess So that I can use an annotation to declare which pages need a logged-in user. It checks the meta-data in the compone

RE: T5: Service disambiguation

2008-07-29 Thread Russell Brown
Hi Chris, Do I? I'm not sure. Will that help the fact that PersistentLocalImpl has a problem disambiguating between SecureCookies interface impl and Cookies interface impl? I can add a marker to MY class that uses SecureCookies but I can't add a marker to the TapestryModule auto binder built Persis

Re: T5: Service disambiguation

2008-07-29 Thread Chris Lewis
Sounds like you want @Marker: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ioc/annotations/Marker.html chris Russell Brown wrote: > Hi, > > I need to write secure session cookies and Tapestry Cookies interface > and CookiesImpl don't do that. So I extend the Cookies interfac

Re: [T5]: label not being picked up

2008-07-29 Thread Sven Homburg
that is the right (coded) behavior but i dont agree with that too https://issues.apache.org/jira/browse/TAPESTRY-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12588658#action_12588658 2008/7/29 <[EMAIL PROTECTED]> > Sorry for another newbie question

T5: Service disambiguation

2008-07-29 Thread Russell Brown
Hi, I need to write secure session cookies and Tapestry Cookies interface and CookiesImpl don't do that. So I extend the Cookies interface like this Public interface SecureCookies extends Cookies { void writeSecureCookie(yada,yada); } And create an imple that injects the

T5: tapestry-test tutorial, sceencast?

2008-07-29 Thread Leon Derks
I want to use the tapestry-test module, but can't find much information about how to get started. Is there some kind of screencast or tutorial planned for how to use the tapestry-test module with all kind of examples? - To

[T5]: label not being picked up

2008-07-29 Thread photos
Sorry for another newbie question :-) but why does: the name of the user print "the name of the user" rather than "User Name" like it does in the Kolesnikov book? thanks, p.

Re: What if Tapestry's I18N was just "UTF-8"?

2008-07-29 Thread Massimo Lusetti
On Tue, Jul 29, 2008 at 2:17 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Here's a question. I'm still struggling with getting Tapestry to do > the right encoding when producing output, and to set the response > encoding to the correct value before reading query parameters. > > There's lots

Re: Using LDAP with tapestry5-acegi

2008-07-29 Thread Hugo Palma
Very cool. Thanks. Jonathan Barker wrote: Personally, I like a combination of the InMemoryDaoimpl to provide the UserDetailsService (great for development and admin accounts) and then LDAP. Here's a modified extract from an AppModule file - I've clumped together things that could be separated

RE: T5: HttpSession id. How to get it?

2008-07-29 Thread Russell Brown
Cheers Toby. That is what I was after. Good to hear from you again, too (we worked together on 4oD). Cheers Russell -Original Message- From: Toby Hobson [mailto:[EMAIL PROTECTED] Sent: 28 July 2008 17:54 To: Tapestry users Subject: Re: T5: HttpSession id. How to get it? Hi Russel, Ha