Re: How to pass a javascript function in tapestry mixin

2014-02-26 Thread Boris Horvat
On Wed, Feb 26, 2014 at 1:02 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 25 Feb 2014 21:30:39 -0300, Boris Horvat > wrote: > > Sorry Thaigo, but I am not sure what you had in mind. >> If you think about >> That's something to avoid as much as possible. >> > > I wasn't

Re: beaneditor for complex object

2014-02-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Feb 2014 14:09:53 -0300, Kalle Korhonen wrote: Beaneditor doesn't handle nested entities. Beaneditor (or the underlying BeanEditForm) renders an html form and nested forms are not allowed. BeanEditor does *not* render a element, so you can nest a BeanEditor inside another or i

Re: beaneditor for complex object

2014-02-26 Thread Kalle Korhonen
Beaneditor doesn't handle nested entities. Beaneditor (or the underlying BeanEditForm) renders an html form and nested forms are not allowed. One of the simplest things you could do is to render just those field you actually need to edit from the child object. Or, if you want a complete solution, t

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread Lance Java
Some serverside actions (eg autocomplete) expect a well formed request which may require some request parameters to be present. As you can imagine, a bot can run regular expressions and hit anything the looks like a URL. I think it's fine to ignore crawlers from error logging. It's difficult to do

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread George Christman
Thanks for the reply lance. What does the actual exception mean? Does is it mean a request is being set with a missing parameter to the autocomplete component? I vaguely remember seeing this a long time ago while writing a custom autocomplete component. As far as the logs, I'm hosting the app on

Re: Autocomplete exception blank query parameter.

2014-02-26 Thread Lance Java
Sounds like a webcrawler / bot to me. Do you have the apache logs? You could check the user agent header. As a fix, Google for the list of known bots and their user agent headers and customised tapestry's exception reporting so that exceptions are not logged for crawler user agents.

Autocomplete exception blank query parameter.

2014-02-26 Thread George Christman
Hi guys, I'm using tapestry 5.4-beta 3 and I have a keyword search on my website using the auto complete mixin. I'm seeing the following exception appear in my logs 100's of times. I have been unable to reproduce it, so im assuming it is happening as a result of bot activity, but I can not confirm

Re: Reading messages for a different Locale than default locale

2014-02-26 Thread Thiago H de Paula Figueiredo
On Tue, 25 Feb 2014 21:46:17 -0300, java qns wrote: Hi Hi! I am a beginner with tapestry and have a question about messages. Is it possible to read messages from a different locate other than the default locale that is set in tapestry web application. You need to set the Tapestry locale

Re: beaneditor for complex object

2014-02-26 Thread Thiago H de Paula Figueiredo
You should either explicitly persist the inner object itself or add a cascading option to the relationship mapping. This isn't related to Tapestry at all, just to the way you're using Hibernate. On Wed, 26 Feb 2014 07:59:37 -0300, nn kk wrote: Hi I'm trying to create edit form for my hibe

Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread Thiago H de Paula Figueiredo
On Wed, 26 Feb 2014 06:57:27 -0300, garz wrote: Hi, Hi! i was just curious about why Tapestry is using a Filter instead of a Servlet. Does anyone know? As Lance said, a servlet is and endpoint and it must send a response to a request. This causes servlets to be useless when you're tryi

Re: How to pass a javascript function in tapestry mixin

2014-02-26 Thread Thiago H de Paula Figueiredo
On Tue, 25 Feb 2014 21:30:39 -0300, Boris Horvat wrote: Sorry Thaigo, but I am not sure what you had in mind. If you think about That's something to avoid as much as possible. I wasn't clear. I meant to say you should avoid passing a whole function definition. Just passing a function valu

Re: How to pass a javascript function in tapestry mixin

2014-02-26 Thread Dmitry Gusev
https://github.com/got5/tapestry5-jquery/issues/244#issuecomment-36102130 On Wed, Feb 26, 2014 at 3:50 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 25 Feb 2014 21:30:39 -0300, Boris Horvat > wrote: > > Sorry Thaigo, but I am not sure what you had in mind. >> >> If yo

Re: How to pass a javascript function in tapestry mixin

2014-02-26 Thread Thiago H de Paula Figueiredo
On Tue, 25 Feb 2014 21:30:39 -0300, Boris Horvat wrote: Sorry Thaigo, but I am not sure what you had in mind. If you think about That's something to avoid as much as possible. What are you talking about? Well first I am not sure why is this the case. If tapestry supports passing configu

beaneditor for complex object

2014-02-26 Thread nn kk
Hi I'm trying to create edit form for my hibernate entities. For example: @Entity @Table(name = "SOME_OBJECT") public class SomeObject implements Serializable { ... @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "SUB_OBJECT_ID", nullable = false) private SubObject su

Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
thank you, thats it :) On 26.02.2014, at 11:22, Lance Java wrote: > Well... You can have the Tapestry filter mapped to /* and it can play > nicely with other servlets. > > http://tapestry.apache.org/configuration#Configuration-ConfiguringIgnoredPaths ---

Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread Lance Java
Well... You can have the Tapestry filter mapped to /* and it can play nicely with other servlets. http://tapestry.apache.org/configuration#Configuration-ConfiguringIgnoredPaths

Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
yes i know that, but it does not answer my question. :) On 26.02.2014, at 11:09, Lance Java wrote: > A filter is passed a reference to the FilterChain which can ultimately pass > through to the servlet container's own url resolution (ie a resource in the > war). > > A servlet is an endpoint and

Re: Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread Lance Java
A filter is passed a reference to the FilterChain which can ultimately pass through to the servlet container's own url resolution (ie a resource in the war). A servlet is an endpoint and must resolve the URL itself.

Why is using Tapestry a Filter instead of a Servlet

2014-02-26 Thread garz
Hi, i was just curious about why Tapestry is using a Filter instead of a Servlet. Does anyone know? Regards garz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestr