tapestry without js libs

2010-02-10 Thread kamiseq
hi, is there any chance to get tapestry lib wihtout any javascript libraires, so I can implement my own logic for client side??? I know that many components depend on javascript but usually I dont use those anyway. I would like to use jquery and I know I can set it to have no conflicts with protot

Re: Adding textfields to a form dynamically

2010-02-10 Thread Stephan Windmüller
Am 09.02.2010 15:49, Michael Prescott wrote: If you can't count on JavaScript, then you need to do a round trip to the server to add new form fields.. in which case, you should be okay using conventional techniques. (e.g. add a black entry to your List, re-render the page). I solved it now by

Re: tapestry without js libs

2010-02-10 Thread Dmitry Gusev
Have you tried to just plug jquery.js to your page and use it? This works for me. On Wed, Feb 10, 2010 at 11:21, kamiseq wrote: > hi, > is there any chance to get tapestry lib wihtout any javascript libraires, > so > I can implement my own logic for client side??? > I know that many components d

Re: tapestry without js libs

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 06:21:27 -0200, kamiseq wrote: hi, Hi! I would like to use jquery and I know I can set it to have no conflicts with prototype. You can use both at the same time with no conflicts: http://api.jquery.com/jQuery.noConflict/ -- Thiago H. de Paula Figueiredo Independen

Re: tapestry without js libs

2010-02-10 Thread kamiseq
yes i know, I ve written that in my original post! but what with components that are overuse prototype like beaneditor. then I need create my own component and so on. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 10 February 2010 11:24, Thiago H.

Re: tapestry without js libs

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 08:41:31 -0200, kamiseq wrote: yes i know, I ve written that in my original post! Ooops, I shouldn't answer way before waking up at least 60% . . . but what with components that are overuse prototype like beaneditor. The only components that use JavaScript a lot are th

Re: tapestry without js libs

2010-02-10 Thread kamiseq
yep I was thinking about BeanEditForm. I will give it a try. > > then I need create my own component and so on. >> > > Why? > I guess because ie BeanEditForm triggers validation event that prototype handles so I dont see a way to intercept that with jQ > > If you really want to run Tapestry wi

Re: tapestry without js libs

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 09:37:09 -0200, kamiseq wrote: I guess because ie BeanEditForm triggers validation event that prototype handles so I dont see a way to intercept that with jQ Take a look at its clientValidation parameter. Set it to false and no client-side validation is made. -- Thiago

Re: Adding textfields to a form dynamically

2010-02-10 Thread Piero Sartini
>> Why don't you want to use @Persist? > > It breaks tabbed browsing. The user would not be able to open two tabs and > edit separate lists before submitting them. Therefore I banned the use of > @Persist in my application. You may want to have a look at tynamo's tapestry-conversation: http://tyna

Reading a .csv file and displaying grid table of it

2010-02-10 Thread Eldred Mullany
Hi everyone I am attempting to read a .csv file from a directory, however I am not sure what I am doing wrong here. I am using a BufferedReader to read the file. Then I am looping through using the readLine() method and assigning each line to an ArrayList, well I thought it was as simple as th

Re: tapestry without js libs

2010-02-10 Thread kamiseq
ok, im wondering why this is hardcoded into component instead moved to mixin, so there wouldnt be a problem with js libs, no mixins no js included in html page. zone refresh, form's ajax submit, validation could all be mixins for components. or am I wrong? pozdrawiam Paweł Kamiński kami...@gmail

Re: Adding textfields to a form dynamically

2010-02-10 Thread Stephan Windmüller
Am 10.02.2010 13:22, Piero Sartini wrote: Why don't you want to use @Persist? It breaks tabbed browsing. The user would not be able to open two tabs and edit separate lists before submitting them. Therefore I banned the use of @Persist in my application. You may want to have a look at tynamo's

RE: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Eldred Mullany
Ahh no formatting allowed. The .csv table is 3 columns and 8 rows. The grid displays 8 rows but one column ? Thanks -Original Message- From: Eldred Mullany Sent: 10 February 2010 02:37 PM To: Tapestry users Subject: Reading a .csv file and displaying grid table of it Hi everyone

Re: tapestry without js libs

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 10:42:02 -0200, kamiseq wrote: ok, im wondering why this is hardcoded into component instead moved to mixin, so there wouldnt be a problem with js libs, no mixins no js included in html page. It's not that easy. Mixins are applied statically, while validation can be

Speeding up Autocomplete mixin

2010-02-10 Thread Stephan Windmüller
Hello! I just experimented with the autocomplete AJAX mixin. The values are generated correctly, but the response is very slow. This is caused by the database lookup which takes very long to retain all objects and retrieving the label for them. Is it possible to cache the list of Strings som

Re: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 10:44:52 -0200, Eldred Mullany wrote: Ahh no formatting allowed. The .csv table is 3 columns and 8 rows. The grid displays 8 rows but one column ? The easiest way of doing what you want is to create a class containing a property for each column. Parse the file, fill th

RE: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Kristian Marinkovic
you have to parse your csv line into multiple strings columns take a look at SuperCSV, a handy library for handling csv files in java g, kris "Eldred Mullany" 10.02.2010 13:44 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema RE: Reading a .csv file and displaying

RE: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Eldred Mullany
Thank you -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 10 February 2010 02:54 PM To: Tapestry users Subject: Re: Reading a .csv file and displaying grid table of it On Wed, 10 Feb 2010 10:44:52 -0200, Eldred Mullany wrote: > Ahh no formatti

Re: tapestry without js libs

2010-02-10 Thread kamiseq
ok I forgot that tapestry is auto generating code for custom components. :] well 1:0 for you pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 10 February 2010 13:53, Thiago H. de Paula Figueiredo wrote: > On Wed, 10 Feb 2010 10:42:02 -0200, kamise

Re: Speeding up Autocomplete mixin

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 10:54:04 -0200, Stephan Windmüller wrote: Hello! Hi! I just experimented with the autocomplete AJAX mixin. The values are generated correctly, but the response is very slow. This is caused by the database lookup which takes very long to retain all objects and retr

Re: Speeding up Autocomplete mixin

2010-02-10 Thread Kristian Marinkovic
dont query the database then! :) there are many possible solutions: - enable caching (2nd level cache, hibernate) if the same data is read - precalculate the data and store them in a singleton service - or just read the whole data and keep it in memory as long as it is not to big (and static) ..

Re: Speeding up Autocomplete mixin

2010-02-10 Thread Robert Zeigler
a) You could cache the results in your page or component class, but b) Caching the results is probably a bad idea since the results are going to change depending on what the user types, and whether they continue typing once the first results come up. It sounds like you really need to spend s

Re: Speeding up Autocomplete mixin

2010-02-10 Thread Stephan Windmüller
Am 10.02.2010 13:56, schrieb Thiago H. de Paula Figueiredo: Is it possible to cache the list of Strings somehow for this mixin to speed things up? Yes, but you must do it yourself in your code. If you're using Hibernate, enabling caching for that query would be an easy, configurable solution. A

Re: Adding textfields to a form dynamically

2010-02-10 Thread Piero Sartini
> This sounds very promising, thanks for the link! > > The demo does not work without JavaScript, I hope it is not a general > problem with the project. This is because zones are used to refresh the page. It has nothing to do with the conversation stuff. Piero --

Plugin registry

2010-02-10 Thread Piero Sartini
Hello list, I've thought about creating some kind of plugin list for tapestry5. My feeling is that its hard to find integrations or functionality or know what kind of modules are available - especially for new users. What do you all think about creating a place where these plugins can be easily fo

RE: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Eldred Mullany
Thanks Thiago, its working now ! -Original Message- From: Eldred Mullany Sent: 10 February 2010 02:58 PM To: 'Tapestry users' Subject: RE: Reading a .csv file and displaying grid table of it Thank you -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmai

RE: Reading a .csv file and displaying grid table of it

2010-02-10 Thread Wilson Ikeda
Better for you to use apache commons or iText to do this, the reason of your problem is because you are not parsing the headers on your extracted line. On 2/10/10 9:49 PM, "users-digest-h...@tapestry.apache.org" wrote: > From: Eldred Mullany > Date: Wed, 10 Feb 2010 14:44:52 +0200 > To: Tapest

Re: Plugin registry

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 11:24:12 -0200, Piero Sartini wrote: Hello list, Hi! I've thought about creating some kind of plugin list for tapestry5. My feeling is that its hard to find integrations or functionality or know what kind of modules are available - especially for new users. What do you

what is classpath of running tapestry application?

2010-02-10 Thread Yury Luneff
I'm trying to have jasperreports integrated in my application and the thing is that I must point out the font file for jasperreports to render cyrillic. I do this by: The main attribute is, of cource, "pdfFontName". In standalone jasper generator iReport everything works fine as "a

Re: what is classpath of running tapestry application?

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 14:41:52 -0200, Yury Luneff wrote: I would like some thoughts about "What is considered to be classpath in running tapestry application?" Absolutely the same classpath for any other Java web application. (the one listed on exception page is not quite right) and "how to

Nested AjaxFormLoop

2010-02-10 Thread Michael Prescott
I've got a nested AjaxFormLoop. (Let's say loop 'A' with loop 'B' inside it.) So far so good, except the addRowLink (unlike the removeRowLink) doesn't pass any context, so I'm not sure how to tell which part of my backing data model to update. Is there something obvious I'm missing, or is this a

Re: what is classpath of running tapestry application?

2010-02-10 Thread Yury Luneff
it seemed i did not actually overcome font problem in ireport standalone so happy night hacking russian fonts in the world in fully internationalized java apps ;( - To unsubscribe, e-mail: users-unsubscr...@tapestry.apa

Re: Nested AjaxFormLoop

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 15:23:11 -0200, Michael Prescott wrote: Is there something obvious I'm missing, or is this a hiccup in my grand schemes? I guess AjaxFormLoop was not meant to be nested . . . -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant,

Re: Plugin registry

2010-02-10 Thread Piero Sartini
> Why not an specific page in the Tapestry wiki and link it from the site? This is what I've thought about - Struts2 does it within a wiki as well. However, they are using confluence. I am pretty sure we are able to accomplish something similar with MoinMoin... but I am getting Internal Server err

Re: Nested AjaxFormLoop

2010-02-10 Thread Michael Prescott
Ah no! I was wrong. You can supply a context using the 'context' parameter of the AjaxFormLoop itself. Phew! Michael On Wed, Feb 10, 2010 at 12:30 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 10 Feb 2010 15:23:11 -0200, Michael Prescott < > michael.r.presc...@gmail.

components in JAR's

2010-02-10 Thread Alfonso Quiroga
Hi! I read some reviews about wicket and they say one adventage (over tapestry) is the possibility of packaging a component in a JAR file. This is not possible in T5? I am confused because t5-upload it's a JAR file that has it's own module, but I don't know if there are components inside. Maybe, if

Re: components in JAR's

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 18:28:40 -0200, Alfonso Quiroga wrote: Hi! I read some reviews about wicket and they say one adventage (over tapestry) is the possibility of packaging a component in a JAR file. This is not possible in T5? This is absolutely possible. Not only that, you can package pag

Passing parameters to an autocomplete mixin.

2010-02-10 Thread Erick Erickson
We've set up an autocomplete mixin, and that works just fine, except... I want the autocomplete to query different dictionaries based on which of several radiobuttons in another component on the page have been clicked. Don't worry about changing autocomplete dictionaries, that's already worked out.

Re: components in JAR's

2010-02-10 Thread Alfonso Quiroga
Thanks Thiago, always fast and clear. So clear that I will ask something (maybe basic) I don't get. They say wicket is better in the component model, they talk about "dynamic component model" where tapestry is static. What does it mean? I paste here the answer I got from a user, I hate wicket urls,

Re: components in JAR's

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 18:46:50 -0200, Alfonso Quiroga wrote: Thanks Thiago, always fast and clear. So clear that I will ask something (maybe basic) I don't get. They say wicket is better in the component model, they talk about "dynamic component model" where tapestry is static. What does it m

Re: Passing parameters to an autocomplete mixin.

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 18:44:33 -0200, Erick Erickson wrote: I can access the autocompleteField appropriately, and find whatever *literal* I've specified there ("blah" in this case). But let's say I have another component on my page that is a t:radiogroup with some radiobuttons. Get the va

Re: Passing parameters to an autocomplete mixin.

2010-02-10 Thread Erick Erickson
Thanks, Thaigo, that gives me enough direction that I don't think I'll flounder like I have been. Erick On Wed, Feb 10, 2010 at 4:06 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 10 Feb 2010 18:44:33 -0200, Erick Erickson < > erickerick...@gmail.com> wrote: > > I

Re: components in JAR's

2010-02-10 Thread Alfonso Quiroga
Thanks again, just one point, he is NOT my friend, it's a wicket user and deffender. The link is this http://chillenious.wordpress.com/2008/06/04/wicket-and-tapestry-compared/ Remember when Howard said "blog please!" because many people doesn't know about T5? Go to the end of the page and you'll se

Re: components in JAR's

2010-02-10 Thread Thiago H. de Paula Figueiredo
On Wed, 10 Feb 2010 19:26:14 -0200, Alfonso Quiroga wrote: Thanks again, just one point, he is NOT my friend, it's a wicket user and deffender. The link is this http://chillenious.wordpress.com/2008/06/04/wicket-and-tapestry-compared/ That post is old (June 2008) and Tapestry improved a lot

searchengine bots and tapestry

2010-02-10 Thread Sergey Kashin
I have a problem with Ajax pages and google bot. Then google bot view ajax pages tapestry 5.1.0.5 throw many exceptions. like "Caused by: java.lang.RuntimeException: A component event handler method returned the value Block[Body of page:goodzone, at context:page.tml, line 61]. Return type or