Re: [T5] Pick up https/http from request

2008-11-26 Thread Michael Gerzabek
straight forward! Thanks for posting your solution. Inge Solvoll schrieb: Excellent! Thanks for thep help, everyone!! This has made my life so much easier... Got it working like this: In my implementation of RequestSecurityManager: public boolean checkForInsecureRequest(String pageName) thr

Re: [T5] Possible bug in regexp

2008-11-26 Thread Marcelo Lotif
Right, it's false.This implies that tapestry, by allowing me to type this and let it pass in the client side, is wrong? On Thu, Nov 27, 2008 at 1:00 AM, Lucas Silva <[EMAIL PROTECTED]> wrote: > Hi, I don't execute it in Tapestry, but in Javascript I use ^ and $ to > delimite the whole string. > So

Re: [T5] Possible bug in regexp

2008-11-26 Thread Lucas Silva
Hi, I don't execute it in Tapestry, but in Javascript I use ^ and $ to delimite the whole string. So, your example: /^[0-9]{1,4}$/.test("999a") is false !! I hope it helps. Lucas On Wed, Nov 26, 2008 at 10:55 PM, Marcelo Lotif <[EMAIL PROTECTED]> wrote: > Hi all,I was trying to build a simpl

[T5] Possible bug in regexp

2008-11-26 Thread Marcelo Lotif
Hi all,I was trying to build a simple regexp to validate a string formed only by numbers with a maximum lenght of four. so I came with this expression: carga_horaria-regexp=[0-9]{1,4} seems right, but tapestry's client side validation is not catching some patterns like this one "999a". I build a

RE: [T5] LinkSumit no event captured

2008-11-26 Thread Henry Chen
I figured it out. If Form component specifies a 'zone' parameter, the following part in linksubmit.js is not doing expected behavior. if (onsubmit == undefined || onsubmit.call(window.document, event)) { this.createHidden(); this.form.submit(); } createHidden() is not called so no hidden fie

Re: Get instance of page

2008-11-26 Thread Howard Lewis Ship
This is also the general case for why you can return a page name from a event handler method, as well as a page instance or page class. On Wed, Nov 26, 2008 at 6:35 PM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Tue, 25 Nov 2008 01:45:38 -0300, Henrik Schlanbusch <[EMAIL PROTECT

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Howard Lewis Ship
On Wed, Nov 26, 2008 at 6:30 PM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Wed, 26 Nov 2008 14:35:16 -0300, Joel Halbert <[EMAIL PROTECTED]> > escreveu: > >> the problem appears to be related to another conitribution method: >> >>public void contributeApplicationDefaults

Re: Get instance of page

2008-11-26 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Nov 2008 01:45:38 -0300, Henrik Schlanbusch <[EMAIL PROTECTED]> escreveu: Hi Thiago Hi, Henrik! The pattern you're using makes a lot of sense. :) I just wasn't smart enough to find a problem that fitted your solution (getting a page through its name). . . :D I am doing thi

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Thiago H. de Paula Figueiredo
Em Wed, 26 Nov 2008 14:35:16 -0300, Joel Halbert <[EMAIL PROTECTED]> escreveu: the problem appears to be related to another conitribution method: public void contributeApplicationDefaults( MappedConfiguration configuration, @Inject

[T5] MVC Issues

2008-11-26 Thread Marcel Sammut
I'm having some issues porting some old T3 applications and am stumped with the Ajax implementation. For the most part I've got the basics working, but I'm having problem with some MVC dynamics. Is it possible to create a link at runtime via ComponentResources and specify a zone for the action so

RE: [T5] LinkSumit no event captured

2008-11-26 Thread Henry Chen
I found the problem is located inside linksubmit.js. The function createHidden() was never called. I don't know if this is because I missed something or just a bug? --- createHidden : function() { var hidden = new Element("input", { "type":"hidden", "name": this.elemen

Re: Authentication

2008-11-26 Thread Borut Bolčina
Hello, today I first read the documentation for the tapestry ioc - it took me several hours. I am still not at a point where "I got it" as Howard really well described at http://tapestry.apache.org/tapestry5/tapestry-ioc/overview.html. This introductory doc is really good! I downloaded the tapest

T5: client side validator / how to include javascript

2008-11-26 Thread Christoph Jäger
Hi, As described in my previous mail, I created a Translator to convert between a string representation of latitude / longitude values in a format like "12° 34" 56.7' N" for display in my text fields and a Double, which is used in my model. Since I upgraded to T 5.0.16, I get these nasty

T5: translator sometimes used unexpectedly

2008-11-26 Thread Christoph Jäger
Hi, I am trying to build a translator for entering latitude / longitude values. On the server, these values are stored as Double, as the number of seconds. In my input fields, I want the value to look like "12 34 56.7 N" for 12 degrees, 34 minutes and 56.7 seconds North. This would lead t

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Hugo Palma
As a workaround you could inject the symbol into the module constructor and then use it in the contributeAlias method. On Wed, Nov 26, 2008 at 5:44 PM, Joel Halbert <[EMAIL PROTECTED]> wrote: > damn, my last email was sent before i'd finished... > > . > . > > For the time being I'm going to solve

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
damn, my last email was sent before i'd finished... . . For the time being I'm going to solve the problem by hardwiring the charset public static void contributeAlias( Configuration> configuration ) { configuration.add(AliasContribution.create(MarkupWriterFactory.class,

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
For the time being I'm going to solve the problem by simply hardiwing the charset On Wed, 2008-11-26 at 17:35 +, Joel Halbert wrote: > the problem appears to be related to another conitribution method: > > public void contributeApplicationDefaults( > MappedConfig

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
the problem appears to be related to another conitribution method: public void contributeApplicationDefaults( MappedConfiguration configuration, @Inject ApplicationGlobals applicationGlobals, @I

Re: T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Howard Lewis Ship
5.0.16 introduces much improved logging to the console when this happens, it should help you diagnost what happened. What I see looks correct, but there may be something else going on that we can't see. On Wed, Nov 26, 2008 at 8:58 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > I get the f

T5: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check.

2008-11-26 Thread Joel Halbert
Hi, I get the following: "Caused by: java.lang.IllegalStateException: Construction of service 'Alias' has failed due to recursion: the service depends on itself in some way. Please check org.apache.tapestry5.services.TapestryModule.buildAlias(Logger, String, AliasManager, Collection) (at Tapestry

T5: disabling popup client-side validator alerts

2008-11-26 Thread immutability
Hey everyone, I'm sure this will (possibly) be a simple thing, but I can't seem to find a straightforward way to disable the fading popup client-side validator alerts (the bubbles). I've searched through the forums, how-tos, but just couldn't find the right way. I've tried to use CSS and set t-err

Re: [T5] Idiot Javascript question

2008-11-26 Thread Lance White
A - cheers, worked fine. Thanks Lance -- View this message in context: http://www.nabble.com/-T5--Idiot-Javascript-question-tp20699079p20703334.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Tapestry Ajax Loader

2008-11-26 Thread nerdlinger
I would just write a little javascript, whatever is causing your zone to update, just put an onclick="showThrobber('zoneid')" then in that function just replace the innerhtml (or change some css class, there is more than one way) of the zone with your loading icon/message. This replacement will h

Re: Zone update steals input element focus in 5.0.17

2008-11-26 Thread Keith Hardy
Thanks problem solved. I should of thought to look at the form inside the additional info zone (which I didn't even mention!). On Tue, Nov 25, 2008 at 6:35 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > The containing Form's autofocus parameter should be bound to false. > > On Tue, Nov 25, 2

Re: [T5] Idiot Javascript question

2008-11-26 Thread Andreas Andreou
Write is as: private String alert = "document.jsAlert = function () { alert(\"HELLO\"); }"; Because tapestry includes such initialization in Tapestry.onDOMLoaded( ... ) the scope of jsAlert (in your original version) is not the current document but an anonymous function - and it is lost after the

Re: T5: t5components Tab Set on a onActivated Page

2008-11-26 Thread Charles Mason
On Tue, Nov 25, 2008 at 5:19 PM, Charles Mason <[EMAIL PROTECTED]> wrote: > Hi all, > > I am having a few problems with the TabSet component from the > T5Components collection. For those that don't know its a fairly simple > CSS Tab set which uses Java Script to show and hide various Div tags > to

Re: T5:Pages now broken under 17

2008-11-26 Thread Eric Ma
Please read the thread at http://www.nabble.com/-T5--Persistent-fields-may-not-be-updated-until-after-the-page-has-finished-loading-td20587662.html tapestryphoto wrote: > > Hi, > > I've just moved from 5.0.15 to 5.0.17. I now find I get this: > > Render queue error in BeginRender[Administrat

T5: @Propery can not be an Interface? No default coercion?

2008-11-26 Thread Maximilian Weißböck
I have a component that has a delegate as parameter binding like this: @Parameter("false") @Property private PageDelegate pageDelegate; Inside the page I'm testing if the delegate is set (only then an ActionLink will be shown) PageDelegate is an Interface, and I'm

Re: T5:Pages now broken under 17

2008-11-26 Thread Geoff Callender
See https://issues.apache.org/jira/browse/TAP5-321 and https://issues.apache.org/jira/browse/TAP5-206 . Geoff On 27/11/2008, at 12:08 AM, Joachim Van der Auwera wrote: Try doing your initializations in the beginRender() method. Kind regards, Joachim tapestryphoto wrote: Hi, I've just mov

Re: T5:Pages now broken under 17

2008-11-26 Thread Joachim Van der Auwera
Try doing your initializations in the beginRender() method. Kind regards, Joachim tapestryphoto wrote: Hi, I've just moved from 5.0.15 to 5.0.17. I now find I get this: Render queue error in BeginRender[Administration:pagelink_1]: Error persisting field SearchMetadata:allKeywords: Persisten

Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
Excellent! Thanks for thep help, everyone!! This has made my life so much easier... Got it working like this: In my implementation of RequestSecurityManager: public boolean checkForInsecureRequest(String pageName) throws IOException { return false; } public String getBaseURL(Page page

Tapestry Ajax Loader

2008-11-26 Thread Juan Salamanca
I would like to add a generic ajax loader to my zones, so that while the zone is being updated, it displays a message or an icon. I was wondering what would be the best way to do it. I am thinking of implementing a mixin for that, so that I can reuse the functionality in other zones. I am not sure,

Re: [ANN] JumpStart 3.19.0 is ready - for T5.0.17

2008-11-26 Thread Borut Bolčina
Your promptness is legendary! Cheers, Borut 2008/11/26 Geoff Callender <[EMAIL PROTECTED]>: > Hi all, > > JumpStart 3.19.0 is out. It's built on the brand new Tapestry 5.0.17 and > has a new example titled "What is Called and When". > > Use it live: > > http://jumpstart.doublenegative.co

Re: [T5] Pick up https/http from request

2008-11-26 Thread Michael Gerzabek
Inge Solvoll schrieb: Thanks, I'll look into that then. What I want to do: 1. The user accesses http://myserver.com/mypage. Should get the same url/protocol in return. 2. The user accesses https://myserver.com/mypage. Should get the same url/protocol in return. Ok, so then forget BaseURLSo

Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
Thanks, I'll look into that then. What I want to do: 1. The user accesses http://myserver.com/mypage. Should get the same url/protocol in return. 2. The user accesses https://myserver.com/mypage. Should get the same url/protocol in return. As of now, the user gets a fixed protocol in return, not

[ANN] JumpStart 3.19.0 is ready - for T5.0.17

2008-11-26 Thread Geoff Callender
Hi all, JumpStart 3.19.0 is out. It's built on the brand new Tapestry 5.0.17 and has a new example titled "What is Called and When". Use it live: http://jumpstart.doublenegative.com.au:8080/jumpstart/ or download it: http://jumpstart.doublenegative.com.au Please keep th

[T5] Idiot Javascript question

2008-11-26 Thread Lance White
Hi, I'm trying to embed some JavaScript in a component, and for the life of me cannot get it to work. I can sort of understand why it's not working, I just can't see what to do to fix it - if anyone can point me towards a resolution, I'd be grateful - I'm currently playing with 5.0.15. OK, this

Re: [T5] Pick up https/http from request

2008-11-26 Thread Michael Gerzabek
Inge, not sure that I undestand fully what you are about. It sounds like you also want to implement RequestSecurityManager (http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/internal/services/package-tree.html). This is at least what I did and it works for me. /Michael Inge

Re: Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
I think I know the reason for the loop... my getBaseURL method is only called when the requested url has a different protocol than specified in MetaDataConstants.SECURE_PAGE. It seems that when I try to write a base URL in my custom method that has a different protocol than SECURE_PAGE value, they

Antwort: Re: [T5] Pick up https/http from request

2008-11-26 Thread Kristian Marinkovic
try creating the proxy manually... almost worked every time for me constructor injection will be performed as expected public static void contributeAlias( ObjectLocator locator, Configuration configuration ) { configuration.add( AliasContribution.create( BaseURLSource.clas

Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
Got rid of the recursion error on startup by doing @InjectService("Request") Request request instead of final Request request Now I'm back to the redirect loop problem. I have confirmed that my getBaseURL method is called in a loop, and the default getBaseURL method is never called. Why the lo

Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
Thanks! But this still gives me the same loop error, because I have to inject Request (where you inject SiteServices) into the builder method to access the secure state of the request: Caused by: org.apache.tapestry5.ioc.internal.OperationException: Construction of service 'Alias' has failed due

Re: [T5] Pick up https/http from request

2008-11-26 Thread Michael Gerzabek
Inge, I did it successfully for a similar purpose: @SuppressWarnings("unchecked") public static void contributeAlias( @InjectService( "SiteBaseURLSource" ) BaseURLSource baseUrlSource, Configuration configuration ) { configuration.add( AliasContribution.create(

Re: [T5] Pick up https/http from request

2008-11-26 Thread Inge Solvoll
Hi! I'm really struggling here as I think I'm approaching a solution. What I'm trying to do is to override/decorate/alias/replace the BaseURLSource with my own implementation, like this: public class MyBaseURLSource implements BaseURLSource { private final Request request; public MyBaseURLS

T5:Pages now broken under 17

2008-11-26 Thread tapestryphoto
Hi, I've just moved from 5.0.15 to 5.0.17. I now find I get this: Render queue error in BeginRender[Administration:pagelink_1]: Error persisting field SearchMetadata:allKeywords: Persistent fields may not be updated until after the page has finished loading. This may be due to a persisten

Re: [ANNOUNCE] Tapestry 5.0.17

2008-11-26 Thread Angelo Chen
just upgraded to 5.0.17, my app works without any problem. Howard Lewis Ship wrote: > > Tapestry 5.0.17 is now available for download. 5.0.17 is the second > release candidate for Tapestry 5.0. > > It contains a change to URL generation (to avoid occasionally empty > href's in links). It also