Client validation occurs even when there is no t:validate

2009-03-06 Thread Borut Bolčina
Hi, I am building a date input component with three select input fields (day, month, year). Actually I am modifying the code from Alexander's book. The goal is that the initial value of all three select components are empty if the date parameter is not provided. Although none of the t:select(s) ha

Re: apache configs to avoid subdirectory conflicts?

2009-03-06 Thread Howard Lewis Ship
My experience hasn't used mod_jk, just running a Tomcat instance and using Apache proxying: ProxyPass /bamboo http://localhost:8085/bamboo ProxyPassReverse /bamboo http://localhost:8085/bamboo ProxyPass /jira http://localhost:8085/jira ProxyPassReverse /jira http://localhost:8085/jira ProxyPass

Re: T5 ConcurrentBarrier / Deadlock

2009-03-06 Thread Alex Kotchnev
I also recall the deadlock issues manifested themselves on particular JVM versions which were fixed in the latest updates. Which Java version are you running ? Cheers, Alex Kotchnev On Thu, Mar 5, 2009 at 12:40 PM, wrote: > Hi! > > We encountered a "small" problem in the way tapestry detects c

Re: hi, about the remotelink minixs

2009-03-06 Thread Alex Kotchnev
Nile, do re-read the T5 docs (e.g. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html, ), I think what you're trying to accomplish with your remotelink mixin is already being accomplished w/ zones: Ajaxy goodness then, i

Re: apache configs to avoid subdirectory conflicts?

2009-03-06 Thread Alex Kotchnev
Michael, as you indicated, this sounds like an apache/ mod_jk issue that would probably be better addressed at the relevant mailing list. You can still try to post your specific mod_jk config here and maybe someone who has dealt w/ a similar config can advise you on the subject. As you indicate,

Re: T5: not all hibernate records saving

2009-03-06 Thread Alex Kotchnev
James, I am not sure if you've solved your problem, but it sounds like you might have non-Tapestry related issues to deal with (e.g. Hibernate). If you still feel that your problems are due to T5, please post some actual code (instead of pseudocode) with a clear statement of your problem. Cheer

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread Andy Pahne
That's possible. Have a look at http://tapestry.formos.com/nightly/tapestry5/tapestry-ioc/coerce.html esp. the section "Contributing new Coercions" Example: I want to pass a User through activation context: class User { private String name; private String password;...} Registration{

Re: 5.1.0.1-SNAPSHOT submit context not workin in a loop

2009-03-06 Thread Howard Lewis Ship
I don't even think I've changed anything in the Submit component, odd. On Fri, Mar 6, 2009 at 12:27 PM, Ville Virtanen wrote: > > Hi, > > I'm getting weird behavior here, it seems that the submit component is not > getting the right context anymore to the event handler when used in loop. > I've d

Re: Invoking a custom show javascript method for a Zone

2009-03-06 Thread Alex Kotchnev
Dave, I'm curious: what kind of hook would have been helpful for your particular case? Tapestry, being a framework optimizes for the common use cases, thus if your case is not i that category, it might be somewhat more difficult (than the common cases and more difficult than 'no framework') . At

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread manuel aldana
manuel aldana schrieb: manuel aldana schrieb: [...] Thanks. Adding @Persist made the trick. But I think I will go for the activation context,[...] But I wonder, how to overcome the HttpSession, if I want to pass multiple values and want to use activation context for that. So far I have only

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread manuel aldana
manuel aldana schrieb: [...] Thanks. Adding @Persist made the trick. But I think I will go for the activation context,[...] But I wonder, how to overcome the HttpSession, if I want to pass multiple values and want to use activation context for that. So far I have only seen onActivation() metho

Tapestry and JPA/Spring transactions

2009-03-06 Thread Jason Tan
Is there a library/resource for opening and closing JPA EntityTransactions per request like how tapestry-hibernate does? I discovered the wiki pageon integrating Spring's @Transactional so you could plac

Re: Tabindex and accesskey in BeanEditForm?

2009-03-06 Thread Luther Baker
Take a look at Thiago's response to my *similar* question earlier today: http://www.nabble.com/t%3ATextField-and-t%3ATextArea-to22375618.html -Luther On Fri, Mar 6, 2009 at 3:25 PM, leechj wrote: > > Hello, > I was wondering if there was an easy way to add properties to fields in a > BeanEdit

Tabindex and accesskey in BeanEditForm?

2009-03-06 Thread leechj
Hello, I was wondering if there was an easy way to add properties to fields in a BeanEditForm. Our application needs "tabindex" and "accesskey" in all fields in order to comply with federal rules dealing with accessibility. Is there a way to add these 2 properties to the fields in the form or shou

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb: On Thu, Mar 5, 2009 at 10:24 PM, Luther Baker wrote: Try adding @Persist to the destination class ... otherwise, I'm not sure you're guaranteed which page instance will get rendered. I would suggest @Persist("flash"): the field is put in the sess

5.1.0.1-SNAPSHOT submit context not workin in a loop

2009-03-06 Thread Ville Virtanen
Hi, I'm getting weird behavior here, it seems that the submit component is not getting the right context anymore to the event handler when used in loop. I've double and triple checked that I only have one consistent set of T5 libraries when the project is run, also the value encoders are there an

Re: Tapestry way for email-templates

2009-03-06 Thread Howard Lewis Ship
Correct; you need a separate process; Tapestry is configured quite differently for templating/mailing than it is for normal, interactive behavior. On Fri, Mar 6, 2009 at 2:25 AM, manuel aldana wrote: > Don't get this. So I can't use T5 templateAPI inside my tapestry 5 app. > > Angelo Chen schrieb

Re: Tapestry 5.1: Wait for Page

2009-03-06 Thread Howard Lewis Ship
It only affects Ajax links; they must explicitly add an onclick event handler attributes. Beyond that, the behavior can be changed by monkey-patching the JavaScript and the CSS. On Fri, Mar 6, 2009 at 3:55 AM, Chris Lewis wrote: > Will this be configurable? While it can be a useful feature, there

Re: Encoding in activation context

2009-03-06 Thread Marcus Veloso
Hi Fernando, Maybe this help. http://code.google.com/p/t5-restful-webservices/ Cheers, Marcue Veloso

Re: Encoding in activation context

2009-03-06 Thread Thiago H. de Paula Figueiredo
Em Fri, 06 Mar 2009 13:34:45 -0300, Fernando Bellas Permuy escreveu: Hi! Hi! Experimentally, I have observed that the client must use the following URL: http://.../myService/40/The$0020Java$0020Programming$0020Language This encoding is done by the org.apache.tapestry5.services.URLEnco

cross field validation with empty fields

2009-03-06 Thread Ivano Luberti
Hello, we are using T4.1 We have to validate a form and we don't want to do it client side. Let say we have three text fields. The validation should implement the following rule: if (fielda="") && (fieldb="" || fieldc="") then throw new Exception(""); The problem is that we cannot link the valida

Encoding in activation context

2009-03-06 Thread Fernando Bellas Permuy
Hi! I am implementing a simple service that returns XML (a RESTful service invoked by GET) as a Tapestry 5 page. That is, the associated template (.tml) does not return HTML/XHTML, but XML. I have used the @ContentType annotation on the page class: @ContentType("text/xml"). All is working fin

Re: t:TextField and t:TextArea

2009-03-06 Thread Thiago H. de Paula Figueiredo
Em Fri, 06 Mar 2009 13:16:44 -0300, Luther Baker escreveu: Is there a global way to explicitly set or override *html *(non-CSS) attributes on tapestry components like textfield and textarea? What you need is to implement a DataTypeAnalyzer, define two "Tapestry types" (in parenthesis beca

t:TextField and t:TextArea

2009-03-06 Thread Luther Baker
Is there a global way to explicitly set or override *html *(non-CSS) attributes on tapestry components like textfield and textarea? For instance, in one particular app, I have to override almost all of my components with t:Parameters that define slightly custom sizes for these: textfield: size="1

[T5.0.18] How to change default persistence strategy for the whole application?

2009-03-06 Thread Tapestry Infodea
Hi guys, I've tried to change the configuration in my application module as follows: public static void contributeFactoryDefaults(MappedConfigurationString> configuration) { configuration.add(PersistentFieldManagerImpl.META_KEY, PersistenceConstants.FLASH); } This approach don't works :( Hav

Re: How to refresh the page if user click "back" button.

2009-03-06 Thread Thiago H. de Paula Figueiredo
On Fri, Mar 6, 2009 at 9:05 AM, Tan cyb...@n wrote: > hi, Hi! > May I know is there any way the tapestry able to detect the page is clicked > by "back" button. then it will refresh itself automatically? > I don wan to use javascript history.foward() to control. HTTP does not automatically warns

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-06 Thread Thiago H. de Paula Figueiredo
On Thu, Mar 5, 2009 at 10:24 PM, Luther Baker wrote: > Try adding @Persist to the destination class ... otherwise, I'm not sure > you're guaranteed which page instance will get rendered. I would suggest @Persist("flash"): the field is put in the session and then removed after it's read the first

How to refresh the page if user click "back" button.

2009-03-06 Thread Tan cyb...@n
hi, May I know is there any way the tapestry able to detect the page is clicked by "back" button. then it will refresh itself automatically? I don wan to use javascript history.foward() to control. Thank you. Regards, Tan

Re: Tapestry 5.1: Wait for Page

2009-03-06 Thread Chris Lewis
Will this be configurable? While it can be a useful feature, there are times where clicking a link (etc) before the page is ready won't break the app. Additionally, I get a little freaked out at any non-essential feature I can't control. So, will it be configurable? sincerely, chris Howard Le

Re: Tapestry JSONObject : no 'function' type, any workaround ?

2009-03-06 Thread Francois Armand
Rico Landefeld wrote: Hello, I had the same annoying problem, but the patch works for me. But my question is: when will be a tapestry maintenance release which contains already this patch? btw, the same problem was solved in tapestry 4.1 long ago. I would like - much prefer in fact - a workar

Re: Tapestry JSONObject : no 'function' type, any workaround ?

2009-03-06 Thread Rico Landefeld
Hello, I had the same annoying problem, but the patch works for me. But my question is: when will be a tapestry maintenance release which contains already this patch? btw, the same problem was solved in tapestry 4.1 long ago. rico On Fri, Mar 6, 2009 at 11:29 AM, Francois Armand wrote: > Hello,

Re: [T5 5.0.18] java.lang.IllegalStateException: Cannot create a session after the response has been committed

2009-03-06 Thread Angelo Chen
I have same error, the reason is, I have a filer to trim off the long jsession IDs from url, solution was, I stopped using invalidate in the T5 side. however, according to Peter, this happens when you have a sendRedirect without a matching return true in a dispatcher, you can try that. Harald Ge

Tapestry JSONObject : no 'function' type, any workaround ?

2009-03-06 Thread Francois Armand
Hello, The JSONObject type doesn't have a "javascript" type that would allows to produce unquoted string value. I'm aware of the https://issues.apache.org/jira/browse/TAP5-39 issue, so my question is : anybody knows a good workaround for that ? Tanks, -- Francois Armand Etudes & Développemen

Re: Tapestry way for email-templates

2009-03-06 Thread Sven Homburg
try http://www.chenillekit.org/chenillekit-template/index.html 2009/3/6 manuel aldana > Don't get this. So I can't use T5 templateAPI inside my tapestry 5 app. > > Angelo Chen schrieb: > >> Hi Howard, >> >> I like that template API, currently I use Velocity, however T5's >> templateAPI >> can't

Re: Tapestry way for email-templates

2009-03-06 Thread manuel aldana
Don't get this. So I can't use T5 templateAPI inside my tapestry 5 app. Angelo Chen schrieb: Hi Howard, I like that template API, currently I use Velocity, however T5's templateAPI can't be part of T5 app, would be great if can be part of T5 app like Velocity. Angelo Howard Lewis Ship wrote:

Re: Tapestry way for email-templates

2009-03-06 Thread Angelo Chen
Hi Howard, I like that template API, currently I use Velocity, however T5's templateAPI can't be part of T5 app, would be great if can be part of T5 app like Velocity. Angelo Howard Lewis Ship wrote: > > http://tapestry.formos.com/nightly/tapestry-templating/ > > On Thu, Mar 5, 2009 at 4:03

[T5 5.0.18] java.lang.IllegalStateException: Cannot create a session after the response has been committed

2009-03-06 Thread Harald Geritzer
hi all, the following code causes IllegalStateExceptions on tomcat 6 while using jetty it works without errors. any idea? public URL onActionFromLinkLogoff() { User user = userDao.load(getVisit().getUserId()); auditDao.audit(AuditType.LOGOFF, user);

Why t5 ioc module 'id' was removed?

2009-03-06 Thread 丁振波
In t5's former version, module has a id like hivemind does, using format like below - package org.example.myapp.services; import org.apache.tapestry.ioc.annotations.Id; @Id("myapp") public class MyAppModule { public static Indexer buildIndexer() { return new IndexerImpl(); } } Inj