Re: Tapestry 5: Default Locale

2007-05-14 Thread Blackwings
I tried the same (with fr) at the same place, and I was able to get the 'fr' labels as default translation, but I was not able to write such of code in html template : because 'é' is a 'fr' char and Tapestry return an exception, whatever I put as encoding in the HTML description itself : org.apa

Re: Tapestry 5: Default Locale

2007-05-14 Thread Nick Westgate
org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 sequence. This probably means your template is not UTF-8 encoded. Cheers, Nick. - To

Re: ExternalLink parameters (or bookmarkable urls)

2007-05-14 Thread Martin Grotzke
Hi Jesse, thanx a lot, removing the howardlewisship.com repo and adding opencomponentry.com does the trick. thanx && cheers, martin On Sun, 2007-05-13 at 21:16 -0400, Jesse Kuhnert wrote: > I'm guessing your OGNL version is probably out of date. I have no control > over the howardlewisship.co

Re: Tapestry 5: Default Locale

2007-05-14 Thread Blackwings
Hum, are we forced to encode in UTF-8?? How can we, also, change the default locale? 2007/5/14, Nick Westgate <[EMAIL PROTECTED]>: > org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing > template context:WEB-INF/Start.html: Invalid byte 2 of 3-byte UTF-8 > sequence. This pr

Re: Tapestry 5: Default Locale

2007-05-14 Thread petros
This is how I did it http://www.nabble.com/T5---Changing-Locale-tf3376399.html#a10424282 It works when the locale of the browser is changed and the page is refreshed. However, setting the new locale using ThreadLocale doesn't work for me either. I was hoping someone was going to reply to my post

Re: Dojo dialog is left aligned

2007-05-14 Thread Hugo Palma
Yep, that was it Thanks for the tip On 5/12/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: It's all purely css driven. I'm guessing that something else on your page (or in other css) is messing things up. That's what I've found in the past. I would start with the css rules most direc

Re: Tapestry 5: Default Locale

2007-05-14 Thread Nick Westgate
Blackwings wrote: Hum, are we forced to encode in UTF-8?? How can we, also, change the default locale? I haven't looked into locales yet, sorry. T5's template parser uses sax. If your document has an XML encoding declaration like this: ... then presumably that encoding will be used. Otherw

Localized Submit lable

2007-05-14 Thread petros
I want to use a localized string as my submit button's label. None of the two below works 1. 2. What's the correct way of using localized string as labels in T5 ? Petros -- View this message in context: http://www.nabble.com/Localized-Submit-lable-tf3752045.html#a10602783 Sent from the Tape

Calling methods with parameters from a template

2007-05-14 Thread petros
I am trying to convert a T4 application to T5. In T4 I was using the following code to ensure the Users List menu item was only visible when the user had certain roles. I have tried everything and I can't figure out how can can make this code to work in T5 Users List

Re: Localized Submit lable

2007-05-14 Thread Eric Chatellier
it's working with 2007/5/14, petros <[EMAIL PROTECTED]>: I want to use a localized string as my submit button's label. None of the two below works 1. 2. What's the correct way of using localized string as labels in T5 ? Petros -- View this message in context: http://www.nabble.com/Local

ExternalLink with dynamic (named) parameters

2007-05-14 Thread Martin Grotzke
Hi, i want to have a bookmarkable link with dynamic (and named) request parameters. Right now I specify the parameters like the following: parameters="ognl:{'query=' + query, 'fq=' + facet.name + ':' + facetItem.name, facetQueryParams}" - query is the previous query (e.g. "ipod") - facet.name

[ANN] Tapestry 4 Tutorial, issue 9

2007-05-14 Thread Kolesnikov, Alexander GNI
Please have a look: http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-DirectLink-IoC-and -DI/ Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sen

Timetracker demo

2007-05-14 Thread Chris Chiappone
Where can I download a copy of the timetracker demo application? Thanks, -- ~chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

EventListener example documentation

2007-05-14 Thread Chris Chiappone
I believe the eventlistener documentation contains some bugs. I copied the following code: The relevant html: Select a project: The java page class snippet: @Component(bindings = { "model=projectModel", "value=selectedProject", "

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
I'm also having trouble getting the eventlistener triggered when somthing is selected. On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I believe the eventlistener documentation contains some bugs. I copied the following code: The relevant html: Select a pro

Re: EventListener example documentation

2007-05-14 Thread Daniel Jue
Here is another example you can use: http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+4.1.1+Simple+Selection+Model+Update+using+AJAX I also remember having trouble using that example. The html should have: On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: I'm also having trouble g

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
Well this is the code i have, unfortuntately the eventlister does not seem to get triggered: HTML page: Java Class: @Component(id="projectSelection", bindings = {"model=clientModel", "value=clientName", "displayName=message:choose.project", "filterOnChange=true

Re: I'm missing something obvious

2007-05-14 Thread Tony Nelson
Grabbing today's latest build, I'm still seeing the same dojo validation issue. As a bonus, there is a new debug message: DEBUG: EXPERIMENTAL: dojo.i18n.number -- Not yet ready for use. APIs subject to change without notice. Happy Monday! Thanks in advance, Tony Nelson Tony Nelson wrote:

Re: I'm missing something obvious

2007-05-14 Thread Jesse Kuhnert
What issue exactly is it that you see? If you could provide the exact text that is presented as the reason for the error as well as what input you gave it to produce the error I can be more helpful. On 5/14/07, Tony Nelson <[EMAIL PROTECTED]> wrote: Grabbing today's latest build, I'm still see

Re: EventListener example documentation

2007-05-14 Thread Jesse Kuhnert
Yes I guess that page does need to be updated - the correct function to listen for is now "onValueChanged". http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/src/java/org/apache/tapestry/timetracker/page/TaskEntryPage.java?view=markup On 5/14/07, Chris Chiappone

Re: EventListener example documentation

2007-05-14 Thread Daniel Jue
Are you sure the event name is correct? I use "onchange". I've never used "selectOption" before. Daniel On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: Well this is the code i have, unfortuntately the eventlister does not seem to get triggered: HTML page: Java Class:

Re: I'm missing something obvious

2007-05-14 Thread Tony Nelson
Sorry Jesse, I didn't realize this message didn't have the whole trail. I have a simple input: the tradeId property is nothing more than: public abstract Integer getTradeId(); No matter what value I enter, valid or not, I alway get a dojo popup with 3 errors, the input must be a

Re: tapestry links too long for ie? [t4]

2007-05-14 Thread #Cyrille37#
Jesse Kuhnert a écrit : Since the size limitation is fairly well known maybe Tapestry should at least generate a log warning or outright exception when it detects a get request that won't be compatible in IE? The exception may be too heavy handed if people are targeting non IE browsers for speci

Re: I'm missing something obvious

2007-05-14 Thread Jesse Kuhnert
Hmm doesn't seem to be conjuring up any eurekas for me currently. . I wonder what the difference is between your field and the fields on the Workbench form? http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SFields It has a similar setup but I can't see where the error

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
Jesse - thanks for the fix! On 5/14/07, Daniel Jue <[EMAIL PROTECTED]> wrote: Are you sure the event name is correct? I use "onchange". I've never used "selectOption" before. Daniel On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: > Well this is the code i have, unfortuntately the even

Re: Tomcat class reloading and the development cycle

2007-05-14 Thread Matt Larson
Inge, You are right--this is much improved in Tap 5. However, as far as I understand (asked Howard about it at JavaOne) this works by using some custom classloader functionality that handles reloading specific Tapestry packages for your pages and components. The code checks for changes on s

Re: Tapestry 5 and Template Reloading

2007-05-14 Thread bjornharvold
I gave up on the JettyLauncher for now. I cannot figure it out. However, on a good note. I did move my pages to WEB-INF and launching the app from the command line using mvn jetty:run now works fine. I guess that will take care of reloading the pages when I save in Eclipse. I haven't figured out h

Re: I'm missing something obvious

2007-05-14 Thread Tony Nelson
I'm assuming that any value between 1 and 99 should work. I just tried 1234 and it failed as does every other number I type in. Playing w/ the page at opencomponentry that you linked below, the validators seem to work fine which is why I can't figure out what's up. I really think I must

Re: I'm missing something obvious

2007-05-14 Thread Jesse Kuhnert
Aha. So the only real difference between the demo page and your configuration is that you specified a pattern of "0". The demo pages use the more generic # (as well as the default for the number translator). If I remember correctly specifying something like "0" for the pattern forces your input

T5 TimingFilter -- missing the obvious?

2007-05-14 Thread Bill Holloway
I'm combing through my logs to see the INFO level logging of the TimingFilter output as specified in the AppModule that gets created by the maven2 archetype, and I can't find it. Anyone else seeing this problem? Bill -- "The future is here. It's just not evenly distributed yet." -- Tradit

Re: T5 TimingFilter -- missing the obvious?

2007-05-14 Thread Howard Lewis Ship
I bet the log4j.properties file that's generated is out of date. You'll get more accurate timing using FireBug from the client anyway. On 5/14/07, Bill Holloway <[EMAIL PROTECTED]> wrote: I'm combing through my logs to see the INFO level logging of the TimingFilter output as specified in the A

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
Okay so I'm still having a issue trying to use the Eventlistener. The form is getting submitted correctly but I end up getting 404 Error page saying that the requested resource is not available. I had this submitting with a normal submit and it works fine so I know this page is available. Any t

[no subject]

2007-05-14 Thread Julian Wood
Did something happen to dojo over the weekend? The latest tapestry 4.1.2-snapshot has suddenly started giving me dojo.i18n.number has no properties errors. This is invoked when you have client-side validation on, and you place a translator:number on a TextField. You get some js like this (b

Re:

2007-05-14 Thread Jesse Kuhnert
Dojo was upgraded to 0.4.2 over the weekend, it may very well be the case that your browser cache just hasn't picked up the changes yet - but I did just notice that I'm missing a require() in the translator part of that even though it is in the validators. I'll fix that part tonight. I may also

Re: [ANN] Tapestry 4 Tutorial, issue 9

2007-05-14 Thread #Cyrille37#
Kolesnikov, Alexander GNI a écrit : Please have a look: http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-DirectLink-IoC-and-DI/ Thanks Alexander ! cyrille Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you

Re: Localized Submit lable

2007-05-14 Thread petros
Thanks Eric, That works. I did not realize that I was not using t: Petros Eric Chatellier wrote: > > it's working with > > > > 2007/5/14, petros <[EMAIL PROTECTED]>: >> >> I want to use a localized string as my submit button's label. None of the >> two >> below works >> >> 1. >> 2. >> >

Re: [ANN] Tapestry 4 Tutorial, issue 9

2007-05-14 Thread Howard Lewis Ship
I think everyone should show some thanks to Alexander for putting this great series together. On 5/14/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Kolesnikov, Alexander GNI a écrit : > Please have a look: > > http://www.devshed.com/c/a/Apache/Apache-Tapestry-and-DirectLink-IoC-and-DI/ > Thanks Al

Re: page under web-inf subdirectory won't load

2007-05-14 Thread Paul Stanton
I'm using tapestry 4.1 Paul Stanton wrote: Hi, Here's how I would like to organise my templates: * security of storing my html files under web-inf * organisation of subdirectories * no page specifications So my desired structure is: name: "Page1" and "module/Page2" template: "WEB-INF/Page1.ht

Re: [ANN] Tapestry 4 Tutorial, issue 9

2007-05-14 Thread Jesse Kuhnert
Yes definitely, this much effort is incredible. I started some of the thanks by adding to what you started on the http://tapestry.apache.org/articles.html page as well as on http://tapestry.apache.org/tapestry4.1/ and http://tapestry.apache.org/tapestry4.1/tutorials/index.html. If there is anyth

Re: page under web-inf subdirectory won't load

2007-05-14 Thread Jesse Kuhnert
There has been extensive work done recently in this specific area for 4.1.2. I still think I need to add at least one or two additional configuration options in the .application file to make unrelated sub-directory structures in the web context easily configurable but things should generally work

Re: T5 Calendars

2007-05-14 Thread Howard Lewis Ship
I'm not wedded to anything; I thought the Tacos date picker was very slick, but if you can recommend a better one, I'm all for it. I wonder if putting it inside a floating would handle the annoying IE z-order problems. On 4/4/07, Ben Dotte <[EMAIL PROTECTED]> wrote: I saw there are plans to g

Re: page under web-inf subdirectory won't load

2007-05-14 Thread Howard Lewis Ship
This should work, except you have to have at least a minimal .page file in WEB-INF as well. On 5/14/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: There has been extensive work done recently in this specific area for 4.1.2. I still think I need to add at least one or two additional configuration

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
I guess is the question I have is, is it not possible to have an eventlistener submit a form that returns an IPage ? ~chris On 5/14/07, Chris Chiappone <[EMAIL PROTECTED]> wrote: Okay so I'm still having a issue trying to use the Eventlistener. The form is getting submitted correctly but I end

expert needed

2007-05-14 Thread Paul Stanton
Tapestry 4.1 I've got a set of anchors () which are common for a group of pages and are contained within a component, however on each page they need to do different things. Essentially they will either submit a form on the page with or without client side validation or perform a simple page li

Re: EventListener example documentation

2007-05-14 Thread Jesse Kuhnert
Oh, that's probably not a very good idea with asynchronous requests. I added some extremely limited support for this mostly just to let people see that something is happening but overall it's not something that is really supported by the protocol and I'd generally suggest not trying it. You can

Re: tapestry links too long for ie? [t4]

2007-05-14 Thread Josh Joy
Thanks everyone for the tips. Yes, it would be nice if tapestry generated a log warning. I was able to pull the code from SVN and compile the latest tapestry-contrib v4.0.3, though opted to persist in the session rather than client side. Thanks, Josh Jesse Kuhnert wrote: > Since the size limi

Re: expert needed

2007-05-14 Thread Phillip Rhodes
You can you use IListener as a parameter. On each page, you can bind your component to the specific page listener that you want invoked. This works good, as I am using this approach myself. - Original Message - From: "Paul Stanton" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Mond

Re: EventListener example documentation

2007-05-14 Thread Chris Chiappone
Ah that explains it. Thanks... On 5/14/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Oh, that's probably not a very good idea with asynchronous requests. I added some extremely limited support for this mostly just to let people see that something is happening but overall it's not something that

Help with a login form

2007-05-14 Thread Gabriel Lozano
Hello everyone. I want to have a login form in a "Border" component. I followed the example in the section "input validation" but every time the page is shown, the message "You must correct the following errors before you may continue." is shown, without any error to correct. I tested it in a page

T5: New Validators and server side validation

2007-05-14 Thread Juan Maya
Hi all, I am trying to contribute a new Email Validator that would check if an email is valid or not. To do it i created a class Email that implements Validator. Then i contributed the Validator in My AppModule: public static void contributeFieldValidatorSource(MappedConfiguration configuration)

Eclipse and xhtml undefined jwcid attributes

2007-05-14 Thread #Cyrille37#
Hello, I would like to know how to avoid Eclipse warning about xhtml undefined jwcid attributes. The doctype of my pages is: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Perhaps it could be possible to add more definition to avoid Eclipse XML validator warning about undefined att

Problem about deprecated methods

2007-05-14 Thread Kushan Jayathilake
Hi All Can anyone support me on this PageRenderSupport pageRenderSupport = TapestryUtils getPageRenderSupport(cycle, this); GetTapMapScript().execute(cycle, pageRenderSupport, symbols); String path = "http://maps.google Com/maps?file=api&v=2&key=ABQITksKrRgRqRI7G3NrSa3eEhTwM0brOpm-All5BF6Po