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: Switch from Prototype to jQuery?

2009-01-31 Thread Chris Lewis
Whether or not one "likes" jQuery or not isn't the point. Tapestry is built with prototype, and it works. That's the point. Were it built with jQuery, I would have raised the same question if the suggestion of switching to prototype had been brought up. It's not my preference that's behind my r

Re: Switch from Prototype to jQuery?

2009-01-31 Thread Chris Lewis
Thanks for pointing out that ui link. I will have to give jQuery another look at some point. I still can't agree with a rigid switch, but that says nothing of jQuery's viability. Onno Scheffers wrote: On Fri, Jan 30, 2009 at 5:32 PM, Chris Lewis wrote: that it is less than

Re: Switch from Prototype to jQuery?

2009-01-30 Thread Chris Lewis
I have a great deal of experience with prototype, and not so much with jQuery. From my brush with it, it seems to me that it is less than ideal for building front end widgets, as it's primary focus is more on easily navigating the DOM and affecting elements in various, insulated ways. It doesn'

Re: OnActivate question

2009-01-26 Thread Chris Lewis
James Sherwood wrote: Hello, Hi. I have security through page Activate. All my pages extend a page that has a method: @OnEvent("activate") Object onSecurityCheck(){ Check security if fails return Index.class } This works however any page that has its own onActivate() m

Re: Weird error

2009-01-21 Thread Chris Lewis
And also how exactly you bind your service implementation in your app module. Stephane Decleire wrote: Hi Could you show us the code of your class tibox.allert.fastSupport.services.UserSessionImpl ? Stephane Sid Ferreira a écrit : Based on http://wiki.apache.org/tapestry/Tapestry5HowToCo

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
I'd be surprised if I've overlooked it that long, but given how much the framework and its docs have evolved, it's certainly possible. Thanks again! Ulrich Stärk wrote: I believe this was added back in 2007... Uli Chris Lewis schrieb: Wow. Is that recent behavior? I've n

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
ctory or something). The correspondig Encoder is selected by the Select components defaultEncoder() method, when no encoder parameter is provided (see the "Computed Parameter Binding Defaults" section at http://tapestry.apache.org/tapestry5/guide/parameters.html). Cheers, Uli Chri

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
ect's source does the it access the ValueEncoderSource service. So, where/when/how does a default encoder get set? Thiago H. de Paula Figueiredo wrote: Em Mon, 19 Jan 2009 13:54:11 -0300, Chris Lewis escreveu: Hi list, Hi! I simply want to know how the Select component gets its en

T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
Hi list, I simply want to know how the Select component gets its encoder from the ValueEncoderSource service, when an encoder isn't explicitly provided as a parameter. Thanks! -- http://thegodcode.net - To unsubscribe, e-ma

Re: Tapestry 5 + Scala : an hello world example

2009-01-07 Thread Chris Lewis
wow. Let me get this straight - to get scala to work with T5, all you did was use scala source files and the scala maven plugin??? That's it!?! If that's all it takes I guess the reason is that scala files compile directly to normal java classes, and that's all done by maven. Man that's awesome!

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-20 Thread Chris Lewis
mponents, but the point is the same. What value then do you gain from not interacting your DAOs directly, and why does that satisfy your architectural wants? Thanks again for sharing, I value such conversation :-). chris Thiago H. de Paula Figueiredo wrote: > Em Wed, 19 Nov 2008 17:37:48 -0300

Re: Tapestry-IoC: binding service without code, just convention over configuration

2008-11-19 Thread Chris Lewis
Hi Thiago, Out of architectural curiosity, what do you use a UserController for in your example? Thiago H. de Paula Figueiredo wrote: > Em Wed, 19 Nov 2008 15:31:16 -0300, Howard Lewis Ship > <[EMAIL PROTECTED]> escreveu: > >> Interesting idea. You could probably put something together around >>

Re: My Tapestry5 suggestion list

2008-10-02 Thread Chris Lewis
Good point. Markus Joschko wrote: > Talking about configurable URLs: Don't forget i18n issues. > We once had a product where customers wanted to have the URL > internationalized to be meaningful in different countries. > This requirement is not uncommon in Europa at least. > >

Re: My Tapestry5 suggestion list

2008-10-02 Thread Chris Lewis
Hello, The only one of these that I'm interested in is the ability to have class-less components (just markup, no logic). I filed an issue for this many months ago, and am no longer certain where in the mix it is. I'll add one: Configurable URL-mapping service. I loathe - /loathe/ the fact that

Re: t5: using a non primary key field as context

2008-09-04 Thread Chris Lewis
Hi, I've wondered the same thing and taken a quick look at it. I'm pretty sure that it can be done, but the big issue is how to identify what the activation context's value means to the entity? With a PK it's easy to make assumptions (cast the context value and if it can be cast to a long and the

Re: T5 : [ANN] The book - next steps

2008-09-03 Thread Chris Lewis
Awesome! I'll try to have a look in a couple of hours, and if I can make the time, I'd like to contribute either in raw content and/or collaborative editing. As for a discussion channel for the book, why not use google-groups? Alex Kotchnev wrote: > I've created a new project for the proposed book

Re: T5: RenderSupport in XHR requests

2008-09-02 Thread Chris Lewis
wrote: > It may not work from an event handler method, as its wired into place > for the partial page render. > > On Tue, Sep 2, 2008 at 7:41 AM, Chris Lewis <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I was under the impression that the use of RenderSupport

T5: RenderSupport in XHR requests

2008-09-02 Thread Chris Lewis
Hello, I was under the impression that the use of RenderSupport to add javascript to an AJAX response was supported, and that scripts added in such a context via addScript would be executed automatically via tapestry.js when the response is received. Isn't that how it should work? I'm using a for

Re: inject services into dispatcher

2008-09-02 Thread Chris Lewis
service as a constructor argument, or via setter injection in a service builder method. chris Natia Gdzelishvili wrote: > i have read this but, from there i understand how can i use aso, but how can > i inject services? > > On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <[EMAIL P

Re: inject services into dispatcher

2008-09-02 Thread Chris Lewis
Hello, I assume you haven't yet read these articles: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 They answer both of these questions. sinerely, chris Natia Gdzelishvili wrote: > hello, > i have service Busines

T5: order of CSS via @IncludeStylesheet

2008-08-28 Thread Chris Lewis
Hello, I'm having a problem styling a component that includes its own style sheet. Many components need to have a default look out of the box, much like some of the corelib components do, but the problem is the order in which the style sheets (via @IncludeStylesheet) are added to the page. The ord

Re: Multiple file upload

2008-08-28 Thread Chris Lewis
>From the front end, multi file uploads must be done using JS to create additional file input elements on the fly. Uploading them "via AJAX" is all about perception, as you can't actually do it since the JS would need to stream the bytes of the selected files (which is of course not allowed). The p

Re: T5 : Let's write a book !

2008-08-26 Thread Chris Lewis
I think I could contribute some content. I've written several wiki articles (several of which need updating by now) and have a few more I want to write. If this open book effort materializes, I would gladly shift my focus. For the sake of quality and manageability I think it be good to consider hav

Re: Trying to Implement RedirectException in Tapestry 5

2008-08-20 Thread Chris Lewis
Ben Wong wrote: > I decided against the dispatcher approach for the reasons ville.virtanen > brought up. The dispatcher will have to know what pages are secured and > which aren't. > > Whatever authentication system you use will be burdened with the same issue. After all it is a critical var

Re: [t5] Is there anyway of passing parameters to expressions?

2008-08-19 Thread Chris Lewis
Hello, This is a classic case of needing client-side behavior with server-side knowledge, and would be handled well by OO javascript. You could create a component for this but is seems like a mixin might be more appropriate. Checkout this article: http://wiki.apache.org/tapestry/Tapestry5AndJavaS

Re: T5: Form Field from an embedded component

2008-08-18 Thread Chris Lewis
s Filip S. Adamsen wrote: > Hi Chris, > > Get "contactinfo" through getEmbeddedComponent, get its > ComponentResources, and finally get the component you need through > getEmbeddedComponent and cast it to Field. > > That's the quick and dirty way, anyhow. > &g

T5: Form Field from an embedded component

2008-08-17 Thread Chris Lewis
anks in advance, Chris Lewis -- http://thegodcode.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: dynamically created form components

2008-08-11 Thread Chris Lewis
ught would throw exceptions. But no, T5 knows they're being looped and just handles it. Awesome! Chris Lewis wrote: > Hello again, > > I have another issue related to the one about checkboxes that I've known > would be an issue at whatever point I needed to use dynamically creat

Re: T5: checkboxes for selecting a sub group of hibernate entities

2008-08-11 Thread Chris Lewis
ivate final class to do essentially the same thing as the included value encoder, I have to ask.. chris Chris Lewis wrote: > Hello, > > I have a collection of entities that need to be displayed in a form. A > user must be able to indicate any number of these entities in which they >

Re: t5 newbie's question: how to understa nd onActivate?

2008-08-10 Thread Chris Lewis
Michael, Pages and their lifecycle methods in no way correspond to how a servlet is structured. If you haven't gone all the way through the first tutorial, start there and digest every bit of it. After that you will have a general idea of T5's perspective on a how a web app works, and you should b

T5: dynamically created form components

2008-08-10 Thread Chris Lewis
Hello again, I have another issue related to the one about checkboxes that I've known would be an issue at whatever point I needed to use dynamically created form components. In my case I'm creating a bunch of t:checkboxes, each representing the (un)selection of a hibernate entity. I'm currently s

Re: [T5] How to handle DAOs?

2008-08-09 Thread Chris Lewis
Onno, The thing to know about tapestry-hibernate is that it creates a proxy for the actual hibernate session. When you use the injected session it actually gets the session for the current thread, via the HibernateSessionManager I believe. So when you instantiate your DAO with a session in the con

T5: checkboxes for selecting a sub group of hibernate entities

2008-08-08 Thread Chris Lewis
Hello, I have a collection of entities that need to be displayed in a form. A user must be able to indicate any number of these entities in which they have interest by checking the box, and I'm at a bit of a loss at how to handle this elegantly. I've dealt with a variable number of inputs before,

Re: T5: form, action, result

2008-08-05 Thread Chris Lewis
Cool, thanks :-) Martijn Brinkers (List) wrote: > That's exactly what I do as well. > > Martijn > > On Sun, 2008-08-03 at 10:49 -0400, Chris Lewis wrote: > >> Angelo, >> >> Following are the very trimmed down versions of my template and page >> c

Re: T5: form, action, result

2008-08-03 Thread Chris Lewis
; } } chris Angelo Chen wrote: > hi cris, > > sounds interesting, how about a sample code/template to let us understand > more? thanks. > > angelo > > > Chris Lewis-5 wrote: > >> Hello all, >> >> I'm wondering how others handle a s

T5: form, action, result

2008-08-02 Thread Chris Lewis
Hello all, I'm wondering how others handle a simple flow where a user fills out a form, form is processed, and then a message is shown as a result ("ok" or "failed"). I have a simple contact form and am handling this like so: In my template I have 2 blocks: 1 is the form and the other is the mess

Re: T5: index page in pages package acts as a catchall

2008-08-02 Thread Chris Lewis
t? Anyway, thanks for your help :) sincerely, chris lewis kranga wrote: > Oddly enough using Start instead of Index handles this situation > correctly. > > - Original Message - From: "Lutz Hühnken" > <[EMAIL PROTECTED]> > To: "Tapestry users" >

T5: index page in pages package acts as a catchall

2008-07-30 Thread Chris Lewis
Hello list, Imagine an app with a few page packages: com.t5app.pages com.t5app.pages.users com.t5app.pages.admins Now assume I have an index page in the main package, com.t5app.pages.Index, as my home page. I have an app like this as I'm sure most do, but am having an unexpected and undesired si

Re: T5: Service disambiguation

2008-07-29 Thread Chris Lewis
Sounds like you want @Marker: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ioc/annotations/Marker.html chris Russell Brown wrote: > Hi, > > I need to write secure session cookies and Tapestry Cookies interface > and CookiesImpl don't do that. So I extend the Cookies interfac

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-25 Thread Chris Lewis
Martijn Brinkers (List) wrote: > >> Sounds to me something related to the PreparedStatement cache. Do you >> use c3po? If so did you specify hibernate.c3p0.max_statements? >> >> Martijn >> >> >> On Thu, 2008-07-24 at 23:26 -0400, Chris Lewis wrote: >

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
ow if anyone has seen this before, and/or if it's a known issue. I'm using a slightly outdated version of hibernate (3.2.2.ga) and for all I know this may be fixed in more recent versions. My wrists are shot so I'll try tomorrow. If anyone knows of this or gets interested/bored enou

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
, 24 Jul 2008 18:14:32 -0300, Chris Lewis > <[EMAIL PROTECTED]> escreveu: > >> This is occurring in a development environment on a fresh and small app >> with a schema with a total of 6 mapped entities, 7 tables, 3 records in >> the abstract entity's ta

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
and share my findings. chris Jonathan Barker wrote: > Be paranoid. Set hibernate.show_sql=true. Grab the SQL statement, and > execute it manually. > > Also, can you change Listing to be non-abstract - even if you never use it? > > > > >> -Original Message

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
_sql=true. Grab the SQL statement, and > execute it manually. > > Also, can you change Listing to be non-abstract - even if you never use it? > > > > >> -Original Message- >> From: Chris Lewis [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 24, 200

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
27;m writing (a binary file dispatcher), but when I ran into this I was struck with a bolt of "I must understand this." A realistic use however is access control, in which you want to restrict T5-specific idioms like a "page" or "component." > > > Chris Lewis wro

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
Padawn, Per your suggestion I tried the get method with the exact same results: Listing listing = (Listing)session.get(Listing.class, Long.parseLong(sListingId)); I also changed the dispatcher so that it uses the HibernateSessionManager to get the current session explicitly on each request, to n

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
ate will look for any descendant of Listing. > > The actual object type returned will depend on the actual type for any > instance found. You can then cast to Listing without a problem. > > Get rid of load(). > > Jonathan > > >> -Original Message- >

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
+ ""; response.setContentLength(test.length()); response.getPrintWriter("text/html").append(test).flush(); return true; } } Jonathan Barker wrote: > Post your query and load code. > > >> -Original Message- >&g

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Chris Lewis
query, but any subsequent query to a _different_ entity throws that exception. The query is also just a read (select). Any other ideas? thanks Yunhua Sang wrote: > It sounds more like a data issue, check your data in database carefully. > > Yunhua > > On Wed, Jul 23, 2008 at 1

T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-23 Thread Chris Lewis
Hello, I have a dispatcher that uses a hibernate session. The dispatcher is auto bound and receives the session in the constructor. I'm using tapestry-hibernate so that session instance is a proxy that gets the real session for the current thread (right?). Now in testing my dispatcher, I give it a

Re: T5: stream binary files

2008-07-23 Thread Chris Lewis
} > } > > hope this is somehow useful to you... > > after thinking twice you could also add a Dispatcher that returns your > binaries > directly > > g, > kris > > > > > Chris Lewis <[EMAIL PROTECTED]> > 23.07.2008 13:02 > Bitte antwo

Re: @Environment problem

2008-07-23 Thread Chris Lewis
Petros, Instead of RenderSupport, try DocumentLinker. It should be available in such cases, the only issue is that it's internal. I don't remember if the "rules" are not to use internal services at all, or simply not to extend them. chris Petros Petrou wrote: > Thanks Kris/Sven, > > The version

T5: stream binary files

2008-07-23 Thread Chris Lewis
Hello, I'm curious if there is a common way to stream binary files like images, PDFs, etc. I've read http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile and understand that method, but something just feels wrong about using a page for this kind of operation (after all, it's no

Re: T5 - Javascript libraries on ajax requests

2008-07-10 Thread Chris Lewis
Hello, Short answers: 1. The behavior you're seeing is correct, you are doing nothing wrong. 2. JS libs are only ever included once. Longer answer: Firstly, rest easy knowing that the JS libs are only included once. Even if you see 3, 30, or 3000 ajax responses with script references, they are

Re: Any component / client id

2008-07-05 Thread Chris Lewis
I believe the attribute is rendered only if the getClientId method is called on the component instance. Sven Homburg wrote: > do i interpret the any component docs wrong,? > > the doc says: "The desired client id, which defaults to the components id. " > but the default client id never be rendered

Re: What if "Page" was removed from page names?

2008-06-24 Thread Chris Lewis
I heartily agree with Filip. Even though the page name 'optimization' is documented, I loathe the fact that I can do nothing to stop it. Please, if this is implemented at least allow users the power to say 'yay' or 'nay' in our apps. Filip S. Adamsen wrote: > As long as it's configurable, I'm fine

T5: component as a parameter to another component

2008-06-18 Thread Chris Lewis
Hello all, I'm working with an app that has a component to display a list of objects. Part of the display of each object is the date (a field from the object), and I'd like to make the rendering of that part flexible. Normally a dateformat component would do, but in this case it's not enough becau

Re: T5 onActivate

2008-06-07 Thread Chris Lewis
I have to agree with Filip and I'll state it a bit more strongly: if you are using onActivate for access control your app will suffer from significant maintenance issues that will only get worse and more complex with each page you add, and even nastier if your access control logic's requirements ev

Re: [T5] JavaScript in template files

2008-05-20 Thread Chris Lewis
Ken, You need to specify your script block as containing CDATA, like so: Tapestry treats templates as XML, and & is an invalid character unless processed as cdata. chris Ken wrote: > Hi, > > I wrote a template file like below: > > > http://tapes

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-20 Thread Chris Lewis
the same 'mud' imagery referring to the wake of a troll. 3) The word plays on HLS' last name never get old. I'm not being sarcastic. I giggle every time I read one. chris Eelco Hillenius wrote: > Chris Lewis-5 wrote: > >> Except for the part about him not b

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-20 Thread Chris Lewis
rolls. It's open source software, we should all be gaining from this. Respectfully yours, Chris Lewis Eelco Hillenius wrote: > Chris Lewis-5 wrote: > >> Except for the part about him not being a friend of wicket, I agree. >> We've every reason to believe this moron

Re: Tapestry users declined for the first time in 3 years, says this researh site ...

2008-05-20 Thread Chris Lewis
Except for the part about him not being a friend of wicket, I agree. We've every reason to believe this moron is the same Emanuel whatever, who is known to be Francis Amanfo, and who we know a good bit about. Specifically, he is active in the wicket community and was mentioned in a 'thanks' for hav

Re: Instability in Tapestry 5.0.12-SNAPSHOT

2008-05-20 Thread Chris Lewis
They're nightly for a reason. If you've been using nightlies you've done so at your own risk, and if you require preserving your app against a certain nightly, the deploy with the exact nightly you need. Moritz Gmelin wrote: > Hi, > > would it be possible to do a 5.0.12 release and then do this re

Re: Dispatcher doesn't get called in default start page

2008-05-19 Thread Chris Lewis
Hi, This is probably correct. The handling of 'mapping' your app's default page is also accomplished by a dispatcher. I /think/ its name is 'RootDispatcher' but don't quote me on that - look for details in TapestryModule. If you want your dispatcher to fire first you'll need to place it :before th

Re: Does the Palette works inside a zone/block

2008-05-18 Thread Chris Lewis
Hi Massimo, Under some situations it will work, specifically if the asset files (js, css) have been included before the ajax request. Otherwise the palette, like all components using external js and css, will not work because of this issue (patch included): https://issues.apache.org/jira/browse/T

Re: Question about update T5 from 5.0.10 to 5.0.11

2008-05-15 Thread Chris Lewis
It sounds like you are using the old (5.0.10) maven archetype. What exactly are you using to create the project (the exact command)? amebaliu wrote: > Hi, I have post some question recently, and got some replies. first of all, > thanks all the people who replied my post before. Thank you guys a lo

Re: T5 + JSON + key name

2008-05-15 Thread Chris Lewis
Try: for (var i in object) {} Where object would be your json object. Leon Derks wrote: > Hi Sven, > > I only see that they get the value by using the key name. > For example this: > > |var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON(); > data.name; //prints Violet. > | > >

Re: T5: Calling method with parameter in prop

2008-05-14 Thread Chris Lewis
tapestry5-components provides an ognl binding like it worked in t4. See http://code.google.com/p/tapestry5-components/ and http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html chris Szemere Szemere wrote: > I agree with the sentiments above - the framework should provide

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
I just realized I repeated Rob, so listen to him :-) Chris Lewis wrote: > I seems like you'd want to use the 'disabled' parameter as Robert > mentioned, which many components have. Perhaps your dynamic behavior > could be solved by storing a flag in a page property and the

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
by Hobson wrote: > Thanks Chris, > > Does this mean that there is no easy way to disable a textfield at runtime > for instance? Would a mixin work for this? > > Toby > > ----- Original Message > From: Chris Lewis <[EMAIL PROTECTED]> > To: Tapestry users >

Re: Changing a components property at runtime

2008-05-13 Thread Chris Lewis
Toby, Components are just POJOs - as far as your application code they have no common type; no common interface for such actions. There is a common interface but it is fitted onto component classes at runtime. If you need to set properties/call methods, you must provide such interfaces. chris To

Re: update select based on first select

2008-05-13 Thread Chris Lewis
Leon, I can't tell from that code where/how you've used the OnEvent mixin. I see the @OnEvent annotation, but that's unrelated (as you probably realize). This exact use case was discussed recently - see: http://markmail.org/search/?q=ajax-based+data+retrieval+list%3Aorg.apache.tapestry.users#quer

Re: Page property reset during request

2008-05-10 Thread Chris Lewis
T5 does a redirect after form posts, so using persist is probably how one should do this (probably @Persist("flash")). The redirect-after-post removes the danger of things like double posts (from page refreshes, etc). Toby Hobson wrote: > I managed to get around this by using @Persist on the start

Re: Problem with form submission with callback

2008-05-10 Thread Chris Lewis
The issues with JS get harrier when you mix AJAX (zones) and components or mixins that use external JS or CSS. Essentially, they won't be included unless they were already included on the page. A ticket (with a patch) is open for this issue: https://issues.apache.org/jira/browse/TAPESTRY-2390 Josh

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread Chris Lewis
Sorry, I only saw the messages that mentioned tinyMCE and assumed you were looking for an editor component. chris maxthesecond wrote: > Well, I can't see the relation but anyway thanks! > > > Chris Lewis-5 wrote: > >> I missed the rest of this thread, but if yo

Re: T5 PopUp Windows & JavaScrip

2008-05-08 Thread Chris Lewis
I missed the rest of this thread, but if you're looking for an editor component t5components provides one (based on FCK): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html maxthesecond wrote: > Thanks nicholas I'll give it a try...any way I'

Re: How to make use of reply.script

2008-05-07 Thread Chris Lewis
Tony, The ajax response handler tries to wrestle the environment to behave as if the request was a normal one, preserving many things including the PageRenderResponse service. When using this service in an ajax context, scripts added via addScript() are packaged up in a json object response result

Re: Replace item in OrderedConfiguration

2008-05-07 Thread Chris Lewis
Robin Helgelin wrote: > On Wed, May 7, 2008 at 11:30 AM, Otho <[EMAIL PROTECTED]> wrote: > >> One thing which bothered me a couple of times already on this list. With the >> neat tapestry-spring integration, why don't you just use Spring to configure >> Spring services? The little xml used f

Re: T5: default.css and IE7 problem

2008-05-06 Thread Chris Lewis
The preferred way would be via conditional comments in your document header. http://www.quirksmode.org/css/condcom.html http://msdn.microsoft.com/en-us/library/ms537512.aspx There are probably browser hacks that would work as well, but if you've used hacks in the past you've probably learned why

Re: T5: Passing (looped) component blocks to layout for (looped) rendering

2008-05-02 Thread Chris Lewis
I don't know if that infrastructure exists, but it's a thought. chris Bill Holloway wrote: > I agree, Chris. _resources.findBlock has got to be where the trouble is. > Somehow the rendering order on Layout winds up only looking at the last > rendering of the block. > > Bill > >

Re: T5: Passing (looped) component blocks to layout for (looped) rendering

2008-05-02 Thread Chris Lewis
Hi Bill, You normally have some interesting questions :-) - I don't see t:delegate et al used often and am still trying to digest how they can be used effectively. For your issue, unfortunately I don't know how to fix it at the moment, but the problem exactly here (in Foo.java): layout.addPostWra

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis
Sorry I was vague on that, and I was referring to the t5components OnEvent mixin (http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html). Here's a quick example of ajax-based data retrieval. Note that where I use hard-coded strings, you'd be using y

Re: T5: Ajax update of one form field based on change to another form field?

2008-05-01 Thread Chris Lewis
Franz Amador wrote: > Hi, all. I asked about this a while ago, and there was no good answer > then, but I'm hoping that there are new options now. I have a bean > that holds information about a database connection. I'm editing it > with BeanEditForm. One of the fields is the database type, an

Re: page activation + components

2008-05-01 Thread Chris Lewis
> } > > // The Action handler > void onShow(Integer id) { > // stored into the bound parameter, feeding it back into the > page > _newsId = id; > } > } > > The url http://localhost:8080/news/4 > > Re

Re: page activation + components

2008-04-30 Thread Chris Lewis
set during render > time the component grabs the news item and renders it, if not it grabs > the top five and displays them... > > Perhaps as Joel pointed out we're just making this too complicated and > we should be the ones kicked out! > > Josh > > On Wed, Apr 30,

Re: page activation + components

2008-04-30 Thread Chris Lewis
this the last of it 4) In our embedding page class, News, we have an event handler to be notified of the selection by handling the "viewitem" event: void onViewitem(long id) { this.currentItem = newsSource.getItemById(id); logger.info("got " + this.currentItem.getTitle

Re: page activation + components

2008-04-30 Thread Chris Lewis
news with >> ID=4527 is requested. And when it comes to the "News" component (it is able >> to show the text of a given news in full), it simply looks at this piece of >> info, and loads the news with id 4527 (or gets it from an app level cache >> :)) and renders it

Re: page activation + components

2008-04-30 Thread Chris Lewis
And when it comes to the "News" component (it is able >> to show the text of a given news in full), it simply looks at this piece of >> info, and loads the news with id 4527 (or gets it from an app level cache >> :)) and renders it. >> >> Hope it tells som

Re: page activation + components

2008-04-30 Thread Chris Lewis
hen it comes to the "News" component (it is able >> to show the text of a given news in full), it simply looks at this piece of >> info, and loads the news with id 4527 (or gets it from an app level cache >> :)) and renders it. >> >> Hope it tells something abou

Re: page activation + components

2008-04-30 Thread Chris Lewis
t changing state and showing the requested news. > > cheers, > janos > > 2008/4/30 Chris Lewis <[EMAIL PROTECTED]>: > > >> Much clearer :-). When you say "when it comes to my 'News' component" do >> you mean news page? That is

Re: page activation + components

2008-04-30 Thread Chris Lewis
gt; ID=4527 is requested. And when it comes to the "News" component (it is able > to show the text of a given news in full), it simply looks at this piece of > info, and loads the news with id 4527 (or gets it from an app level cache > :)) and renders it. > > Hope it t

Re: page activation + components

2008-04-30 Thread Chris Lewis
>>>>> page-independent so concurrent users would interfere badly), >>>>> >>>>> >>>> therefore is >>>> >>>> >>>>> not ok. >>>>> >>>>> I will now try the Env

Re: T5 actionlink, ajax zone and user onclick handler

2008-04-29 Thread Chris Lewis
> > > Now when you click on "Test 1", the console will output > "onActionFromTest!", regardless of which choice I make in the confirm > dialog. > "Test 2&qu

Re: page activation + components

2008-04-29 Thread Chris Lewis
n a wrong track, please let me > know :) > > thx > Cheers, > janos > > 2008/4/29 Chris Lewis <[EMAIL PROTECTED]>: > > >> Janos, >> >> I'm having a hard time understanding a case that a component should know >> in which page it is embedde

Re: page activation + components

2008-04-29 Thread Chris Lewis
or the many ways :) I'll try these, hope that the > @Environmental stuff is scalable (I'm trying to bypass session creation as > much as possible) > > Is there a doc on the various annotations available? > > @Michael: > Could you include a tiny bit of example? THX

Re: page activation + components

2008-04-29 Thread Chris Lewis
5) @InjectPage the page and call the getter Kristian Marinkovic wrote: > hi janos, > > there are several possibilities: > > 1) declare a component parameter and pass in the variable > > 2) put it in a ASO and inject the ASO in all your components (using > @ApplicationState) > the drawback is that

Re: T5: JPA EntityManager + Tapestry Injection

2008-04-28 Thread Chris Lewis
Hi Leon, Injection via @Inject only works in pages, components, and mixins. If you need to inject into a service, you can use either constructor or setter injection. If you use constructor injection then you can use auto binding to bind your dao implementation, and it will jsut work. Otherwise you

Re: Antwort: Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Chris Lewis
Good eyes! I assume it would have worked if the url had been absolute, in which case tapestry would not have interpreted it as a page render ... or maybe not. Christian Koeberl wrote: >> Jan Vissers <[EMAIL PROTECTED]> wrote: >> Our layout component has: >> >> > > If you have this in your co

Re: T5 Activation/Passivation - strangeness

2008-04-28 Thread Chris Lewis
Can you share the full code? What are your activate/passivate methods doing? Does that get thrown when the layout is used with a page that has no activation context? If so, and that really is all to the template code, I would say it's a bug. Share more code if you can. chris Jan Vissers wrote: >

  1   2   3   4   5   >