Re: Problem wuth internacionalization

2008-05-13 Thread Michael Gerzabek
It depends on how your Module is named. If you name it PACKAGE.services.StartModule then it's Start.properties (Start_LOCALE.properties). The archetype creates an AppModule.java file, so the right name is App.properties. Beginning from 5.0.6 - I suspect - you further have to put your

T4 tapestry.form.submitAsync delayed?

2008-05-13 Thread Paul Stanton
I've noticed from watching client side and server side logs that when tapestry.form.submitAsync is called, it seems to go into a form of stack, and is the request is only eventually made once a previous async submit has responded. I'm fairly sure of this because I had a js function setting a

Re: Problem wuth internacionalization

2008-05-13 Thread Igoor
People thanks a lot :))) I solved a problem: dhning-2 wrote: Hi, What's your tapestry version? If is the latest version, you should not put the start.tml, start.properties in WEB-INF. They should be in parent level of WEB-INF(src/main/webapp/) or in

RE: T5: Calling method with parameter in prop

2008-05-13 Thread Blower, Andy
This should be done with care though IMO. To me, one big advantage of T5 over JSP's with EL or OGNL is that you are forced to keep the logic out of the templates for the most part. Simple comparisons and single parameter accessors seem okay, but I've always been surprised when seeing people on

Re: Access to ServletContext

2008-05-13 Thread Sven Homburg
public static void contributeSchedulerFactory(@InjectService(ApplicationGlobals)ApplicationGlobals applicationGlobals, MappedConfigurationString, String configuration) { String configPath = applicationGlobals.getServletContext().getRealPath(/WEB-INF/conf);

T5 + DWR integration

2008-05-13 Thread Leon Derks
How easy is it to integrate T5 with DWR? Are there examples of how to do this? How do I need to configure the dwr.xml file? Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Access to ServletContext

2008-05-13 Thread Peter Stavrinides
Thanks Sven !! - Original Message - From: Sven Homburg [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 13 May, 2008 12:43:40 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Access to ServletContext public static void

What happened to Tapestry 5 Layout component blog article

2008-05-13 Thread Blower, Andy
This blog seems to have vanished: http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html As linked to from the wiki. Anyone know what's happened or have an archive of this? I found it very useful. - To

Re: T4 tapestry.form.submitAsync delayed?

2008-05-13 Thread Andreas Andreou
Take a look at http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/core.js tapestry.bind uses dojo.io.queueBind(parms) which should explain what you're seeing so, it seems that you just need to replace queueBind with your custom version On Tue, May

Re: problem in defining dojo.registerModulePath

2008-05-13 Thread Andreas Andreou
Try enabling friendly urls for assets contribution configuration-id=tapestry.url.ServiceEncoders asset-encoder id=asset path=/assets/ /contribution On Tue, May 13, 2008 at 8:23 AM, abhilash [EMAIL PROTECTED] wrote: Hi all, I am using Tapestry4.1.5 I have a custom widget.When i try to access

Re: T5 Blank option for select component

2008-05-13 Thread nille hammer
Hi Toby, the correct attribute is t:blankLabel, not t:blankValue. And I recommend you use a message from a message catalog, except a literal String. Regards nillehammer - original Nachricht Betreff: T5 Blank option for select component Gesendet: Mo, 12. Mai 2008 Von: Toby

Re: [ANN] equanda 0.9 released

2008-05-13 Thread Joachim Van der Auwera
adasal wrote: Joachim what are your thoughts on OWL export of the object model? Where would that be used? The main use for me is for documentation purposes. It is very practical to take the owl model, import that into protégé and use the Jambalaya plugin to create a graphical representation

Re: T5 + DWR integration

2008-05-13 Thread Renat Zubairov
Hi That's an interesting topic. Actually we had discussed it once with Igor, and it seems that it shouldn't be too hard. The question is which objects from the server-side you want to access from DWR? If you will answer this question then you can just start a DWR servlet in your web application

What ist the advantage of ActionLink compared to EventLink

2008-05-13 Thread nille hammer
Hi all, using an ActionLink one has to assign an id. By this id the event hander is determined. So far so easy. But having assigned an id, a particular ActionLink can only be used once per template. With EventLink one can assign an event attribute and can put several links into a template

Questions about Textarea and submit button

2008-05-13 Thread amebaliu
I make the component called button which is different compare with submit component. The questions I have now is. how can I get the value from textarea without a submit button. t:textArea t:value=task t:id=editplace / -- I put the value = task And in the page class, i put public void

Can struts 1 and tapestry 5 play together nicely?

2008-05-13 Thread Lance Java
We are about to add a new section to an existing struts1 application and I was hoping that I could implement the new section using tapestry 5 with a view to migrating some of the existing pages to tapestry 5 in the future. The existing application has a couple of servlets for generating images

T5 : Is it possible to put a zone inside another zone ?

2008-05-13 Thread Stephane Decleire
Hi, I have a template wich look like this one : ... t:grid source=clients row=client t:parameter name=nameCell t:actionlink t:id=clientLink context=client.id zone=clientZone${client.name}/t:actionlink /t:parameter /t:grid t:zone t:id=clientZone/ t:block t:id=clientBlock

Mixin render phases

2008-05-13 Thread Toby Hobson
Hi guys, I'm trying to show/hide an html element based on Robert's recent suggestion (Re: how do we secure our views) but I've hit a minor problem. The mixin's @BeforeRender method is being called but then tapestry complains that the component (textArea) is unbalanced. I'm using the component

RE: Mixin render phases

2008-05-13 Thread Kristian Marinkovic
hi toby, i think i had the same issue some time ago i was also trying to create a mixin for enabled/disabled handling by short circuiting the render phases. but the render phases (or at least the short circuiting) do not work as i was expecting :). maybe you can take a look at the problem

T5: ASO in HttpServletRequestFilter

2008-05-13 Thread kranga
Version: 5.0.11 It appears that if you inject an application state manager into an HttpServletRequestFilter and try to access an ASO, you get a null pointer exception since the Tapestry Request object has still not been set up. This means that if you do need to access an ASO, you are forced to

Re: T5: ASO in HttpServletRequestFilter

2008-05-13 Thread kranga
Obvious: Because you can't access the HttpServletRequest from within the RequestFilter to access methods such as getRequestUri() (needed by 3rd party library being called in the filter). If I didn't have access to the ASO manager, then I could write up the filter as a traditional Servlet

Re: T5: ASO in HttpServletRequestFilter

2008-05-13 Thread Kristian Marinkovic
the RequestGlobals service can return the HttpServletRequest and HttpServletResponse objects (getters) ... therefore you could implement RequestFilter as well :) g, kris kranga [EMAIL PROTECTED] 13.05.2008 16:51 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry

Re: update select based on first select

2008-05-13 Thread Chris Lewis
Leon, I can't tell from that code where/how you've used the OnEvent mixin. I see the @OnEvent annotation, but that's unrelated (as you probably realize). This exact use case was discussed recently - see:

Re: Can struts 1 and tapestry 5 play together nicely?

2008-05-13 Thread Toby Hobson
I'm actually done this (albeit using Spring MVC but similar issues apply). In general it's pretty easy - the new activation context makes it much easier to point to tapestry pages from a non-tapestry base (or indeed a bookmark). For example you can now call

Re: T5: ASO in HttpServletRequestFilter

2008-05-13 Thread Robert Zeigler
Why not use a RequestFilter, instead? You can access the ApplicationStateManager from withing a RequestFilter. Robert On May 13, 2008, at 5/139:41 AM , kranga wrote: Version: 5.0.11 It appears that if you inject an application state manager into an HttpServletRequestFilter and try to access

Re: T5 + DWR integration

2008-05-13 Thread Leon Derks
I don't have that topic. Is it easy to integrate DWR with tapestry, without Spring? Leon Renat Zubairov wrote: Hi That's an interesting topic. Actually we had discussed it once with Igor, and it seems that it shouldn't be too hard. The question is which objects from the server-side you want

update select based on first select

2008-05-13 Thread Leon Derks
I want to update a select, based on a value from another select. I have tried the OnEvent mixin from the t5components, but only the first selected value is printed to the screen. When I select another value after that, it always prints the first selected value. How can I do this with

Re: T5: How do we secure our views?

2008-05-13 Thread Kristian Marinkovic
mixins are the best fit for the job, but there are some pitfalls you have to be aware of when used with certain components (see https://issues.apache.org/jira/browse/TAPESTRY-1805) but there are other alternatives: 1) use a delegate and choose which representation of a page fragment is to be

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
So if I've read the JIRA correctly does this mean that simply implementing @BeginRender and @AfterRender in my mixin is not enough - I would actually have the modify the component (in this case textarea)? to check for short-circuiting? Toby - Original Message From: Kristian Marinkovic

Re: update select based on first select

2008-05-13 Thread Sven Homburg
your page class: @Property private ValueEnum _selectedItem; @Component(parameters = {model=testModel, value=selectedItem, event=change, onCompleteCallback=onSelectCompleteFunction}) @Mixins(value = t5components/OnEvent) private Select _selectField; public SelectModel

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
Something else i've noticed ... if i modify my mixin to always return true during the @BeginRender phase I still get the exception! - Original Message From: Toby Hobson [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 13 May, 2008 4:52:33 PM Subject: Re:

Re: update select based on first select

2008-05-13 Thread Sven Homburg
sorry, one typo @OnEvent(component = *selectField*, value = change) public void onChange(String value) { System.err.println(value) } 2008/5/13 Sven Homburg [EMAIL PROTECTED]: your page class: @Property private ValueEnum _selectedItem; @Component(parameters =

Re: Mixin render phases

2008-05-13 Thread Robert Zeigler
Hi Toby, Try switching to @SetupRender. For /most/ things, doing: @SetupRender public boolean setup() { return false; } Is going to work. But check out the jira referenced by Kristian. Robert On May 13, 2008, at 5/1310:55 AM , Toby Hobson wrote: Something else i've noticed ... if i modify

Re: T5: Calling method with parameter in prop

2008-05-13 Thread Josh Canfield
On Tue, May 13, 2008 at 2:21 AM, Blower, Andy [EMAIL PROTECTED] wrote: This should be done with care though IMO. To me, one big advantage of T5 over JSP's with EL or OGNL is that you are forced to keep the logic out of the templates for the most part. Simple comparisons and single parameter

Re: Mixin render phases

2008-05-13 Thread Robert Zeigler
That appears to be the result of (from: http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html) : If a method returns a true or false value, this will short circuit processing. Other methods within the phase that would ordinarily be invoked will not be invoked. Most

Re: Questions about Textarea and submit button

2008-05-13 Thread Josh Canfield
I make the component called button which is different compare with submit component. The questions I have now is. how can I get the value from textarea without a submit button. You haven't shown us what your button does. Are you submitting the form that the textarea is in? Josh On Tue, May

Re: Mixin render phases

2008-05-13 Thread Toby Hobson
OK that makes sense ... I thought that returning true meant carry on as normal Thanks guys Toby - Original Message From: Robert Zeigler [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 13 May, 2008 5:59:51 PM Subject: Re: Mixin render phases That appears

Re: What ist the advantage of ActionLink compared to EventLink

2008-05-13 Thread Howard Lewis Ship
EventLink occured to me later than ActionLink, that's all. Perhaps if I had thought of EventLink first, there wouldn't be ActionLink. EventLink URL's need to explicitly identify the event name in the URL, i.e., /page:myevent. ActionLink's need to identify the component instead:

Pallete component behavior

2008-05-13 Thread Sven Homburg
hi there, if i click on the select/deselect button of the palette component a page submit is initiated. is this the wanted behavior ? -- with regards Sven Homburg http://tapestry5-components.googlecode.com

Re: Pallete component behavior

2008-05-13 Thread Howard Lewis Ship
No, and that's odd behavior. I've tested Palette on FF Mac and FF Win and IE Win, so something else is going on. Any chance you have some client-side script attaching to those buttons? On Tue, May 13, 2008 at 10:28 AM, Sven Homburg [EMAIL PROTECTED] wrote: hi there, if i click on the

Re: T5: Calling method with parameter in prop

2008-05-13 Thread Toby Hobson
I'm not sure I like the idea of a framework FORCING me to do something, IMHO poorly structured code should be prevented by coding standards and peer reviews, not a rigid framework. Just moving the logic from a JSP/Template to a Java class doesn't necessarily mean it's cleaner. Sometimes it is

Re: Pallete component behavior

2008-05-13 Thread Robert Zeigler
I've seen the behavior as well, in FF3 beta 5, Not sure if it's a FF3 bug, or a javascript bug, but given that Palette works in Safari 2, 3, IE 5.5, 6, 7, FF2 (win and mac), and opera, my initial reaction when I experienced the bug was to think: Well, I /am/ using a beta browser...

Changing a components property at runtime

2008-05-13 Thread Toby Hobson
This may sound like a simple question but I can't work out how to change a property programatically. Basically I'd like to disable a component from an event handler. I know I can pass params in via TML or using annotations but I can't find any setX() methods on the components Thanks Toby

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
Toby, Components are just POJOs - as far as your application code they have no common type; no common interface for such actions. There is a common interface but it is fitted onto component classes at runtime. If you need to set properties/call methods, you must provide such interfaces. chris

Re: Changing a components property at runtime

2008-05-13 Thread Toby Hobson
Thanks Chris, Does this mean that there is no easy way to disable a textfield at runtime for instance? Would a mixin work for this? Toby - Original Message From: Chris Lewis [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 13 May, 2008 7:10:16 PM Subject:

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
I seems like you'd want to use the 'disabled' parameter as Robert mentioned, which many components have. Perhaps your dynamic behavior could be solved by storing a flag in a page property and then using something like: input t:type=textfield disabled=disabled value=username/ Where disabled would

Re: Changing a components property at runtime

2008-05-13 Thread Robert Zeigler
Chris correctly pointed out that classes are POJOs, but I'm guessing he thought you were referring to your own components. But I think you're thinking about framework-provided components, where you don't have the easy ability to get/set properties. First, for many of these properties, there

Re: Changing a components property at runtime

2008-05-13 Thread Robert Zeigler
Is disabled a parameter for the component? If so, then why not make the dynamic disabled a property of the parent component or page, and bind the component parameter to the parent property? For example: the component: @Parameter boolean disabled; ... The page or component that

Re: Changing a components property at runtime

2008-05-13 Thread Toby Hobson
Yep, that makes sense - i was thinking that the parameter specified in the annotation was a literal, but it's a prop so that will work nicely Thanks guys - Original Message From: Robert Zeigler [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 13 May, 2008

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
I just realized I repeated Rob, so listen to him :-) Chris Lewis wrote: I seems like you'd want to use the 'disabled' parameter as Robert mentioned, which many components have. Perhaps your dynamic behavior could be solved by storing a flag in a page property and then using something like:

Re: Pallete component behavior

2008-05-13 Thread Sven Homburg
sorry for my less detailed question. i tested it now with IE6/FF2 too, only the FF3beta5 has this behaivor 2008/5/13 Robert Zeigler [EMAIL PROTECTED]: I've seen the behavior as well, in FF3 beta 5, Not sure if it's a FF3 bug, or a javascript bug, but given that Palette works in Safari 2, 3,

Regexp within a custom component

2008-05-13 Thread Toby Hobson
Hello again :) I've just added some validation to my custom component and I'm having trouble with the regexp validator. As per the forms tutorial on the T5 site I've placed a @Validate annotation on my getEmail() accessor: @Validate(required,regexp) public String getEmail() {

Re: Regexp within a custom component

2008-05-13 Thread Toby Hobson
Fixed it! It was because I defined the textfield as emailText, but the property as email. so my message catalogue now looks like emailText-regexp=(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+)* emailText-regexp-message=that appears to be an invalid email format, please check it On a minor point I think

Client side validation messages not re-displayed

2008-05-13 Thread Toby Hobson
I've just noticed something: If I have two validators and validation fails twice, I only see one error message. E.g. @Validator(required, regexp); public String getEmail() { return email; } message catalogue: email-required=please enter your email

Re: T5: Calling method with parameter in prop

2008-05-13 Thread Josh Canfield
Hey Toby, I'm not sure I like the idea of a framework FORCING me to do something I agree with the sentiment, but in this case isn't it misplaced? I suppose you are forced to consider which binding implementation to use, but that feels more like flexibility. Tapestry should make integrating and

Re: Questions about Textarea and submit button

2008-05-13 Thread amebaliu
Sorry, i forgot to describe the functions of the button. The button is for doing the ajax, like retrieve the results from a arraylist in page class, and display them when i click it. but not for submitting the form, they are a normal button and a normal textarea. joshcanfield wrote: I make

Re: T5 + DWR integration

2008-05-13 Thread Christian Riedel
I tried it out and it worked quite easy. Spring is not a dependency of DWR as far as I know, so... ;) Leon Derks schrieb: I don't have that topic. Is it easy to integrate DWR with tapestry, without Spring? Leon Renat Zubairov wrote: Hi That's an interesting topic. Actually we had

Questions about T5 html markup generated

2008-05-13 Thread Joe Chen
Hi, I've noticed some quirks about the html generated by T5, and I was wondering how I could go about changes these things. I would appreciate it if someone could point out how to fix these things. 1) When using t:body/, an additional attribute xmlns= http://www.w3.org/1999/xhtml; is added to

Re: Questions about Textarea and submit button

2008-05-13 Thread Josh Canfield
Sorry, i forgot to describe the functions of the button. No worries, if you want a good answer though, you'll have to ask your question with more details. The button is for doing the ajax, like retrieve the results from a arraylist in page class, and display them when i click it. but not for

Re: Questions about Textarea and submit button

2008-05-13 Thread amebaliu
Hi josh, Thanks for the help, I will try the zone 2nite.. thanks a lot :working::working: joshcanfield wrote: Sorry, i forgot to describe the functions of the button. No worries, if you want a good answer though, you'll have to ask your question with more details. The button is for doing

DatePicker component to be displayed always , not only when clicked on datepicker icon.

2008-05-13 Thread Sumanth Dupuguntla
Hi all, Is there any way to display the date picker widget always (not only when clicked on icon). please help me. I tried giving toggle = false. no use. Thnks in advance, Sumanth.D www.indygo.in