T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Kay.Thielmann
I wrote a component which shows some html from an external source. This html may contain some links. If one of this links is clicked I need to call a listener to set some parameters, but I don't know how to trigger the listener in this case. Please help. Kay Thielmann Mitarbeiter / BC

Re: T5: Javascript abstraction musing

2007-07-30 Thread Kristian Marinkovic
hi bill, i posted a related comment on https://issues.apache.org/jira/browse/TAPESTRY-1650 maybe you can take a look on it g, kris Bill Holloway [EMAIL PROTECTED] 30.07.2007 01:14 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org

RE: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Marcus.Schulte
you could use the EventListener mechanism to intercept the clicks, see http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html If you know the link-id's in advance, it's particularly easy. If you don't have control over the external links, you'll have to come up with some javascript

RE: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Kay.Thielmann
We are using Tapestry 4.02 in a portal environment. So using AJAX or javascript (even so it may not be barrier-free) is not so easy. I thought about something like writing my own service or subclassing DirectService, or something like that... Any suggestions? -Ursprüngliche Nachricht-

RE: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Marcus.Schulte
depends on how much control over the external links you do have. If you can control their generation, you can do anything ;). hard to say, without a more concrete knowledge of what these links should do, why they cannot be generated by tapestry and what they may be allowed to know about tapestry.

T4: DropDownDatePicker

2007-07-30 Thread Andrea Chiumenti
Hello, I've just seen a strange behaviour when selecting a date from DorpDownDatePicker, because this component performs a submit. Is it a bug ?

AW: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Kay.Thielmann
Thanks so far. In my freemarker-templates I wrote the links as if they would have been renderered by DirectLink. Now Tapestry uses the trigger() Methode of the Direct Interface. No real nice solution, but it works. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL

radio in a grid table - null pointer

2007-07-30 Thread Jan Laníček
Hi all, I would like have a table, where on every row will be radio select, I was trying code below, and rendering was ok, but after submit form tapestry 5 throw null pointer. Any ideas, please Thanks John HTML: t:form t:radiogroup t:id=radioSelectedValue table t:type=grid

Re: [T4]Handling Nulls in OGNL expressions

2007-07-30 Thread Marcos Chicote
I wouldn't mind implementing a hivemind service if I could solve the problem this way, but I don't know how to implement the behaviour that I want. I want exactly what you discribe happens in WebObjets: if at any point in the ognl chain a null object is invoked, the hole expression evaluates to

[T 4.1.2] overriding default exception page

2007-07-30 Thread ccmail
Hi all, I've tried to override default Tapestry as described here (http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html). Unfortunately after adding contribution configuration-id=tapestry.Infrastructure property name=exceptionPageName value=GeneralErrorPage/

Re: [T 4.1.2] overriding default exception page

2007-07-30 Thread Mahmut Izci
Hi, please use contribution configuration-id=tapestry.InfrastructureOverrides instead of contribution configuration-id=tapestry.Infrastructure Mahmut ccmail schrieb: Hi all, I've tried to override default Tapestry as described here

Re: [T4]Handling Nulls in OGNL expressions

2007-07-30 Thread Martino Piccinato
Hi, please take my words with a grain of salt because I've never used this in production but in my opiinon this should be the way to proceed: have a look at this tapestry configuration point:

maven build from source is not working.

2007-07-30 Thread Alex Shneyderman
Am I too naive to expect maven build to just build without problems? I checked the source I go to the root directory (above all the modules) and I do mvn clean package I get errors. That classes are can not be compiled. Some missing deps. Any clue? Any guidance on how to successfully build

Re: maven build from source is not working.

2007-07-30 Thread Alex Shneyderman
the errors are of this type: /home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[89,12] cannot find symbol symbol : class Server location: class org.apache.tapestry.test.JettyRunner

createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
Hello! I'm having this exception ( org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException( AbstractBinding.java:115)) when I call into my rewindFormComponent method this code: setStartRow(sliderValue); and I set into jwc file: parameter name=startRow required=no cache=true

Re: createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
this is the stack trace org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException( AbstractBinding.java:115) org.apache.tapestry.binding.ExpressionBinding.setObject( ExpressionBinding.java:196) $EditTable_16.setStartRow($EditTable_16.java)

Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Well, I'm having a very similar behaviour with Dialog component that by default has a true parameter for optional parameter hidden. parameter name=hidden default-value=true / It seems that if you set a constant value (ognl:0 or true) to a parameter then the parameter itself is regarded as

Re: createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
Well, I try to investigate into this, meanwhile if you could be so kind to post a jira... ciao, kiuma On 7/30/07, Martino Piccinato [EMAIL PROTECTED] wrote: Well, I'm having a very similar behaviour with Dialog component that by default has a true parameter for optional parameter hidden.

Re: T4: Problem with my own Date Validator

2007-07-30 Thread César Augusto Mateus
Thanks very much Martino, an fool fault!, but it did not know clearly so that was the method getAcceptsNull(), seemed to me very similar to isRequired() and I supposed that they had the same function. In the end, i think in extend the class org.apache.tapestry.form.validator.Required and it

Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Posted one for the parameter issue https://issues.apache.org/jira/browse/TAPESTRY-1682 and another one for the Dialog component: https://issues.apache.org/jira/browse/TAPESTRY-1683 I didn't do it first because I was trying to investigate myself but I really have no time to do this now. Ciao

Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
Hi Folks, I am trying to operate the index parameter as documented in the contrib:table docs. Can someone help clarify this for me? Here is the documentary... INDEX: If provided, the parameter is updated with the index of the loop on each iteration. Can someone elaborate on what the

[T5] Eclipse WTP - conflict between class reloading and context reloading

2007-07-30 Thread entelechon
I am using Eclipse WTP and Tomcat 5.5 to develop with Tapestry 5. Changes to page classes are supposedly picked up by Tapestry, via an inspection of the class path. Now, when I change a page class, Tomcat notices the changed file and reloads the whole context - effectively resetting the

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Marcus Schulte
2007/7/30, Ken nashua [EMAIL PROTECTED]: Hi Folks, I am trying to operate the index parameter as documented in the contrib:table docs. Can someone help clarify this for me? Here is the documentary... INDEX: If provided, the parameter is updated with the index of the loop on each

Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Shing Hing Man
Thanks for the pointer Nick! I will try again. Shing --- Nick Westgate [EMAIL PROTECTED] wrote: Hi Shing. Nice to see you getting into T5. ;-) Not sure why your resources.renderInformalParameters(writer) fails, but it's likely a clash with the RenderInformals mixin in

Re: T4: DropDownDatePicker

2007-07-30 Thread Marcus Schulte
dont' know. I use dddp extensively without any unwanted submissions (just double-checked). Are you sure you don't have any EventListeners or stuff wired to them? 2007/7/30, Andrea Chiumenti [EMAIL PROTECTED]: Hello, I've just seen a strange behaviour when selecting a date from

Editing complex beans with BeanEditForm component.

2007-07-30 Thread Imants Firsts
Hi! Is it possible to use BeanEditForm component for editing complex beans? I have the following classes (getters and some irrelevant things are stripped, which might make classes slightly odd, but they have to be this way in my case). public class Item { private String name;

Re: Is T5.0.6 in progress

2007-07-30 Thread adasal
I think this is a question from moonfly2004. The way to help, I think, would be to work up examples in the wiki and as you hit features that aren't implemented, suggest implementations and workarounds. This will flesh out the functionality of T5 and provide starting points for committers. You may

Re: [T5] Select, palette, multiselect

2007-07-30 Thread Martin Grotzke
On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote: And has anyone implemented a Select-like component for multiple option selection? It would be very nice to have both multiselect and palette, as T4 has. Take a look at this thread, it's really easy to implement

Re: [T5] Select, palette, multiselect

2007-07-30 Thread Thiago H de Paula Figueiredo
On Mon, 30 Jul 2007 17:13:07 -0300, Martin Grotzke [EMAIL PROTECTED] wrote: On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote: And has anyone implemented a Select-like component for multiple option selection? It would be very nice to have both multiselect and palette,

Re: [T5] Eclipse WTP - conflict between class reloading and context reloading

2007-07-30 Thread Martin Grotzke
Hi, you should set up your environment as it's described in the tutorial (http://tapestry.apache.org/tapestry5/tutorial1/env.html). AFAIK T5 class reloading does work with jetty 5 + jetty launcher only. Cheers, Martin On Mon, 2007-07-30 at 11:42 -0700, entelechon wrote: I am using Eclipse

Re: T4: DropDownDatePicker

2007-07-30 Thread Andrea Chiumenti
sorry, it was a bug in my js code. On 7/30/07, Marcus Schulte [EMAIL PROTECTED] wrote: dont' know. I use dddp extensively without any unwanted submissions (just double-checked). Are you sure you don't have any EventListeners or stuff wired to them? 2007/7/30, Andrea Chiumenti [EMAIL

Re: maven build from source is not working.

2007-07-30 Thread Hans Jörg Hessmann
I remember I had same problem once when I tried to compile some 5.0.5 snapshot from subversion using maven 2.0.7. I think I solved this by modifiying the tapestry-project/pom.xml like this: dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-test/artifactId

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
Maybe this will help https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12374984 How much science could there be to operating a parameter ? Best regards Ken in nashua _

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
I did get the column parameter to operater correctly. Index could not be that different could it? Still shaking my head... Best regards Ken in nashua _ http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
Ok, it seems I needed one of these... property name=index/ in an auxillary page that operated one of my intermediary persistence oriented templates. Best regards Ken in nashua _ Need a brain boost? Recharge with a stimulating

Re: T5: Grid component - available properties

2007-07-30 Thread Daniel Jue
Joost, thanks for the code snippet --I think it got me on the right track. Can I define this snippet in Java code somehow? t:parameter t:name=yourUnknowBeanPropertyCell ${myRow.yourUnknowBeanProperty.somethingPresentable} t: parameter I want tapestry to automatically know how to display the

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
To summarize... using a contrib component parameter may not be that straight forward. I had to open up the usage by specifying a binding. Then the property... property name=index/ Best regards Ken in nashua _ Need a brain

Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Shing Hing Man
t:colorPicker size=3 color=color / The informal parameter size3 is rendered if I do the following changes to my ColorPicker.java (without using mixins). 1) Remove @SupportsInformalParameters and resources.renderInformalParameters(writer) 2) In the beginRender method, only render the

T5 How to get form name

2007-07-30 Thread Shing Hing Man
I have a component that subclass AbstractField. In the beginRender method of my component, how do I get the name of the enclosing form ? Thanks in advance for any assistance ! Shing Home page : http://www.lombok.demon.co.uk/

Re: Is T5.0.6 in progress

2007-07-30 Thread 小司
Yes adasal,you are great.I'm a terminal user.I am unable to do what one hopes to do until now.I only learned how to use form in T5. 2007/7/31, adasal [EMAIL PROTECTED]: I think this is a question from moonfly2004. The way to help, I think, would be to work up examples in the wiki and as you

Re: [T5] Select, palette, multiselect

2007-07-30 Thread Howard Lewis Ship
For Select, a default encoder can be generated from the type of property bound to the value parameter of the Select. For Palette, what's bound is a List ... due to type erasure, even ListFoo looks like List, and there is no effective way to determine the underying element type, so you are forced

T5 Component Info Passing

2007-07-30 Thread Todd Orr
I've found out how to pass data between components so long as it's downstream. Is there a way to pass data from a component (B) that is physically below another component (A) to component A? I've found that performing any data passing (per situation above) during the RenderSetup, etc. methods

RE: T4.1 List of pages

2007-07-30 Thread Craig Spry
Hello, I tried to do getNamespace().getPageNames() and all I got was the name of the current page. Then I tried this: ListString pages = new VectorString(); for ( Object id : getNamespace().getChildIds() ) { INamespace lib = getNamespace().getChildNamespace( id.toString() );

Re: T5 Component Info Passing

2007-07-30 Thread Todd Orr
BTW _resources.getComponentModel().getEmbeddedComponentIds() would be really really useful if it didn't return an empty list every time during my testing. Is there any way for a component to know what it contains? On 7/30/07, Todd Orr [EMAIL PROTECTED] wrote: I've found out how to pass data

[T5] Binding messages to assets

2007-07-30 Thread Steve Kondik
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there any way to bind messages into assets (JS or CSS)? This works great with inline scripts (message prefix), but obviously not with context resources. Since assets are cached anyway, it seems like it should be simple to implement, but I'm not

Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Nick Westgate
Hi Shing. By inheriting from AbstractField you are using these mixins: @SuppressWarnings(unused) @Mixin private RenderInformals _renderInformals; @SuppressWarnings(unused) @Mixin private RenderDisabled _renderDisabled; RenderInformals is rendering the informal

Re: T5 How to get form name

2007-07-30 Thread Nick Westgate
The id and name of a form are the same, so: @Environmental private FormSupport _formSupport; ... String name = _formSupport.getClientId(); Cheers, Nick. Shing Hing Man wrote: I have a component that subclass AbstractField. In the beginRender method of my component, how do I get the name

Re: [T5] Grid totals

2007-07-30 Thread Daniel Jue
Joost, How did you add a row for the totals while keeping that row from being sortable? I don't want to add it outside of the grid's table structure, because I want the columns to align. I did this in T4 using code like this: span jwcid=tableView table class=reportdata tr