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

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

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

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

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

Re: tapestry prop / ognl?

2006-12-18 Thread DJ 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

Re: Squeeze adapter issue with Beanform

2006-12-18 Thread DJ 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

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.InstantiationException.

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, DJ 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 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

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

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: 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

Re: DB-Connection

2006-12-18 Thread Fabian Dittrich
I tried to put the context.xml file in META-INF The file is like: ?xml version=1.0 encoding=UTF-8? Context Resource name=jdbc/bankDataSource auth=Container type= javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/MCG username=root

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

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 : property name=connection.datasourcejava:comp/env/jdbc/bankDataSource/property Also don't forget to include resource-ref in web.xml for your data source. Shing --- Fabian Dittrich

Datetime picker

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

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

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

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.

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: 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

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)

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

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

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

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

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 bean name=uploadFileValidator class=tap03.ui.web.validators.DocumentsUploadFileValidator set name=messageUnauthorizedContenttype

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

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

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

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: Squeeze adapter issue with Beanform

2006-12-18 Thread DJ 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
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, DJ 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 DJ 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,

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

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