Re: How to upload a file using tapestry

2012-02-10 Thread karthi
My problem solved successfully uploaded the file thank you very much for your help added the needed jar files commons-fileupload-1.2.2 to my workpath... -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-upload-a-file-using-tapestry-tp5474348p5474526.html Sent from the

Re: How to upload a file using tapestry

2012-02-10 Thread karthi
Added that tapestry-upload-5.3.1 jar file in my workspace but it throws java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory at run time? What is the problem here, Do I miss any dependency jar files? -- View this message in context: http://tapestry.1045711.n5.nabble.co

Re: How to upload a file using tapestry

2012-02-10 Thread karthi
Thank you for your reply, I've seen that link but I din't understand the UploadedFile file - that's why posted here... Can you tell me what is that refers? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-upload-a-file-using-tapestry-tp5474348p5474515.html Sent from

Request about AbstractField

2012-02-10 Thread Giulio Micali
Hi, I'm writing components, that includes fields, that uses my ajax mixins, and I'm facing a lot of problems due to the following issues(I'm still using tap 5.1.0.5/5.2.6, but I'm planning an upgrade): 1) all the standard fields does not expose a public or protected methods to get/set the "value"

Re: How to add a java variable value in href

2012-02-10 Thread Taha Hafeez
Hi Use PageRenderLinkSource#createPageLinkWithContext(Registration.class, myRandomGenerator()) to create page links and then in your page(Registration in this case) use @PageActivationContext private String myRandomValue; or void onActivate(String myRandomValue){ this.myRandomValue = myRand

Re: How to upload a file using tapestry

2012-02-10 Thread Taha Hafeez Siddiqi
Hi These are google results http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=tapestry+file+upload and the first link is http://tapestry.apache.org/uploading-files.html The first thing I try when searching for tapestry documentation is to go to http://tapestry.apache.org/documentation

How to add a java variable value in href

2012-02-10 Thread karthi
Hi, I am developing a registration form using tapestry, in that I have to sent email to user for verification and I have done that. Now I want to add a java variable value to the href component how can I do that? MimeMessageHelper helper = new MimeMessageHelper(message, true); helper.setFrom

Re: How to get the selected value from radio group

2012-02-10 Thread karthi
Thank you very much it solved my problem now am getting the value what the user selected in the UI radio component. And what is the way to mark my thread as resolved? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-get-the-selected-value-from-radio-group-tp5472198p5

How to upload a file using tapestry

2012-02-10 Thread karthi
Hi, I need to upload a file using tapestry, I searched but I din't get any clear ideas, Can anyone tell me how to upload a file using tapestry? Thanks in advance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-upload-a-file-using-tapestry-tp5474348p5474348.ht

Select Menu updating AjaxFormZone

2012-02-10 Thread yazdog8
I'm trying to build a section of a form that increments a populated input field every time a Select Menu's onchange event is fired. Essentially all of the possible categories would be loaded in as options to the Select. I've looked all over this board, searched through documentation, and can't real

Re: How to get the selected value from radio group

2012-02-10 Thread Bob Harner
Karthi, "on" is the value a standard HTML radio button () gives upon submission if no "value" was defined. In your example you provided a "t:value" parameter to the Tapestry Radio component, and it is that Radio component's job to render the "value" attribute in the HTML output. The Radio compone

Re: Basic DAO-"Service"-Test-Setup

2012-02-10 Thread Kalle Korhonen
The following is what I use. I use Mockito for mock-ups and basically it's a real Hibernate session (and factory) with a mocked-up T5 HibernateSessionSource: public abstract class PersistenceTest { protected Session session; protected Transaction transaction; protected stat

Re: Tapestry Change hibernate properties on fly

2012-02-10 Thread Nicolas Barrera
Hi Ramprasath, here are my thoughts perhaps you can find them useful when I read this part of the requirement > 2. System will automate the report generation process , i.e kind of query > builder ..Which will connect to the data base and user can generate query > using user interface ( i.

Basic DAO-"Service"-Test-Setup

2012-02-10 Thread stebac
Hello there, I have a question about the usual way of testing with tapestry. I am using Tapestry 5.3.1 and TestNG. My latest tests are currently working, but it took me quite a long time to be at this point and still I think there will be a more intuitive and easier way to setup testing. This is m

Re: How to restrict users only to enter numeric values in text field

2012-02-10 Thread Markus Korth
Hi! Use t:validate="required,maxlength=10,regexp=^[0-9]+$" Markus > Hi, > > > Here is what I coded to have a text field which is used to enter phone > number > > t:label="Phone Number" t:validate="required,maxlength=10" > t:mixins="lombok/watermark" message="Enter your phone number" > class="si

Re: How to get the selected value from radio group

2012-02-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Feb 2012 11:18:23 -0200, karthi wrote: Do you mean this? private String gender; public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } Yep! In form submission and for user selection this gen

Re: How to get the selected value from radio group

2012-02-10 Thread karthi
Do you mean this? private String gender; public String getGender() { return gender; } public void setGender(String gender) { this.gender = gender; } In form submission and for user selection this gender always give me the value on. -- View this message in contex

Re: Tapestry Change hibernate properties on fly

2012-02-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Feb 2012 03:03:20 -0200, Ramprasath wrote: Dear Friends , Hi! 5. Now the requirement is Client wants to turn this to dynamic ..i.e In the very first screen user should provide the connection details through screen ...( Server , user name , password ,database ).. This

Re: How to get the selected value from radio group

2012-02-10 Thread Thiago H. de Paula Figueiredo
On Fri, 10 Feb 2012 09:41:31 -0200, karthi wrote: Hi, Hi! here my problem is in the corresponding java class how to retrieve the radio button value which is selected by the user? The gender field value is set with the user selection after a form submit. -- Thiago H. de Paula Figueired

How to restrict users only to enter numeric values in text field

2012-02-10 Thread karthi
Hi, Here is what I coded to have a text field which is used to enter phone number Can anyone tell me how to restrict users to enter only numeric values (Numeric filter) Thanks in advance. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-restrict-users-only-to-

How to get the selected value from radio group

2012-02-10 Thread karthi
Hi, I have a radio group in the view which contains male and female option to select Gender: * Male Female here my problem is in the corresponding java class how to retrieve the radio button value which is selected by the user? Thanks in advance. -- View this message in context: http://

Re: Tapestry TreeGrid

2012-02-10 Thread Lance Java
> I'm assuming Node.class is your entity class? Correct > I'm using hibernate, so I'm wondering if you are adding an @ID to your nodeId Yes, nodeId is the primary key and parentId is a foreignKey which joins back to the Node table by nodeId and if your using a @ManyToOne on your childNodes? > I

Re: Tapestry 5 with Prototype 1.7

2012-02-10 Thread Javix
Could you tell in which place exactly did you place the new prototype.js file? Thanks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-with-Prototype-1-7-tp3288189p5469538.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry Change hibernate properties on fly

2012-02-10 Thread Ramprasath
Dear Friends , I really appreciate your suggestions and guidance ...Let me explain the requirement in details 1. The application is kind of BI ( Business Intelligence ) tool . 2. System will automate the report generation process , i.e kind of query builder ..Which will connect to the