Re: Iterating a map in template

2012-08-02 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): - ${entry.key}: ${entry.value}

Re: Iterating a map in template

2012-08-02 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." wrote: > Hi, > > I'm trying to iterate a map in template with following code, but, it turns > out that the ent

Re: t:parameter name dynamic

2012-08-02 Thread William Lopes
Please, you would give me a example? How to use? 2012/8/2 Thiago H de Paula Figueiredo > (or also the syntax) are *not* dynamic because > they're not components, they're part of the structure of Tapestry > templates, and Tapestry templates have static structure. Instead, you > should provide c

Re: Loop and starting index

2012-08-02 Thread Angelo C.
Brilliant idea, it works. i have to remove 'literal:' to make it work. thanks for the tip. Taha Hafeez wrote > > One solution will be > > > ${row}.. > > > > ${row} > > > > @Property > private int index; > > public Item getRow(){ >return myList.get(index); > } > > regards > Taha >

Re: Iterating a map in template

2012-08-02 Thread Ray Nicholus
I don't understand. Your loop source and value are both the same type? The way you have this setup, it won't work. You should consider setting your source to the keyset of the map, and provide properties in your class that return the value based on the current key. On Thu, Aug 2, 2012 at 7:40 P

Re: Loop and starting index

2012-08-02 Thread Taha Siddiqi
One solution will be ${row}.. ${row} @Property private int index; public Item getRow(){ return myList.get(index); } regards Taha On Aug 3, 2012, at 7:29 AM, Angelo C. wrote: > I have this list of 10, and I need to have two loops for two tables in the > page, one is from 1 to 5 and

Re: Loop and starting index

2012-08-02 Thread Thiago H de Paula Figueiredo
On Thu, 02 Aug 2012 22:59:57 -0300, Angelo C. wrote: I have this list of 10, and I need to have two loops for two tables in the page, one is from 1 to 5 and another is 6 to 10, side by side, my approach now is two functions getRows1() and getRows2(), so the list is splited in code, was

Re: Loop and starting index

2012-08-02 Thread Angelo C.
I have this list of 10, and I need to have two loops for two tables in the page, one is from 1 to 5 and another is 6 to 10, side by side, my approach now is two functions getRows1() and getRows2(), so the list is splited in code, was just thinking maybe Loop has this feature? Thiago H de Paula Fi

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

2012-08-02 Thread Thiago H de Paula Figueiredo
On Thu, 02 Aug 2012 22:11:47 -0300, George Ludwig wrote: Thiago, Hi! The previouspage object is referenced when we execute the continue method, which is what advances to the next iteration: @InjectPage private Refine refine; Object onContinue() throws Exception { // do a bunch o

Re: Loop and starting index

2012-08-02 Thread Thiago H de Paula Figueiredo
On Thu, 02 Aug 2012 22:15:35 -0300, Angelo C. wrote: Hi, Hi! Can component loop have a starting index? say I have a source of 10, and I'd like to loop from 1 to 5, and another Loop from 6 to 10, possible? What are you trying to do? The Loop's index parameter always starts from 0 and

Re: t:parameter name dynamic

2012-08-02 Thread Thiago H de Paula Figueiredo
(or also the syntax) are *not* dynamic because they're not components, they're part of the structure of Tapestry templates, and Tapestry templates have static structure. Instead, you should provide custom view and edition blocks. Check http://tapestry.apache.org/beaneditform-guide.html, s

Loop and starting index

2012-08-02 Thread Angelo C.
Hi, Can component loop have a starting index? say I have a source of 10, and I'd like to loop from 1 to 5, and another Loop from 6 to 10, possible? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/Loop-and-starting-index-tp5715014.html Sent from the Tapest

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-02 Thread George Ludwig
My bad! On Thu, Aug 2, 2012 at 11:42 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 02 Aug 2012 15:11:25 -0300, Josh Canfield > wrote: > > Has it been that long? :) >> > > Ouch, I guess my brain is still in vacation mode. :P George thanked Josh > replying to my e-mail a

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

2012-08-02 Thread George Ludwig
Thiago, The previouspage object is referenced when we execute the continue method, which is what advances to the next iteration: @InjectPage private Refine refine; Object onContinue() throws Exception { // do a bunch of business logic refine.setup(this); return refine; } Jens: Yes

Iterating a map in template

2012-08-02 Thread Angelo C.
Hi, 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, template: ${count} code: @Property private Map count; @Cached public Map getCo

Re: component parameter coercion

2012-08-02 Thread Bob Harner
You can contribute a type coercion, as described at http://tapestry.apache.org/typecoercer-service.html On Aug 2, 2012 3:49 AM, "Angelo C." wrote: > hi, > > trying to pass a literal to a component hoping it can do a coercion, here > is > the code: > > public class IfGroup { > @Parameter(r

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Nicolas Barrera
thank you, that was the info I needed. Nicolás.-

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Igor Drobiazko
It will be probably same. On Thu, Aug 2, 2012 at 10:05 PM, Nicolas Barrera wrote: > Thanks, I think my question wasn't that clear. > > Suppose I don't buy the perk at indiegogo, and wait until the official > release of the book (pdf or book+pdf) > > will the price of the book then be higher than

Re: tapestry-security with caching

2012-08-02 Thread Kalle Korhonen
On Thu, Aug 2, 2012 at 1:47 PM, Marcin Januszkiewicz wrote: > I'm using the latest versions of tapestry and tapestry-security (5.4.3 > and 0.4.6 respectively) for basic security and session management. > I wanted to explore other capabilities of the shiro framework like > caching and clustering. M

tapestry-security with caching

2012-08-02 Thread Marcin Januszkiewicz
Hi all, I'm using the latest versions of tapestry and tapestry-security (5.4.3 and 0.4.6 respectively) for basic security and session management. I wanted to explore other capabilities of the shiro framework like caching and clustering. My problem with this is that in the documentation shiro relie

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Nicolas Barrera
Thanks, I think my question wasn't that clear. Suppose I don't buy the perk at indiegogo, and wait until the official release of the book (pdf or book+pdf) will the price of the book then be higher than the current perk at indiegogo? Nicolás.- On Thu, Aug 2, 2012 at 4:47 PM, Igor Drobiazko wro

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Igor Drobiazko
Hi Nicolas, as Thiago just answered, for $25 you get the book as PDF (updates + final). For $55 you additionally get the printed book. You don't have to pay anything again. Does it answer your question? Regards On Thu, Aug 2, 2012 at 8:19 PM, Nicolas Barrera wrote: > Hi Igor, > > thanks for yo

Re: How to override a component message

2012-08-02 Thread Matías Blasi
Thanks Alex, I have no problem for overriding error messages, I have a custom one which is working. But the field labes, uses a message binding with "loginLabel" key, and it is finding it in LoginForm.properties and I don't know where to override it. Best regards, Matias. On Thu, Aug 2, 2012 at

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Thiago H de Paula Figueiredo
For me, it's very clear that if you pay 25 dollars or more you get the PDF book as it's finished; more than 55, PDF and dead tree version (when it's available). On Thu, 02 Aug 2012 15:19:59 -0300, Nicolas Barrera wrote: Hi Igor, thanks for your reply it was very clear, now I got anoth

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-02 Thread Thiago H de Paula Figueiredo
On Thu, 02 Aug 2012 15:11:25 -0300, Josh Canfield wrote: Has it been that long? :) Ouch, I guess my brain is still in vacation mode. :P George thanked Josh replying to my e-mail and I got confused . . . Josh, I'm sorry for forgetting you. :) -- Thiago H. de Paula Figueiredo

Re: Tapestry 5 Book EAP Launched

2012-08-02 Thread Nicolas Barrera
Hi Igor, thanks for your reply it was very clear, now I got another doubt, apart from having early access to the book and receiving it's updates, does supporting this campaign implies that I 'll be paying a cheaper price for the book than what it will cost once it's officially released? that was

Re: Using outputraw to render eventlinks fails, is there a workaround?

2012-08-02 Thread Josh Canfield
Has it been that long? :) On Wed, Aug 1, 2012 at 6:19 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 01 Aug 2012 19:57:52 -0300, George Ludwig > wrote: > > Josh, >> Wow, thanks so much! I can definitely learn from this example... >> > > Who's Josh? :P > > > >> -George >

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

2012-08-02 Thread Howard Lewis Ship
This may be a consequence of live class reloading for services, if you are invoking protected (or package private) methods of other classes. Try turning live class reloading entirely off; if that fixes the problem, you can disabled service reloading for the individual service(s) using the ServiceBi

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

2012-08-02 Thread bigcache1
Forgot to mention, mediators interfaces are placed in the x.y.dal.mediators.interfaces and implementing classes in x.y.dal.mediators -- View this message in context: http://tapestry.1045711.n5.nabble.com/another-java-lang-LinkageError-loader-constraint-violation-in-interface-itable-initializati

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

2012-08-02 Thread bigcache1
In my application I use the idea if middle data access layers. I implemented that through the set of different data access objects, which I named mediators. Each mediator is presented through the interface and implementing class, which are binded with the Tapestry IoC. But mediators are referencing

Re: How to override a component message

2012-08-02 Thread Alex Kotchnev
Matias, the validation page has a snippet of info ( http://tapestry.apache.org/forms-and-validation.html ) on the validation message selection from the message catalog. So, specifically on overriding the tynamo login form error message, I have the following in app.properties: tynamoLoginForm-ty

Re: component parameter coercion

2012-08-02 Thread Thiago H de Paula Figueiredo
On Thu, 02 Aug 2012 04:49:00 -0300, Angelo C. wrote: hi, Hi! this works as 'tesGroup' is a property in the page: hello but this one will not: hello I really have no idea what you're trying to do here. Your parameter is a Group. You're trying to pass a String to it. Is thi

component parameter coercion

2012-08-02 Thread Angelo C.
hi, trying to pass a literal to a component hoping it can do a coercion, here is the code: public class IfGroup { @Parameter(required = true) private Group context; Object beginRender() { } } this works as 'tesGroup' is a property in the page: hello but th