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
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
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
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
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
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
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
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.
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
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
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
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,
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
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
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
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
Is there a Datetime picker which can choose date and time available for
Tapestry 4.1?
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
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
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.
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
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
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)
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
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
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
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
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
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
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
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
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:
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
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
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,
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
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
37 matches
Mail list logo