Re: Inconsistent handling of apostrophes in .properties files (3.0.3)

2006-12-18 Thread Nick Westgate
Hi Greg. This seems to be a Java API issue, as Sun mention in the bug report: "Using the apostrophe-quote character as an escape mechanism was a serious design mistake in MessageFormat" http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4862106 You could try creating a JIRA issue for this, as Tap

action per session

2006-12-18 Thread wong wayne
Dear All Is any method to perform particular action once in the same session? I would like to have something like visit counter to record down user action but only one is needed. Any method or component can help in this case? Currently, I think a silly method, store a value in session and alter it

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread D&J Gredler
It looks to me like you're right: http://tapestry.apache.org/tapestry4/apidocs/src-html/org/apache/tapestry/util/io/DataSqueezerImpl.html Well, at least you found the problem, and I'll halve the chances of conflicts in the next release by cutting the prefix down to a single char. Take care, Da

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread Steve Wells
Confirm it first, could be the lack of caffeine here, I'd be curious to see if you see it in the same way. On 18/12/06, D&J Gredler <[EMAIL PROTECTED]> wrote: Hmm... very interesting. I wonder why the squeezer prefix works that way? It looks like I probably need to change the BeanForm squeezer

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread D&J Gredler
Hmm... very interesting. I wonder why the squeezer prefix works that way? It looks like I probably need to change the BeanForm squeezer prefix to just be a single character, in order to minimize conflicts... On 12/18/06, Steve Wells <[EMAIL PROTECTED]> wrote: hmmm, thanks and good thinking guys

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread Steve Wells
hmmm, thanks and good thinking guys not sure it nails it though... The prefix is "P" but I have tried others., BeanForm uses "BP" Barry I think the squeezer type is registered by the getDataClass method? Cayenne squeezer: public Class getDataClass() { return DataObject.class; } BeanForm:

Re: Problem when using morwe than one intance of an Autocompleter

2006-12-18 Thread Jesse Kuhnert
I'll look into it.. p.s. You will have to change your snapshot version to pick up any bug fixes made as 4.1.1 has already been released. The new version should be 4.1.2-SNAPSHOT . On 12/18/06, Chris Perfect <[EMAIL PROTECTED]> wrote: Hello, I am having an issue with 4.1.1 (latest snapshot): I h

Re: Problem implementing countdown timer

2006-12-18 Thread Jesse Kuhnert
It's hard to tell what's going wrong without seeing exactly how all of the interactions are happening but can quite confidently say that this would be much easier to do in tapestry 4.1.1 . Ie: http://tapestry.apache.org/tapestry4.1/javascript/form.html tapestry.form.submitAsync(); I'd probably e

Inconsistent handling of apostrophes in .properties files (3.0.3)

2006-12-18 Thread Greg Ward
We have discovered that Tapestry 3.0.3 treats apostrophes differently in .properties files depending on whether you use getMessage() or format(). This particularly affects apostrophe-heavy languages like French. In particular, if a message looks like this: username = Nom d'utilisateur then ge

Re: Localized validation messages

2006-12-18 Thread cyrille37
Norbert Sándor wrote: > > I think you have to use this "dirty" solution. > Ok, I'll use another way : injecting the message into the Validator -- View this message in context: http://www.nabble.com/Localized-validation-messages-tf2842493.html#a7938551 Sent from the Tapestry - User mai

Re: Localized validation messages

2006-12-18 Thread Norbert Sándor
I think you have to use this "dirty" solution. There is an issue about this problem, it is currently scheduled for 4.1.2 (http://issues.apache.org/jira/browse/TAPESTRY-698). Regards: Norbi Cyrille37 írta: Hello, I was coming mad when trying to localize my validation messages. After some sear

Problem when using morwe than one intance of an Autocompleter

2006-12-18 Thread Chris Perfect
Hello, I am having an issue with 4.1.1 (latest snapshot): I have created a component with various form elements that includes an Autocompleter: the component is an address create/edit component and the autompleter is used for the Country field. I have a use case where I need to be able have more t

Problem implementing countdown timer

2006-12-18 Thread Leffel, Daniel
I have a really simple app that I'm trying to build. Shown on a page is an object that expires within 20-60 seconds. Once it expires, a new object is created with the same time to live (and so on and so on). The current object is loaded through a Tacos AjaxAutoInvoker. Additionally, I'm using the T

Localized validation messages

2006-12-18 Thread Cyrille37
Hello, I was coming mad when trying to localize my validation messages. After some search I've found a thread in that list which explain that: [quote] That's because Tapestry looks for "username-not-unique" in the properties file bundeled with Tapestry. To override it, your ValidationStrings.p

Re: problem with InjectSpring and Field Validator

2006-12-18 Thread Cyrille37
Cyrille37 a écrit : Hello, Is that @InjectSpring syntax is correct ? import org.apache.tapestry.form.validator.BaseValidator; public class DocumentsUploadFileValidator extends BaseValidator { protected ConfigurationManager configurationManager ; @InjectSpring("configurationManager")

RE: Inject EJB 3 into Tapestry 4 page

2006-12-18 Thread Denis Souza
That's just about what I need, but for EJB 3. This service seems to assume EJB 2.x since it requires a home interface. Thanks anyway, Denis -Original Message- From: Norbert Sándor [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 18 de dezembro de 2006 16:57 To: Tapestry users Subject: Re:

tapestry-acegi question

2006-12-18 Thread spamsucks
I see there is a @Secure annotation that will secure a page/listener for a role. Is there an annotation that will secure a page/listener for just an authenticated user? I just want to make certain that someone is logged in, I don't need to protect it by role. Thanks. BTW, this is for a t

Re: Inject EJB 3 into Tapestry 4 page

2006-12-18 Thread Norbert Sándor
Take a look at http://hivemind.apache.org/hivemind-lib/EJBProxyFactory.html Denis Souza írta: Anyone know how I can inject a stateless EJB into a tapestry page? Is it possible to do this with hivemind? Thanks in advance, Denis --

Inject EJB 3 into Tapestry 4 page

2006-12-18 Thread Denis Souza
Anyone know how I can inject a stateless EJB into a tapestry page? Is it possible to do this with hivemind? Thanks in advance, Denis

Re: problem with InjectSpring and Field Validator

2006-12-18 Thread Cyrille37
Cyrille37 a écrit : @InjectSpring("configurationManager") public void setConfigurationManager( ConfigurationManager configurationManager ) In all examples found on the Net, methods are abstract when using InjectSpring annotation. It is a must have ? Because my class could not be abstract

Re: CMS Integration

2006-12-18 Thread Igor Bljahhin
Hi! Can we talk on Gtalk or something? Actually, I don't have much code, just one-two classes... Igor On 12/14/06, Borut Bolčina <[EMAIL PROTECTED]> wrote: Hi Igor, I am planning to integrate Tapestry with some portal and CMS solutions available commercially or in open source form. Accessing

problem with InjectSpring and Field Validator

2006-12-18 Thread Cyrille37
Hello, Is that @InjectSpring syntax is correct ? import org.apache.tapestry.form.validator.BaseValidator; public class DocumentsUploadFileValidator extends BaseValidator { protected ConfigurationManager configurationManager ; @InjectSpring("configurationManager") public void setConfi

Datetime picker

2006-12-18 Thread Henry Chen
Is there a Datetime picker which can choose date and time available for Tapestry 4.1?

Re: DB-Connection

2006-12-18 Thread Shing Hing Man
In your hibernate.cfg.xml, Have you set the property connection.datasource to the data source ? Something like : java:comp/env/jdbc/bankDataSource Also don't forget to include in web.xml for your data source. Shing --- Fabian Dittrich <[EMAIL PROTECTED]> wrote: > I tried to put the context

Re: DB-Connection

2006-12-18 Thread Mike Grundvig
I'm with you Barry. I've had much better luck getting DB connections out of the web app configuration and into a more neutral location. Something that allows me to run the services and test code from the command line. This leads to much better developer productivity overall. Michael Grundvig E

Re: DB-Connection

2006-12-18 Thread Fabian Dittrich
I tried to put the context.xml file in META-INF The file is like: I get following error: An exception has occurred. You may continue by *restarting * the session. org.apache.hivemind.ApplicationRuntimeException Unable to constru

Re: T41: RedirectException and async?

2006-12-18 Thread Jesse Kuhnert
It'll still redirect properly. Not pretty or guaranteed to always work but it'll "mostly" work. On 12/18/06, Ron Piterman <[EMAIL PROTECTED]> wrote: I have a small security workflow which is heavily based on RedirectExceptions - and was wandering how the tapestry javascript would accept this -

Re: DB-Connection

2006-12-18 Thread Barry Books
I switched to injecting connections with Hivemind and I would say it's well worth the effort. I could never figure out how to test code when using the Tomcat database connections but with the Hivemind method you can just get a connection and add it to the objects you want to test. There is an exa

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread Barry Books
Could it be both sqeezers are useable for the object you are trying to sqeeze? I'm not sure how that case is handled but the error looks similar to the one you get when you specify more that one persist option. - To unsubscribe,

Re: Form Validator java.lang.InstantiationException

2006-12-18 Thread Cyrille37
Ok, I've found my error. my java class was an **abstract** class !! And of course java could not instanciate a abstract class. sorry for the noise. cyrille Cyrille37 a écrit : Shing Hing Man a écrit : Try replacing public DocumentsUploadFileValidator() {} by public DocumentsUploadFileVa

Re: Form Validator java.lang.InstantiationException

2006-12-18 Thread Cyrille37
Shing Hing Man a écrit : Try replacing public DocumentsUploadFileValidator() {} by public DocumentsUploadFileValidator() {super();} Shing Thanks Shing, I did, but it doesn't change. Still have the error. Error initializing validator 'documentsUploadFileValidator' (class tap03.u

Re: tapestry prop / ognl?

2006-12-18 Thread karthik G
Great! thank you all. We will also adopt a similar approach thanks Karthik On 12/18/06, D&J Gredler <[EMAIL PROTECTED]> wrote: Hi Karthik - I would use prop wherever possible, and at least consider writing new methods in Java for the places that you can't currently use it. Not only does that

Re: Form Validator java.lang.InstantiationException

2006-12-18 Thread Shing Hing Man
Try replacing public DocumentsUploadFileValidator() {} by public DocumentsUploadFileValidator() {super();} Shing --- Cyrille37 <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to create a really simple Form field > validator but it fails > and throw an java.lang.InstantiationExcept

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread D&J Gredler
Never had this happen to me... what's the prefix for your Cayenne squeezer? On 12/17/06, Steve Wells <[EMAIL PROTECTED]> wrote: Hiya, I've just been trying to get beanform 0.7 working, but get what appears to be a clash with the BeanPropertySqueezer and my own Cayenne squeezer. Cutdown error i

Re: tapestry prop / ognl?

2006-12-18 Thread D&J Gredler
Hi Karthik - I would use prop wherever possible, and at least consider writing new methods in Java for the places that you can't currently use it. Not only does that increase the amount of code that you can unit test, but you'll see definite speed improvements. Changing BeanForm to use prop inste

Form Validator java.lang.InstantiationException

2006-12-18 Thread Cyrille37
Hello, I'm trying to create a really simple Form field validator but it fails and throw an java.lang.InstantiationException. Since 3 hours I'm looking in TAP's severals examples but I could not find the reason of the exception. Please could you help me to find where is my error ? Thanks Cyrill

Re: DB-Connection

2006-12-18 Thread Shing Hing Man
If you are using Tomcat 5.5.*, have you tried the following ? http://wiki.apache.org/tomcat/UsingDataSources It works for me. Shing --- Fabian Dittrich <[EMAIL PROTECTED]> wrote: > Hi tapestry-users, > > before i used a file in conf/catalina/localhost/ to > configure my > db-connection there

Re: T-Acegi: An AuthenticationManager is required

2006-12-18 Thread James Carman
No, I'm not using tapestry-spring. Well, HiveMind needs to know how to find the Spring objects. So, just drop tapestry-spring.jar into your WEB-INF/lib dir and see if that fixes it (as long as your spring config file is named/located appropriately). What is the alternative way to configure

Re: about DynamicBlock component

2006-12-18 Thread Marilen Corciovei
I have been using a while ago a mechanism similar to: This renders different types of "*View" components for different paragraph types. The view component has nothing special, just it receives an Id as parameter. The tricky part takes place in the "*Edit" page where the block is defi

about DynamicBlock component

2006-12-18 Thread Cyrille37
Hello, There is the DynamicBlock component source code at : http://www.behindthesite.com/blog/C1931765677/E1630021481/ and a example at : http://examples.mjhenderson.com/dynamicblock/app Do you know if there is anothers pages which talking about that component ? Thanks Cyrille

T41: RedirectException and async?

2006-12-18 Thread Ron Piterman
I have a small security workflow which is heavily based on RedirectExceptions - and was wandering how the tapestry javascript would accept this - When a page is accessed with unsufficient permitions, a RedirectException is thrown. Now, what if the request is async ? Cheers, Ron --

DB-Connection

2006-12-18 Thread Fabian Dittrich
Hi tapestry-users, before i used a file in conf/catalina/localhost/ to configure my db-connection there in an xml file, like this: Now i want to deploy my app directly into Tomcat/webapps Anyone knows where to put the settings for the db-connection now? Thanks for any advice Fabian

RE: T-Acegi: An AuthenticationManager is required

2006-12-18 Thread Firas Adiler
> Are you using tapestry-spring? No, I'm not using tapestry-spring. It turns out that I got it to work correctly using only spring's ContextLoaderListener approach. And as you may have guessed, it doesn't work when dropping tapestry-acegi into the classpath. The exception I get is the same, "An