Re: Iterating a map in template

2012-08-03 Thread mailingl...@j-b-s.de
I expect count to be of type MapEntry or in case getCounts() returns cnts.values() instead it has to be of type string? Jens Sent from my iPhone On 03.08.2012, at 02:40, Angelo C. angelochen...@gmail.com wrote: Hi, I'm trying to iterate a map in template with following code, but, it turns

Re: Iterating a map in template

2012-08-03 Thread Stephan Windmüller
On 03.08.2012 02:40, Angelo C. wrote: I'm trying to iterate a map in template with following code, but, it turns out that the entire map is only one row, I'm sure I have made something wrong, can anybody point it out? Thanks, Try this (untested): - t:loop source=entries value=entry

Re: Example of overriding the default ValidationDecorator

2012-08-03 Thread mem
That's what i already thought of too, i was just hoping to be wrong. I tried all kinds of different approaches, a mixin can't really work as it should be applied to labels automatically and not manually adding a mixin. Using a worker i would get there but there're issues with the dynamically

[5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread robert baker
Hi, I've stumbled on an interesting problem in trying to upgrade to 5.3.4 that I am stumped. I am getting a null term in property expression exception with some template markup that looks like the following: ... t:hidden t:id=primaryCodeKey value=primaryCode / t:textfield t:id=primaryCode

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread robert baker
It occurred to me after I typed this that my assumptions were probably wrong, so please disregard. Apologies, Les Baker On Fri, Aug 3, 2012 at 4:04 AM, robert baker les.baker1...@gmail.com wrote: Hi, I've stumbled on an interesting problem in trying to upgrade to 5.3.4 that I am stumped. I

Re: Example of overriding the default ValidationDecorator

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 04:57:02 -0300, mem memcacher+tapes...@gmail.com wrote: value has to parsed, probably ending up in the same situation as i'm now with the production mode. So i guess i'm stuck with adding the css classes just manually to the fields. Instead of implementing a

Re: another java.lang.LinkageError (loader constraint violation in interface itable initialization)

2012-08-03 Thread bigcache1
If you mean launching application in production mode - it didn't help. Still getting the same exception. -- View this message in context: http://tapestry.1045711.n5.nabble.com/another-java-lang-LinkageError-loader-constraint-violation-in-interface-itable-initialization-tp5714993p5715036.html

Re: tapestry5-highcharts available

2012-08-03 Thread George Christman
Did this project get moved to a different repository or is the repository just unavailable? -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5715037.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: how to clear the textarea after submit

2012-08-03 Thread George Christman
Where is your feedback attribute? Your code snippet seems to be incomplete. Are you persisting it? -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-clear-the-textarea-after-submit-tp5714847p5715038.html Sent from the Tapestry - User mailing list archive at

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread Howard Lewis Ship
Looks odd; the Hidden field should render first, and write its ComponentActions into the Form first, and should then be processed first. Is your template really this simple, or is there more FormFragment, etc., trickiness in there? That might affect the ordering if the Hidden and the TextField

Re: [5.3.4] Ordering of Actions between the TextField and Hidden components

2012-08-03 Thread Howard Lewis Ship
And, BTW, because having the server-side figure all this stuff out based on the meager flow of data possible from a HTTP Form submission is impossible (at least, once you add DHTML/Ajax to the picture) ... that's why 5.4 is looking to move away from FormFragment and a lot of the other stuff, to

adding items to webpage

2012-08-03 Thread rtl1984
Hey guys I am extremely new to tapestry and html in general so sorry if what I ask is a newb question. Okay I'm trying to create a webpage that allows you to edit information so far I got tables to show the information and buttons below to edit them. What I want is that when the user clicks on

Re: adding items to webpage

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 16:21:16 -0300, rtl1984 rtorresl...@gmail.com wrote: Hey guys I am extremely new to tapestry and html in general so sorry if what I ask is a newb question. Okay I'm trying to create a webpage that allows you to edit information so far I got tables to show the

Re: Creating a linked list of pages for easy backward navigation?

2012-08-03 Thread George Ludwig
Thiago, Thanks, that's what I thought was going on. Off the top of my head, my thought is to create an aggregating data structure that holds all the fields I really need (including a page id, and a previous page id), and persist a list of them. Then, in my onback method, pass the index of the

type coersion - numbers and booleans

2012-08-03 Thread Paul Stanton
hi all, originally have an accessor method: public int getNumericValue() { return myInteger; // auto-boxes to int } and wanted to use the following if: t:if test=numericValue == 3 however '==' doesn't work, but i know method calls work so i changed to: public

Re: type coersion - numbers and booleans

2012-08-03 Thread Howard Lewis Ship
public boolean isNumberThree() { return numericValue == 3; } Yes, there's some leaky abstractions with method invocations and all the parameter coercion going on. However, given live class reloading, creating ad-hoc properties for these comparisons is often more comparable. Also, instead of

Re: Creating a linked list of pages for easy backward navigation?

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 19:32:13 -0300, George Ludwig georgelud...@gmail.com wrote: Thiago, Hi, George! Thanks, that's what I thought was going on. Off the top of my head, my thought is to create an aggregating data structure that holds all the fields I really need (including a page id, and a

Re: type coersion - numbers and booleans

2012-08-03 Thread Thiago H de Paula Figueiredo
On Fri, 03 Aug 2012 21:07:27 -0300, Howard Lewis Ship hls...@gmail.com wrote: public boolean isNumberThree() { return numericValue == 3; } In other words, don't put logic in templates, put them in Java classes, where it can be easily debugged and tested. ;) -- Thiago H. de Paula

Re: another java.lang.LinkageError (loader constraint violation in interface itable initialization)

2012-08-03 Thread bigcache1
I will try to recreate this exception on another page, with another services injected. Is it right, that there is no constraints (except jvm memory) for Tapestry, for the level of injection? I mean, could we place @Inject, inside of injected service, which lives inside another injected service,