Re: T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, In my experience, if you haven't told IntelliJ to produce a WAR file when you build, the Maven build isn't run and the files aren't updated. Try going to Project Structure > Project Settings > Facets > Web > Web (name of your app) > Java EE Build

Re: [T5] ck/TabSet inside a form.

2009-02-12 Thread Otho
Thanks for the tip. I planned to look at equanda a little later anyways, since I'll very probably need the keyboard navigation features. So I might as well do it now. Regards, Otho 2009/2/13 > Hi Otho, > > This is a limitation of the tapestry ajax stuff. A block should either > contain an entir

Re: [T5] ck/TabSet inside a form.

2009-02-12 Thread joachim
Hi Otho, This is a limitation of the tapestry ajax stuff. A block should either contain an entire form or no form elements. You should either have individuals forms for each tab, or use a tabset which does not rely on ajax to get the context of each tab. One such option is the equanda-tapestry5

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
context.getTranslator will look up the "default" translator for the field, based on the bound type. Ultimately, the FieldTranslatorSource service derives its translators from the TranslatorSource service; tapestry does not provide out-of- the-box support for Date or Time translators. If your a

Re: [T5] filter on parameters

2009-02-12 Thread Robert Zeigler
On Feb 12, 2009, at 2/127:24 PM , manuel aldana wrote: Hi, a question on @Parameter: @Parameter private String param; 1) How is it possible to filter a passed param (e.g. manipulating the value)? Using getters and setters for that would not work. Generally, the "setupRender" phase is wha

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Robert Zeigler
On Feb 12, 2009, at 2/126:55 PM , Howard Lewis Ship wrote: On Thu, Feb 12, 2009 at 12:58 PM, Robert Zeigler wrote: 0) I don't usually extend components; I prefer building things based on composition. That said: Which is the point of Tapestry! Agreed! But our friend isn't using composi

Re: T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Angelo Chen
That will be good enough, what's your setting? also just open pom.xml and IDEA creates maven config? Christian Edward Gruber-2 wrote: > > Components or services (the .java file). I find that components auto- > load, but if I change services or any dependencies, I have to restart. > > Christi

Re: T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Christian Edward Gruber
Components or services (the .java file). I find that components auto- load, but if I change services or any dependencies, I have to restart. Christian. On 12-Feb-09, at 22:00 , Angelo Chen wrote: Hi, I don't know what's the difference, actually I just let IDEA open pom.xml file, it autom

Re: T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Angelo Chen
Hi, I don't know what's the difference, actually I just let IDEA open pom.xml file, it automaticall create a Maven configuration, then i just select a jetty:run, that's it, so far I notice, any changes of .tml file got reflected immediately, but java class still needs a restarting of jetty server

stylesheet processing in ajax response doesn't work in firefox3.0

2009-02-12 Thread dh ning
Hi, Environment: tapestry 5.0.18, firefox3.0, maven jetty:run Whenever there is new stylesheet link in ajax response in firefox3.0 (both 3.0.5&3.0.6), then there is an ajax error shown in top of page "Client exception processing response: TypeError: existing is null". But IE 6&7, firefox 2.0 wor

Re: T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Howard Lewis Ship
I just don't get why everyone insists on running the app with Maven ... I just use the Jetty plugin for IDEA and it works like a charm. On Thu, Feb 12, 2009 at 5:03 PM, Angelo Chen wrote: > > Hi, > > with 8.0 Intellij and Maven project, every time I modify .tml file, I have > to rebuild the proje

[T5] filter on parameters

2009-02-12 Thread manuel aldana
Hi, a question on @Parameter: @Parameter private String param; 1) How is it possible to filter a passed param (e.g. manipulating the value)? Using getters and setters for that would not work. 2) How can I make the parameter available to the template (e.g. to render this), i.e. want to have it

T5: Intellij 8.1 and template live reloading

2009-02-12 Thread Angelo Chen
Hi, with 8.0 Intellij and Maven project, every time I modify .tml file, I have to rebuild the project and restart the jetty server, just tried out 8.1, i don't have to do that any more, update .tml, click 'save', the changes reflected, it brings back the fun of developing t5 app. Angelo -- View

Re: T5: Components listening to page form events

2009-02-12 Thread Howard Lewis Ship
On Thu, Feb 12, 2009 at 3:05 AM, Inge Solvoll wrote: > Hi! > > I have a component that needs to listen to events from a form that resides > in the containing page. The component takes care of viewing a list of > selectable items, and this list and its PrimaryKeyEncoder needs to be > initialized th

Re: TAP5: Injecting dependencies into an ApplicationStateCreator

2009-02-12 Thread Howard Lewis Ship
If you use Java's new keyword, then Tapestry IoC is not involved in the creation of the FacetConfigurationsStateCreator. You can inject a ServiceLocator object and have it autobuild() your object; that will inject dependencies. This is improved in Tapestry 5.1, there's an @Autobuild annotation an

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Howard Lewis Ship
On Thu, Feb 12, 2009 at 12:58 PM, Robert Zeigler wrote: > 0) I don't usually extend components; I prefer building things based on > composition. That said: > Which is the point of Tapestry! > 2) This will work iff your parent class also implements a "defaultName" > method that the subclass over

[T5] ck/TabSet inside a form.

2009-02-12 Thread Otho
I have a Tabset in a form like this: I have three tabs in blocks. The first holds some formcontrols already, the other two are placeholder. The goal is to submit formdata from all tabs at once. What happens is the following: On page load the first tab is shown as expected, i

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
Thanks for your help so far. After placing the files in the "pages" folder I came across an exception: Parameter 'translate' of component AppPropertyEditBlocks:duration is bound to null. This parameter is not allowed to be null. [at context:AppPropertyEditBlocks.tml, line 5, column 57] public

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
They should be in the "pages" folder; they are pages that act as "holders" for components. Robert On Feb 12, 2009, at 2/123:59 PM , bob_k wrote: The page I'm trying to use it with is called "Presentations". It's located in com.eveo.speakertraining.tapestry.webapp.pages.admin The AppPrope

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
The page I'm trying to use it with is called "Presentations". It's located in com.eveo.speakertraining.tapestry.webapp.pages.admin The AppPropertyEditBlocks.java and AppPropertyEditBlocks.tml files are located in com.eveo.speakertraining.tapestry.webapp.components Should these files not be in

Re: Build same services with different Id (from dynamic list)

2009-02-12 Thread Howard Lewis Ship
Tapestry's IoC container runs in distinct stages; there's a setup stage which involves the analysis to identify what services exist and how they are built (i.e., including decoration, advice, lifecycle and configuration) then the operational phase, and a short shutdown phase. The ServiceBinder() h

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread Robert Zeigler
As HLS said already, the exception is that it can't locate the page "AppPropertyEditBlocks". What is the name of the page on which you are putting your BeanEditForm-customizing blocks? What package is it in? Robert On Feb 12, 2009, at 2/123:32 PM , bob_k wrote: I'm running into the same

Re: t5: BeanEditform and Timestamp

2009-02-12 Thread bob_k
I'm running into the same problem regarding customizing BeanEditForm. If someone was able to solve this problem could they post the solution? Thanks. -Bob Howard Lewis Ship wrote: > > That looks like it can't find your AppPropertyEditBlocks class. > What's the full package name? Have you v

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Robert Zeigler
0) I don't usually extend components; I prefer building things based on composition. That said: 2) This will work iff your parent class also implements a "defaultName" method that the subclass overrides. Just tried it to be sure. 3) You can provide getters and setters for the property. P

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Yunhua Sang
Hi Robert, 2) I tried your way, it doesn't work; it doesn't work even back to 5.0.18. 3) I don't think the get/set methods would work for parameters; look at ParameterWorker class, it's fairly complicated because of the implementation of the binding magic. Thanks, Richard On Thu, Feb 12, 2009 a

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Thiago H. de Paula Figueiredo
Em Thu, 12 Feb 2009 16:56:09 -0300, Robert Zeigler escreveu: 3) Otherwise, access in the child via code is mediated through normal java channels: create a public (or protected) getter and setter in the Parent class. I guess he's trying to subclass Tapestry core components. This was alrea

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Robert Zeigler
1) Since Child extends Parent, it already has a name @Parameter. 2) If you want to provide the default in the child, you can always provide the "default" method: String defaultName() { return "Tom"; } 3) Otherwise, access in the child via code is mediated through

Re: [T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Thiago H. de Paula Figueiredo
Em Thu, 12 Feb 2009 15:16:00 -0300, Dave Greggory escreveu: This javascript is added to the page by Tapestry and how can modify it to include select field value? "/my-web/stuff/create.showmystufflink/" + getSelectFieldValue() Nothing a little bit of RenderSupport and Prototype cannot do.

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Yunhua Sang
Hi Howard, Can you show me in a child component, how to access a parameter defined in parent by using another way? I cannot find api which isn't internal about it. By the way, seems it's also diffcult to provide default binding for a parameter within parent because function bindParameter(String pa

Re: [T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Dave Greggory
Thanks, Thiago. For option 3: I can get the value from the select using Javascript, but how do I add it to the link URL? The ActionLink's URL is built through Tapestry, Tapestry.init({"zone":["myZone"],"linkZone":[["showMyStuffLink","myZone","/my-web/stuff/create.showmystufflink"]]}); This j

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Christian Edward Gruber
Jeez - I didn't read the example well. I was not thinking @Parameter, I was thinking @Property. A parameter means something else entirely. Sorry, Christian. On 12-Feb-09, at 11:35 , Howard Lewis Ship wrote: I think even that is ambiguous. On Thu, Feb 12, 2009 at 8:29 AM, Christian Edward

T5 : How to add a javascript file by its url ?

2009-02-12 Thread Stephane Decleire
How can one add a javascript file to a Tapestry component by its url and not its path ? It would be usefull to integrate other framework like GoogleMaps wich has this kind of url : http://maps.google.com/maps?file=api&v=2.x&key=...";> or DWR with those urls : Stephane

Re: [T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Thiago H. de Paula Figueiredo
Em Thu, 12 Feb 2009 13:32:13 -0300, Dave Greggory escreveu: But Tapestry does not use the showStuff(Item selectedItem) method and it throws an Exception in AjaxComponentEventRequestHandler saying it cannot find my event handler. It does not find because there was no context in your Actio

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Howard Lewis Ship
I think even that is ambiguous. On Thu, Feb 12, 2009 at 8:29 AM, Christian Edward Gruber wrote: > Would an @OverrideDefault annotation be appropriate here as a signal? (I'd > just say just @Override for readability, but that's been used) > > Christian > > On 12-Feb-09, at 11:10 , Howard Lewis Sh

[T5] Updating Zone with Action Link using Select field value as Context

2009-02-12 Thread Dave Greggory
When the user clicks on the action link, I want to get the currently selected value from select field and use that as the context when calling the event. @Component private Zone myZone; @Component(parameters = {"context=selectedItem", "zone=myZone"}) private ActionLink showMyStuffLink;

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Christian Edward Gruber
Would an @OverrideDefault annotation be appropriate here as a signal? (I'd just say just @Override for readability, but that's been used) Christian On 12-Feb-09, at 11:10 , Howard Lewis Ship wrote: It looks to me like theres an ambiguity here: I don't think a child component should be allow

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Howard Lewis Ship
It looks to me like theres an ambiguity here: I don't think a child component should be allowed to declare a second parameter, "name" in this example, that is already defined in a super-class. On Wed, Feb 11, 2009 at 12:20 PM, Yunhua Sang wrote: > Hello Howard, > > It turns out the error occurs o

Re: [T5] Something like GlazedLists for T5?

2009-02-12 Thread Otho
Ok, I solved it finally. The solution is quite simple, but the way to there was rocky :) I found the base of the solution here: http://www.webdeveloper.com/forum/showthread.php?t=172865 Including the Javascript in the final posting enables every link in the page to get programmatically "clicked"

Build same services with different Id (from dynamic list)

2009-02-12 Thread foror
How to create services without "static bind(ServiceBinder)" and "buildMethod" like this: AppModule { void contributeIdContainer(Configuration config) { config.add("someId-1"); config.add("someId-2"); } } InternalModule { ... ids = idContainer.getAll(); for (String

T5: listening for custom events from components in injected blocks

2009-02-12 Thread Kristian Marinkovic
hi, is there a way to add an event listener for a event that was triggered by a component which was added to the current page through a block from another page? some pseudo code: Page1 { @Comonent({2parameters=prop:navigation"}) private Delegate delegate; public Block getNa

T5: Components listening to page form events

2009-02-12 Thread Inge Solvoll
Hi! I have a component that needs to listen to events from a form that resides in the containing page. The component takes care of viewing a list of selectable items, and this list and its PrimaryKeyEncoder needs to be initialized through the prepare event of the containing form. In my mind, it s

GridSortModel

2009-02-12 Thread moritzgilsdorf
Hello, I was wondering if there's any way to specify how a Grid is sorted before it's being rendered. Great would be to be able to sort using multiple columns (i.e. first column a ascending then second column b descending). I found this parameter "sortModel" in the documentation which sounded pr

Re: TAP5: Injecting dependencies into an ApplicationStateCreator

2009-02-12 Thread Ulrich Stärk
Please read http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html and specifically the part about dependency injection. HTH, Uli Rico Landefeld schrieb: Hi, I try to inject a service into a application state creator, but when create() is called, the service is not injected and I get

Re: Switch from Prototype to jQuery?

2009-02-12 Thread Davor Hrg
Tapestry core can benefit from using less library code as possible.Use few utility functions from the days crossbrowser libraries just started, and those that are not too much to implement. high level stuff from jquery protoype dojo yui etc. are all different in the approach. a list should be ma

TAP5: Injecting dependencies into an ApplicationStateCreator

2009-02-12 Thread Rico Landefeld
Hi, I try to inject a service into a application state creator, but when create() is called, the service is not injected and I get a npe. But when I inject this service into a page it works. Here is my code: public class FacetConfigurationsStateCreator implements ApplicationStateCreator>{