ASO state objects and StateObjectfactory... tap4 to tap5

2011-08-22 Thread Ken in Nashua
Hi All, In tap-4.1.2 there was a concept of ASO whereby a singleton would be loaded on bootstrap and an application state object cuold be maintained throughout the livability of the web application... I assume it would get stuffed into servlet context or something like that. In any case... ca

Re: components and events

2011-08-22 Thread Jens Breitenstein
Hi Robert! again, many thanks for you input, I really appreciate this discussion and time you spent If you're using tapestry's form components inside your component, and binding the values, then all of the values should be updated automatically. The main thing is to make sure that the prop

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Robert Zeigler
> > As a developer I'm not looking at components in isolation, but rather, > I'm looking at T5 as a framework. So if the framework provdes defaults > and I don't need to, fantastic! Moreover, I don't need to know that > attribute was ever required, for that's now unimportant information. > Excep

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Steve Eynon
My tuppence worth: > required is from the component perspective, not from the developer perspective Therein lies the confusion, for the documentation is read by developers looking to see what is 'required' from them! (I've yet to catch my T5 components reading JavaDocs or Googling for answers!)

Re: T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-22 Thread Josh Canfield
What tapestry build are you running. This looks like a defect I fixed while back in plastic. On Aug 22, 2011 7:19 PM, "TG" wrote: > Yup, thanks for the sample source at the given URL. I managed to remove > Chenillekit multiselect component and integrated T 5.3 Checklist. However, > with existing d

Re: [ANN] JumpStart 5.4 does Tapestry 5.2.6

2011-08-22 Thread Steve Eynon
Hi, Just to say thanks for the continued hard work - it's a really handy resource for showing & explaining T5 principles in action. I'm forever pointing my team at your website! Cheers, Steve. -- Steve Eynon --- "If at first you don't succeed, so much for skydiving

T5.3 Checklist java.lang.reflect.GenericSignatureFormatError

2011-08-22 Thread TG
Yup, thanks for the sample source at the given URL. I managed to remove Chenillekit multiselect component and integrated T 5.3 Checklist. However, with existing data (which were saved by Chenilekit component), it gave the following error. Any idea? Could it be a T 5.3 bug? org.apache.tapestry5.ioc

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Robert Zeigler
On Aug 22, 2011, at 8/229:06 PM , Bob Harner wrote: > > "In many cases, a ValueEncoder can be generated automatically from the And this is the crux: in /many/ cases... /can/ be generated. When it can't be, you'll still get the exception that it's not bound and must be. Ergo: required. :) Robe

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Bob Harner
Expanding the meaning of "autoconnect" in this way seems beneficial -- better than doing nothing but (to me) not as good as just making "parameter is required" mean "parameter is required" :-) Continuing to bang my head against the wall (caps are mine)... see if you can follow my reasoning via quo

java.lang.ClassFormatError: Illegal field modifiers in class lxyz/web2/components/codebook/controls/Button: 0x12

2011-08-22 Thread Steve Ragle
Hi folks, Trying out 5.3.0. I was running into this exception: 12:44:23.062 ERROR org.apache.tapestry5.ioc.Registry - Illegal field modifiers in class lxyz/web2/components/codebook/controls/Button: 0x12 12:44:23.062 ERROR org.apache.tapestry5.ioc.Registry - Operations trace: 12:44:23.062 ER

component scope service with injected messages

2011-08-22 Thread Paul Stanton
Hi all, I am aware that there is something special about tapestry services/resources such as Request, Messages etc which are only available in the context of a component render. I need to create a service which makes heavy use of the messages store and is available only in the scope of a com

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-22 Thread Howard Lewis Ship
Actually, perhaps Tapestry's client-side support should, by default, handle 302 correctly. Currently, Tapestry's JSON response for partial page updates includes a special key for performing a redirect. On Mon, Aug 22, 2011 at 2:20 PM, Kalle Korhonen wrote: > On Mon, Aug 22, 2011 at 1:27 PM, Gunn

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-22 Thread Kalle Korhonen
On Mon, Aug 22, 2011 at 1:27 PM, Gunnar Eketrapp wrote: > I just rewrote my very old ProtectedPageGateKeeper that implemented > Dispatcher with a new one > inspired by Howard's blog > http://tapestryjava.blogspot.com/search/label/security > The new one implements ComponentRequestFilter and is bett

Re: components and events

2011-08-22 Thread Robert Zeigler
If you're using tapestry's form components inside your component, and binding the values, then all of the values should be updated automatically. The main thing is to make sure that the property path to be updated still references a valid object. For instance, if I have a form: With myc

Re: components and events

2011-08-22 Thread Jens Breitenstein
Am 22.08.11 22:36, schrieb Robert Zeigler: I'm not quite sure what you mean by "set back" the values in the model, but it sounds like you're extracting information in setup render that the component needs to determine how to render, and that the same information is necessary for correctly proc

Re: components and events

2011-08-22 Thread Robert Zeigler
I'm not quite sure what you mean by "set back" the values in the model, but it sounds like you're extracting information in setup render that the component needs to determine how to render, and that the same information is necessary for correctly processing the form submission? In any event, th

Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-22 Thread Gunnar Eketrapp
I just rewrote my very old ProtectedPageGateKeeper that implemented Dispatcher with a new one inspired by Howard's blog http://tapestryjava.blogspot.com/search/label/security The new one implements ComponentRequestFilter and is better suited for protecting ajax enabled pages. So I thought ... Now

Re: components and events

2011-08-22 Thread Jens Breitenstein
Hi Robert! I have a hugh and complex form and tried to create components and cut down the page code. Each component gets access to the model by a parameter and in setupRender each component extracts the relevant data and adjusts the visual elements like text / checkbox accordingly to reflect

[ANN] Version 1.3 of tapestry-tagselect released

2011-08-22 Thread Joakim Olsson
Hi, I just released version 1.3 of tapestry-tagselect (https://github.com/argoyle/tapestry-tagselect). New in this release is the possibility to use it either as a multi-select by providing a Collection or a single-select by providing a single value. Regards, Joakim

Re: components and events

2011-08-22 Thread Robert Zeigler
No. Events bubble up, so if you have: The form can "see" the events from somecomponent, and the page will see events from form and somecomponent, but somecomponent won't see the form's event. What are you trying to accomplish? Robert On Aug 22, 2011, at 8/223:04 PM , Jens Breitenstein wr

components and events

2011-08-22 Thread Jens Breitenstein
Hi all! is it possible for a component to listen to the "success" event from the enclosing form? I tried various onEvent combinations but my annotated component method is never called... Jens - To unsubscribe, e-mail: users

Re: has Tapestry integrated the comet?

2011-08-22 Thread Josh Canfield
There is no comet integration in the framework, but it shouldn't be too difficult to integrate something that works with servlets. I'm not familiar with pushlet though. On Sun, Aug 21, 2011 at 11:53 PM, dick_hu wrote: > I want to use the comet in my app. > Has Tapestry integrated any comet frame.

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Kalle Korhonen
It's not a workaround, but one way to set things up. There many, many other possible configurations. You'll quickly learn that running a website is quite a bit more than just building a web application. If you are not using Apache httpd for anything, ask yourself if you really need it at all - you'

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Josh Canfield
@Parameter already has the "autoconnect" attribute to determine whether the framework will attempt to find a value for the parameter. The Component Report should be updated to include that information in the "flags" column. Currently the flags for TextField's value parameter read: Required, NOT

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Lenny Primak
It's not a workaround. This is just how it works. You can always have an HTML or ajp proxy on apache to rewrite the paths but ROOT.war is easier. On Aug 22, 2011, at 12:29 PM, Dimitri wrote: > Yeah but it's more a workaround than a solution, since i m quite new to > tomcat/apache/t5 (yes, i

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Dimitri
Yeah but it's more a workaround than a solution, since i m quite new to tomcat/apache/t5 (yes, i just pointed everything) i ll try to do with the PizzAroundMe name and try to understand why does the links contain it. Thank you anyway! -- View this message in context: http://tapestry.1045711.n5.

Re: remove red cross from the field vlidator

2011-08-22 Thread leothelion
Thank you so much! Also, thank you Thiago and Dusko. This is a great place for Tapestry lovers. -- View this message in context: http://tapestry.1045711.n5.nabble.com/remove-red-cross-from-the-field-vlidator-tp4717200p4724060.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Palette and Checklist don't use contributed value encoder?

2011-08-22 Thread Robert Zeigler
I would prefer to keep the required clause. The difference between a required parameter and one that isn't is that if no value is available for the required parameter (whether user or framework provided), the component /cannot/ function. An /optional/ parameter is one where the component /can/

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Lenny Primak
To verify that its not a T5 issue (I don't believe that it is) just rename your app and watch all of your context links change. The ROOT.war approach should work. On Aug 22, 2011, at 11:24 AM, Dimitri wrote: > Thank you for your replies. > > I still can't get it working, i set PizzAroundMe as

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Dimitri
Thank you for your replies. I still can't get it working, i set PizzAroundMe as root app in tomcat, but it does not help. I though it was more a t5 issue, since it will append /PizzAroundMe/ at the end of every link or submit button, i am wrong ? Thank you. -- View this message in context:

Re: Add extra buttons in beaneditform

2011-08-22 Thread Taha Hafeez
BeanEditForm is just a wrapper around BeanEditor. You can always use the latter. On Mon, Aug 22, 2011 at 9:24 PM, TG wrote: > It seems like with label using t:submitLabel="Submit" but I can not have extra button. My use > case is, when a user click on the default button, it will go back to the >

Re: Add extra buttons in beaneditform

2011-08-22 Thread Kalle Korhonen
On Mon, Aug 22, 2011 at 8:54 AM, TG wrote: > It seems like with label using t:submitLabel="Submit" but I can not have extra button. My use > case is, when a user click on the default button, it will go back to the > Start and if the user click on Save (the extra button that I will be > adding), i

Add extra buttons in beaneditform

2011-08-22 Thread TG
It seems like with http://tapestry.1045711.n5.nabble.com/Add-extra-buttons-in-beaneditform-tp4723870p4723870.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapest

Re: [ANN] JumpStart 5.4 does Tapestry 5.2.6

2011-08-22 Thread Taha Hafeez
Great !! Congrats Geoff On Mon, Aug 22, 2011 at 8:12 PM, Geoff Callender wrote: > Hi all, > > JumpStart has been upgraded to use Tapestry 5.2.6. And... > > - A lot of examples have been added recently to demonstrate > ProgressiveDisplay, AJAX Periodic Updates (auto-refresh), Scriptaculous, and

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Lenny Primak
I believe that if you put your app as ROOT.war in tomcat, it will be the root context, thus fixing your issue. On Aug 22, 2011, at 5:09 AM, Dimitri wrote: > Hi all, > I would like to put my website online, using apache2 and tomcat. > > Deploying the war with tomcat worked fine and using the t

Re: Tapestry 4 @TextField Problem

2011-08-22 Thread legacydeveloper
Jonathan Barker wrote: > > My T4 is a little rusty, but if you post your code, I'll give it a shot. > -- > Jonathan Barker > ITStrategic > I found what my problem was shortly after I posted this, I had my @TextField placed lower on the page than the submit button that was reading the value. D

[ANN] JumpStart 5.4 does Tapestry 5.2.6

2011-08-22 Thread Geoff Callender
Hi all, JumpStart has been upgraded to use Tapestry 5.2.6. And... - A lot of examples have been added recently to demonstrate ProgressiveDisplay, AJAX Periodic Updates (auto-refresh), Scriptaculous, and Delegates and Blocks. - Also, there are improvements to the examples of Object Select, Custo

Re: Tapestry integration with Maven and subversion

2011-08-22 Thread Taha Hafeez
To add to what Nicolas has already said, typically we don't include the target folder or ide related settings (e.g. in case of eclipse .classpath, .settings/ etc). This mostly leaves the src folder in case of maven. Also I prefer git over svn but that is one's personal preference !! On Mon, Aug 2

Re: Tapestry apache2 and tomcat

2011-08-22 Thread Massimo Lusetti
On Mon, Aug 22, 2011 at 12:09 PM, Dimitri wrote: > Hi all, > I would like to put my website online, using apache2 and tomcat. > > Deploying the war with tomcat worked fine and using the tomcat url is good, > but it requires the :8080 and the app context name in the url. Also i would > like to dis

Re: Tapestry integration with Maven and subversion

2011-08-22 Thread Nicolas Barrera
Hi, I don't know if this is a topic to be treated on this list but here come my thoughts... a) maven: if you used the tapestry maven archetype to create the project that you 're currently working at... you 're almost done.., in fact... if you 're running your t5 applicaction using the maven jett

custom head component

2011-08-22 Thread Ken in Nashua
Hi All, Been getting into tap5 fairly heavily... and must say... I am impressed this time. Much so over previous versions. finally... pheew Best feature I believe is the unbeatable extensibility...by design... since day one... and I believe this one is here to stay for quite some time. So I a

Re: Setting a JavaScript variable before including a JS library?

2011-08-22 Thread Barry Books
Glad you got it working and using action is fine. You should also be able to return the TextStreamResponse from onActivate and remove the :action from the url if you like. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apach

Re: Confused by mixins render order. Bug?

2011-08-22 Thread Barry Books
Thanks for the fix. Barry - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Tapestry apache2 and tomcat

2011-08-22 Thread Dimitri
Hi all, I would like to put my website online, using apache2 and tomcat. Deploying the war with tomcat worked fine and using the tomcat url is good, but it requires the :8080 and the app context name in the url. Also i would like to disable tomcat http listener on 8080 for security reason, and o

Tapestry integration with Maven and subversion

2011-08-22 Thread captain_rhino
I've been building a tapestry prototype over the last few weeks for a new project. I've been happily building away and running through jetty. Now has come the time that other developer(s) are going top have to work on the project. I am no expert in Maven but on a high level how would I integrate

Re: Grid display after a new row insertion

2011-08-22 Thread antalk
Maybe that's because tapestry keeps track of the sorting in the session and doing an updateSort reverses the sorting with each page call. I have this solved as such: if (grid.getSortModel().getSortConstraints().isEmpty()) { while (!grid.getSortModel().getColumnSort("creation_date").equa