Re: formatting ssn

2008-05-19 Thread kk4Nabble
Hi.. I found a way to format ssn field using MaskEdit of contib library.. so.. works fine.. But how to make it a required field and how shall i customise the field.. Cos other fields are different from this.. This looks odd.. Thanks in advance kk4Nabble wrote: > > Hi all, > I was using taco

Re: T5: 5.0.12-SNAPSHOT quickstart

2008-05-19 Thread Weisu
Thank you Taavi, it works now after I add these in pom.xml: org.apache.tapestry tapestry-annotations ${tapestry-release-version} Taavi Sildeberg wrote: > > Hey > > You need to add tapestry-annotations dependency to the pom.xml. Seems, > that cu

Re: T5: 5.0.12-SNAPSHOT quickstart

2008-05-19 Thread Taavi Sildeberg
Hey You need to add tapestry-annotations dependency to the pom.xml. Seems, that current quickstart won't include that Taavi Weisu wrote: Hi All, I am trying to use quickstart to create a 5.0.12-SNAPSHOT project, I follow the steps in T5 site, mvn archetype:create -DarchetypeGroupId=org.apache

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Jun Tsai
org.apache.tapestry.v5 +1

T5: 5.0.12-SNAPSHOT quickstart

2008-05-19 Thread Weisu
Hi All, I am trying to use quickstart to create a 5.0.12-SNAPSHOT project, I follow the steps in T5 site, mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.example -DartifactId=myapp -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT a

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Marcus
if T5 willBeCompatibleWith T(5+n) andT5 shouldWorkWith T(5-n) then rename T(5-n) annotations packages; else if T5 willBeNotCompatibleWith T(5+n) then rename all Tapestry packages; Marcus

where can i get the referrence?

2008-05-19 Thread mark lu
where can i get the referrence about tapestry? for example,the referrence about annotation,component,etc. thanks. -- View this message in context: http://www.nabble.com/where-can-i-get-the-referrence--tp17333433p17333433.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-19 Thread Jonathan Locke
I was just googling around the Internet for people with Wicket problems and I ran across this highly obnoxious post and felt I should comment. If the research was real, the poster would have linked to it. In fact, nobody has any real basis short of a widespread statistical survey for assessing t

Re: T5 cross-form validation

2008-05-19 Thread Toby Hobson
Problem fixed ... it appears the form doesn't emit a "validate" event, it emits a "validateForm" event! Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: tapestry Sent: Monday, 19 May, 2008 11:17:44 PM Subject: T5 cross-form validation Hi According to the T5 site: "

Re: Help with Tapestry 3.4 and Stale Link Error

2008-05-19 Thread David Moskowitz
Anyone out there on the list? Sorry this is not a Tapestry 5 issue, but could you please point me to an earlier discussion on this issue, if you know of one. This is really frustrating me. Thanks -- Best regards, Davidmailto:[EMAIL PROTECTED] ___

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Christian Edward Gruber
Again, the differences between T3, T4, and T5 are not really "versions" in the typical sense. They're different architectural bases. You might call them three different web frameworks entirely. So there should be no reason technically for them to overlap, and they should have three diffe

T5 cross-form validation

2008-05-19 Thread Toby Hobson
Hi According to the T5 site: "After the fields have done their processing, the Form emits a"validate" event. This is a chance to perform cross-form validationthat can't be described declaratively." I understood this to mean that a validate event will be fired after the individual fields have

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kevin Menard
Actually, I think it's aimed at people that want to use both T4 and T5 in the same WAR. For example, I have a set of data objects in one package shared between a T4 and a T5 app. I'm not about to rewrite that T4 app, os that's a non-starter. Unfortunately, this also means I can't use any T5 anno

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Markus Joschko
I'm not against a package rename but against the version number. The only benefit of putting a version number in, is to help tap4 users now. But who will care about tap4 in 2 years? The version number will still be in the code base by then. If the official version number of tapestry is changing fr

Grid Source Persist and Paging

2008-05-19 Thread Todd Orr
I have a Form and a Grid on my search page. The Form's success handler populates a List results variable using an expensive query that I'd like to not run on every Grid page navigation. To prevent unnecessary query hits I use the @Persist annotation on the results var. The getResults method is used

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Sven Homburg
markus, i voted for package renaming like "org.apache.tapestry5" but i go even conform with your mind. if i read the reason for the package renaming, i was relay alienated for that, but on the other side, i am not sure, its more easier for some tap4 user to migrate slowly to tap5. but i am not

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Christian Edward Gruber
This is a bit of a red herring. I can understand the reluctance from one perspective, but it might help to think of it not as tapestry v3, v4, and v5, but as first-web-framework, another-web-framework, a- different-web-framework. They're not the same, though they are similar in some archit

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kevin Menard
I've been using Tapestry since v3. I have a Web suite (for lack of better terminology) with a T4 public app and a T5 management app, using Cayenne ROP to link between the two. Yet, I cannot think of a situation in which I would ever have what you're looking at below. I'm not saying it's not vali

RE: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Joel Wiegman
I'm with Markus. Personally, I'm kind of shocked this is even under consideration. "Versioning" your package structure is a band-aid to the real problem, which is people not being able to control their class-loaders. If you deploy your Tapestry 4 app in one WAR and your Tapestry 5 app in another

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Filip S. Adamsen
You have a point, but: "You form a unique package name by first having (or belonging to an organization that has) an Internet domain name, such as sun.com. You then reverse this name, component by component, to obtain, in this example, com.sun, and use this as a prefix for your package names,

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kevin Menard
I'm not sure that this would be considerably different from how things are generally done anyway. A class added in JDK5 is expected to work in 6+. Granted there's not a different package for each Java release, but I doubt it would cause as much confusion as you think. Actually, now that I think a

Re: Using t5-components

2008-05-19 Thread zack1403
Toby, You should just be able to add the following to your pom.xml in the appropriate places: t5components T5Components Maven Repository http://87.193.218.134:8080/t5components/maven-reposi

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Markus Joschko
Looks like I am alone but I don't like the idea of putting version numbers into package names. In the highly unlikely case that there will be a tapestry 6 (not for technical but solely for marketing reasons ;-)) it might confuse developers. Are the classes in tapestry5 still valid or not? Only dev

Re: Form - asyn submission with file upload

2008-05-19 Thread Carlos F
Andreas, thanks for the reply! --> how did you enable the IFrame transport? i added "dojo.require("dojo.io.IframeIO");" to a script file. However, this was insufficient. IframeTransport.canHandle() fails for two reasons: - the response type that tapestry was requesting was "text/xml" - and

RE: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Blower, Andy
I agree. > -Original Message- > From: Massimo Lusetti [mailto:[EMAIL PROTECTED] > Sent: 19 May 2008 16:02 > To: Tapestry users > Subject: Re: Instability in Tapestry 5.0.12-SNAPSHOT > > On Mon, May 19, 2008 at 4:57 PM, Howard Lewis Ship <[EMAIL PROTECTED]> > wrote: > > > The question is: w

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Estevam Henrique Portela Mota e Silva
Hi, examples q 2 differences directory of the tapestry: (example) - 1 --> Org.apache.tapestry (sources) --> org.apache.tapestry3 (sources) --> Org.apache.tapestry4 (sources) --> org.apache.tapestry5 (example) - 2 --> Org.apache.tapestry (sources) --> org.apache.tapestry.v3

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kevin Menard
But, it's a short-hand for Tapestry5. So, what does tapestry.t5 gain you that tapestry5 doesn't? -- Kevin On May 19, 2008, at 1:25 PM, Darío Vasconcelos wrote: +1 on org.apache.tapestry.t5. T5 is a widely used acronym both in the mailing lists and many web posts. Dario.

Re: Form - asyn submission with file upload

2008-05-19 Thread Andreas Andreou
See http://trac.dojotoolkit.org/ticket/524 Unfortunately, dojo decided to skip support for XML return types for IframeIO (which is needed for file uploads) due to problems with making it cross-browser. What this basically means for Tapestry is that async submit of forms having files cannot return

Re: T5: Exception Handling

2008-05-19 Thread Andreas Andreou
Directly adding a tapestry url also works 404 /NotFound.html That was in T4 that used the servlet (instead of filter) approach... perhaps it also works in T5. On Mon, May 19, 2008 at 5:35 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > Given that a JSP is basically a servlet, why not do some

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Darío Vasconcelos
+1 on org.apache.tapestry.t5. T5 is a widely used acronym both in the mailing lists and many web posts. Dario. On Mon, May 19, 2008 at 12:14 PM, Tomasz Dziurko <[EMAIL PROTECTED]> wrote: > +1 on org.apache.tapestry5 > > -- > Tomasz Dziurko > >

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Tomasz Dziurko
+1 on org.apache.tapestry5 -- Tomasz Dziurko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kevin Menard
On May 19, 2008, at 10:57 AM, Howard Lewis Ship wrote: The question is: would it have been better to just broadly rename org.apache.tapestry to org.apache.tapestry5? There was quite a bit of discussion back on forth among the developers on this one. +1 on this. Unfortunately, I was too busy

Re: getting ClassFactory is matched by 2 services After upgrade from 5.06 -> 5.0.11

2008-05-19 Thread Britske
I do not quite understand where to put the annotation. I haven't got any code where I'm referencing a classloader explicitly. I must be something missing here?.. Howard Lewis Ship wrote: > > Add the injection point (i.e., the constructor parameter) add either > the @Builtin or the @ComponentLa

Re: Form with errors

2008-05-19 Thread ningdh
Hi 1. For error message: My practice is to clean the form in page's cleanupRender phase. Page.java @Component private Form form; void cleanupRender() { form.clearErrors();// clear error message } After then, if you reenter the page, error message would be gone. 2. For form value

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Adam Zimowski
I think org.apache.tapestry5 or org.apache.tapestry.v5 (or similar) carries no or little difference in technical difficulty when it comes to refactoring existing T5 apps. For that reason, I personally will happily accept either way, as long as refactoring happens at the root level of package hierar

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Ulrich Stärk
According to java package naming conventions [1] the package name should reflect the domain of the developing organization which is org.apache.tapestry and not org.apache.tapestry5. These conventions are there for a purpose (in this case to ensure uniqueness of package names by using DNS names

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread nicholas Krul
For what its worth: +1: org.apache.tapestry5 On Mon, May 19, 2008 at 4:42 PM, Sven Homburg <[EMAIL PROTECTED]> wrote: > my vote for "org.apache.tapestry5" > > 2008/5/19 Howard Lewis Ship <[EMAIL PROTECTED]>: > > > A few people have noticed some significant changes in Tapestry > > 5.0.12-SNAPSH

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Sven Homburg
my vote for "org.apache.tapestry5" 2008/5/19 Howard Lewis Ship <[EMAIL PROTECTED]>: > A few people have noticed some significant changes in Tapestry > 5.0.12-SNAPSHOT. > > What's going on is a limited number of interface and package renames > to support deploying Tapestry 3 or 4 and Tapestry 5 in

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Estevam Henrique Portela Mota e Silva
Tapestry group, is "org.apache.tapestry" more different version: v3, v4 and v5. Because v5 version is 5.0.4, 5.0.5, ... and 5.0.11. Then: org.apache.tapestry.v3, org.apache.tapestry.v4 and org.apache.tapestry.v5 I am speaking OPINION! -- Regards, Estevam Henrique Portela Mota e Silva Handicap

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Kristian Marinkovic
+1 org.apache.tapestry5... now or nevern! :) this will make it much easier to add new t5 pages to existing t4 applications. "Thiago HP" <[EMAIL PROTECTED]> 19.05.2008 17:10 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: Instability in Tapestry 5.0.12-SNAPSHOT

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Christian Edward Gruber
I'd rather suggest org.apache.tapestry.t5 or .v5. Entirely an aesthetic thing, but just putting it out there. Clearly there's no semantic difference. Christian. On 19-May-08, at 11:02 , Massimo Lusetti wrote: On Mon, May 19, 2008 at 4:57 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Thiago HP
+1 org.apache.tapestry5. Less margin for confusion, as the difference between package names wouldn't be hust a 's' letter. The more explicit, the better. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Adam Zimowski
+1 org.apache.tapestry5. Refactor once, have piece of mind forever. On Mon, May 19, 2008 at 9:57 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > A few people have noticed some significant changes in Tapestry > 5.0.12-SNAPSHOT. > > What's going on is a limited number of interface and package re

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Massimo Lusetti
On Mon, May 19, 2008 at 4:57 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > The question is: would it have been better to just broadly rename > org.apache.tapestry to org.apache.tapestry5? There was quite a bit of > discussion back on forth among the developers on this one. I would say yes.

Re: T5: how to get hold of an id in a loop component?

2008-05-19 Thread Toby Hobson
I'm sure there are many ways of doing this but here is an idea: Page.java @Persist("flash") private Card selectedCard // or you could use the primary key if your Object has one @Property private Card card // this is the current card the loop is processing void onActionFromSelectCard(Card card)

Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-19 Thread Howard Lewis Ship
A few people have noticed some significant changes in Tapestry 5.0.12-SNAPSHOT. What's going on is a limited number of interface and package renames to support deploying Tapestry 3 or 4 and Tapestry 5 in the same web application (WAR). Most of the conflicts were related Tapestry annotations in T4

Re: getting ClassFactory is matched by 2 services After upgrade from 5.06 -> 5.0.11

2008-05-19 Thread Howard Lewis Ship
Add the injection point (i.e., the constructor parameter) add either the @Builtin or the @ComponentLayer annotation. This marker annotation will select the correct implementation: either the general ClassFactory (used by the IoC container) or the one used when working with component code. You pr

T5: how to get hold of an id in a loop component?

2008-05-19 Thread jg433
Hi, I have a loop with elements from type "Card". Initially the loop shows as many (same) images as there are in the Vector "cardsLayout". If I click on one of these pictures I would like to show the card's text in place of this picture. Something like: if image at position of card with id=4 ge

Form - asyn submission with file upload

2008-05-19 Thread Carlos F
After trying to async submit a form with a file upload field for a few hours I trolled around the message board and JIRA and ran across this: http://issues.apache.org/jira/browse/TAPESTRY-1348 Is trying to async submit a form with a file upload field a DEAD END? We tried to add the IFrame trans

Re: T5: Exception Handling

2008-05-19 Thread Toby Hobson
Given that a JSP is basically a servlet, why not do something like <% response.include(request.getContextPath() + "/MyTapestryErrorPage); %> from your jsp exception page btw I can't remember - can you map an exception handler to a servlet in web.xml? Toby - Original Message From:

Re: T5: Exception Handling

2008-05-19 Thread Thiago HP
On 5/19/08, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Now why hadn't I thought of that... :D Sometimes, a solution is so simple that we unconciously search for more complicated ones . . . :) > Thanks! You're welcome! -- Thiago -

Re: T5: Exception Handling

2008-05-19 Thread Filip S. Adamsen
Now why hadn't I thought of that... :D Thanks! -Filip Thiago HP skrev: On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: To configure: You would simply use a standard JSP / HTML error page, and wire it in your web.xml. I am using Tomcat and it works great... works on Jetty too. Som

Re: T5: Exception Handling

2008-05-19 Thread Filip S. Adamsen
Hi, It looks like this: public interface RedirectService { void sendRedirect(Class pageClass, boolean override, Object... context); } Implemented as: public class RedirectServiceImpl implements RedirectService { private final ComponentClassResolver componentClassResolve

Re: T5: Exception Handling

2008-05-19 Thread Thiago HP
On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > To configure: > You would simply use a standard JSP / HTML error page, and wire it in your > web.xml. I am using Tomcat and it works great... works on Jetty too. Something I've done once is to setup a 404.html page that redirects to a Ta

Form with errors

2008-05-19 Thread Manuel Corrales
Hi, i have a left menu with a link (Add new Item). When i press the link, i go to a form to create a new Item. If i have some server side validation error, the error messages are shown on the screen, but the issue is that if i press the Add new Item from the left menu, the form does not clean itsel

Re: Dispatcher doesn't get called in default start page

2008-05-19 Thread Hugo Palma
Yep, using "before:RootPath" as a constraint when registering my Dispatcher did the trick. Thanks. Chris Lewis wrote: > Hi, > > This is probably correct. The handling of 'mapping' your app's default > page is also accomplished by a dispatcher. I /think/ its name is > 'RootDispatcher' but don't qu

Re: Dispatcher doesn't get called in default start page

2008-05-19 Thread Chris Lewis
Hi, This is probably correct. The handling of 'mapping' your app's default page is also accomplished by a dispatcher. I /think/ its name is 'RootDispatcher' but don't quote me on that - look for details in TapestryModule. If you want your dispatcher to fire first you'll need to place it :before th

Dispatcher doesn't get called in default start page

2008-05-19 Thread Hugo Palma
I've registered a Dispatcher class which works just fine except when the page name is not specified in the URL. So, if i put http://localhost:8080/mycontext/start the Dispatcher is called like expected, but if i access http://localhost:8080/mycontext/ although the same start page shows up the Dispa

RE: Error serializing component action for component Gears:loop:

2008-05-19 Thread Cordenier Christophe
Hello You can take a look at the 'volatile' parameter of loop component. Default is false. Christophe. -Message d'origine- De : Leon Derks [mailto:[EMAIL PROTECTED] Envoyé : lundi 19 mai 2008 13:51 À : Tapestry users Objet : Error serializing component action for component Gears:loop: H

RE: Error serializing component action for component Gears:loop:

2008-05-19 Thread Kristian Marinkovic
depends on the volatile attribute of the loop component and if your loop is inside a form. by default it is set to "true", meaning that every item of the loop is serialized to a hidden field of the form component. on submit tapestry will deserialize the objects again. also if you have a ValueEnco

Error serializing component action for component Gears:loop:

2008-05-19 Thread Leon Derks
Hello I did get the error :Error serializing component action for component Gears:loop: When I add "implements Serializable" to my Gear class everything works fine. But I have also other objects that I looped throught with a t:type="loop" but these objects didn't need an "implements Serializ

T5: Ajax periodic update

2008-05-19 Thread mad7777
Hi list, I'd like to know if there is a simple way to perform a periodic Ajax update request. I've invented hacked a solution using the Ajax.PeriodicalUpdater from prototype.js. It involves putting an ActionLink on the page, giving it a client id, making it invisible to the user (with display:

Re: Override service injection

2008-05-19 Thread Robin Helgelin
On Mon, May 19, 2008 at 10:20 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > have you tried contributing an alias for your named service? > > take a look at > http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html Actually I manage to solve this via aliases by splitting my servi

Re: Little confused

2008-05-19 Thread Peter Stavrinides
I would definitely avoid using this: private Matafuego matafuego = new Matafuego(); This is the correct way to initialize beans for forms void onPrepare(){ if (matafuego == null) matafuego = new Matafuego(); } You shouldn't use/need a @Persist, at best a @Persist("flash") if you post to th

Re: Override service injection

2008-05-19 Thread Robin Helgelin
On Mon, May 19, 2008 at 10:20 AM, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > have you tried contributing an alias for your named service? > > take a look at > http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html Yes, but wouldn't that break as several services implements the s

Re: T5: Exception Handling

2008-05-19 Thread Peter Stavrinides
Just a little side note: Filip is right, you can't use a Tapestry page for these, but that is probably the correct behavior as this is a different type of error (an exception to the rule if you like) which the server needs to handle by explicitly interrupting a request/response and generating a

RE: Override service injection

2008-05-19 Thread Kristian Marinkovic
have you tried contributing an alias for your named service? take a look at http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html g, kris "Robin Helgelin" <[EMAIL PROTECTED]> 19.05.2008 10:09 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Override ser

Override service injection

2008-05-19 Thread Robin Helgelin
Hi, I'm still trying to work around something I'm not really sure on how to solve :) My contribution looks like this: public static void contributeHttpServletRequestHandler( OrderedConfiguration configuration, @InjectService("HttpSessionContextIntegrationFilter") HttpServl

Re: T5: Exception Handling

2008-05-19 Thread Leon Derks
Hi Filip, Thanks for your answer. I understand now. But one final question. How does your redirectService looks like? Leon Filip S. Adamsen wrote: Hi Leon, How to override server error pages depends on what server you're using. As far as I'm aware it's unfortunately not possible to use Tape