I wanted to show a group of components and if there is any validation
error I wanted one Field Label to be highlighted in red.
Can we bind one field label to multiple components.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
On Thu, 06 Oct 2005 17:28:33 -0400, Dan Adams <[EMAIL PROTECTED]> wrote:
well, i was using friendly urls before and mapping all .html to the
tapestry servlet. So what I did instead is i got the urlrewritefilter
and used it to rewrite all the urls i wanted to:
/app?page=$1&service=page
so to th
BTW what is the status of Groovestry 2.0 (updated to the new JSR
groovy and 4.0 Tapestry) now that Tap 4 is relatively stable?
My primary reason for asking is that I want to use it in my book (I
have a chapter all planned out for it ;-).
-warner
You know, Mike Henderson and I created a too
You know, Mike Henderson and I created a tool called groovestry a while
back. The primary purpose was to create page controllers using groovy. Among
the things it did, was reload groovy classes as they changed. It did that by
tossing the class loader along the way. Ultimately, it was a good idea bu
I had some success with an approach like you describe in an old
system where I was doing runtime code generation and compilation (nothing
too sophisticated, I was manually writing legal source and compiling it at
runtime to create fast stub class and avoid reflection). Basically I just
thr
Could some artificial restrictions on the pages, components, beans whatever
lower the natural java + vm limits that eventually reload is possible?
As far I get it the problems are mainly due to a missing clean separation
between the core system classes that stay resident and the application part
I can assure you that a LOT of people have tried. The J2EE deployment cycle
has been around for 7+ years now. I believe it is simply inherent in the Java
language and VM design. It was not designed to handle class changes on the
fly. Ruby and Smalltalk can.
Interesting blog post here:
http:
Of course I've been thinking along those lines. Java does get in the
way, however. ClassLoaders are tricky, tricky things.
On 10/6/05, Peter Ertl <[EMAIL PROTECTED]> wrote:
> One of the main reasons for using Ruby instead of Tapestry is the short
> and quick development cycle.
> ruby: save + brow
One of the main reasons for using Ruby instead of Tapestry is the short
and quick development cycle.
ruby: save + browse
java: save + restart + init app + click through your app pages to get to
the page before restart
(visionary-mode = on)
having a reload-capable classloader could eventually redu
In submit button you should use action attribute instead of listener attribute.
>From tapestry documentation about action attribute:
A listener that is notified if this component is triggered just
before the form's listener, after all components enclosed by the Form
have had a chance to update th
well, i was using friendly urls before and mapping all .html to the
tapestry servlet. So what I did instead is i got the urlrewritefilter
and used it to rewrite all the urls i wanted to:
/app?page=$1&service=page
so to the user it looks the same as it did before. :)
On Thu, 2005-10-06 at 16:53 -
This *seems* like it should be simple.
I have a component that takes a parameter "address", and some
property-specifications that need initial values based on some values with
the object represented by parameter "address".
However, when the methods specified in the initial-value parameter of the
try that as a workaround...
crappy but working!
public void service(WebRequest request, WebResponse response,
WebRequestServicer servicer) throws IOException
{
CookieSourceImpl cookieImpl = new CookieSourceImpl();
cookieImpl.setRequest(request);
cookieImpl.setResponse(respons
Hey, I have some pages that are .html that I dont want tapestry to touch
when they are served which are located under /fckeditor but I wan't
every other .html to be okay. Given the inflexibility of servlet
mappings i'm having a bit of trouble with it.
--
Dan Adams
Software Engineer
Interactive Fa
Okay, the error was I was trying to use the textarea in a @Script. You
have to put the @Script AFTER the textarea otherwise the name and form
aren't set by the time the script is rendered.
On Thu, 2005-10-06 at 16:00 -0400, Dan Adams wrote:
> I put a @TextArea in a form and when it renders getName
Hi -
I have the following source object and table component specificed in
my .page (Tapestry 4).
When ever I try to sort or page through the data I get this error:
Either the tableModel parameter or both source and columns paramet
Try
-mb
Derek Brown wrote:
Im trying to use the TableView component, no matter
what
I seem to do with the columns string, it keeps
executing ognl for something like !actions. How can I
create a column that will not try to execute ognl.
Thanks
Heres what im doing:
I put a @TextArea in a form and when it renders getName() and getForm()
both return null(!?) I tested it with a textfield just to make sure.
--
Dan Adams
Software Engineer
Interactive Factory
-
To unsubscribe, e-mail: [EMAIL PR
:) Thanks for the info
-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: 6. oktoober 2005. a. 21:35
To: Tapestry users
Subject: Re: Problem with a Tapestry Inspector Loggin
That's been gone since 2.x when Tapestry switched from explicit Log4J
to commons-logging.
Yes, that was exactly my problem. I worked around it by obtaining the info I
needed for the cookie from another source, but that too was ugly.
Thanks for your help. I'll look into InvokeEngineTerminator, as you
suggested, to try a better solution.
Denis
-Original Message-
From: Shawn Chur
I ran into exactly the same problem today, but my implementation did not
involve cookie handling. Since the service call happens so early in the
request, it appears RequestGlobals has not yet been instantiated. The
exact error I get is:
Property 'webRequest' of
is null.
This exception was thro
Is there a dtd/example/wiki page for scripts in tapestry 4?
--
Dan Adams
Software Engineer
Interactive Factory
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That's been gone since 2.x when Tapestry switched from explicit Log4J
to commons-logging.
On 10/6/05, Taavi Sildeberg <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a problem with a Tapestry Inspector loggin. The button Loggin does
> no appare in Inspector window? I have search in Google and also i
What happens is that every class *referenced* by each Java class to be
enhanced also becomes a CtClass.
The fix may be something for HiveMind, to use a WeakHashMap for the
CtClass instance cache. But Javassist may be caching them as well.
On 10/6/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
>
>
Hi Ron,
I've tried to do what you suggest to no avail.
I have a component that takes a parameter "address", and some properties
that need initial values based on some values with the object represented by
parameter "address".
However, when the methods specified in the initial-value parameter of
Hi,
In a previous post I asked about handling persistent cookies in Tapestry 4.
I finally got it to work the way I want it by using my own implementation of
CookieSource (which is much like Tapestry's own implementation, except for
the persistent cookie part) and the cookie logic is handled by
You can use the form's refresh listener to bypass client validation and
in the listener method call clearErrors() on your delegate to avoid
server validation. Watch out for
http://issues.apache.org/jira/browse/TAPESTRY-636 if you use this
though.
HTH
Ben Dotte
-Original Message-
From: D
I think there is only a single instance of a generated class created for
each page visit. However, I would have now doubt that just bringing up
Tapestry would create 600+ classes. I've since deleted the original e-mail,
I will go dig it up to see if each page visit was generating instances.
Hmmm, f
I looked at this problem for quite some time but did not use a profiler. I
discovered that my development system did not seem to fail (I never got it
to fail) when I did not disable the cache as indicated in Howards post. The
development system was running jetty. The other systems ran tomcat and
Playing with class loaders in Java is kind like playing with fire with only
a small bucket of water around.
You can do it, but you will eventually get burnt.
It would significantly change the semantics of how Tapestry currently works
because class loaders are also namespace boundaries within java
Isn't the major source of the OP's memory use though the 600+ new
instances of javassist.CtNewClass in the classes hashmap per page load? Are
you thinking that a simple page with two property selects on it ought to
require 600+ support classes to back it, because that sounds about two
orde
What you will need to do is have the notion of selected and/or tag be
parameters that are inherited through your chain of components.
You could also create a few custom components. A form, submit, and submit
link that you use through out your application and know the semantics you
desire.
-Or
wouldn't it be a good thing to use a
discardable class loader in dev-mode?
> --- Ursprüngliche Nachricht ---
> Von: "Hensley, Richard" <[EMAIL PROTECTED]>
> An: "Tapestry users"
> Betreff: RE: OutOfMemoryError Tapestry 4.0
> Datum: Thu, 6 Oct 2005 13:24:19 -0400
>
> Generated Classes are
Is there any way to have a button on a form that submits without doing
form validation? Or is that something I should code myself?
--
Dan Adams
Software Engineer
Interactive Factory
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Generated Classes are loaded into a class loader so they can be instantiated
by Tapestry and Hivemind. The only way to release the generated classes is
to release the class loader.
I tried once to evict classes from a ClassLoader while I was doing some
Groovy stuff, according to the ClassLoader sp
Thank you very much, but I need a way to do that component friendly. I
mean, if I pack a button inside a component wich is used in another
component, ... which is used inside a Form, the forms knows nothing
about the deeply nested button.
I have to think about it, though.
Thanks
El Xov, 06-10-2
I’m still trying to figure this input validation stuff out…
I got some of it working, but I have had to add a .page specification which
I’d rather do without.
This is all that's in the page specification:
Some page
Is there some way to do th
Shouldn't the old ones go out of scope though and get gc'd?
--- Pat
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 06, 2005 9:52 AM
> To: Tapestry users; [EMAIL PROTECTED]
> Subject: Re: OutOfMemoryError Tapestry 4.0
>
I have a working custom validator for a TextField that is being called using
the setup listed below. The validator determines internally whether to
execute all code in it's validate(...) method or skip based on a checkbox on
the form. Works great, except I just realized that if I don't have any tex
public void submit(IRequestCycle cycle) {
IActionListener l = getWhichListener();
if (l != null) {
l.actionTriggered(, cycle);
}
}
I think this technique is documented on the list, you might try searching
for actionTriggered on gname.org
Richard
-Original Message-
From: Hens
Howard Lewis Ship escribió:
That might be reasonable if you are running with
-Dorg.apache.tapestry.disable-caching=true
With caching disabled, Tapestry has to constantly create new enhanced
subclasses for every page and every component.
Shouldn't it delete old classes?
--
In general, you need to use the tag/selected parameters, and then use the
value of your selected to determine which listener to call from within your
form submit listener.
A reasonable way to do this is to make your selected an IActionListener,
make your take a listener, and then trigger the actio
I need to defer the invocation of a listener method until the end of
form procesing.
What is the correct way to do this in Tapestry 3? I know that this is
supported in t4, but I need to do it in t3.
Thanks a lot
-
To unsubscrib
That might be reasonable if you are running with
-Dorg.apache.tapestry.disable-caching=true
With caching disabled, Tapestry has to constantly create new enhanced
subclasses for every page and every component.
On 10/6/05, Paolo Donà <[EMAIL PROTECTED]> wrote:
> Hi Guys,
> I'm experiencing the same
Thanks for this Marcus, however, it only works like this:
As soon as I add "empty=":
I get the following exception:
Unable to instantiate instance of class
org.apache.tapestry.form.translator.StringTranslator:
java.lang.reflect.InvocationTargetException
Any idea what might be wrong ?
Henri
You don't need to.
lets say your parent component P takes a parameter A.
you want to manipulate A and pass it to one or more components inside of
P (child components, C1..Cx).
So, you don't use the A binding directly, instead you use a property in
your component class which delivers the manip
Anyone have a list or example stylesheet of the styles for the
datepicker?
--
Dan Adams
Software Engineer
Interactive Factory
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Guys,
I'm experiencing the same OutOfMemoryError seloha pointed out.
I have a simple application with Tap4/Spring/Hibernate, a page with 2
PropertySelection components which submits to a hibernate query (via
spring's HibernateTemplate) and shows a result page which uses a Table
component. Every
you don't need to define a property in your .jwc unless you need to
persist your property or set an initial-value.
to define a property you just add an abstract getter method. Tapestry
will make that a property.
The equivalent to is @Persist.
currently there is no annotation to set initial p
for @Persist you need java 1.5
has changed to
for full info just check the dtd
--> http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd
[-- snip ---8<--- snip ---8< ]
This DTD represents a significant change from (and simplification of) the
3.0 DTD.
Tapestry 4.0 will continue to parse
Jamie Orchard-Hays wrote:
It's now
...and the annotation is called "@Persist".
On Oct 6, 2005, at 11:23 AM, Henri Herscher wrote:
Hi,
I cannot see the equivalent of the tag in T4
annotations. I want to create a persistent property in my component
that is not a .
Any ideas ?
Thanks
---
It's now
On Oct 6, 2005, at 11:23 AM, Henri Herscher wrote:
Hi,
I cannot see the equivalent of the tag in T4
annotations. I want to create a persistent property in my component
that is not a .
Any ideas ?
Thanks
-
To uns
Take a look at the schema provided in tapestry.state.xml in the
tapestry source and you will see what hivemind is expecting you to
provide. It is not the same as a service-point.
ryan
On 10/4/05, Dan Adams <[EMAIL PROTECTED]> wrote:
> What is wrong with the following? I've looked through the docs
Hi,
I am using the Prototype javascript library (http://prototype.conio.net)
which, among other cool stuff, adds methods and properties to standard
JavaScript objects. This is all find and dandy, unless someone tries
something like this:
var myArray = new Array('a', 'b', 'c', 'd', 'e');
for(lette
Hi,
I cannot see the equivalent of the tag in T4
annotations. I want to create a persistent property in my component
that is not a .
Any ideas ?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
Hi list,
maybe you can help me with a "property" problem.
I have a parent component A which fetches a lot of information from a
webservice in its prepareForRender method. One part of the
information is a list which should be passed as a parameter to
component B which is nested inside of component
It is better to verify. I used to use hosting where I
could not control Resin and it worked with security
manager enabled. That caused a lot of problems for
Java applications even formally they supported Java,
JSP etc.
Now I use different provider where I can even install
my JVM and my Tomcat - ev
In the above code is it compolsory to write
onblur="onBlur="Javascript:populateName(upload1.value,1)"
I am not good in scripting languages but try
"onBlur="populateName(upload1.value,1)" .
Try calling the same way as you call in normal html.
Hi,
my previous question didn't seem to catch much attention. I will simplify it.
How can I call a java method (with ognl, of course) inside a @Script
component? I've tried
// createLink(String var) is a valid method in the .java file
var url = '${createLink('PageName')}';
but Tapestry c
Yes, thank you - I think that is exactly what I was looking for.
- Claus
-Oprindelig meddelelse-
Fra: Andreas Andreou [mailto:[EMAIL PROTECTED]
Sendt: 6. oktober 2005 16:20
Til: Tapestry users
Emne: Re: Tapestry 4.0 input validation subsystem.
Best option (for now) is to take a look at
You have to specify the name of your component in the library file if you
are using one.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero
(Keep Smiling.
hi you can do that in your AddressElements component specification itself
by declaring the "default-value" to that parameter .
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http
Can you mail the component specification of your custom component.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero
(Keep Smiling. Be happy All The Time.
Best option (for now) is to take a look at the sample chapters of
http://www.agileskills2.org/EWDT/
I think it's chapter 3 and 4 you're after
Claus Nielsen wrote:
Hi.
I’m just getting started with Tapestry, and currently I am trying to figure
out how to do input validation.
I do have “Tap
What you are doing above is right. But after rendering the page via web
container can you just open the source of the page displayed in your browser
and just copy the part generated by the upload component and paste it here.
We see why you are not able to achieve the same thing.
If upload compo
Hi.
I’m just getting started with Tapestry, and currently I am trying to figure
out how to do input validation.
I do have “Tapestry in Action”, but according to the Tapestry website
“Tapestry 4.0 debuts a new and much more sophisticated user input validation
subsystem.”. Now, how much does
Ya. I am using Body component .
Thanks & Regards
-
Ananya Goswami
Software Developer
-
mail: [EMAIL PROTECTED]
mob: 09886886320
ph: 080-57561000
extn:3720
-Original Message-
From: Muralidhar Y. [mailto:[EMAIL PROTECTED]
S
Hi,
I have managed successfully to create tapestry components in my
project that need no jwc files. The html are in WEB-INF and the path
to the component classes is described in my .application.
However, when I'm trying to package this as a library in a single
folder with a my.library, it returns
Ok, here's the validator I mentioned before.
I'll ask if it can be included in directly into Tapestry.
For the moment, you have to add edit your hivemodule.xml, and add this
contribution:
Then you have to add an unsupported-file-type entry in
ValidationString.properties. Here's min
Sorry for my belated reply to this hot topic. I've been too busy
writing code around Lucene to tune into e-mail :)
There are techniques you can use to keep a Lucene index in sync with
a DB. If you're using Hibernate, there are hooks you can use to
manage the index on updates, deletes, add
Hi,
If host provider says they support Tomcat 5, JSP and ftp access, is it
safe to conclude that I can deploy Tapestry apps there? Do I need to do
a test with some demo Tapestry app just to be sure?
Tnx,
Borut
-
To unsubscri
Hi everyone,
I've been experimenting with the XTile component and have run into a
problem concerning the way the client sends data to the server. From
what I've seen of the XTile source, parameters are sent via GET which is
a problem with national-specifiic characters, spaces and so on.
I've s
Hello
once in the render method it's too late to change the properties.
Your component could implement
org.apache.tapestry.event.PageRenderListener with method
pageBeginRender(PageEvent event) {
if ( !event.getRequestCycle().isRewinding() ) {
initStateCode();
}
}
the page should au
Henri Herscher gmail.com> writes:
> It looks like a TextField now returns a null string instead of an
> empty string. Is there a simple way to revert to the old behaviour ?
> I'm getting null pointer exceptions all over the place.
TextField now uses a translator to figure out how to convert the
The @Upload component allows informal parameters, but
are you sure that the accept attribute is valid html and recognized by
browsers.
In general, it's difficult to change the control's
appearance
and (clientside) behavior due to security reasons. Maybe it's better to
create your
own Upload c
I still use a mix of annotations and XML.
In some cases, the annotations and Java syntax are still more
cumbersome than XML.
Further, annoations are class based and classes are loaded only once;
this means that a change in annotations requires a redploy of the
application, or a restart of the con
Hello,
First off, I'm using Tapesty 3, not 4.
I have a page, that has a custom component I created on it.
That custom component has a web template, and a number of other components
embedded in it.
I need to programatically set one of the parameters in one of the components
embedded in the custom
I am not sure but try with above. I think when you are prefixing with
something it may be thinking that it is an ognl expression.I am working
with 3.0.3 so what stated above is just my imagination.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Divi
then your issue is different...
> --- Ursprüngliche Nachricht ---
> Von: Jan Normann Nielsen <[EMAIL PROTECTED]>
> An: Tapestry users
> Betreff: Re: Deprecation warnings
> Datum: Thu, 06 Oct 2005 13:08:24 +0200
>
> Peter Ertl wrote:
>
> >are you using the latest beta of t4?
> >
> >http://issues
Thanks Muralidhar for the response.
I have already mentioned in my html body take a component Body. The body
code is below:
and the component jwcid=upload1 equavalent .page mapping is given below:
here as I mentioned in my html:
In general HTML scenario, if I give accept="image/gif
Hi!
I start project with web layer based on Tapestry 4. I planning use
Annotations instead XML specification files.
I have a qeustion: annotations is full featured or they have
limitations?
Thanks!
__
Kosarev A.V.
Tassel is currently unavailable due to the server it's running on being
down for the next couple of days.
Robert
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Im using Tap 4 beta 9
--- "Muralidhar Y." <[EMAIL PROTECTED]> wrote:
> Instead of use in
> your specification.
>
>
>
>
> Muralidhar Y
> Software Engineer,
> Adastrum technologies-Nikai groups,
> EmiratesGroup-I.T Division,
> Dubai, UAE.
> Mobile : 00971-50-2256149.
> http://www.adastrumtec
Peter Ertl wrote:
are you using the latest beta of t4?
http://issues.apache.org/jira/browse/TAPESTRY-667
Yes, I'm using beta-9 on JDK 1.4.2. But what does my question have to do
with the particular issue? It's about deprecated methods and compiler
warnings. Mine is about deprecated compone
are you using the latest beta of t4?
http://issues.apache.org/jira/browse/TAPESTRY-667
> --- Ursprüngliche Nachricht ---
> Von: Jan Normann Nielsen <[EMAIL PROTECTED]>
> An: Tapestry users
> Betreff: Deprecation warnings
> Datum: Thu, 06 Oct 2005 12:24:51 +0200
>
> Hi
>
> When I use the Valid
Instead of use in your specification.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http://www.adastrumtech.com
http://www.mercator.aero
(Keep Smiling. Be happy All The Time.)
-Original Message---
Are you using "Body" component in your html file. To enable java script for
your components you must use "Body" componet instead of just writing
in html.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-2256149.
http
To enable java scripting first instaed of writing in html use "Body"
component and then your components will be java script enabled.
If you can tell me jwcid="upload1"to which component the upload1 is
mapped I may be able to help little bit.
Muralidhar Y
Software Engineer,
Adastrum te
Hi
When I use the ValidField component in T4, my server log warns me that
this component is deprecated. The ForEach and ListEdit components are
also deprecated but don't generate such a warning. Isn't that inconsistent?
Best wishes,
Jan
---
Hi All,
I have a scenario wherein in my html, I have a code something
like this:
I have a requirement of giving a filter to only .gif files can
be shown by default to the dialog box which get opened on click of "browse"
button of the type file. For that to do I
Yeah figured this one out after some serious headscratching ;)
In order to instantiate my Global object I had overridden BaseEngine to
change the createGlobal method; but somehow my .application file had
reverted back to BaseEngine; thus the class loader was looking for a
zero-argument constru
Im trying to use the TableView component, no matter
what
I seem to do with the columns string, it keeps
executing ognl for something like !actions. How can I
create a column that will not try to execute ognl.
Thanks
Heres what im doing:
__
Ya
Hi All,
I need help on How to enable JavaScripting on "Upload"
component.
I need this help as I need to prompt the user if he/she has uploaded other
than .gif files.
Please respond with solution,
Thanks in advance,
Regards,
Anjali
Hi,
I have a problem with a Tapestry Inspector loggin. The button Loggin does
no appare in Inspector window? I have search in Google and also in manual,
but still did't find the answer to my problem.
Can someone know what could be wrong?
Thanks
--
Using Opera's revolutionary e-mail client
94 matches
Mail list logo