Re: Simple question

2011-07-01 Thread Tony Nelson
On Jul 1, 2011, at 12:32 PM, Howard Lewis Ship wrote: > On Fri, Jul 1, 2011 at 4:37 AM, Thiago H. de Paula Figueiredo > wrote: >> On Fri, 01 Jul 2011 07:31:18 -0300, wrote: >> >>> Hello everyone! >> >> Hi! >> >>> Is it possible to nest the output of variables, i.e.: something like: >>> > >

Re: Simple question

2011-07-01 Thread Howard Lewis Ship
On Fri, Jul 1, 2011 at 4:37 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 01 Jul 2011 07:31:18 -0300, wrote: > >> Hello everyone! > > Hi! > >> Is it possible to nest the output of variables, i.e.: something like: >> No this is not supported, but you could inject the AssetSource service int

Re: Simple question

2011-07-01 Thread Thiago H. de Paula Figueiredo
On Fri, 01 Jul 2011 07:31:18 -0300, wrote: Hello everyone! Hi! Is it possible to nest the output of variables, i.e.: something like: I don't think so. As far as I can remember, you can use symbol expansions, but not property ones in asset bindings. -- Thiago H. de Paula Figueiredo In

Simple question

2011-07-01 Thread P . Stavrinides
Hello everyone! Is it possible to nest the output of variables, i.e.: something like: I know there are other solutions, but just asking if there is some syntax to do this type of thing? Thanks! Peter - To unsubscribe, e-mai

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
Ok, I used the zone0 and it worked. On 07-01-2011 10:51, Sergio Esteves wrote: No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...) bloc

Re: t5: zone, blocks, and form - simple question

2011-01-07 Thread Sergio Esteves
No, it is not an ajax request (tested with the isXHR). The form can't find the specified zone on its parameter, and I don't know why. I have something like zone0(block0( zone1(block1(...) block2(form-zone1(...) block3(.... On 06-01-2011 23:38, Thiago H. de Paula Figueiredo wrote: On Thu, 0

Re: t5: zone, blocks, and form - simple question

2011-01-06 Thread Thiago H. de Paula Figueiredo
On Thu, 06 Jan 2011 21:29:08 -0200, Josh Canfield wrote: Are you sure that your request was coming via ajax? There is an event result processor for BlockImpl when the request is ajax, but not if it's a traditional request. Good point. Inject Request and use its isXHR() method to check if th

Re: t5: zone, blocks, and form - simple question

2011-01-06 Thread Josh Canfield
Are you sure that your request was coming via ajax? There is an event result processor for BlockImpl when the request is ajax, but not if it's a traditional request. On Thu, Jan 6, 2011 at 9:02 AM, Sergio Esteves wrote: > Hi all, > > I have the following code: > > > > > >        ... > > > >

Re: t5: zone, blocks, and form - simple question

2011-01-06 Thread Sergio Esteves
OK, I have one more zone with a block that contains the code I posted bellow. On 06-01-2011 17:02, Sergio Esteves wrote: Hi all, I have the following code: ... ... ... The problem is I can't return thirdBlock when I submit the form in the secondBloc

t5: zone, blocks, and form - simple question

2011-01-06 Thread Sergio Esteves
Hi all, I have the following code: ... ... ... The problem is I can't return thirdBlock when I submit the form in the secondBlock (" Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled."). Am I doing something wrong? Th

Re: a simple question

2010-11-11 Thread hese
wow! A wealth of information. Thank you all! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3260417.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 09:58:42 -0200, Christian Riedel wrote: public String getReportTitle() :-) Yep, programming my e-mail client (Opera's M@) hasn't Java type checking . . . :D -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, a

Re: a simple question

2010-11-11 Thread Christian Riedel
> public String getReportTitle() :-) Am 11.11.2010 um 12:52 schrieb Thiago H. de Paula Figueiredo: > On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill > wrote: > >> In T5, 5.1 you can do something like this. In .tml: >> >> ${reportTitle} >> ... >> >>No report to display >> >> >> I

Re: a simple question

2010-11-11 Thread Richard Hill
Excellent tips Thiago, cheers. -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tapestry users Subject: Re: a simple question Date: Thu, 11 Nov 2010 09:52:01 -0200 On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: > In T5

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: In T5, 5.1 you can do something like this. In .tml: ${reportTitle} ... No report to display I believe the "else" syntax may have changed in T5.2. There are now two syntaxes for passing values to parameters that are bl

Re: a simple question

2010-11-11 Thread Richard Hill
: hese <1024h...@gmail.com> Reply-to: "Tapestry users" To: users@tapestry.apache.org Subject: a simple question Date: Wed, 10 Nov 2010 13:24:23 -0800 (PST) Hi, I am using Tapestry 5. I see that in tapestry 4 it was possible to have condition values in the if clause. Is somet

Re: a simple question

2010-11-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Nov 2010 20:56:55 -0200, Howard Lewis Ship wrote: Less expressive, but not less powerful. T5's property expressions are type-safe and non-reflective, with no unwanted synchronization logic, so I'd call that a better than even trade! I stand corrected. :) -- Thiago H. de Paula

Re: a simple question

2010-11-10 Thread ael
YES... tml x needs boolean java boolean x; if(mystring.equals("tapestry")) x = true else x=false Hope you understand the logic. -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259618.html Sent from the Tapestry - User mailing lis

Re: a simple question

2010-11-10 Thread Howard Lewis Ship
On Wed, Nov 10, 2010 at 2:21 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 10 Nov 2010 19:26:18 -0200, hese <1024h...@gmail.com> wrote: > > ...and is it possible to pass parameters into the if evaluating function >> and receive a boolean/string back? >> > > Hi! > > You

Re: a simple question

2010-11-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Nov 2010 19:26:18 -0200, hese <1024h...@gmail.com> wrote: ...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? Hi! You pass a parameter to the If parameter (and any other parameter of any other component) using a binding. Se

Re: a simple question

2010-11-10 Thread hese
ok thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259547.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u

Re: a simple question

2010-11-10 Thread Inge Solvoll
Short answer: No. You have to create a public method in the page class and refer to it. All logic should be in java, not tml. On Wed, Nov 10, 2010 at 10:26 PM, hese <1024h...@gmail.com> wrote: > > > ...and is it possible to pass parameters into the if evaluating function > and > receive a boolea

Re: a simple question

2010-11-10 Thread hese
...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? something like if( foo('somevalue) ) { } else { } -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.html Sent from the Tap

a simple question

2010-11-10 Thread hese
Hi, I am using Tapestry 5. I see that in tapestry 4 it was possible to have condition values in the if clause. Is something like this available in 5? Is it possible to check for a particular string value in the t:if tag or is it just boolean? I want to do something like if(str=='somevalue') {

Re: [T5] Simple question about select and enum

2007-11-15 Thread Michael Courcy
Do you have error messages ? TNO a écrit : Hi, I want to create a very simple select list from an enum. But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks T

Re: [T5] Simple question about select and enum

2007-11-15 Thread martin boulanger
o unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-T5--Simple-question-about-select-and-enum-tf4815229.html#a13776401 Sent from the Tapestry - User mailing list archive at Nabble.com

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
It works ! thanks but the Component Reference says that parameter "model" is required... lasitha a écrit : > Tom, try it without specifing a select model. > > The following is working for me: > > > Where the page class has just the report property and accessors. > > Also note that you don't need

Re: [T5] Simple question about select and enum

2007-11-15 Thread lasitha
Tom, try it without specifing a select model. The following is working for me: Where the page class has just the report property and accessors. Also note that you don't need to use expansions (the ${..}s) on these. Cheers, lasitha. On Nov 15, 2007 10:00 PM, Michael Courcy <[EMAIL PROTECTED]>

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
No error message, but in the HTML page : instead of my enum value... My java code : public EnumSelectModel getReportModel() { return new EnumSelectModel(Report.class, _resources.getMessages()); } Michael Courcy a écrit : > Do you have error messages ? > > TNO a écrit : >> H

[T5] Simple question about select and enum

2007-11-15 Thread TNO
Hi, I want to create a very simple select list from an enum. But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks Tom --- Antivirus avast! : message Sortant s

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
On 9/17/07, Davor Hrg <[EMAIL PROTECTED]> wrote: > The problem is that you must give action link something > to identify your object. > > in the page you mentioned you have only one instance of > the MatchInfo component that get's rendered multiple times with different > data. > So when your action

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Davor Hrg
The problem is that you must give action link something to identify your object. in the page you mentioned you have only one instance of the MatchInfo component that get's rendered multiple times with different data. So when your action is called, you have the last element passed as parameter. yo

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
On 9/17/07, Francois Armand <[EMAIL PROTECTED]> wrote: > Well, I'm not sure that I understand what you do correctly, may you > provide the actual code ? > As far as I can tell, you persists a field that is used as value for the > loop, and so it's always the last MacthInfo that is persists. > > You

Re: T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Francois Armand
Charles Mason wrote: Hi All [..] Hi, [..] The method called by the action link uses the persistent field which stores the actual Match object which the component gets data from. However when ever I use the page and click the action link, its as though the action link is clicked on the last

T5: A Hopefully Simple Question About Action Link Scope

2007-09-17 Thread Charles Mason
Hi All I am currently experiencing a problem which seems to contradict the model of how action link works. I have a page called start.html. It has a for loop which for every iteration contains a custom component, called MatchInfo. This renders a box containing the info about the match. MatchInfo

Re: So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Sam Gendler wrote: Generally, you would make sure the page implements the IExternalPage interface. That allows you to specify parameters in a link and ... --sam Thanks a lot Wojtek -- Wideofelietony Tadeusza Mosza. O biz

Re: So a simple question in place of earlier one...

2007-04-04 Thread Sam Gendler
Generally, you would make sure the page implements the IExternalPage interface. That allows you to specify parameters in a link and receive them when the page is activated. If you just need to generate the URL, you can create an instance of an ILink via the ExternalService and then get the URL f

So a simple question in place of earlier one...

2007-04-04 Thread Wojtek Ciesielski
Hi can I obtain full textual (ie. as a String) URL to a page with some parameters? Let's say that I have a page PageBeingCalled with a string property: public class PageBeingCalled extends BasePage { public abstract void setMyProperty(String prop); public abstract String getMyProperty();

Simple question that I have no idea about: paramets in ajax event listeners..

2006-08-04 Thread Josh Long
Hello all! Is there a way to specify parameters for a listener method annotated with the EventListener annotaton, as i might with directlink? My use case is: I have a search which in turn has a Next | Back row. I want next to be given the page range and the same for back. Using a standard direct