T5: decode URL with non english symbols

2008-01-13 Thread Foror
In this method public static String urlDecode(String input) // input = "новый" (russian word) { try { return CODEC.decode(input); // return "?" after call this method } catch (DecoderException ex) { throw new RuntimeExcep

Re: How to use images outside webroot

2008-01-13 Thread Dapeng
this is my structure webapp |-myapplication |-WEB-INFO |-images |-0001.jpg |-start.tml so @Inject @Path("context:images/0001.jpg") private Asset img0001; so when u re-deploy the application juz overwrite (copy-paste from local testing ap

T5: Formatting date inside loop on template

2008-01-13 Thread Joshua Jackson
I'm trying to format a date field that is inside a loop as such: Template: Page class: private SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/"); public SimpleDateFormat getDateFormat() { return dateFormat; } But I receive this error: #

RE: T5: 5.0.8 whitespace

2008-01-13 Thread Jonathan Barker
Chris, This is a job for CSS. You are creating a list, so render your links in an unordered list, and set the class attribute for the last item to "last" and then use a CSS recipe for creating inline lists: ul,li { display:inline; margin: 0; padding 0; } li:after { content: ", ";

createAbsoluteAsset question

2008-01-13 Thread munich
What's wrong with this code? IAsset image = getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset( "z:\\images\\0001.JPG", getLocale(), getLocation() ); java.lang.IllegalArgumentExcept

Re: T5: Exception occurs in onActivate

2008-01-13 Thread Howard Lewis Ship
What happening is that your HTML is referencing a static file. The file does not exist, and the format of the URL makes it look like a Tapestry page render or action request. If the file did exist, Tapestry would let the servlet container handle it. On Jan 13, 2008 8:16 AM, adamh <[EMAIL PROTECTE

Re: [T5] - (T5 Documents) IncludeJavaScriptLibraray or InjectJavaScriptLibrary

2008-01-13 Thread Howard Lewis Ship
Just a typo in the documentation, I'll fix that up. On Jan 13, 2008 2:07 AM, Mohammad Shamsi <[EMAIL PROTECTED]> wrote: > Hi all, > > in the Ajax page in Tapestry Core Documents : > http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html > > > i saw an Annotaion @InjectJavaScriptLibrary

Re: T5: 5.0.8 whitespace

2008-01-13 Thread Howard Lewis Ship
I have been keeping the nightly documentation up to date with these changes. Please look at http://tapestry.formos.com/nightly/tapestry5 and dig down from there. The main site will only be updated when a new release is generated, the nightly is ... well, nightly. On Jan 12, 2008 2:04 PM, Chris L

Re: T5: 5.0.8 whitespace

2008-01-13 Thread Howard Lewis Ship
The var: binding prefix is much more limited than prop:, and prop: is more limited than T4's use of OGNL. But it's all part of the grand plan :-) Building a more complex expression language is something that will wait for a later release, as you can write code in your component to perform these t

Re: T5: 5.0.8 whitespace

2008-01-13 Thread Chris Lewis
This almost works. Using the way you suggested as is oddly emits a comma only after the last element. Unfortunately I can't, at least not that I know of, express a "less than" clause like so: , T5 doesnt allow '<' here. As far as creating my own goes, I'm wondering if you've looked at the sou

Re: T5: 5.0.8 whitespace

2008-01-13 Thread Chris Lewis
Sure, but I don't think it addresses my problem. My problem isn't creating a list, my problem is delimiting values on each iteration of Loop, without having a trailing or leading delimiter. Sven Homburg wrote: Hi Chris, may i advise you the listbinding from t5components ? ${ele

Re: [T5] Override GridColumn template?

2008-01-13 Thread Otho
That doesn't work. Tapestry insists on taking the original classes. It did work somehow though for one showoff (which is good ;) ) but doesn't anymore now. That is a bit puzzling. But nonetheless: Extending grid to make my own design with all associated components is probably not the most maintaina

Re: [T5] Override GridColumn template?

2008-01-13 Thread Sven Homburg
extends your own grid column class by the tapestry' GridColumns class in your duplicated package and adjust (override) the method "public Asset getIcon()" to your requirements. 2008/1/13, Otho <[EMAIL PROTECTED]>: > > One strange thing happened: I did an override of the GridColumns.tml by > duplic

[T5] Override GridColumn template?

2008-01-13 Thread Otho
One strange thing happened: I did an override of the GridColumns.tml by duplicating the package structure and putting an altered file therein. Goal was to get rid of the sortable image which is fine for small tables but just takes up too much space for the tables I use. This worked fine when using

Re: T5: Exception occurs in onActivate

2008-01-13 Thread adamh
Hi All, I'm seeing the same behaviour, I have a page that displays a list of items which link off to a viewitem page with a pagelink with an item id for the context (a string). When I hit the viewitem page I'm seeing the onActivate event handler being called twice, the first time I can see that t

[T5] - (T5 Documents) IncludeJavaScriptLibraray or InjectJavaScriptLibrary

2008-01-13 Thread Mohammad Shamsi
Hi all, in the Ajax page in Tapestry Core Documents : http://tapestry.apache.org/tapestry5/tapestry-core/guide/ajax.html i saw an Annotaion @InjectJavaScriptLibrary @InjectJavaScriptLibrary("${tapestry.scriptaculous}/dragdrop.js") Does Tapestry have Annotation with this name ? i think its name