T5 : Editable Select
Dear all, I need to make an editable select box : i.e the user can either chose one of the option in the select box or type a custom String. Is it possible to make something like this with Tapestry 5? Thanks, Martin -- View this message in context: http://www.nabble.com/T5-%3A-Editable-Select-tf4815487.html#a13776203 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] Simple question about select and enum
Hi, Try this : in your Page.html : t:select id=enumVar value=enumVar/ - in Page.java : EnumType enumVar; --- in your EnumeType.java public enum EnumeType{ val1,Val2,Val3; } TNO wrote: Hi, I want to create a very simple select list from an enum. t:select model=${reportModel} value=${report}/ But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks Tom --- Antivirus avast! : message Sortant sain. Base de donnees virale (VPS) : 071114-0, 14/11/2007 Analyse le : 15/11/2007 16:50:02 avast! - copyright (c) 1988-2007 ALWIL Software. http://www.avast.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-T5--Simple-question-about-select-and-enum-tf4815229.html#a13776401 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: onchange event from a select
Hello, this solution will submit the form, but 'onchange', I need to modify the value of the other select instead of submitting the form Martin CarstenM wrote: Hello, well, I dont know if its a nice solution but I realized it with several forms. Then you can handle the form event and update your second select box. t:select onchange=this.form.submit();/ Cheers, Carsten martin boulanger wrote: Hello, I have the same need, but I don't know how to make it. Does any one has an idea? Thanks, Martin Leon Derks wrote: I want to be able to update a second select, based on the value in the first select box. So I want to process it on the server-side, or with AJAX. Is there a way to catch the onchange event in my java page? JP Date: Sun, 23 Sep 2007 23:37:52 -0700 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: T5: onchange event from a select Do you want it to be processed on the server side, or on the client side? For javascript, you should be able to just add an onchange attribute. If you want to add AJAX support, I'm not sure how to do that yet. Josh On 9/23/07, Josh Penza [EMAIL PROTECTED] wrote: How can I catch the onchange event from a select in T5? are there examples? -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. _ De leukste video's en de beste concerten vind je op MSN Video http://video.nl.msn.com/v/nl-nl/v.htm -- View this message in context: http://www.nabble.com/T5%3A-onchange-event-from-a-select-tf4504142.html#a13743266 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: onchange event from a select
Hello, I have the same need, but I don't know how to make it. Does any one has an idea? Thanks, Martin Leon Derks wrote: I want to be able to update a second select, based on the value in the first select box. So I want to process it on the server-side, or with AJAX. Is there a way to catch the onchange event in my java page? JP Date: Sun, 23 Sep 2007 23:37:52 -0700 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: T5: onchange event from a select Do you want it to be processed on the server side, or on the client side? For javascript, you should be able to just add an onchange attribute. If you want to add AJAX support, I'm not sure how to do that yet. Josh On 9/23/07, Josh Penza [EMAIL PROTECTED] wrote: How can I catch the onchange event from a select in T5? are there examples? -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. _ De leukste video's en de beste concerten vind je op MSN Video http://video.nl.msn.com/v/nl-nl/v.htm -- View this message in context: http://www.nabble.com/T5%3A-onchange-event-from-a-select-tf4504142.html#a13723294 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 - Upload File Component : NullPointerException
Hello, I would like to upload a file using a tapestry form. I have followed the example presented here: http://tapestry.apache.org/tapestry5/tapestry-upload/ HTML : t:form t:errors/ input t:type=upload t:id=file validate=required/ br/ input type=submit value=Upload/ /t:form JAVA : public class UploadExample { private UploadedFile _file; public UploadedFile getFile() { return _file; } public void setFile(UploadedFile file) { _file = file; } public void onSuccess() { File copied = new File(/my/file/location/ + _file.getFileName()); _file.write(copied); } } But when I try to access the page, I get a java.lang.NullPointerException. And I don’t understand which variable should be initialized. I used FileUpload 1.2 org.apache.tapestry.ioc.internal.util.TapestryException location classpath:… / UploadExample.html, line 13, column 65 body t:form t:errors/ input t:type=upload t:id=file validate=required/ br/ input type=submit value=Upload/ /t:form /body java.lang.NullPointerException Stack trace • org.apache.tapestry.upload.components.Upload.beginRender(Upload.java:146) • org.apache.tapestry.upload.components.Upload.beginRender(Upload.java) • org.apache.tapestry.internal.structure.ComponentPageElementImpl$10$1.run(ComponentPageElementImpl.java:345) • org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:931) • org.apache.tapestry.internal.structure.ComponentPageElementImpl.access$100(ComponentPageElementImpl.java:69) • …… Does someone knows how to solve this ? Thank you very much, Martin -- View this message in context: http://www.nabble.com/T5---Upload-File-Component-%3A-NullPointerException-tf4777695.html#a13667023 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]