Re: new features in 5.0.11

2008-03-13 Thread Howard Lewis Ship
It's nice that you think that. The reality is that almost every application I've worked on or consulted for had a subset of pages that needed to be protected via HTTPS and the remainder could operate via HTTP. On Thu, Mar 13, 2008 at 6:01 PM, kranga <[EMAIL PROTECTED]> wrote: > Defining secure ac

Need to prevent entire page from rendering

2008-03-13 Thread parker-jones
I have a page, sort of a control panel, that I am using some ajax scripts, such as a timer that continually updates a div tag, and other similar things going on. I would like to keep the previously existing tapestry file upload component, but of course when the submit is hit, the entire page refre

Re: T5: Chinese in form submission(5.0.11)

2008-03-13 Thread yuan gogo
Thank you. Your way is right! 2008/3/11, Yoshikazu Kuramochi <[EMAIL PROTECTED]>: > > The same problem occurs by using japanese characters. > > org.apache.tapestry.upload.internal.services.MultipartServletRequestFilt > er > is executed before the Utf8Filter written in the wiki page. > So request.

Re: T5 : Editable Select

2008-03-13 Thread DavidWei
I have same need. Can someone answer this? Thanks! David martin boulanger wrote: > > Dear all, > > I need to make an editable select box : i.e the user can either chose one > of the option in the select box or type a custom String. Is it possible to > make something like this with Tapestry 5?

Re: tapestry-core dependency problem?

2008-03-13 Thread Julian Wood
What I ended up doing was this: org.apache.tapestry tapestry-core ${tapestry-release-version} org.apache.tapestry tapestry-ioc

Re: new features in 5.0.11

2008-03-13 Thread kranga
Defining secure access via HTTPS is a high level architectural decision. Seldom is one going to want to do that by annotation. - Original Message - From: "Angelo Chen" <[EMAIL PROTECTED]> To: Sent: Thursday, March 13, 2008 10:07 AM Subject: t5: new features in 5.0.11 Hi, As usual

Re: t5: new features in 5.0.11

2008-03-13 Thread Christian Edward Gruber
Can you still do so, supporting the old packaged but deprecating those annotations with the old packaging? I think that now would be the time, since you're ramping up to release. Christian. On 13-Mar-08, at 19:11 , Howard Lewis Ship wrote: I think it is safe to say that all annotations in

Re: t5: new features in 5.0.11

2008-03-13 Thread Howard Lewis Ship
I think it is safe to say that all annotations in org.apache.tapestry.annotations apply ONLY to Tapestry component classes (components, mixins, pages, base). Oops, that's not quite true; theres just a couple mixed in there that are modifiers for @Inject and can work with IoC dependency injection.

Re: tapestry-core dependency problem?

2008-03-13 Thread Howard Lewis Ship
The version numbers come from the parent POM, so the "versionless" reference to tapestry-ioc does have a version number supplied, 5.0.12-SNAPSHOT. There is no option in Maven to omit a version number, but you can set up a kind of default in a parent POM. I can't say what's going on in your enviro

Re: Refer to a page component in a library

2008-03-13 Thread Tony Giaccone
Jason, First nice to talk to you again. Second if I follow your suggestion correctly, to inject the page from the library into a page in the application you would use the namespace as part of the object binding? Like this? Tony On Thu, Mar 13, 2008 at 3:23 PM, <[EMAIL PROTECTED]> wrote: >

Re: how to get the link href of a directlink

2008-03-13 Thread Andreas Andreou
renderer param of http://tapestry.apache.org/tapestry4.1/components/link/directlink.html Use http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/contrib/link/RawURLLinkRenderer.html On Thu, Mar 13, 2008 at 7:29 PM, mlgarg <[EMAIL PROTECTED]> wrote: > > Hello, I have flash embed ob

RE: Refer to a page component in a library

2008-03-13 Thread Jason.Yankus
Use the namespace, just as you did with the component. It can depend on the component you're using, but for the most part you just specify the namespace as you did with the component. For things like page links, you can set the namespace parameter. -jason -Original Message- From: Tony

Refer to a page component in a library

2008-03-13 Thread Tony Giaccone
Tapestry 4.0 Question. I have a created a very simple library. It's included in my .application file like this: As a result components in the library can be referenced in page files. For example: That declaration work just fine. But now, but I'm a bit at a loss. If I have a page

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Josh Canfield
Executing script in an ajax response requires parsing out the script and eval'ing it separately (your browser protecting you from scripting attacks). This can be done with scriptaculous but is disabled by default. I can't see a way to override this in Tapestry without duplicating code from tapestry

Re: T5 : RadioGroup Label

2008-03-13 Thread Josh Canfield
Hi Stephane, Looking at the source, the label's id is generated like this: String fieldId = field.getClientId(); _labelElement.forceAttributes("for", fieldId, "id", fieldId + ":label"); If you look at the source for radiogroup you'll see that it is intentionally re

how to get the link href of a directlink

2008-03-13 Thread mlgarg
Hello, I have flash embed object with a javascript function inside, called when i click the flash object. Inside the javascript function i must redirect to another page. I don't know until run the application what is the url for that page, so i have a directLink to get it. But i only need the HR

Re: t5: new features in 5.0.11

2008-03-13 Thread Ted Steen
Only classes controlled by tapestry. That is, components, mixins, pages and base-classes I hope I didn't miss any. 2008/3/13, Marcus <[EMAIL PROTECTED]>: > Hi, > > @Property works for any class? or only for components and pages? > > thanks, > > > Marcus > > > On 3/13/08, Robert Zeigler <[EMAIL

Re: t5: new features in 5.0.11

2008-03-13 Thread Marcus
Hi, @Property works for any class? or only for components and pages? thanks, Marcus On 3/13/08, Robert Zeigler <[EMAIL PROTECTED]> wrote: > > On Mar 13, 2008, at 3/139:07 AM , Angelo Chen wrote: > > > > > Hi, > > > > As usual I always like to look at new features of every release, > > here are

tapestry-core dependency problem?

2008-03-13 Thread Julian Wood
I noticed my unit tests failed when switching from 5.0.11-SNAPSHOT to 5.0.12-SNAPSHOT with a classnamelocator exception. I then noticed that I was using tapestry-ioc-5.0.10 rather than the 5.0.12-SNAPSHOT. Upgrading that to 5.0.12-SNAPSHOT fixed the problem. The bug seems to be in the tapes

Re: T5 Paypal IPN handler

2008-03-13 Thread Baofeng Yu
Thanks for your help. I'll look into this. Hugo Palma wrote: I implemented the exact same integration a few weeks ago, also using T5. My approach was to use the Dispatcher concept. All you have to do is implement a class that implements the Dispatcher interface. That dispatcher will get execute

Re: t5: onValidationFromForm ?

2008-03-13 Thread Dmitry Shyshkin
1. You may replace submit action with some other .I'am sure you do not need form field values in case back button was pressed. change to or 2. In case if you need it you may set defer parameter to false in Submit component and receive submit event before validation Angelo Chen пишет: Hi,

Re: T5 Paypal IPN handler

2008-03-13 Thread Hugo Palma
I implemented the exact same integration a few weeks ago, also using T5. My approach was to use the Dispatcher concept. All you have to do is implement a class that implements the Dispatcher interface. That dispatcher will get executed in the Tapestry request handling lifecycle. My implementation

Antwort: Re: T5: Please wait before I show you next page

2008-03-13 Thread Kristian Marinkovic
hi harald, sorry... just read the part with the client side validation i think there is an event we could use i've to dig deeper :) Kristian Marinkovic <[EMAIL PROTECTED]> 13.03.2008 16:43 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5: Please wait be

Re: T5: Please wait before I show you next page

2008-03-13 Thread Kristian Marinkovic
i think the correct way what would be this: 1) write a mixin that collects the ids of the components in a global service/aso/whatever 2) after the page has rendered (maybe with a heartbeat or with in a MarkupRendererFilter service after renderMarkup(...)) use the collected ids and generate a j

Re: t5: new features in 5.0.11

2008-03-13 Thread Robert Zeigler
On Mar 13, 2008, at 3/139:07 AM , Angelo Chen wrote: Hi, As usual I always like to look at new features of every release, here are the one officially listed as new to the 5.0.11: 1. The @Cached annotation has been added to allowing the caching of method results. Can't understand this,

T5 Paypal IPN handler

2008-03-13 Thread Baofeng Yu
Hi, I would like to integrate Paypal with a T5 application. Previously with JSP, I had a paypal IPN handler jsp page. After user makes a payment, Paypal posts the payment data to my jsp page and my script checks the data and process it. The jsp script runs in the background and is separate f

t5: onValidationFromForm ?

2008-03-13 Thread Angelo Chen
Hi, following is the order of events fired when a form is submitted, I'd like to avoid validation by setting a flag in the onSelectedFromBackButton, but can't find a way, onValidateFromForm is always called before any onAction or onSelected, even I do an ajax call to onSelectedFromBackupButton,

Re: T5: Please wait before I show you next page

2008-03-13 Thread Harald Geritzer
Angelo Chen schrieb: Hi Kris, mixin is interesting, is there a simple sample that I can learn from ? thanks. if you assign that mixing to a submit component, on click the javascript function showProgressIndicator is called. the only drawback is, if you do client side validation and there is

t5: new features in 5.0.11

2008-03-13 Thread Angelo Chen
Hi, As usual I always like to look at new features of every release, here are the one officially listed as new to the 5.0.11: 1. The @Cached annotation has been added to allowing the caching of method results. Can't understand this, any use case to explain this? 2. Tapestry can now generate ac

RE: T5: Please wait before I show you next page

2008-03-13 Thread Angelo Chen
Hi Kris, mixin is interesting, is there a simple sample that I can learn from ? thanks. A.C. kristian.marinkovic wrote: > > hi, > > use some Javascript that will display a nice "Please wait..." dialog > when a user performs a submit/click. you can achieve this by creating > a mixin that will

Re: T5 : How to use the OptGroup in a selection box ?

2008-03-13 Thread Filip S. Adamsen
Hi, http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry/SelectModel.html That should get you started. -Filip Stephane Decleire skrev: I can't find any documentation on how to integrate XHTML OPTGROUP in my selection boxes. Has anybody already done this or know where to fi

RE: Antwort: RE: T5 : Listening to persistent fields changes.

2008-03-13 Thread Cordenier Christophe
Sorry, but what do you mean by "the view" ? My objective is to package monitoring tools in a new tapestry module that can be imported and used easily by developpers. So I have to think from the Framework view and not from one application. Actually, I might be wrong but i'm seeing Tapestry as a "

Re: T5: How to configure T5 not to display unwanted log

2008-03-13 Thread Adam Zimowski
One way to do this is with the log4j filter. You can write your own filter to do anything you want, but mine simply silently drops Tapestry logs. public class Log4jFilter extends Filter { private String[] _prefix; private boolean _convertToLowerCase = false;

Antwort: RE: T5 : Listening to persistent fields changes.

2008-03-13 Thread Kristian Marinkovic
wouldn't it better to do this on the application level and not the view? g, kris Cordenier Christophe <[EMAIL PROTECTED]> 13.03.2008 14:26 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema RE: T5 : Listening to persistent fields changes. Hello Kristian, Still for

RE: T5 : Listening to persistent fields changes.

2008-03-13 Thread Cordenier Christophe
Hello Kristian, Still for monitoring purpose. Actually, I replace the PersistentFieldManager with a wrapped Implementation that allows to add listeners... But it's a hack for a mechanism that should be "native" from my point of view. Christophe. -Message d'origine- De : Kristian Marin

T5 : How to use the OptGroup in a selection box ?

2008-03-13 Thread Stephane Decleire
I can't find any documentation on how to integrate XHTML OPTGROUP in my selection boxes. Has anybody already done this or know where to find docs or samples on this ? Thanks in advance. Stephane

RE: T5: Please wait before I show you next page

2008-03-13 Thread Kristian Marinkovic
hi angelo, you can take a look at the Autocomplete mixin in tapestry-core... this is a example of a mixin creating javascript code a mixin is very much alike a component as it has the same render phases. for example a component has a beginRender phase, a mixin too. The difference is that a mix

RE: T5 : Listening to persistent fields changes.

2008-03-13 Thread Kristian Marinkovic
hi christophe, can you give us a use case g, kris Cordenier Christophe <[EMAIL PROTECTED]> 13.03.2008 13:56 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema T5 : Listening to persistent fields changes. Hello, A listener pattern has been applied to the "LinkFacto

T5 : Using a zone for tips in a form

2008-03-13 Thread Stephane Decleire
I would like to use a zone where tips are shown according to the form element focused by the user (like the right column on the yahoo registration page). Any idea on how to link form element javascript events to the zone ?? Stephane

RE: T5: Please wait before I show you next page

2008-03-13 Thread Angelo Chen
Hi Kris, mixin is interesting, is there a simple sample that I can learn from ? thanks. A.C. kristian.marinkovic wrote: > > hi, > > use some Javascript that will display a nice "Please wait..." dialog > when a user performs a submit/click. you can achieve this by creating > a mixin that will

T5 : FormFragment without Checkbox

2008-03-13 Thread Webmaster Fée du Logis
According to Tapestry documentation, FormFragment can easily be controlled using a Checkbox and a TriggerFragment mixin. But is it possible to trigger the FormFragment on event from TextField, Select, Radio, .. ? Thanks in advance. Stephane

T5 : Listening to persistent fields changes.

2008-03-13 Thread Cordenier Christophe
Hello, A listener pattern has been applied to the "LinkFactory" so that we can add parameters to generated URLs. Is it possible that the same pattern appears for the "PersistentFieldManager" service to listen to persistent fields changes ? Best Regards, Christophe. ___

RE: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Cordenier Christophe
Actually, I think that @Environment is used for RenderRequest, but in the case of an Ajax Request, the "PartialMarkupRenderer" is used to send an answer to the client. For example, I Think that Tapestry Zone component uses this mechanism to register form components declared inside the zone afte

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
PS: I use Tapestry 5.0.12-SNAPSHOT... /Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
Actually, I get a [ERROR] ExceptionHandler org.apache.tapestry.runtime.ComponentEventException: No object of type org.apache.tapestry.PageRenderSupport is available from the Environment. Available types are org.apache.tapestry.ValidationTracker, org.apache.tapestry.services.ComponentEv

AW: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Stroeber, Andreas
I'm not sure about T5 (haven't even touched it yet) but in T4 I use a simple redirect answer. PageRedirectException should do, too. Works also with AJAX-Requests. The only thing in T4 is, that you are not able to inject parameters into the redirected page when using AJAX-requests (you have to pa

RE: Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Cordenier Christophe
Hello, To add Javascript after an action on the server side, you can use the PageRenderSupport class. Actually, this may work for Ajax and non-Ajax request. To inject this class in your component : @Environmental private PageRenderSupport _pageRenderSupport; Hope it helps. Christoph

Re: T5: How to configure T5 not to display unwanted log

2008-03-13 Thread Filip S. Adamsen
I think Conditional was renamed to If at some point. -Filip Andy Pahne skrev: Quite interesting to know how to achieve the same with T4. My log is full of: 2008-03-13 12:23:28,953 WARN [http-8080-Processor24] (ComponentSpecificationResolverImpl.java:113) - Component 'Conditional' (at class

Re: T5: How to configure T5 not to display unwanted log

2008-03-13 Thread Andy Pahne
Quite interesting to know how to achieve the same with T4. My log is full of: 2008-03-13 12:23:28,953 WARN [http-8080-Processor24] (ComponentSpecificationResolverImpl.java:113) - Component 'Conditional' (at classpath:/componentFactory/border/Border.jwc, line 78, column 58) is deprecated, and

Login google-style (with redirect after ajax form refresh)

2008-03-13 Thread Andreas Pardeike
Hi, I have a login component that updates itself via a zone. Works great especially when you enter wrong values (server side verified). Now, if the form successfully logs in or out, I want to refresh the current page because it likely looks different because of the state change. I tried many th

T5: How to configure T5 not to display unwanted log

2008-03-13 Thread Joshua Jackson
Dear all, Currently I am using T 5.0.11 and it displays a helluva message in the logs. Is there any way to configure not to display those messages? I already configured in log4j.properties the log level for org.apache.tapestry to ERROR, but it is no good. Can anyone give me a hint on this? Thanks

Re: What happened to property accessor methods generation in T5 ?

2008-03-13 Thread Adriaan Joubert
Excellent! Thanks a lot Howard! Adriaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Tapestry 4.0 Creating a Tapestry Library

2008-03-13 Thread Stroeber, Andreas
Hi, I didn't setup any tapestry libraries yet, but I can recommend "Enjoying Web Development with Tapestry" (available as PDF eBook). There's a complete description on how to set up your project as library. Grz Andi -Ursprüngliche Nachricht- Von: Tony Giaccone [mailto:[EMAIL PROTECTED

Re: T5: Palette

2008-03-13 Thread Gabriel Landais
Weisu a écrit : Hi Gabriel, Could you help me on ValueEncoder? The data is return from database as a List. My palette component is like this: My class is like this: @Persist private List districts; public List getDistricts() {return districts;} public void setDistricts(List districts) {this.

Re: T5 : RadioGroup Label

2008-03-13 Thread Stephane Decleire
I forgot to say that i see this behavior on Tap 5.0.11 (i have not try on previous versions) Stephane Stephane Decleire a écrit : I keep on with my conversation alone ... ... and i have just tried to test the code from Tapestry documentation http://tapestry.apache.org/tapestry5/tapestry-cor

Re: T5: Palette

2008-03-13 Thread Weisu
Hi Gabriel, Could you help me on ValueEncoder? The data is return from database as a List. My palette component is like this: My class is like this: @Persist private List districts; public List getDistricts() {return districts;} public void setDistricts(List districts) {this.districts = distr