Re: T5 which button did you hit?
There are some docs about this here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html To get the success event from the component named Form, use: onSuccessFromForm() To get the submit event from the component named Submit, so use: onSuccessFromSubmit() It's good practice to add a t:id=ComponentName to your components. (Otherwise the default name is the component type.) Then you can use: onEventFromComponentName() Cheers, Nick. Marcus wrote: Hi, SomePage.java: ... public Object onSubmit() { System.out.println(Button1); } public Object onSuccess() { System.out.println(Button 2); } ... SomePage.tml: ... form t:type=form input type=submit value=Button 1 /form form t:type=BeanEditForm object=somelist submitLabel=Button 2 /form ... localhost:8080/SomeTest/SomePage How do you know, in java class, which button did you hit? Console always display: Button2 Button1 Thanks, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5.06] component action context does not support utf8!
I use the actionLink, and the context contains utf8 string, and the onUpdate(string str)... the str is ???, encoding wrong!
RE: T5 book: update
The book is not ready yet. I had to completely rewrite chapter 5 upgrading it to 5.0.6 as Grid and BeanEditForm are so much easier to deal with now. If everything goes well, the book should become available in December. I thought there will be a PDF version too, but the publisher has just informed me that they stopped providing PDF copies for new titles to counter piracy... Will keep you updated. -Original Message- From: Donyee [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 03:39 To: Tapestry users Subject: Re: T5 book: update Where is the book? Can someone give me a copy? or the download url ? 2007/11/1, Eko S.W. [EMAIL PROTECTED]: I am sorry, but How can we use DateField in 5.0.6? I am so late on 5.0.6 Thanks 2007/10/26, Ted Steen [EMAIL PROTECTED]: Very nice! Dont forget to update the part about the DatePicker. It is now obsolete. T5.0.6 now includes a DateField as a part of the core. -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/ -- 徐 依伟 -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5 book: update
That's easy, basically in the same way as a TextField, but the value should be of java.util.Date type. t:datefield value=theDate/ -Original Message- From: Eko S.W. [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 03:20 To: Tapestry users Subject: Re: T5 book: update I am sorry, but How can we use DateField in 5.0.6? I am so late on 5.0.6 Thanks 2007/10/26, Ted Steen [EMAIL PROTECTED]: Very nice! Dont forget to update the part about the DatePicker. It is now obsolete. T5.0.6 now includes a DateField as a part of the core. -- Best wishes, Eko SW http://swdev.blogs.friendster.com/my_blog/ -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 which button did you hit?
Oops, that should be: To get the submit event from the component named Submit, use: onSubmitFromSubmit() You can see it's better to give meaningful names to your components. Cheers, Nick. Nick Westgate wrote: There are some docs about this here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html To get the success event from the component named Form, use: onSuccessFromForm() To get the submit event from the component named Submit, so use: onSuccessFromSubmit() It's good practice to add a t:id=ComponentName to your components. (Otherwise the default name is the component type.) Then you can use: onEventFromComponentName() Cheers, Nick. Marcus wrote: Hi, SomePage.java: ... public Object onSubmit() { System.out.println(Button1); } public Object onSuccess() { System.out.println(Button 2); } ... SomePage.tml: ... form t:type=form input type=submit value=Button 1 /form form t:type=BeanEditForm object=somelist submitLabel=Button 2 /form ... localhost:8080/SomeTest/SomePage How do you know, in java class, which button did you hit? Console always display: Button2 Button1 Thanks, Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5 book: update
I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
add checkbox to tableview
is there any example how to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: actionlink in another page/class
Hi, I have a page which generate a link to an action in the same page, the link was embedded in a Streamresponse, when I click the link in the browser, it does not activate the action link created, why? Here is the code: public class TestPage2 { @Inject private ComponentResources resources; public StreamResponse onActionFromDelete(Long id) { String link1 = resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); return new TextStreamResponse(text/html, String.format( a href='%s'Confirm , link1)); } public String onActionFromDeleteConfirm(Long id) { System.out.println(delete confirm); return null; } } html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleStart Page/title /head body h1Test Page/h1 t:actionLink t:id=Delete context=1Delete/t:actionLinkbr/ /body /html -- View this message in context: http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13526220 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 book: update
Hi Alexander, Do these sections (structuring the application, ASO, activation context) cover IoC comprehensively in Tapestry? this is an area where very little exists in the documentation, in terms of concrete examples, so I would be curious if you have covered it in your book. thanks, Peter Kolesnikov, Alexander GNI wrote: I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 which button did you hit?
Hi Nick, Thanks, Marcus
Re: T5 book: update
Peter: Can you please tell me the kinds of examples you think we need? I'm doing a lot of work with Tapestry IoC at the moment (without the web part of the framework) and would be more than happy to try and put together a few for you. Keep in mind there are plenty of examples on the TWiki too. Cheers. On 11/1/07, Peter Stavrinides [EMAIL PROTECTED] wrote: Hi Alexander, Do these sections (structuring the application, ASO, activation context) cover IoC comprehensively in Tapestry? this is an area where very little exists in the documentation, in terms of concrete examples, so I would be curious if you have covered it in your book. thanks, Peter Kolesnikov, Alexander GNI wrote: I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gotta find my destiny, before it gets too late.-- Ian Curtis
RE: T5 book: update
Peter, this book is actually a primer. The idea was to show how to do some real stuff with Tapestry in the easiest possible way. It shows the path of the least resistance for those who want to learn Tapestry, and it is in no way exhaustive. However, whatever it *does* show, it shows that on concrete practical examples. There is actually a simple but useful web application being gradually developed in chapters 4 to 8. If I need to configure something, like have an ASO whose type is an interface, I show just what is exactly needed for that purpose, but on a practical example, hands-on, so to say. I do not cover IoC comprehensively. Cheers, Alexander -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 12:03 To: Tapestry users Subject: Re: T5 book: update Hi Alexander, Do these sections (structuring the application, ASO, activation context) cover IoC comprehensively in Tapestry? this is an area where very little exists in the documentation, in terms of concrete examples, so I would be curious if you have covered it in your book. thanks, Peter Kolesnikov, Alexander GNI wrote: I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: inject ComponentResources in a service
I suffered with this one for quite some time... you can *not provide ComponentResources to a service, you will end up with all sorts of funky errors, but I did however manage to create a navigation component and reuse it in there. The navigation component is part of my layout template, so I don't have to inject ComponentResources in every page. Davor Hrg wrote: you can not inject component resources that way ... it is specific to a component so it's scope is not even PER_THREAD you will have to provide it in the method you call... and inject it into your page... look at it this way: if you have a dozen of components on your page and from one of the components you call your service how would tapestry know for which of the dozen components you need the ComponentResources ? that's what I can tell you for now... Davor Hrg On 10/26/07, Angelo Chen [EMAIL PROTECTED] wrote: hi davor, correction, the problem is ComponentResources used in the constructor, it has this error: Exception constructing service 'MyServices': Error invoking constructor org.bfe.myapp.t5.MyServicesImp(ComponentResources) (at MyServicesImp.java:36) (for service 'MyServices'): No service implements the interface org.apache.tapestry.ComponentResources. seems ComponentResources can be used in this situation? Thanks. A.C. Angelo Chen wrote: Hi, Thanks, now when there is only one parameter in the constructor, it works: public MyServicesImp(ApplicationGlobals globals) { this.globals = globals; } but if I have this: public MyServicesImp(ApplicationGlobals globals, ComponentResources resources) { this.globals = globals; this.resources = resources; } it won't work, any hint? Thanks, A.C. Davor Hrg wrote: service do not get enhanced like pages do, services get dependacies through constructor... http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html Davor Hrg On 10/26/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I injected ComponentResources in a service, but it's null, why? public class MyServicesImp implements MyServices { @Inject private ComponentResources resources; public String createExternalPageLink(String pageName, Object context) { return getDomainName() + resources.createPageLink(pageName, true, context); } } -- View this message in context: http://www.nabble.com/T5%3A-inject-ComponentResources-in-a-service-tf4695974.html#a13423186 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5%3A-inject-ComponentResources-in-a-service-tf4695974.html#a13423903 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T3] Spindle for Tapestry 3 and Eclipse 3.3
From a message given to me by Geoff about a small update he's made for eclipse 3.3 tapestry 3 users : [T3] Spindle for Tapestry 3 and Eclipse 3.3 A build (3.4.0) of Spindle for Tapestry 3 that works correctly in Eclipse 3.3.X has been published. Please read the release notes as it is not available from the old update site. Release Notes: http://tinyurl.com/ytxtjr Download: http://tinyurl.com/ytfgyb -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T3] Spindle for Tapestry 3 and Eclipse 3.3
Wow! Great news. What a sterling guy Geoff is. There will be some happy developers out there I'm sure. Cheers, Nick. Jesse Kuhnert wrote: From a message given to me by Geoff about a small update he's made for eclipse 3.3 tapestry 3 users : [T3] Spindle for Tapestry 3 and Eclipse 3.3 A build (3.4.0) of Spindle for Tapestry 3 that works correctly in Eclipse 3.3.X has been published. Please read the release notes as it is not available from the old update site. Release Notes: http://tinyurl.com/ytxtjr Download: http://tinyurl.com/ytfgyb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 5 Roadmap
A released product needs to achieve 'true' stability in the code base, especially with regards to internals, I imagine that keeping tapestry as an Alpha/Beta allows more flexibility to modify the internals without causing waves in the community. I always have had the feeing that production releases come with an unwritten rule that any significant changes that could break/depreciate existing applications are not appreciable, whereas with an Alpha/Beta there is carte blanche and no guarantees. If this kind of 'promise' can be implied then Tapestry 5 should be ready for release and clients can invest resources with some confidence, otherwise it's better to allow Tapestry to mature and gradually achieve this type of stability... after all you are still free to use it, that's my 2 cents. Peter Angelo Chen wrote: Hi Chris, Can't agree more. T5 is stable enough to be released. if I was hesitant to learn a unreleased T5 for my first web framework at beginning, how much more a businese putting their project development on it? the only reason I can think of is, maybe there is still some plans to change something in the framework? if not, then sooner released the better, just my 2 cents, A.C. Christian Gruber-4 wrote: I think this merely means that T5 should release sooner than later with a smaller functionality set, and release a 5.1 with the additional features. At this point, it's part perception, etc. But if the core is stable, then 5.0-RELEASE could be compared with JSF, Wicket, etc. on a feature-for-feature basis. It wouldn't have the additional burden of unreleased software. I mean it's at 5.0.5 right now, which in my mind IS released... Certainly my time to market even factoring in learning-curve has improved over JSF or Struts 2. Christian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Output variables in Tapestry Script - 4.1.3
Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name=sams as id show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol... let key=... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script. Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance... Best regards Ken in nashua _ Peek-a-boo FREE Tricks Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
RE: Output variables in Tapestry Script - 4.1.3
I have read over and over these docs... http://tapestry.apache.org/tapestry4.1/ajax/basics.html http://tapestry.apache.org/tapestry4.1/components/general/script.html http://tapestry.apache.org/tapestry4.1/faq.html#script-component Including Kent Tongs doc on scripting which is solely focused on form. My code operates outside of a form and dereferencing elements from document. just does not work.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name=sams as id show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key=... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! _ Climb to the top of the charts! Play Star Shuffle: the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct
Re: Is Tapestry 5 ready?
The question is Tapestry a better framework... is entirely a matter of opinion, ask this question on a few mailing lists you will get different answers on each one. I personally feel Tapestry 5 is a 'cleaner' component framework compared to what's available (open source), but having said that Spring is more mature... it's also a wonderful framework. good luck, Peter Galam wrote: hi everyone, Last time when I check the Tapestry mailing list was probably a year a go. I have been waited patiently for the arrival of Tapestry 5. Now, it seems it is almost there, but technologies evoves fast. Is Tapestry still a better framework for building medium to large scale websites when comparing to other frameworks like Spring? What is the final release date for Tapestry 5? How much will change between the current 5.0.6 release and the final version? Should I start playing with it now or wait until it is final? Thanks. galam. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Output variables in Tapestry Script - 4.1.3
correction... BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these is appreciated. Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name=sams as id show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key=... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! _ Peek-a-boo FREE Tricks Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
RE: Output variables in Tapestry Script - 4.1.3
Someruntime output... input-symbol key=theWidget class=org.trails.demo.components.Gallery required=yes/ input-symbol key=theTableSize required=yes/ let key=galleryFormdocument.forms[0]/let let key=galleryFormIddocument.forms[0].id/let let key=tableWidth unique=yes${theWidget.tableWidth}/let let key=tableSize unique=yes${theWidget.tableSize}/let let key=tWidget unique=yes${theWidget}/let this alert(${galleryForm}); alert(${galleryFormId}); alert(${theWidget.clientId}); alert(${theWidget}); alert(${tWidget}); alert(${tableSize});transates to alert(document.forms[0]); alert(document.forms[0].id); alert(galleryWidget); alert([EMAIL PROTECTED]/galleryWidget]); alert([EMAIL PROTECTED]/galleryWidget]); alert(2_0); what is 2_0 ? How do we get to the tableSize value to the property of the component?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:48:29 -0400 Attached is the modules in question... My tableSize parameter is specified in Home.html along with the component. I am able to dereference the form and get/set the value of the select component. I guess I want to get the value of the select and assign it to the ognl property of my component. I need to do the same onChange. Your feedback is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:23:40 -0400 correction...BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name='sams as id' show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key='... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! Peek-a-boo FREE Tricks Treats for You! Get 'em! Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now! _ Peek-a-boo FREE Tricks Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
RE: Output variables in Tapestry Script - 4.1.3
Attached is the modules in question... My tableSize parameter is specified in Home.html along with the component. I am able to dereference the form and get/set the value of the select component. I guess I want to get the value of the select and assign it to the ognl property of my component. I need to do the same onChange. Your feedback is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:23:40 -0400 correction...BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name='sams as id' show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key='... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! Peek-a-boo FREE Tricks Treats for You! Get 'em! _ Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033?xml version=1.0 encoding=UTF-8? !DOCTYPE script PUBLIC -//Apache Software Foundation//Tapestry Script Specification 4.0//EN http://jakarta.apache.org/tapestry/dtd/Script_4_0.dtd; script !-- input-symbols are on the fly inputs specified formal/informal with @Script tag in HTML Template -- !-- java method parameters -- !-- we operate these within braces {} for ognl properties -- input-symbol key=theWidget class=org.trails.demo.components.Gallery required=yes/ input-symbol key=theTableSize required=yes/ !-- this is the bridge where we transfer transform our parameters from html to javascript -- !-- lets are variables permitted to be used in the actual javascript below -- !-- javascript instance variables -- !-- we operate these for values off ognl objects and dom objects -- let key=galleryFormdocument.forms[0]/let let key=galleryFormIddocument.forms[0].id/let let key=box unique=yesinlineBox/let let key=numColumns unique=yesinlineNumColumns/let let key=tableWidth unique=yes${theWidget.tableWidth}/let let key=tableSize unique=yes${theWidget.tableSize}/let let key=tWidget unique=yes${theWidget}/let body unique dojo.require(tapestry.widget.Widget); dojo.require(dojo.widget.*); dojo.require(dojo.html.*); /unique function initGallery() { debugger; alert(${thisObject}); alert(${galleryForm}); alert(${galleryFormId}); alert(${theWidget.clientId}); alert(${theWidget}); alert(${tWidget}); var imageWidth = 160; var ${box} = dojo.widget.byId(${theWidget.clientId}); var componentObjectCB = dojo.html.getContentBox(${galleryForm}); ${numColumns} = Math.floor(componentObjectCB.width / imageWidth); alert(componentObjectCB.width == + componentObjectCB.width); alert(componentObjectCB.height == + componentObjectCB.height); alert(numColumns == + ${numColumns}); } /body initialization initGallery(); /initialization /script- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Output variables in Tapestry Script - 4.1.3
more clarification... alert(document.forms.tableSizeSelect.value); ${theWidget.tableSize} = document.forms.tableSizeSelect.value; why is the above assignment not possible? Inside the widget I have tableSize declared as a Parameter. This poses a dereferencing dilemma as ${theWidget.tableSize} seems to not be the way to dereference a property on a component. Can someone elaborate on the proper way? Does it need to be binded to a dom element? If so please elaborate. Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:56:30 -0400 Someruntime output... input-symbol key='theWidget' class='org.trails.demo.components.Gallery' required='yes'/ input-symbol key='theTableSize' required='yes'/ let key='galleryForm'document.forms[0]/let let key='galleryFormId'document.forms[0].id/let let key='tableWidth' unique='yes'${theWidget.tableWidth}/let let key='tableSize' unique='yes'${theWidget.tableSize}/let let key='tWidget' unique='yes'${theWidget}/letthis alert(${galleryForm}); alert(${galleryFormId}); alert('${theWidget.clientId}'); alert('${theWidget}'); alert('${tWidget}'); alert('${tableSize}');transates to alert(document.forms[0]); alert(document.forms[0].id); alert('galleryWidget'); alert('[EMAIL PROTECTED]/galleryWidget]'); alert('[EMAIL PROTECTED]/galleryWidget]'); alert(2_0); what is 2_0 ? How do we get to the tableSize value to the property of the component?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:48:29 -0400 Attached is the modules in question... My tableSize parameter is specified in Home.html along with the component. I am able to dereference the form and get/set the value of the select component. I guess I want to get the value of the select and assign it to the ognl property of my component. I need to do the same onChange. Your feedback is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:23:40 -0400 correction...BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name='sams as id' show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key='... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! Peek-a-boo FREE Tricks Treats for You! Get 'em! Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now! Peek-a-boo FREE Tricks Treats for You! Get 'em! _ Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnewspackage org.trails.demo.components; import java.util.Collection; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.tapestry.IAsset; import org.apache.tapestry.IPage; import org.apache.tapestry.IRequestCycle; import org.apache.tapestry.IScript; import
Re: T4.1.3 loop index issues, migrating from 4.0.2
HmmI'll look at it later tonight and put out a fix - if I'm able to re-produce it outside of Tapestry somehow. On Oct 31, 2007 5:11 PM, Dom Couldwell [EMAIL PROTECTED] wrote: Any ideas as to when we might get a fix for this? We're stuck in terms of migrating to 4.1.3 until we get a fix. Thanks, Dom --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Output variables in Tapestry Script - 4.1.3
corrected syntax... forgot form name The alert works... alert(document.forms.galleryForm.tableSizeSelect.value); The assignment does not. ${theWidget.tableSize} = document.forms.tableSizeSelect.value; This is what the assignment parses to... 2 = document.forms.galleryForm.tableSizeSelect.value; QUESTION: How do I dereference the property tableSize to the address for assignment. Thank YouBest regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 10:05:14 -0400 more clarification... alert(document.forms.tableSizeSelect.value);${theWidget.tableSize} = document.forms.tableSizeSelect.value; why is the above assignment not possible? Inside the widget I have tableSize declared as a Parameter.This poses a dereferencing dilemma as ${theWidget.tableSize} seems to not be the way to dereference a property on a component. Can someone elaborate on the proper way? Does it need to be binded to a dom element? If so please elaborate.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:56:30 -0400 Someruntime output... input-symbol key='theWidget' class='org.trails.demo.components.Gallery' required='yes'/ input-symbol key='theTableSize' required='yes'/ let key='galleryForm'document.forms[0]/let let key='galleryFormId'document.forms[0].id/let let key='tableWidth' unique='yes'${theWidget.tableWidth}/let let key='tableSize' unique='yes'${theWidget.tableSize}/let let key='tWidget' unique='yes'${theWidget}/letthis alert(${galleryForm}); alert(${galleryFormId}); alert('${theWidget.clientId}'); alert('${theWidget}'); alert('${tWidget}'); alert('${tableSize}');transates to alert(document.forms[0]); alert(document.forms[0].id); alert('galleryWidget'); alert('[EMAIL PROTECTED]/galleryWidget]'); alert('[EMAIL PROTECTED]/galleryWidget]'); alert(2_0); what is 2_0 ? How do we get to the tableSize value to the property of the component?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:48:29 -0400 Attached is the modules in question... My tableSize parameter is specified in Home.html along with the component. I am able to dereference the form and get/set the value of the select component. I guess I want to get the value of the select and assign it to the ognl property of my component. I need to do the same onChange. Your feedback is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:23:40 -0400 correction...BUT document.forms.${myFormName} produces undefined at the above works... But if I have a DIV or SPAN above in a containing html file I am unable to assign a name to it or dereference it in the document object. clarification on how to dereference and assign output data to these is appreciated.Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Output variables in Tapestry Script - 4.1.3Date: Thu, 1 Nov 2007 09:11:58 -0400 Folks, I am using simple div/span... no form. When I attempt to index an element is showing undefined. 1. document.forms[0] produces my form alright and it has a name BUT document.forms.${myFormName} produces undefined at runtime ? Why the lapse ? myFormname equates to the actual form name EVEN this fails... document.forms['${myFormName}'] as undefined 2. Assignment to span name='sams as id' show up blank in debugger ? This prevents me from accessing is using DOM notation. Jesse/Andy... can you assess/advise the usability of this script? The docs are too scarse on outputs and the example code in the docs is out of context. How are we suppose to assign values to a dom element (which I am mapping to an abstract ognl component method parameter) when accessing/subscripting/dereferencing these in script body is not even possible? input-symbol...let key='... There is no ability to de-reference variables beyond these thereafter. The docs state this is all powerful and usable but I oanly see inputs working... I need to manipulate outputs by setting values to parameters/values in the DOM space... (or setting properties in the OGNL space) within my script.Can someone give a comprehensive snippet that shows an authentic assignment within a script to assign to both parameters/values in the DOM space and setting properties in the OGNL space? I am trying to pioneer some fertile ground here and happy to produce a new widget for public consumption based on your framework. Thanks in advance...Best regards Ken in nashua Peek-a-boo FREE Tricks Treats for You! Get 'em! Peek-a-boo FREE Tricks Treats for You! Get 'em! Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now! Peek-a-boo FREE
binding id to a property (not a liteal)
Hi again, I am trying to get a select component to take an id from its component class, rather than having it staticly defined in the tml. It seems, however, that no matter what I try, the id is always interpreted as a literal string. e.g.: t:select t:id=prop:refFieldId ... etc which I would expect to get the id from an accessor named getRefFieldId() in the component class, but instead it generates the id as prop:refFieldId. Is id special in this way? If so, is there some sort of workaround for this? What I want is something like this: t:label t:for=selectField${message:label1}/t:label t:ReferenceDropDown t:selectId=literal:selectField ... etc / and then, ReferenceDropDown.tml: t:select t:id=prop:selectId ... etc / in order to tie the label to the select which is inside my own ReferenceDropDown component. Thoughts? Thanks again, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 Image Upload Client Side Resize
Is there a way to resize images on the client side before they are uploaded with the Tapestry Upload Component?
Re: T5 book: update
About how many pages can we look forward to reading, once it's published? On 11/1/07, Kolesnikov, Alexander GNI [EMAIL PROTECTED] wrote: Peter, this book is actually a primer. The idea was to show how to do some real stuff with Tapestry in the easiest possible way. It shows the path of the least resistance for those who want to learn Tapestry, and it is in no way exhaustive. However, whatever it *does* show, it shows that on concrete practical examples. There is actually a simple but useful web application being gradually developed in chapters 4 to 8. If I need to configure something, like have an ASO whose type is an interface, I show just what is exactly needed for that purpose, but on a practical example, hands-on, so to say. I do not cover IoC comprehensively. Cheers, Alexander -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 12:03 To: Tapestry users Subject: Re: T5 book: update Hi Alexander, Do these sections (structuring the application, ASO, activation context) cover IoC comprehensively in Tapestry? this is an area where very little exists in the documentation, in terms of concrete examples, so I would be curious if you have covered it in your book. thanks, Peter Kolesnikov, Alexander GNI wrote: I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Image Upload Client Side Resize
With 'native' javascript, that's not possible. That would at the least require access to an imaging api, and that unfortunately doesn't exist in pure javascript. With an applet or activex or flash object, its possible. Josh Penza wrote: Is there a way to resize images on the client side before they are uploaded with the Tapestry Upload Component? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: persist a list
@Persist(flash) removes the object from the session after it reads it while the page request is being prepared. Every time you set the value it gets put back into the session. So, you could keep a flash persisted object in the session perpetually if it's set from within your events or lifecycle methods. If you type Ctrl-N from IE you get a new browser window that shares the session with the original window. You can try opening a different browser (Firefox, Safari). http://forum.java.sun.com/thread.jspa?threadID=489087messageID=2294678 Hope that helps, Josh On 10/31/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I got a list for a loop: @Persist(flash) private ListString files; Questions: 1. do i have to files = new ListString() in my page constructor? 2. why this files never got empty, I can see it even from another browser? how to empty this list? Thanks, A.C. -- View this message in context: http://www.nabble.com/T5%3A-persist-a-list-tf4729017.html#a13522171 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
Re: T5: actionlink in another page/class
resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); The action you are invoking is deleteConfirm, the event method is onActionFromDeleteConfirm so your action link should look like this: resources.createActionLink(deleteConfirm, false, id).toURI(); Josh On 11/1/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I have a page which generate a link to an action in the same page, the link was embedded in a Streamresponse, when I click the link in the browser, it does not activate the action link created, why? Here is the code: public class TestPage2 { @Inject private ComponentResources resources; public StreamResponse onActionFromDelete(Long id) { String link1 = resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); return new TextStreamResponse(text/html, String.format( a href='%s'Confirm , link1)); } public String onActionFromDeleteConfirm(Long id) { System.out.println(delete confirm); return null; } } html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleStart Page/title /head body h1Test Page/h1 t:actionLink t:id=Delete context=1Delete/t:actionLinkbr/ /body /html -- View this message in context: http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13526220 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
Re: T5: actionlink in another page/class
resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); The action you are invoking is deleteConfirm, the event method is onActionFromDeleteConfirm so your action link should look like this: Actually, I take that back. Your event method should be onDeleteConfirm. You aren't creating it from the action component so the ActionFrom part is not used. Josh On 11/1/07, Josh Canfield [EMAIL PROTECTED] wrote: resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); The action you are invoking is deleteConfirm, the event method is onActionFromDeleteConfirm so your action link should look like this: resources.createActionLink(deleteConfirm, false, id).toURI(); Josh On 11/1/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I have a page which generate a link to an action in the same page, the link was embedded in a Streamresponse, when I click the link in the browser, it does not activate the action link created, why? Here is the code: public class TestPage2 { @Inject private ComponentResources resources; public StreamResponse onActionFromDelete(Long id) { String link1 = resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); return new TextStreamResponse(text/html, String.format( a href='%s'Confirm , link1)); } public String onActionFromDeleteConfirm(Long id) { System.out.println(delete confirm); return null; } } html xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleStart Page/title /head body h1Test Page/h1 t:actionLink t:id=Delete context=1Delete/t:actionLinkbr/ /body /html -- View this message in context: http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13526220 Sent from the Tapestry - User mailing list archive at Nabble.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
RE: T5 book: update
About 250 - the publisher's technological optimum. The publisher is Packtpub.com. -Original Message- From: Daniel Jue [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 16:08 To: Tapestry users Subject: Re: T5 book: update About how many pages can we look forward to reading, once it's published? On 11/1/07, Kolesnikov, Alexander GNI [EMAIL PROTECTED] wrote: Peter, this book is actually a primer. The idea was to show how to do some real stuff with Tapestry in the easiest possible way. It shows the path of the least resistance for those who want to learn Tapestry, and it is in no way exhaustive. However, whatever it *does* show, it shows that on concrete practical examples. There is actually a simple but useful web application being gradually developed in chapters 4 to 8. If I need to configure something, like have an ASO whose type is an interface, I show just what is exactly needed for that purpose, but on a practical example, hands-on, so to say. I do not cover IoC comprehensively. Cheers, Alexander -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 12:03 To: Tapestry users Subject: Re: T5 book: update Hi Alexander, Do these sections (structuring the application, ASO, activation context) cover IoC comprehensively in Tapestry? this is an area where very little exists in the documentation, in terms of concrete examples, so I would be curious if you have covered it in your book. thanks, Peter Kolesnikov, Alexander GNI wrote: I was asked about the Table of Contents of the coming book. Here is the general outline: 1. Introduction. 2. Creating a working environment (NetBeans and Eclipse WTP versions). 3. The foundations of Tapestry. Navigation, different ways to pass a value from page to page, structuring the application, ASO, activation context. 4. Basic components (most of those available). 5. Advanced components: Grid, BeanEditForm, DateField, FCKEditor. 6. User input validation. 7. I18n. 8. Creating custom components, plus creating a custom SelectModel and a custom service. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == == == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: binding id to a property (not a liteal)
Try t:select t:id=${prop:refFieldId} ... Christoph Marc A. Donis wrote: Hi again, I am trying to get a select component to take an id from its component class, rather than having it staticly defined in the tml. It seems, however, that no matter what I try, the id is always interpreted as a literal string. e.g.: t:select t:id=prop:refFieldId ... etc which I would expect to get the id from an accessor named getRefFieldId() in the component class, but instead it generates the id as prop:refFieldId. Is id special in this way? If so, is there some sort of workaround for this? What I want is something like this: t:label t:for=selectField${message:label1}/t:label t:ReferenceDropDown t:selectId=literal:selectField ... etc / and then, ReferenceDropDown.tml: t:select t:id=prop:selectId ... etc / in order to tie the label to the select which is inside my own ReferenceDropDown component. Thoughts? Thanks again, Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 4.1 Component Render
How do I get a page to render a component that I have set up in the page class? I have done this successfully OnePage.html span jwcid=@OneComponent/ but instead of just grabbing OneComponent from the pool I need to use the one that I set up in the rendering of OnePage OnePage.java @Component public abstract void getOneComponent(); I need to do some setup on this component before I let it render. If there is another way to do this then that would work too but right now I am doing this before OnePage is rendered getOneComponent().setSomeData(thisData); Any help would be appreciated. Thank You - Scott Smith
Re: Tapestry 4.1 Component Render
I found the answer to my question. span jwcid=oneComponentComponent Goes Here/span On Nov 1, 2007 4:01 PM, Scott Smith [EMAIL PROTECTED] wrote: How do I get a page to render a component that I have set up in the page class? I have done this successfully OnePage.html span jwcid=@OneComponent/ but instead of just grabbing OneComponent from the pool I need to use the one that I set up in the rendering of OnePage OnePage.java @Component public abstract void getOneComponent(); I need to do some setup on this component before I let it render. If there is another way to do this then that would work too but right now I am doing this before OnePage is rendered getOneComponent().setSomeData(thisData); Any help would be appreciated. Thank You - Scott Smith -- - Scott Smith It is not talking but walking that will bring us to heaven. Mathew Henry
Re: T5: actionlink in another page/class
Hi Josh, Thanks, it works, so method should be declared as OnDeleteConfirm, then createActionLink(DeleteConfirm,...) A.C. Josh Canfield-2 wrote: resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); The action you are invoking is deleteConfirm, the event method is onActionFromDeleteConfirm so your action link should look like this: Actually, I take that back. Your event method should be onDeleteConfirm. You aren't creating it from the action component so the ActionFrom part is not used. Josh On 11/1/07, Josh Canfield [EMAIL PROTECTED] wrote: resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); The action you are invoking is deleteConfirm, the event method is onActionFromDeleteConfirm so your action link should look like this: resources.createActionLink(deleteConfirm, false, id).toURI(); Josh On 11/1/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi, I have a page which generate a link to an action in the same page, the link was embedded in a Streamresponse, when I click the link in the browser, it does not activate the action link created, why? Here is the code: public class TestPage2 { @Inject private ComponentResources resources; public StreamResponse onActionFromDelete(Long id) { String link1 = resources.createActionLink(onActionFromDeleteConfirm, false, id).toURI(); return new TextStreamResponse(text/html, String.format( a href='%s'Confirm , link1)); } public String onActionFromDeleteConfirm(Long id) { System.out.println(delete confirm); return null; } } html xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleStart Page/title /head body h1Test Page/h1 t:actionLink t:id=Delete context=1Delete/t:actionLinkbr/ /body /html -- View this message in context: http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13526220 Sent from the Tapestry - User mailing list archive at Nabble.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. -- View this message in context: http://www.nabble.com/T5%3A-actionlink-in-another-page-class-tf4730427.html#a13539594 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: How can I inject a different resource type?
Michael Lake wrote: Basically, I want to be able to store my component .tml files in a database. I've been looking at the code, stepping through the debugger, and it seems that I need to implement org.apache.tapestry.ioc.Resource or perhaps extend AbstractResource. ClasspathResouce and ContextResource are classes that already extend AbstractResource. I assume these are what load the .tml files either from classpath or from a file on the context. I'm having trouble navigating the code to the point where I could tell a component to choose a resource( content of .tml) from an alternate storage. Can someone point me in the right direction? I'm not afraid of editing tapesty base code if I have to, although I'd rather not (perhaps I can inject a custom implementation?) I'm scared I might be limited to providing the .tml content via URL..is that so? Thanks Michael Lake after more digging, i can see I need to provide an AssetFactory... lets say DatabaseAssetFactory which could return a DatabaseResource which would implement Resource I'll need something like @Marker(DatabaseProvider.class) which is in InternalModule.. ...I'll keep digging.. -mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] One way to get the context path when you need to inject it straight into HTML
The mailinglist/nabble formatting cut out some stuff... here's the relevant snippet: Jim Roycroft wrote: ... Note the path to csshover2.htc, obviously it's going to break if I don't get the context path in there. Here's my solution: style type=text/css media=screen !-- This is an IE6 and below hack to make the menu work. -- body{ behavior: url( span jwcid=@Insert value=ognl:cssHoverScript.buildURL() / ); } /style ... -- View this message in context: http://www.nabble.com/-T4--One-way-to-get-the-context-path-when-you-need-to-inject-it-straight-into-HTML-tf4735543.html#a13542238 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] One way to get the context path when you need to inject it straight into HTML
Thanks Jim, good stuff! I was pondering about the same issue just the other day. Kalle On 11/1/07, Jim Roycroft [EMAIL PROTECTED] wrote: The mailinglist/nabble formatting cut out some stuff... here's the relevant snippet: Jim Roycroft wrote: ... Note the path to csshover2.htc, obviously it's going to break if I don't get the context path in there. Here's my solution: style type=text/css media=screen !-- This is an IE6 and below hack to make the menu work. -- body{ behavior: url( span jwcid=@Insert value=ognl:cssHoverScript.buildURL() / ); } /style ... -- View this message in context: http://www.nabble.com/-T4--One-way-to-get-the-context-path-when-you-need-to-inject-it-straight-into-HTML-tf4735543.html#a13542238 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]