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://issues.apache.org/jira/browse/TAP5-1151 i filled months ago (and
forgot !)

On Thu, Dec 23, 2010 at 22:09, Nicolas Bouillon (JIRA)
d...@tapestry.apache.org  wrote:


GridPager should be able to display which items are display
---

 Key: TAPESTRY-2774
 URL: https://issues.apache.org/jira/browse/TAPESTRY-2774
 Project: Tapestry
  Issue Type: Improvement
  Components: Core Components
Affects Versions: 5.0.15
Reporter: Nicolas Bouillon


Would be nice if the Grid Pager could be able to display not just the page
number, but also that it's displaying « item 50 to 100 of 2161 ».

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.






-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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


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-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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() too)

 But without success. The thing is the returning type of void.

 Thanks.



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




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. 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() too)

But without success. The thing is the returning type of void.

Thanks.



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 17:07, Taha Hafeez wrote:

 Loop already has an index parameter. Can't you use that


 http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html

  regards
 Taha


  On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves 
 sergio.este...@xpand-it.com wrote:

 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. 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()
 too)

 But without success. The thing is the returning type of void.

 Thanks.



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org








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 '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 17:07, Taha Hafeez wrote:

Loop already has an index parameter. Can't you use that


http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html

  regards
Taha


  On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves
sergio.este...@xpand-it.com  wrote:


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. 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()
too)

But without success. The thing is the returning type of void.

Thanks.



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org








-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 joshcanfi...@gmail.comwrote:

 Try foo()
 On Dec 25, 2010 9:26 AM, Sergio Esteves sergio.este...@xpand-it.com
 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.
 
  On 25-12-2010 17:16, Taha Hafeez wrote:
  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 17:07, Taha Hafeez wrote:
 
  Loop already has an index parameter. Can't you use that
 
 
 

 http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html
 
  regards
  Taha
 
 
  On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves
  sergio.este...@xpand-it.com wrote:
 
  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. 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()
  too)
 
  But without success. The thing is the returning type of void.
 
  Thanks.
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 



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 to tell tapestry-test to use Google Chrome instead of
 Firefox?
 
 Mark


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 tawus.tapes...@gmail.com wrote:
 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 joshcanfi...@gmail.com
wrote:

 Try foo()
 On Dec 25, 2010 9:26 AM, Sergio Esteves sergio.este...@xpand-it.com
 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.
 
  On 25-12-2010 17:16, Taha Hafeez wrote:
  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 17:07, Taha Hafeez wrote:
 
  Loop already has an index parameter. Can't you use that
 
 
 


http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Loop.html
 
  regards
  Taha
 
 
  On Sat, Dec 25, 2010 at 10:32 PM, Sergio Esteves
  sergio.este...@xpand-it.com wrote:
 
  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. 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()
  too)
 
  But without success. The thing is the returning type of void.
 
  Thanks.
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 



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 Firefox plugin, because he can generate a
code of Selenium tests.
http://seleniumhq.org/docs/03_selenium_ide.html#running-test-cases.

Regards,
Aleksandra Mrkić





2010/12/25 Mark mark-li...@xeric.net

 Is there an easy way to tell tapestry-test to use Google Chrome instead of
 Firefox?

 Mark



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 path 'http://maps.google.com/maps/api/js?sensor=false'

I guessed it was trying to use http: as one of the binding constant
prefixes, so I prepended literal: so it looks like this:
@Import(library={context:js/somefile.js,
literal:http://maps.google.com/maps/api/js?sensor=false},
stylesheet=context:style.css)
But I still get the same error.

The solution I have right now is to use JavaScriptSupport to include it:
@Inject
private JavaScriptSupport renderSupport;

void setupRender() {

renderSupport.importJavaScriptLibrary(http://maps.google.com/maps/api/js?sensor=false;);
}

Am I missing something? Is there a way to include it using the @Import
annotation so that I don't have to inject JavaScriptSupport for this
one library?

Thanks,
Donny

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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-when-the-user-leaves-a-page-tp3318549p3318549.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org