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}
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
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
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
>
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
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
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
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
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
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
(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
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
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
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
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
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
thank you, that was the info I needed.
Nicolás.-
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
33 matches
Mail list logo