T5.2.4 How to discard persistent fields when the user leaves a page ?

2010-12-25 Thread iberck
Hello appreciate members Anyone knows a way to discard persistent fields (delete fields of the session) of a page when the user leaves it and changes to another ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-4-How-to-discard-persistent-fields-w

How to include external js library in @Import

2010-12-25 Thread Donny Nadolny
I have a component that relies on an external javascript library, and I've tried to include it using @Import like this: @Import(library={"context:js/somefile.js", "http://maps.google.com/maps/api/js?sensor=false"}, stylesheet="context:css/style.css") But I get the error: Unknown prefix for asset pa

Re: SeleniumTestCase and other browsers

2010-12-25 Thread Aleksandra Mrkic
Hi Mark! Try to change browser *from *firefox to* googlechrome* in setUp() method like this: public void setUp() throws Exception { setUp("http://localhost:8080/projectname/";, *"***googlechrome**"*);// or try with "*chrome" instead of "*googlechrome" } Take a look at this very useful

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Josh Canfield
Actually, that probably wouldn't work either since it's not returning anything. Re-reading your email, why can't you use the index parameter of the loop? On Dec 25, 2010 10:35 AM, "Taha Hafeez" wrote: > Apologies Sergio. > > Hi Josh, > > But isn't calling a function in a template awkward ? Shouldn

Re: SeleniumTestCase and other browsers

2010-12-25 Thread Christian Riedel
If you are using 5.2 you should have a look at SeleniumTestCase: http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/test/SeleniumTestCase.html#testStartup(org.testng.ITestContext,%20org.testng.xml.XmlTest) Christian Am 25.12.2010 um 15:04 schrieb Mark: > Is there an easy way

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
Apologies Sergio. Hi Josh, But isn't calling a function in a template awkward ? Shouldn't there be a better way of doing it ? regards Taha On Sat, Dec 25, 2010 at 11:56 PM, Josh Canfield wrote: > Try foo() > On Dec 25, 2010 9:26 AM, "Sergio Esteves" > wrote: > > I'm just doing this inside th

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Josh Canfield
Try foo() On Dec 25, 2010 9:26 AM, "Sergio Esteves" wrote: > I'm just doing this inside the loop body: "${foo}" and the method foo > isn't called if the returning type is void. It's just that. I wonder if > there is another way, but, if not, a workaround is to return a null object. > > Regards. >

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
I'm just doing this inside the loop body: "${foo}" and the method foo isn't called if the returning type is void. It's just that. I wonder if there is another way, but, if not, a workaround is to return a null object. Regards. On 25-12-2010 17:16, Taha Hafeez wrote: Sorry! I didn't see 'AJAXF

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
Sorry! I didn't see 'AJAXFORM' :). Can you share the code ? regards Taha On Sat, Dec 25, 2010 at 10:39 PM, Sergio Esteves < sergio.este...@xpand-it.com> wrote: > But for what I want to do is easier to use the component ajaxformloop, as > I will need to add and remove rows. > > > On 25-12-2010 1

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
I'm using an ajaxformloop and I'm trying to simulate the index of the component loop, without making a new component. So, in each iteration of the loop I increment a variable that I use after in the components within the loop. Regards. On 25-12-2010 16:59, Taha Hafeez wrote: You can't in T5.

Re: T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Taha Hafeez
You can't in T5. May I ask what are you trying to do ? regards Taha On Sat, Dec 25, 2010 at 10:24 PM, Sergio Esteves < sergio.este...@xpand-it.com> wrote: > Hi, > > I have tried to do this: > tml: > «... ${foo} ...» > java: > «... public void foo() { count++; } ...» (I tried with "void getFoo()

T5: very basic question - how do I call a code-side function in a tml

2010-12-25 Thread Sergio Esteves
Hi, I have tried to do this: tml: «... ${foo} ...» java: «... public void foo() { count++; } ...» (I tried with "void getFoo()" too) But without success. The thing is the returning type of void. Thanks. - To unsubscribe, e-m

SeleniumTestCase and other browsers

2010-12-25 Thread Mark
Is there an easy way to tell tapestry-test to use Google Chrome instead of Firefox? Mark

Re: [jira] Created: (TAPESTRY-2774) GridPager should be able to display which items are display

2010-12-25 Thread Ulrich Stärk
Don't worry. Moved it to TAP5. Uli On 23.12.2010 22:18, Nicolas Bouillon wrote: I'm affraid i may have created this issue in the wrong tapestry project... i picked the wrong version by mistake, and i can't find the tapestry 5.1 version i use. And moreover, it could be a duplicate of https://iss