Re: @EventListener in a Dialog

2008-04-16 Thread Andreas Andreou
Hmm... can't probably help much, but i've seen quite a few fixes regarding EventListener in the latest 4.1.6-SNAPSHOT Can you give it a try? http://people.apache.org/maven-snapshot-repository/org/apache/tapestry/tapestry-framework/4.1.6-SNAPSHOT/ On Thu, Apr 17, 2008 at 9:12 AM, abhilash <[EMAI

Re: @EventListener in a Dialog

2008-04-16 Thread abhilash
Yes,i have a "[EMAIL PROTECTED]" inside my Dialog.This is an ajax Form.My @EventListener is @EventListener(elements = "typeChanged", events = "onchange", submitForm = "ListForm",async=true) public void watchText(IRequestCycle cycle) { --- - - cycl

Re: @EventListener in a Dialog

2008-04-16 Thread Andreas Andreou
Have you read the Dialog gotchas at http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html ? Does your Dialog completely contain a form? On Thu, Apr 17, 2008 at 8:25 AM, abhilash <[EMAIL PROTECTED]> wrote: > > Hi , > I am using tapestry 4.1.5 > I have a property selection model in a

@EventListener in a Dialog

2008-04-16 Thread abhilash
Hi , I am using tapestry 4.1.5 I have a property selection model in a dialog.Propertyselection model is associated with an onchange event.But my @EventListener method is not getting called when onchange happens.I dont know where i am doing wrong? any ideas? Thanks in advance. -- View this message

Re: issus with tapestry4.1.5

2008-04-16 Thread abhilash
Thank you.. abhilash wrote: > > Hi all, > I am using tapestry4.1.5. > How can check the request made is ajaxrequest or normal request? > any ideas? > Thanks in advance. > -- View this message in context: http://www.nabble.com/issus-with-tapestry4.1.5-tp16720756p16739098.html Sent from the Ta

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Howard Lewis Ship
Do you still have a DateField inside your FlexDateField? Could you show the full template and the HTML output? I think we're not quite hooking up here. On Wed, Apr 16, 2008 at 7:16 PM, Bill Holloway <[EMAIL PROTECTED]> wrote: > If I add "_0" to elementName, I'm fine. But that's fairly brittle :

Re: AW: AW: Getting Answers on the User List

2008-04-16 Thread Lindsay Steele
Ignoring trolls works well with one off messages trying to get old arguments started but this case is different. This person is beyond a troll and has gone to a concerted effort to spread FUD and mis-information to the point of damaging a lot of good work. I think the people that have politely re

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Bill Holloway
If I add "_0" to elementName, I'm fine. But that's fairly brittle :) On Wed, Apr 16, 2008 at 8:47 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Well, binding the clientId parameter of DateField can influence what > the control name will be (though it will be uniqued). > > I still don't unde

how to use t5 complete mixin

2008-04-16 Thread luna_guo
t5 beta: Start.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> tutorial1 Start Page Start.java: import java.util.List; import org.apache.tapestry.annotations.Persist; import org.apache.tapestry.ioc.internal.util.CollectionFactory; publi

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Bill Holloway
Well, I've got this simplified down a lot. Forget the beaneditform and apppropertyedit block. Here we go: TestPage.tml has I construct a proper FlexDate for myFlexDate in testpage.java. There is no no-arg constructor for flexdate. Flex date editor looks like

Re: AW: AW: Getting Answers on the User List

2008-04-16 Thread Petros Petrou
I don't mean to be rude but really... WHY DO YOU GUYS EVEN REPLY TO THIS GUY Can't you see how much fun he is having. By replying to a discussion he is part of, I feel I am his puppet and my job is to keep entertaining him. This is what we are all doing by reploying to him. I am sure I am going

Re: T5 component-action-not-serializable context

2008-04-16 Thread Howard Lewis Ship
Have to be careful to ensure that the ComponentAction is serializable. Be careful to make it a *static* inner class (a ComponentAction is almost always an inner class). On Wed, Apr 16, 2008 at 11:01 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Rick, > > Do you have a stack trace and perh

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Howard Lewis Ship
Well, binding the clientId parameter of DateField can influence what the control name will be (though it will be uniqued). I still don't understand exactly what you are going to pull out of the request inside the FlexDateEditor's processSubmission(). The DateField is almost undoubtedly scheduled

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Bill Holloway
I guess one way to look at it is that in AppPropertyEditBlocks.java, I can't have ! Bill On Wed, Apr 16, 2008 at 6:21 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Hard to tell without checking the code, but: looks like the > FlexDataEditor delegates all its behavior to the built-in Dat

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Bill Holloway
Almost, processSubmission creates a flexdate from the date and sticks that into the parameter "flexDate" of FlexDateEditor." My bean has FlexDate properties, 4 of them. That causes the FlexDateEditor to be shown via the AppPropertyEditBlock. The datefield gets date1 as a property, which comes fr

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Peter Beshai
Not sure if this is the best approach, but it might work: try adding a clientId parameter to FlexDate and forwarding it to the date field. Sorry, I haven't tested it! FlexDate.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> FlexDate.java: @Parameter(defaultPrefix = TapestryConst

Re: T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Howard Lewis Ship
Hard to tell without checking the code, but: looks like the FlexDataEditor delegates all its behavior to the built-in DateField component, right? So the DateField is the component that (at render) negotiates an control name (i.e., FormSupport.allocateControlName() ), and then pushes the parsed an

T5: BeanForm, processSubmission, AppPropertyEditBlock help

2008-04-16 Thread Bill Holloway
I've got a custom data type called FlexDate, and I've made a simple component for it which (for now) just holds a date field. It will get more complex later. I put this editor into my AppPropertyEditBlocks.tml. Code is below. Then I have a data object with an instance var of FlexDate type. I

Re: Environment services are not stateless ...??

2008-04-16 Thread Fidel Chavarria
It works! Thanks in advance ..! joshcanfield wrote: > > This doesn't really have anything to do with the Environment, the > problem is with your FilterContainer property. > > Every time tapestry pulls your page from the pool (or puts it I don't > recall which) it initializes the page propert

Re: Environment services are not stateless ...??

2008-04-16 Thread Fidel Chavarria
It works! Thanks in advance ..! Fidel Chavarria wrote: > > Hi, I 've a list of filter components to make the user experience more > confortable when he is looking at a list of issues in my app. I use > Tapestry radiogroup component technique to enclose those filtters in a > FilterGroup componen

Re: Environment services are not stateless ...??

2008-04-16 Thread Josh Canfield
This doesn't really have anything to do with the Environment, the problem is with your FilterContainer property. Every time tapestry pulls your page from the pool (or puts it I don't recall which) it initializes the page properties with the values you set in the constructor or set in the property

Environment services are not stateless ...??

2008-04-16 Thread Fidel Chavarria
Hi, I 've a list of filter components to make the user experience more confortable when he is looking at a list of issues in my app. I use Tapestry radiogroup component technique to enclose those filtters in a FilterGroup component, It works ..! but it's not stateless. when I login to my applicati

Re: T5 onActive method (multiple parameters)

2008-04-16 Thread Josh Canfield
Hmm... what version of tapestry are you using. I created a little test for 5.0.11 and it looks right to me (although the Object[] came at the end I'm not sure where that one is supposed to fit in). http://localhost:8080/start/test/this/args @OnEvent("activate") public void alpha()

Re: include

2008-04-16 Thread Josh Canfield
> This approach is somewhat clumsy when it comes to a portal-like scenario > where there is no longer a "browse items" "page" but rather the user is > manipulating components I guess it depends on how you organize your thoughts... I can see a pretty clear path to implementing a portal using tapest

Re: ValidationMessages.properties

2008-04-16 Thread Adriaan Joubert
Excellent, thanks a lot, Peter. Looked in the tapestry init for the registration of the validation functions, but not for the message catalogs. I've added a page to the wiki with a description of adding validators. For anybody else with the same problems look at http://wiki.apache.org/tapestry/Ta

Re: T5 component-action-not-serializable context

2008-04-16 Thread Filip S. Adamsen
Hi Rick, Do you have a stack trace and perhaps some code? There isn't much we can do without this. -Filip On 2008-04-16 19:05, Riccardo Ruffilli wrote: Hi everybody, could anybody explain me the correct context of component action not serializable exeption that it's not so clear for me? tha

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Filip S. Adamsen
There's an equivalent antiResource(s)Locking attribute as well that I think you might need. I use Jetty for all my development, though, and only test in Tomcat before deploying my applications. -Filip On 2008-04-16 18:45, Javier Molina wrote: Do you work on Windows? I've changed my packaging

Re : T5 actionlink, ajax zone and user onclick handler

2008-04-16 Thread Julien HENRY
Hi, Instead of trying to deal with onclick html attribute you should use DOM lvl 2 events: http://www.prototypejs.org/api/event/observe The following JavaScript should work (not tested): Event.observe($('deleteLink'), 'click', function(event) {confirm('are you sure to delete this record ?')});

T5 actionlink, ajax zone and user onclick handler

2008-04-16 Thread Luca Fossato
Hi all, I'm playing with actionlink and zones to understand T5 ajax functions (Tapestry 5.0.11). I'd like to define an actionlink like this one: delete where the onclick handler uses a javascript confirmation dialog to ask to the user if he/she wants to delete the selected record. It seems to me

Re: ValidationMessages.properties

2008-04-16 Thread Peter Beshai
In your AppModule: If your properties file is at : org.myorg.myapp.ValidationMessages.properties, add: public void contributeValidationMessagesSource(Configuration configuration) { configuration.add("org/myorg/myapp/ValidationMessages"); } It's very useful to check how Tapestry sets itse

ValidationMessages.properties

2008-04-16 Thread Adriaan Joubert
Hi, I added a couple of validators to check for int/double values in text fields. All works great, except that Tapestry cannot find my messages. I've put messages in app.properties and also in ValidationMessages.properties, but no matter where I put them they are not being picked up. Anybody got a

T5 component-action-not-serializable context

2008-04-16 Thread Riccardo Ruffilli
Hi everybody, could anybody explain me the correct context of component action not serializable exeption that it's not so clear for me? thanks in advance -Rick -- View this message in context: http://www.nabble.com/T5-component-action-not-serializable-context-tp16723764p16723764.html Sent fro

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Javier Molina
Do you work on Windows? I've changed my packaging to build a .jar with my classes and put it in WEB-INF/lib instead of having the exploded classes in WEB-INF/classes but once the webapp is started, I can't replace the .jar, the file is locked. I have tried to set antiJARLocking="true" in the el

Re: T5 onActive method (multiple parameters)

2008-04-16 Thread Szemere Szemere
On further experimentation I find that the onActivate methods are selected by reverse alphabetical order and by decreasing number of parameters. Multiple Parameters in onActivateMultiple Parameters in onActivateShall I reopen https://issues.apache.org/jira/browse/TAPESTRY-1730 ? Szemere On Mon

Re: Templating/Layout question

2008-04-16 Thread Peter Beshai
I don't fully understand what you're looking for, but maybe this will help: Use parameters with the layout component. This has the same effect as 'multiple t:body' elements. For example, Layout: ...

Templating/Layout question

2008-04-16 Thread Jan Vissers
Hi, Consider this Layout component: Suppose my 'body' can contain one or more 'Panel's. I want this Panel to have some standard UI assets and functionality, but most of it is 'free format'. Basically the 'free format

Re: AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Filip S. Adamsen
I believe the reloading is the only Tapestry-related thing affected by this. But I use Maven and archiveClasses in both development and production so I can't say for sure. -Filip On 2008-04-16 16:38, Stranzenbach, Ralf wrote: Hi. Does this "tomcat bug" affect only the class/page reloading p

AW: Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Stranzenbach, Ralf
Hi. Does this "tomcat bug" affect only the class/page reloading process or is there any other significant problem that may arise during development / production. I've tried to create a sample application using Tomcat + Tapestry 5.0.10 and everything seems to work fine beside that reloading is

Re: Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Filip S. Adamsen
Hi, Due to the way class loaders work in Tomcat you have to jar your classes etc. and put the jar into WEB-INF/lib. http://tapestry.apache.org/tapestry5/tomcat.html -Filip On 2008-04-16 13:42, Javier Molina wrote: I'm working with Tapestry 5.0.11 and Tomcat 6 (tested on 6.0.14 and 6.0.16).

Automatic class reloading on Tomcat 6 not working for me

2008-04-16 Thread Javier Molina
I'm working with Tapestry 5.0.11 and Tomcat 6 (tested on 6.0.14 and 6.0.16). Automatic class reloading doesn't work for pages (there are no components yet in this test application, so I haven't checked that). Jetty 6 works fine and does autoreload pages. Is this a known issue? Do I have to conf

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Filip S. Adamsen
Unless this guy has four names he's in violation of at least one Gmail Program Policy: "Prohibited Actions In addition to (and/or as some examples of) the violations described in Section 3 of the Terms of Use, users may not: [...] * Impersonate another person (via the use of an email address

Re: T5 #TAPESTRY-2058 bug

2008-04-16 Thread Filip S. Adamsen
Yeah, I would like to have this fixed as well. -Filip On 2008-04-16 10:19, Foror wrote: Bug in 5.1 category. Please fix it in 5.0.x release. It simple: class TextStreamResponse ... + private String _charset; // charset get from _contentType(";charset=UTF-8")

Re: include

2008-04-16 Thread Filip S. Adamsen
Hot reloading of classes and templates comes at a cost. That being said, you can do a lot of things in Tapestry with blocks, delegates, render phase methods, and AJAX. It's just a matter of learning how to put it all together. -Filip On 2008-04-16 07:19, János Jarecsni wrote: One more thing

Re: T5 regExp problem

2008-04-16 Thread Filip S. Adamsen
That expression does exactly what you ask of it: checks if there is a combination of five digits *somewhere* in the input string. You'll have to anchor the expression to do what you really want. So ^\d{5}$ should work. -Filip On 2008-04-16 02:39, Sige wrote: i might have found the reason: i

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Davor Hrg
We did try many ways to deal wit this particular person, called him TROLL, tried asking real question, ignorring... etc. he was never for a real technical discussion, and this email account he uses is most likely an alias to hide his true identity. Reporting him to abuse admins is no violation of

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Andy Pahne
Chris Lewis schrieb: ... I will agree with you that he should be free to do so - but with _his_ resources, not ours. > ... Yeah, you (and Christian) convinced me about this "his megaphone" and "our megaphone" thing. Time to get out my dung fork and start the hunting. BTW: Tapestry rul

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Chris Lewis
I'm not sure what you are referring to by "freedom of speech." This is the Tapestry user list, not a country governed by a popular democracy (assuming that reference was to the US constitution). His breed of messages falls under the category of those titled "free XXX pics" and "best meds for less."

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Christian Edward Gruber
Freedom of speech is fine, but this list isn't necessarily a free forum for any speech. There are limits. For example, random political speech on this list would contravene the simple test of "relevance". This troll's speech, while "relevant" in its surface use of references to tapestry

AW: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Martin Kersten
> I did not take the time to read all those troll's mailings, but > as long as the troll does not violate the personal rights of > anybody, all of his writings fall under the category "freedom > of speech". Opting to report abuse to google mail and others > seems to me like overreaction. Well

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Andy Pahne
To quote yourself: "In general, trolls can simply be ignored. In dealing with this particular troll, I have opted to start reporting him to the abuse departments of the networks from which he sends messages. If you feel compelled, I urge you to do the same in addition to ignoring him '''com

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Chris Lewis
I'm sorry, but have you read his messages? He intentionally writes inflammatory messages, does not respond to questions or requests to stop behaving so offensively, and it is highly probable that he is in violation of the TOS for at least gmail and most likely also hotmail. I don't care to know if

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Joshua Jackson
On 4/16/08, Chris Lewis <[EMAIL PROTECTED]> wrote: > How is this not ethical? > > Joshua Jackson wrote: > > On 4/16/08, Andy Pahne <[EMAIL PROTECTED]> wrote: > > > >> Don't you think you are getting carried away with it? > >> > >> > > > > I think so too. I don't think this is ethical. :) Writing p

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Chris Lewis
How is this not ethical? Joshua Jackson wrote: > On 4/16/08, Andy Pahne <[EMAIL PROTECTED]> wrote: > >> Don't you think you are getting carried away with it? >> >> > > I think so too. I don't think this is ethical. :) > > -- http://thegodcode.net

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Joshua Jackson
On 4/16/08, Andy Pahne <[EMAIL PROTECTED]> wrote: > > Don't you think you are getting carried away with it? > I think so too. I don't think this is ethical. :) -- Let's show the world what we've got. Blog: http://joshuajava.wordpress.com/ ---

Re: Trolls (Rob Smeets, Emmanuel Sowah, you know)

2008-04-16 Thread Andy Pahne
Don't you think you are getting carried away with it? Chris Lewis schrieb: Dear list, Today I published a simple article on the dealing of trolls on the list, and I specifically targeted our friend currently operating under the alias "Rob Smeets." Instead of responding to him, please check ou

Re: issus with tapestry4.1.5

2008-04-16 Thread Igor Drobiazko
Check the method ResponseBuilder#isDynamic() On Wed, Apr 16, 2008 at 12:30 PM, abhilash <[EMAIL PROTECTED]> wrote: > > Hi all, > I am using tapestry4.1.5. > How can check the request made is ajaxrequest or normal request? > any ideas? > Thanks in advance. > -- > View this message in context: > ht

issus with tapestry4.1.5

2008-04-16 Thread abhilash
Hi all, I am using tapestry4.1.5. How can check the request made is ajaxrequest or normal request? any ideas? Thanks in advance. -- View this message in context: http://www.nabble.com/issus-with-tapestry4.1.5-tp16720756p16720756.html Sent from the Tapestry - User mailing list archive at Nabble.c

Re: include

2008-04-16 Thread János Jarecsni
Hi Michael, thanks, you're right, experience with other technologies can be misleading when learning a new one, especially when the two things are not the same kind. The hint on ComponentPageElement sounds really promising! I will study this, and will come back my results! Thanks again! Cheers, j

Re: issues with redirectexception in tapestry4.1.5

2008-04-16 Thread abhilash
i got whats the problem is. redirectUrl was not correct so,i was getting stalelink exception. it got solved.I want to know in tapestry4.1.5 how do i check the request is ajaxrequest or not. thanks for the reply. Andreas Andreou wrote: > > Can you capture and paste the ajax response? > > On Wed

Re: T5: Teaching the BeanModel to always add my class

2008-04-16 Thread Tobias Wehrum
Hi Filip, it's good to hear that it is just a leftover, so I can ignore it and stop wondering. Thanks again for your help! Tobias Filip S. Adamsen schrieb: Hi, On 2008-04-15 19:13, Tobias Wehrum wrote: Thank you, Filip! Looking through the page you suggested, I found the missing piece of

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-04-16 Thread Hannes Heijkenskjöld
Great! Glad I could help you. :-) /Hannes Michael Capper skrev: Thanks Hannes! I tried the route with the Decorator once, and ended up having to write some java-code into the interceptor via the BodyBuilder 'twas not nice. Your example worked great, i only had to pass some more Services

T5 #TAPESTRY-2058 bug

2008-04-16 Thread Foror
Bug in 5.1 category. Please fix it in 5.0.x release. It simple: class TextStreamResponse ... + private String _charset; // charset get from _contentType(";charset=UTF-8") // or get from tapestry.response-encoding public InputStream getStream() throws IOExc

Re: T5 : Expanding Messages Catalog for localization from arbitrary source

2008-04-16 Thread Michael Capper
Thanks Hannes! I tried the route with the Decorator once, and ended up having to write some java-code into the interceptor via the BodyBuilder 'twas not nice. Your example worked great, i only had to pass some more Services (AssetSource to get the URLs, my ProjectContextProvider to get the

Re: include

2008-04-16 Thread Michael Gerzabek
Hi János, In your very first mail 2 days ago you say "I'm new to Tapestry technology and to this mailing list". I think though I played around with T5 quite some time I'm also new to it. So please don't take my word to be the final truth. I think there is a simple solution to your problem. Lo