Re: [Announce] Tapestry Testify project - v1.0.3 released

2011-02-07 Thread Peter Stavrinides
Thanks for your effort Paul! - Original Message - From: "PaulField" To: users@tapestry.apache.org Sent: Saturday, 5 February, 2011 16:20:51 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: [Announce] Tapestry Testify project - v1.0.3 released I'd like to announce the latest rel

How to fix the id attribute of a select component

2011-02-07 Thread Richard Hill
Hi All, I have a select component in a block: The block is the second of three. The switching between them is accomplished with an ajax actionlink request and a By default the first block is shown on page load. If I then switch to the second block, the id attribute of the is something like:

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Gillespie59
Does anyone have a solution to my problem ? I really thank to all of you! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-Selenium-with-Tapestry-5-2-4-tp3370957p3373989.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [T5.2] Update Zone inside AjaxFormLoop

2011-02-07 Thread Yohan Yudanara
Hi, I've tried MultiZoneUpdate and it's working. So, I want to change my question: We can add/delete rows in AjaxFormLoop, so the zone ids is dynamic. How to get available zone ids inside AjaxFormLoop ? Do we need to loop it using Javascript and pass it to server side via context, or is there any

[T5.2] Pass additional info/context on Ajax Select

2011-02-07 Thread Yohan Yudanara
Hi, I want to ask a question: Is it possible to pass additional info on Ajax Select (method "onValueChanged"), other than selected value ? I need to pass ids of element inside AjaxFormLoop (because rows inside AjaxFormLoop can be add/remove dynamically at runtime). e.g: I need to pass: "machineZo

Re: How to fix the id attribute of a select component

2011-02-07 Thread Igor Drobiazko
t:id is a Tapestry component id, which has nothing to do with the client-side id of the tag written by the component. You should use the clientId parameter. On Mon, Feb 7, 2011 at 10:30 AM, Richard Hill wrote: > > Hi All, > > I have a select component in a block: > > onchange="_SU3.renderWebOpt

Re: How to fix the id attribute of a select component

2011-02-07 Thread Richard Hill
Hi Igor, Thanks for the response. I forget to mention in my original email that I tried setting the id attribute as well, but to no avail - it gets over-written. This is T5.2. Richard. On Mon, 2011-02-07 at 12:20 +0100, Igor Drobiazko wrote: > t:id is a Tapestry component id, which has noth

Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread m!g
Hi everyone. Here is a simple test application: public class Test { @Parameter(value="false") @Property private boolean test; @Component private Form form; @Inject private Request request; Object onSubmitFromForm() {

Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread Kristian Marinkovic
Pages usually don't have parameters. Components do! g, kris Von:m!g An: users@tapestry.apache.org Datum: 07.02.2011 15:38 Betreff:Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable" Hi everyone. Here is a simple test application: p

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Feb 2011 12:42:12 -0200, Kristian Marinkovic wrote: Pages usually don't have parameters. Components do! I can't think of any reason for a page to have a parameter: instead, they have the activation context and query parameters. Pages *don't* have parameters. -- Thiago H. de

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread m!g
I made only page just for simplicity. OK, Here is component with parameter: public class TestPage { @Component(parameters={"test=false"}) private Test test; } http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xml:space="preserve"> public class Test { @Paramete

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread Thiago H. de Paula Figueiredo
On Mon, 07 Feb 2011 13:44:53 -0200, m!g wrote: Failure writing parameter 'test' of component TestPage:test: Literal values are not updateable. The message is quite clear: you're trying to change the value of a literal value. This happens in the first line of your method: Object onSubmit

Re: Antwort: Tapestry 5 error "Caused by: java.lang.RuntimeException: Literal values are not updateable"

2011-02-07 Thread LLTYK
Because it's literal "false" and where changes would be stored is not specified. If you want to set it you have to have the parameter map to a property of the container. The example doesn't make clear what you are trying to do to begin with. -- View this message in context: http://tapestry-use

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Mark
The stack trace looks like it is saying there is a problem with the testStartup method not receiving all the parameters it needs. I'm afraid I don't know why. Perhaps someone else on the list can help. I do have a suggestion though. When I run into problems with the testing, I usually try to che

Re: Test Selenium with Tapestry 5.2.4

2011-02-07 Thread Gillespie59
Thanks Mark We have just found the solution. I had the wrong testng version in my pom.xml . -- View this message in context: http://tapestry.1045711.n5.nabble.com/Test-Selenium-with-Tapestry-5-2-4-tp3370957p3374542.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Changes to Logic at Runtime

2011-02-07 Thread Mark
I have a situation where I need to be able to change the logic that occurs on a page at runtime without recompiling or redeploying the app. For example, imagine a shopping cart for a site that offers all kids of constantly changing promotions. Examples would be: - Buy a blue widget and get 10% of

Re: [T5.2] Update Zone inside AjaxFormLoop

2011-02-07 Thread Mark
You can set the client side id to something like: id=${rowZoneId} public String getRowZoneId() { return "rowZone-" rowId; } That way if you need to update a particular zone you can reference it. As long as you set rowId to be the same value when you add it to the MultiZoneUpdate as it was whe

Re: [T5.2] Pass additional info/context on Ajax Select

2011-02-07 Thread Mark
Take a look at this: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxonevent You should be able to add a t:context to the component that is triggering the event. Whatever the context is when the component is rendered will be passed back the action event. So you can have s

Re: How to fix the id attribute of a select component

2011-02-07 Thread Mark
So when you use: myIdName is being overwritten by something else? Mark On Mon, Feb 7, 2011 at 5:23 AM, Richard Hill wrote: > > Hi Igor, > > Thanks for the response. I forget to mention in my original email that I > tried setting the id attribute as well, but to no avail - it gets > over-writt

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-07 Thread Mark
On Sun, Feb 6, 2011 at 8:22 AM, Kalle Korhonen wrote: > Made a patch release yesterday with a fix, use 0.2.2 or 0.3.1, see > http://tynamo.org/tapestry-security+guide > > Kalle I found this in the destination of your link: Use lowercase throughout the shiro.ini file configuration If you want to

Re: How to fix the id attribute of a select component

2011-02-07 Thread LLTYK
When you load Tapestry components in an ajax request a new t:id is generated. Presumably because it's possible for a component with the same original id to still be on the page. I'm not sure how this relates to the client side id. -- View this message in context: http://tapestry-users.832.n2.nab

Re: AjaxFormLoop does not render informal parameters

2011-02-07 Thread Mark
> I'm using AjaxFormLoop component in one of my projects, and I noticed that > this component does not render informal parameters. I'm not sure why it isn't' rendering informal parameters. Others can probably explain if this is a bug or by design. However, you can usually work around this by jus

Re: Changes to Logic at Runtime

2011-02-07 Thread Thiago H. de Paula Figueiredo
I guess you need a rule engine. Tapestry's live class reloading wouldn't be an option as you said you don't want to recompile classes. Tapestry works on compiled bytecode, so using Groovy or Java or Scala wouldn't make a difference. On Mon, 07 Feb 2011 15:25:21 -0200, Mark wrote: I have

Re: Tynamo Security and Tapestry case insensitive paths

2011-02-07 Thread Kalle Korhonen
On Mon, Feb 7, 2011 at 9:43 AM, Mark wrote: > On Sun, Feb 6, 2011 at 8:22 AM, Kalle Korhonen >> Made a patch release yesterday with a fix, use 0.2.2 or 0.3.1, see >> http://tynamo.org/tapestry-security+guide > I found this in the destination of your link: > Use lowercase throughout the shiro.ini f

T5 Component Select ID Example.

2011-02-07 Thread ael
For Newbie Like me guide... Reference: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyid Select ID Index.tml Person: You chose personId: ${personId} Index.java import com.dash.tapestrysel