Re: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread lasitha
Perhaps you could look at implementing your own HibernateSessionSource and overriding (aliasing) the one that comes with tapestry-hibernate ? This way, you could use the OSIV functionality provided by tapestry-hibernate while leveraging your configuration in spring. No need for any additional fil

RE: T5 user servlet mapped to extension *.spr gets rejected as invalid component

2007-10-24 Thread Jonathan Barker
Connor To get pointed in the right direction, take a look at org.apache.tapestry.internal.services.StaticFilesFilter It sounds like Tapestry looks for a file named whatever.spr and doesn't actually find it in the filesystem and therefore assumes it must be a Tapestry page/component reference.

T4: Change locale from Page

2007-10-24 Thread Joshua Jackson
Dear all, Is it possible to change locale from the page instead of from the browser using T4? Thanks in advance -- What you want today, may not exist tommorrow Blog: http://joshuajava.wordpress.com/ - To unsubscribe, e-mail:

Re: T5: hidden fields

2007-10-24 Thread Nick Westgate
You should use getElementName() after the name parameter. Cheers, Nick. Kristian Marinkovic wrote: for the time being there is no Hidden component available in T5 you can use the component below: public class Hidden extends AbstractTextField { @Override protected void writeFi

Re: T5: hidden fields

2007-10-24 Thread César Lesc
If you need a hidden field probably is because you need context information in a form, I suggest to use the context parameter of the form component. You can get this parameter in the onSubmit event (or the others forms events as well). If not the case sorry! ;) Cesar. On 10/24/07, Angelo Chen <

Re: T[5] Organizing components/layouts

2007-10-24 Thread Nick Westgate
You need to use Cheers, Nick. Ying Lee wrote: Thx, it works. There seems to be some inconsistency here. When I try: it doesn't work.. Ronald Date: Wed, 24 Oct 2007 13:53:09 -0400 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: T[5] Organizing components/layouts Take a

Re: T[5] Organizing components/layouts

2007-10-24 Thread Nick Westgate
Try because of name optimizations: http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html Cheers, Nick. ronaldlee wrote: Hi, I am able to create a simple layout components. But I want to organize my components by putting them into a sub-package under the default "com

Re: T5.07 SNAPSHOT! Where is the Inject Annotation??

2007-10-24 Thread Donyee
Thanks all! 2007/10/24, Robin Helgelin <[EMAIL PROTECTED]>: > > On 10/24/07, lasitha <[EMAIL PROTECTED]> wrote: > > https://issues.apache.org/jira/browse/TAPESTRY-1800 > > > > Its a good idea to keep an eye on jira or the developer mailing list > > for some forewarning of such chanages :). > > Or

Re: [T5] Dispatcher Page possible?

2007-10-24 Thread Stephan Schwab
Christian Gorbach wrote: > > is it possible to implement a dispatcher/delegate page which is able to > forward to another known page class if business logic decides to do so. > It should be a pure server-side RequestDispatcher.forward and no redirect. > You can return a page from the onActiva

Re: T5: [novice] a MVC example

2007-10-24 Thread Christian Edward Gruber
Um... every example is MVC, since the framework is an implementation of a component/event driven MVC architecture. The basic tutorial on the main tapestry 5 website is a good place to start. It walks you through using a model object which is then rendered for editing. Christian. On 24-Oc

T5 user servlet mapped to extension *.spr gets rejected as invalid component

2007-10-24 Thread trekmbikes
Hi, I have the tapestry filter set up as usual, and I have a separate servlet that's mapped to incoming requests with the url-pattern "*.spr". When I try to request one of the spr pages, the Tapestry filter intercepts the request as expected, looks for the component with the specified name, and r

T5: [novice] a MVC example

2007-10-24 Thread Gianluigi
someone can post a MVC example using Tapestry 5 please? Thanks a lot Exqui ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-24 Thread Jesse Kuhnert
Another ognl jira ticket with as much specific information as possible would help me either way. Since you are getting errors that mention OgnlRuntime I'm thinking this isn't a compile time issue at all so would probably consider it more important than most to fix. (assuming I'm able to re-produc

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-24 Thread andyhot
well, it must be ognl related after all... In http://jira.opensymphony.com/browse/OGNL-130 you mentioned you tried selected="ognl:getTab().getSearchCriteriaSelections().get(currentFilterGroupIndex).get(currentFilterIndex)" Well, I'm wondering if selected="ognl:getTab().getSearchCriteriaSelecti

RE: T[5] Organizing components/layouts

2007-10-24 Thread Ying Lee
Thx, it works. There seems to be some inconsistency here. When I try: it doesn't work.. Ronald > Date: Wed, 24 Oct 2007 13:53:09 -0400 > From: [EMAIL PROTECTED] > To: users@tapestry.apache.org > Subject: Re: T[5] Organizing components/layouts > > Take a look at this: > > http://wiki.apache.o

RE: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread trekmbikes
To answer your first question, that seems like it's easier said than done :) Tapestry 5 wants complete control over the URLs, which is why it's implemented as a filter to begin with (because it would be very difficult to map all the possible patterns to a servlet). It makes the page name lowercase

Re: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread Chris Lewis
Ah - so your issue is you already have Spring managing your Sessions - I understand. Unfortunately I don't use Spring, but I know integration with it is the goal of tapestry-spring. I wish I could be of more help, but I know someone else should be. sincerely, chris trekmbikes wrote: Hi Chris

RE: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread Jonathan Barker
Hi. I also use Spring for Hibernate configuration, and the OSIV filter. I tend to need connections to multiple databases. Can you not configure the OSIV filter only for those URL patterns that match your tapestry pages? Also, and this is a question I don't know the answer to: Is opening a sessi

Re: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread trekmbikes
Hi Chris, That would be great except that by using tapestry-hibernate, I'm allowing tapestry to create an entirely new instance of the Hibernate SessionFactory just for itself (seems like a waste of memory). Also in order for that to work I'd have to move all my Hibernate configuration stuff out o

Re: T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread Chris Lewis
I'm showing my inexperience with hibernate in web applications here, but tapestry-hibernate provides a thread-safe session-per-request implementation by default (http://tapestry.apache.org/tapestry5/tapestry-hibernate/). Is this not sufficient? trekmbikes wrote: I'm brand new to Tapestry. I

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-24 Thread Dom Couldwell
Updated first For loop to: but we still get the error during form submit: 2007-10-24 15:01:56,408, ERROR, [com.db.rdq.web.tapestry.html.RDQException], line 22, org.apache.tapestry.BindingException 2007-10-24 15:01:56,408, ERROR, [com.

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-10-24 Thread andyhot
looks like an issue during rewind - take a look at all those parameters and the hints for the @For component at http://tapestry.apache.org/tapestry4.1/components/general/for.html If the form worked in 4.0 and you weren't getting any |StaleLinkExceptions|, then using volatile="true" should proba

T4.1.3 loop index issues, migrating from 4.0.2

2007-10-24 Thread Dom Couldwell
Thanks to Jessie for his help fixing our last issue (We've updated to the ognl 2.7.2 snapshot which fixed it) but and have run into another issue migrating form 4.0.2 to 4.1.3. The following works fine under 4.0.2: Under 4.1.3 the pa

Re: T[5] Organizing components/layouts

2007-10-24 Thread Daniel Jue
Take a look at this: http://wiki.apache.org/tapestry/Tapestry5ComponentClassResolverError In my code I do things like this: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ...etc ...etc On 10/24/07, ronaldlee <[EMAIL PROTECTED]> wrote: > > Hi, > > I am able to create a simpl

T5 / Spring / Hibernate Lazy Loading

2007-10-24 Thread trekmbikes
I'm brand new to Tapestry. I have a large application that uses Spring to configure the Hibernate SessionFactory. I have a request interceptor defined in Spring so that I can bind a Hibernate session to each request's thread. Closure of the session is deferred until the request returns, to prevent

T[5] Organizing components/layouts

2007-10-24 Thread ronaldlee
Hi, I am able to create a simple layout components. But I want to organize my components by putting them into a sub-package under the default "components", but it is not working. For example, if I put my BasicLayout.java and .html file just under "components", and my content page reference that

[T5] Dispatcher Page possible?

2007-10-24 Thread Christian Gorbach
hi all, is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. thanks in advance c)hristian -- View this message in context: http:

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Christian Gruber
This feels a little kludgy, but you can always use a signal that is reset at some time after the activation. syncLists would then just check that boolean signal to see if it had already been run. Alternately, If you have a spring-style prototype scope in your services (ie, created anew for

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Britske
Make that: onActivate(Object[] list) { if(params==null || params!=list) //actually a method doing a compare on the elements of the list { //handle context params = list; } } Britske wrote: > > Thanks, removed the onActivate() without params. > > Moreover, i didn't test fully and

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Britske
Thanks, removed the onActivate() without params. Moreover, i didn't test fully and discovered that on a post onActivate is called once with the context of the old page and once with the context of the new page, so it's not always empty the first time. Probably saying the obvious but anyway.. On

Re: [t5] portlet question

2007-10-24 Thread Christian Gruber
I was wondering about this, and was thinking of making a JSR-168 wrapper component. I think that especially now that we can contribute .css to the page itself, this should be a nice way to quickly "portletify" t5 apps. Christian. On 24-Oct-07, at 4:19 AM, Giancarlo Degani wrote: Hi, I'm

[T4] inherit-informal-parameters not working?

2007-10-24 Thread Phillip Rhodes
Can someone share a working example for inherit-informal-parameters? I am trying to render some informal parameters passed to a container component from a contained component. However, the informal parameters are never emitted, they are just swallowed. I set allow-informal-parameters and inh

Re: page size

2007-10-24 Thread Andreas Andreou
That's almost true - pages with forms will still try to include /dojo-0.4.3/dojo3.js however (due to FormSupportImpl) Anyway, T4.1.4 will have several surprises regarding js libraries, so, stay tuned ;) Steve Shucker wrote: > You can probably set the ajaxDelegate attribute of @Shell to null (or >

[T5] Debugging

2007-10-24 Thread Ognen Ivanovski
Perhaps you've noticed how difficult it is to debug a T5 application because of - the jassist enhancements tapestry does to the components / pages - the IoC proxies Far from saying that these are bad, I am just wondering if there is a possibility to add some debugger info along with these en

Re: page size

2007-10-24 Thread Steve Shucker
You can probably set the ajaxDelegate attribute of @Shell to null (or your own renderer). The dojo initialization code looks like it comes from there. -Steve michael wrote: hi we are evaluating tapestry for a web application for mobile phones. we have to keep the size of the pages low ( <

Re: page size

2007-10-24 Thread Norman Franke
Dojo should be cached, I think. So you'd download it once. If you use forms, you may need to monitor things. I found that it can save lots of unneeded state information when using the @For component in a Form. However, I was able to eliminate many extra stuff by using a primary key instead

page size

2007-10-24 Thread michael
hi we are evaluating tapestry for a web application for mobile phones. we have to keep the size of the pages low ( < 10kb ). so the question is if it is possible to have tapestry not loading dojo, because its size is bigger the 50kb. Thanks in advance. michael --

page size

2007-10-24 Thread michael
hi we are evaluating tapestry for a web application for mobile phones. we have to keep the size of the pages low ( < 10kb ). so the question is if it is possible to have tapestry not loading dojo, because its size is bigger the 50kb. Thanks in advance. michael --

page size

2007-10-24 Thread michael
hi we are evaluating tapestry for a web application for mobile phones. we have to keep the size of the pages low ( < 10kb ). so the question is if it is possible to have tapestry not loading dojo, because its size is bigger the 50kb. Thanks in advance. michael --

RE: T5: hidden fields

2007-10-24 Thread Angelo Chen
Hi Kristian, Thanks for the code, now I just use style=(display:none), it's working fine. kristian.marinkovic wrote: > > for the time being there is no Hidden component available in T5 > you can use the component below: > > -- View this message in context: http://www.nabble.com/T5

Expanding Table rows with Ajax

2007-10-24 Thread superoverdrive
Has anyone ever tried to expand table rows to show more details with Tapestry & Ajax ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: form enctype

2007-10-24 Thread Yohan Yudanara
it's done by creating custom component similar to @Upload component I love open source.. On Tue, 2007-10-23 at 15:53 +0700, Yohan Yudanara wrote: > Dear all, > > I've done this through creating component which extends > AbstractFormComponent. > > protected void renderFormComponent(IMarkupWriter

Re: Dialog gotchas ...

2007-10-24 Thread Andreas Andreou
Then it must be a tacos - DojoWidget issue... I've noted this down and either me or Igor will take a look, thx Stephane Decleire wrote: > Thanks Andrea for your answer. > > Yes, I've read the Dialog gotchas and i've test a simple Dialog with a > classic Form or PageLink and it works. > The problem

RE: T5: hidden fields

2007-10-24 Thread Kristian Marinkovic
for the time being there is no Hidden component available in T5 you can use the component below: public class Hidden extends AbstractTextField { @Override protected void writeFieldTag(MarkupWriter writer, String value) { writer.element( "input",

T5: hidden fields

2007-10-24 Thread Angelo Chen
Hi, Is there a way to declare hidden fields in a form? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-hidden-fields-tf4683527.html#a13383161 Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Dialog gotchas ...

2007-10-24 Thread Stephane Decleire
Thanks Andrea for your answer. Yes, I've read the Dialog gotchas and i've test a simple Dialog with a classic Form or PageLink and it works. The problem i've described earlier comes up when i try to load the content of my Dialog (a Form or a PageLink) from a different page using the Tacos Widg

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Nick Westgate
I'm not going to delve into the logic of your use case. Just put have one activate handler: void onActivate(Object[] context) { if (context.length == 0) { // handle no context { else { // handle context { } Cheers, Nick. Britske wrote: for a page, I hav

T5: using Select with ajax

2007-10-24 Thread Angelo Chen
Hi, I have a Select for the list of states in a form: the model is empty because it will be populated in an Ajax call. When the form is rendered, it has following: Is there a way that I can insert New York in the class before it's rendered? or there is any other solution to this kind of

Re: Dialog gotchas ...

2007-10-24 Thread Andreas Andreou
I guess you're aware of the few Dialgo gotchas at http://tapestry.apache.org/tapestry4.1/components/dojo/dialog.html Anyway, I believe you have to specify isContainer="true" for the DojoWidget, see http://tacos.sourceforge.net/tacos4.1/tacos-core/tapdocs/net.sf.tacos.Dojo/Widget/index.html In the

[T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Britske
for a page, I have two activation-methods: onActivate() onActivate(Object[] list); when i provide an activation context to the page both methods are called -onactivate() first-. This seems correct behavior according to some forum-posts i've read. However, both methods call a method syncLists()

Dialog gotchas ...

2007-10-24 Thread Webmaster Bébé Nounou
Hi all, I played yesterday with the Tapestry Dialog component and Tacos Widget component. And i get a bit puzzled ... What i tried is to put a dojo ContentPane or LinkPane (as a Tacos Widget) in a Dialog like that : href="MyPage.html" refreshOnShow="true" label="Authentification"/> Every

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-24 Thread Ulrich Stärk
GMT +1 Uli Christian Dutaret schrieb: Thx for the swift fix. I've patched my code to use the suggested new validator instead of the previous one (I've copied the one that was committed earlier today). I'll let you know if any new problem arise. (seems this was a short night sleep for both of y

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Lauri Benno
Thanks a lot. I'll give it a try. Lauri Nick Westgate wrote: > > There is an issue tracking this problem, and Dan Gredler is assigned to > it: > https://issues.apache.org/jira/browse/TAPESTRY-1723 > > In the meantime, if you really needed to you could try applying the patch > from the issue t

Re: T4.1.3 : 100% CPU usage on tomcat due to server-side email validation

2007-10-24 Thread Christian Dutaret
Thx for the swift fix. I've patched my code to use the suggested new validator instead of the previous one (I've copied the one that was committed earlier today). I'll let you know if any new problem arise. (seems this was a short night sleep for both of you guys, or is it some time zone illusion?

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Nick Westgate
There is an issue tracking this problem, and Dan Gredler is assigned to it: https://issues.apache.org/jira/browse/TAPESTRY-1723 In the meantime, if you really needed to you could try applying the patch from the issue to a local build of T5. Cheers, Nick. Lauri Benno wrote: As a remark, I'd li

Re: T5.07 SNAPSHOT! Where is the Inject Annotation??

2007-10-24 Thread Robin Helgelin
On 10/24/07, lasitha <[EMAIL PROTECTED]> wrote: > https://issues.apache.org/jira/browse/TAPESTRY-1800 > > Its a good idea to keep an eye on jira or the developer mailing list > for some forewarning of such chanages :). Or just check the release notes :)

[t5] portlet question

2007-10-24 Thread Giancarlo Degani
Hi, I'm a newbie with tapestry but I would like to try it for my next project. I see that for tapestry 4 there is a portlet module available, but are portlet supported by tapestry 5? Thanks in advance Giancarlo - To unsubscribe

[T3] TextArea using wrap attribute ?

2007-10-24 Thread Penyihir Kecil
Use the HTML "wrap" attribute as an informal parameter to control word wrapping. Wrap attribute values include: "off", "vitual", "physical", "soft" and "hard". then what does it mean with "off", "virtual", "physical", "soft" and "hard" ? could anybody give me some explanation ? thnx Dwi

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Ken
Thanks a lot ! I found there is no j2ee in my environment, oops. I installed it then everythig OK ! Ken Nick Westgate wrote: Look at the Tapestry console output for exception logging. The changes you have made are not necessary. --

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Lauri Benno
As a remark, I'd like to mention, that removing upload component from form resolved the decoding issues. But I still have the question: is it somehow possible to have a form with upload components and working UTF-8 decoding? Lauri Nick Westgate wrote: > > Look at the Tapestry console output f

Re: [t5] decoding utf-8 in form submissions

2007-10-24 Thread Nick Westgate
Look at the Tapestry console output for exception logging. The changes you have made are not necessary. Cheers, Nick. Ken wrote: Hi, I copied 'buildUtf8Filter' method from the URL below (in citation) and add: configuration.add("Utf8Filter", utf8Filter); in my AppModule. Then I got: H