Ah rowClass - I'll check that. Its past midnight and I'm about to retire
for the night.
As for binding to a parameter, I didn't think to do that in the page class.
I've been focussing on the template. Will give it a shot next opportunity.
Thank for the quick suggestions, now I probably won't get
Hi.
Can't you bind the exclude parameter of the grid to a method that excludes
extra columns, if the user is not logged in?
- And i think that you may be looking for rowClass parameter of the grid,
not class.
I would suggest that you take a look at the documentation for the grid...
http://tapest
Hi Tapsters,
I'm converting an old table with a t:Loop component into a t:Grid component.
I used to have a table that hid the username/password columns and now for a
non-admin user with the grid the columns show.
You can see the code below.
Would I have to define the inside a
block to get the
This is how I operate mine... and it worked for me
this one was in a loop
@Property
@Parameter(required = false)
private Object currentPage;
@Property guarantees to provide its own getter/setter
Here is another...
@Parameter(required = false)
private Coach currentObject;
What I see happening is that setCurrentObject is called the correct
> number
> > of times (4), with the correct value each time.
> >
> > However, getCurrentObject is only called once.
> >
> > The list is rendered the correct number of times (4x), but it renders t
called the correct number
> of times (4), with the correct value each time.
>
> However, getCurrentObject is only called once.
>
> The list is rendered the correct number of times (4x), but it renders the
> same object each time.
>
> I stepped through the Tapestry source for
x), but it renders the
same object each time.
I stepped through the Tapestry source for the Loop component (v5.3.7), and
at line 386 the loop appears to get the correct JSON 4 times at the top
level of the render loop (which surprises me since it only calls
getCurrentObject once), but when it renders
I need sleep. Thanks!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/5-3-6-Loop-component-giving-coercion-error-tp5718395p5718403.html
Sent from the Tapestry - User mailing list archive at Nabble.com
On Thu, 29 Nov 2012 15:40:32 -0200, Pillar wrote:
Hey
Hi!
Can you tell me why this isn't working?
${service.name}
The parameter name is wrong: it's "value", not "values".
--
Thiago H. de Paula Figueiredo
-
To unsu
Hey
So it worked as you said, but now I have another problem.
Can you tell me why this isn't working?
${service.name}
http://tapestry.1045711.n5.nabble.com/5-3-6-Loop-component-giving-coercion-error-tp5718395p5718400.html
Sent from the Tapestry - User mailing list archive at Nabbl
On Thu, 29 Nov 2012 12:48:48 -0200, Pillar wrote:
I've been reading other posts but nothing seems to work for me.
Hi!
Never, never ever use ${} expansions when passing parameters. It causes
the value to be coerced to a String, and that's exactly what's causing
your problem. Just u
te get the docs.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/5-3-6-Loop-component-giving-coercion-error-tp5718395p5718397.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To u
On Thu, Nov 29, 2012 at 8:48 AM, Pillar wrote:
> I've been reading other posts but nothing seems to work for me.
>
>
>
> "none">
>
>
>
> Inside both loops I try to access properties of u and userservice.
>
>
>From what I can tell, the source of the inner loop shouldn't be using an
exp
serService.
I've read that formState = "none" does something in this case but I don't
understand it. There's also the ValueEncoder I don't understand, but I don't
want to make a database call for each item in the list (if that's the way to
implement it).
und it:
>>
>> http://tapestry.apache.org/component-rendering.html#ComponentRendering-ShortCircuiting
>>
>> I was thinking along these lines but wasn't sure what the exact
>> semantics of returning true / false was.
>>
>> Am I right in thinking the Ji
he exact
> semantics of returning true / false was.
>
> Am I right in thinking the Jira would be:
>
> AfterRender() in Loop component should not short circuit - return
> False and Null but not True.
>
>
>
> On 3 November 2011 01:17, Taha Hafeez Siddiqi
> wrot
Awesome, found it:
http://tapestry.apache.org/component-rendering.html#ComponentRendering-ShortCircuiting
I was thinking along these lines but wasn't sure what the exact
semantics of returning true / false was.
Am I right in thinking the Jira would be:
AfterRender() in Loop component s
Hi Steve
Short Circuiting
If a method returns a true or false value, this will short circuit processing.
Other methods within the phase that would ordinarily be invoked will not be
invoked.
Most render phase methods should return void, to avoid unintentionally short
circuiting other methods fo
Cheers Taha,
> in the later phases (AfterRender, CleanupRender) the order of executing is
> reversed.
Ah, okay (thanks). So the Mixin should be called when Loop afterRender
method finally returns true ... but I'm not seeing it called at all,
not even once!?
P.S. Does this then mean that when u
aches the the mixin
regards
Taha
On Nov 2, 2011, at 9:22 PM, Steve Eynon wrote:
> T5.3-rc-2 has the same behaviour.
>
> Can someone tell me I'm not crazy and that I *should* see the
> afterRender event firing? Or am I just missing something fundamental?
>
> I know the Loo
T5.3-rc-2 has the same behaviour.
Can someone tell me I'm not crazy and that I *should* see the
afterRender event firing? Or am I just missing something fundamental?
I know the Loop component uses afterRender to return true / false to
perform the loop, but I would still expect the Mixin r
Hiya,
I have this snippet of tml:
${var:i}
and this Mixin:
public class LoopMixin {
void beginRender() {
System.err.println("LoopMixin: @beginRender");
}
void afterRender() {
System.err.println("LoopMixin: @afterRender");
An eventLink tells the application to do something. The context says
what you want to do it to.
When you aren't in a loop it is easy to figure out what to do things
to and you don't need a context because the thing you are doing the
action to is the same for the entire rendering of the page. Howe
Thank you all for your answers. This behaviour of the loop is actually
unexpected. I see that I'll have to stick with a more static structure
or to rewrite the components in question. For the moment, I will pospone
these things and come back to them later.
And no, I havn't found anything abou
On 02/18/2011 12:59 PM, Thiago H. de Paula Figueiredo wrote:
On Fri, 18 Feb 2011 15:45:54 -0200, Rich M wrote:
The challenge in your case is I don't believe you can dynamically
assign a component ID. I double checked myself just now, and t:id
only took a discrete ID (in 5.1.0.5), and was not
On Fri, 18 Feb 2011 15:45:54 -0200, Rich M wrote:
The challenge in your case is I don't believe you can dynamically assign
a component ID. I double checked myself just now, and t:id only took a
discrete ID (in 5.1.0.5), and was not happy pulling it from a property
or other dynamic means.
On Fri, 18 Feb 2011 15:22:28 -0200, Erik Fäßler
wrote:
Thank you for your answer!
It isn't gone. Now you have a single EventLink which is rendered once
for each Loop iteration. Static structure, dynamic behavior. ;)
So when I have several components of the same type in my .tml it does a
works.
But know I'd like to make things more generic. I would like to be able
to change my facets easily e.g. by defining a list containing all
currently available facets. I use a loop component to create just the
facets available:
I did not change anything else. Now, my EventLi
Thank you for your answer!
It isn't gone. Now you have a single EventLink which is rendered once
for each Loop iteration. Static structure, dynamic behavior. ;)
So when I have several components of the same type in my .tml it does a
difference to having a loop? I thought it's just a different
On Fri, 18 Feb 2011 14:26:00 -0200, Erik Fäßler
wrote:
Hey there,
Hi!
You will notice that the internal ID identifying the component is gone.
It isn't gone. Now you have a single EventLink which is rendered once for
each Loop iteration. Static structure, dynamic behavior. ;)
As a
nt in the corresponding facetbox. So far so good,
everything works.
But know I'd like to make things more generic. I would like to be able
to change my facets easily e.g. by defining a list containing all
currently available facets. I use a loop component to create just the
facets
, no synchronization
issues).
The var: binding prefix gives a little bit of the behavior you want.
However, it's very hard to introduce a new, type-safe property into an
existing class in the way you suggest: that is, the Loop component
should create a new property on the containing Page
x27;s very hard to introduce a new, type-safe property into an
existing class in the way you suggest: that is, the Loop component
should create a new property on the containing Page class.
This is problematic for a number of lifecycle reasons (the page is
instantiated first, so it's a little late
hi,
the Loop component is used basically used by (define a list t:source and
bind a local iterable var t:value to access the values later):
...
${listItem.name}
...
What I find a bit clumsy is that you have to put this local-variable
also to your page class:
Page{
List listItems
Hi,
I have a loop component in a form,I want to turn off the state saving logic.
So I set the volatile property to true like this:
The NullPointerException exception is thrown when I request the page:
Caused by: java.lang.NullPointerException
at
org.apache.tapestry5
You probably want to check out t5 components
(http://87.193.218.134:8080/t5components/t5c-commons/ref/index.html).
Specifically the pagedLoop component.
Zack
dwi ardi irawan wrote:
>
> does anybody could give me information how to do paging using loop
> component
> in tapestry 5
does anybody could give me information how to do paging using loop component
in tapestry 5
thnx u very much ^_^v
--
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"
nents/t5c-commons/howto_ognlbinding.html
2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:
Hi all,
When the loop component sets the value from the iterator, it seems to
miss
properties inherited from a base class.
So if I'm iterating over a set of objects of class B which extends
ter
>
>
>
> Sven Homburg wrote:
>>
>> the OGNL binding should help you
>> http://code.google.com/p/tapestry5-components/
>> http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html
>>
>> 2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:
>
ny pointers/thoughts much appreciated.
Regards,
Peter
Sven Homburg wrote:
the OGNL binding should help you
http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html
2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:
Hi all
the OGNL binding should help you
http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html
2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:
> Hi all,
>
> When the loop component sets the value from the iterator, i
Hi all,
When the loop component sets the value from the iterator, it seems to
miss properties inherited from a base class.
So if I'm iterating over a set of objects of class B which extends A,
I'm only seeing the properties of B set. All the properties which are
inherited from
ing!
Toby
- Original Message
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Monday, 19 May, 2008 3:45:20 PM
Subject: T5: how to get hold of an id in a loop component?
Hi,
I have a loop with elements from type "Card".
Initially the lo
Hi,
I have a loop with elements from type "Card".
Initially the loop shows as many (same) images as there are in the Vector
"cardsLayout".
If I click on one of these pictures I would like to show the card's text in
place of this picture.
Something like:
if image at position of card with id=4 ge
t 1:49 PM, Howard Lewis Ship wrote:
>
> > Sounds reasonable to me; add it to JIRA.
> >
> > On Fri, Feb 29, 2008 at 10:14 AM, David Marquis
> > <[EMAIL PROTECTED]> wrote:
> >> Hi all,
> >>
> >> I have a quick suggestion to improve the
estion to improve the Loop component:
We should be able to specify a block to display if the loop source is
empty (size = 0)
There is no item matching your
request
t:parameter>
I know we can do this :
There is no item matching
your request
t:parameter>
Sounds reasonable to me; add it to JIRA.
On Fri, Feb 29, 2008 at 10:14 AM, David Marquis <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a quick suggestion to improve the Loop component:
>
> We should be able to specify a block to display if the loop source
Hi all,
I have a quick suggestion to improve the Loop component:
We should be able to specify a block to display if the loop source is
empty (size = 0)
There is no item matching your requestt:parameter>
I know we can do this :
There is no item matching y
Andreas Andreou wrote:
> Not having to create getters & setters (or abstract getters in T4) just so
> that @Loop (and @For) values and indexes can
> become accessible is a fairly often request/question...
>
> Creating a custom binding prefix (perhaps named temp) that attaches objects
> to the curre
o be.
>
> Anyway, Tapestry parameters are private fields, to be visible outside the
> component's code they must be exposed as properties: read-only or
> read/write
> (or even write-only) by providing the correct accessors.
>
> My comments was that the Loop component has th
as properties: read-only or read/write
(or even write-only) by providing the correct accessors.
My comments was that the Loop component has the values you are looking for
... but it's not sharing. Add an issue and we'll see about getting that
into 5.0.6 or 5.0.7.
On 10/14/07, Moh
> cases.
> >
> > You can create your own components if you don't like the default ones.
> > It would be interesting to see an alternative if you write one.
> >
> > Cheers,
> > Nick.
> >
> >
> > Mohammad Shamsi wrote:
> > > dear
ote:
> > dear Nick,
> >
> > i want index just for iteration, i don't need it in may page class, i
> think
> > that its better to define in Loop component class,
> >
> > suppose that i want to use Loop, 5 times in a singe page, then i most
> define
>
heers,
Nick.
Mohammad Shamsi wrote:
dear Nick,
i want index just for iteration, i don't need it in may page class, i think
that its better to define in Loop component class,
suppose that i want to use Loop, 5 times in a singe page, then i most define
5 index value, and five item object ???
}
2007/10/14, Mohammad Shamsi <[EMAIL PROTECTED]>:
> dear Nick,
>
> i want index just for iteration, i don't need it in may page class, i think
> that its better to define in Loop component class,
>
> suppose that i want to use Loop, 5 times in a singe page, then i mos
dear Nick,
i want index just for iteration, i don't need it in may page class, i think
that its better to define in Loop component class,
suppose that i want to use Loop, 5 times in a singe page, then i most define
5 index value, and five item object ???
On 10/14/07, Nick Westgate &l
}
${item.phone}
1 - i just want to use item object here, for iteration, i don't want to
define it at my page class, can i ?
2 - i need an index var for each row, but it seems that for use index
attribute in loop component, i have to define a property at my page class
it at my page class, can i ?
2 - i need an index var for each row, but it seems that for use index
attribute in loop component, i have to define a property at my page class
first, :((
--
sincerely yours
M. H. Shamsi
That was my experience too.
And I still think it's necessary, because the I don't think the list contain
what class type inside it,
after all, T5 can not forced to use Templatized List isn't it?
--
Best wishes,
Eko SW
http://swdev.blogs.friendster.com/my_blog/
Hi All,
If I use loop component like
1.
2. ${product.name}a>
3.
I must craete a property named 'product' in page class. It'll report
exception if I don't do like this.
Is it necessary? I really don't like so terrible rule:(
Than
Looks like a coercion problem, I haven't built in coercions for the
various primitive array types. I'm not actually certain what failed.
I think we need a little more exception reporting inside TypeCoercer
to help identify what's going on.
On 2/13/07, Waldo Mendoza <[EMAIL PROTECTED]> wrote:
Hi
Hi there!
Congratulations to howard, tapestry 5 it´s really amazing and fun.
I have been trying the components that comes bundled with tapestry, and i got
and exception with a Loop test.
The template is:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Loop Test
62 matches
Mail list logo