Re: going from loop component to grid + tapestry-security = hide columns for non-admin user & grid + zebra-like effect using object.attribute

2014-04-16 Thread Chris Mylonas
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

Re: going from loop component to grid + tapestry-security = hide columns for non-admin user & grid + zebra-like effect using object.attribute

2014-04-16 Thread Chris Poulsen
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

going from loop component to grid + tapestry-security = hide columns for non-admin user & grid + zebra-like effect using object.attribute

2014-04-16 Thread Chris Mylonas
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

Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread nhhockeyplayer nashua
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;

Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread George Ludwig
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

Re: loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread Boris Horvat
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

loop component only reads 'value" once, renders same object each time?

2013-06-01 Thread George Ludwig
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Thiago H de Paula Figueiredo
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Thiago H de Paula Figueiredo
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
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

Re: [5.3.6] Loop component giving coercion error

2012-11-29 Thread Mauricio Aldazosa
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

[5.3.6] Loop component giving coercion error

2012-11-29 Thread Pillar
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).

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-03 Thread Steve Eynon
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Taha Hafeez Siddiqi
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Steve Eynon
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Taha Hafeez Siddiqi
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Steve Eynon
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Taha Hafeez Siddiqi
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

Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Steve Eynon
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

[T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-02 Thread Steve Eynon
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");

Re: EventLink URI and loop component

2011-02-24 Thread Mark
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

Re: EventLink URI and loop component

2011-02-22 Thread Erik Fäßler
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

Re: EventLink URI and loop component

2011-02-18 Thread Rich M
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

Re: EventLink URI and loop component

2011-02-18 Thread Thiago H. de Paula Figueiredo
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.

Re: EventLink URI and loop component

2011-02-18 Thread Thiago H. de Paula Figueiredo
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

Re: EventLink URI and loop component

2011-02-18 Thread Rich M
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

Re: EventLink URI and loop component

2011-02-18 Thread Erik Fäßler
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

Re: EventLink URI and loop component

2011-02-18 Thread Thiago H. de Paula Figueiredo
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

EventLink URI and loop component

2011-02-18 Thread Erik Fäßler
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

Re: [T5] loop component -> t:value local variable

2009-01-26 Thread manuel aldana
, 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

Re: [T5] loop component -> t:value local variable

2009-01-26 Thread Howard Lewis Ship
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

[T5] loop component -> t:value local variable

2009-01-26 Thread manuel aldana
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

How to use the volatile property of Tapestry5 Loop component?

2009-01-10 Thread d0ng
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

Re: Q : paging using loop component ?

2008-11-24 Thread zack1403
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

Q : paging using loop component ?

2008-11-22 Thread dwi ardi irawan
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 !"

Re: Loop Component

2008-07-01 Thread Peter Courcoux
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

Re: Loop Component

2008-07-01 Thread Bill Holloway
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]>: >

Re: Loop Component

2008-07-01 Thread Peter Courcoux
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

Re: Loop Component

2008-06-30 Thread Sven Homburg
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

Loop Component

2008-06-30 Thread Peter Courcoux
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

Re: T5: how to get hold of an id in a loop component?

2008-05-19 Thread Toby Hobson
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

T5: how to get hold of an id in a loop component?

2008-05-19 Thread jg433
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

Re: [T5] SUGGESTION: Loop component -> Provide an 'empty' block as in the Grid?

2008-02-29 Thread Howard Lewis Ship
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

Re: [T5] SUGGESTION: Loop component -> Provide an 'empty' block as in the Grid?

2008-02-29 Thread David Marquis
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>

Re: [T5] SUGGESTION: Loop component -> Provide an 'empty' block as in the Grid?

2008-02-29 Thread Howard Lewis Ship
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

[T5] SUGGESTION: Loop component -> Provide an 'empty' block as in the Grid?

2008-02-29 Thread David Marquis
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

Re: T5 2 question about loop component parameters

2007-10-17 Thread Ivan Dubrov
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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Andreas Andreou
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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Howard Lewis Ship
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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Mohammad Shamsi
> 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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Howard Lewis Ship
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 >

Re: T5 2 question about loop component parameters

2007-10-14 Thread Nick Westgate
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 ???

Re: T5 2 question about loop component parameters

2007-10-14 Thread Ted Steen
} 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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Mohammad Shamsi
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

Re: T5 2 question about loop component parameters

2007-10-14 Thread Nick Westgate
} ${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

T5 2 question about loop component parameters

2007-10-14 Thread Mohammad Shamsi
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

Re: How to use loop component in Tapestry5.0.4

2007-05-21 Thread Eko S.W.
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/

How to use loop component in Tapestry5.0.4

2007-05-21 Thread Allen Guo
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

Re: T5: Loop component fails

2007-02-13 Thread Howard Lewis Ship
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

T5: Loop component fails

2007-02-13 Thread Waldo Mendoza
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