Re: [Tapestry Central] Caught between Two IDEs

2009-07-02 Thread Ivan Dubrov
Craig St. Jean wrote: I haven't had Eclipse (or products based on it) crash in a LONG time. I do however have it lock up for a couple minutes at a time several times a day. Incredibly frustrating when you have unsaved files. Concurrent collector may help remove those pauses. Something like

Re: t5: why always downloading these files?

2009-06-23 Thread Ivan Dubrov
Angelo Chen wrote: Hi, every time when I run the progam, maven always displays: Downloading: http://snapshots.repository.codehaus.org/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom Downloading: http://repo1.maven.org/maven2/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.pom any idea how t

Re: Persist issue with Paging

2008-10-28 Thread Ivan Dubrov
Hi, Is that possible to refactor the Grid that currentPage, sortColumn and sortAsceding are parameters rather than @Persist-ed fields and bind them by default to internal @Persist-ed fields? So, by default Grid will use @Persist storage for saving those, but if you override the parameters it will

Rendering messages in template

2008-10-24 Thread Ivan Dubrov
Is there a way instead of writing Page.tml: Step title: ${stepTitle} Page.java: public String getStepTitle() { return messages.get(step.getStepName() + "-step"); } write something like (does not work): ${messages:${step.stepName}-step} ? -- WBR, Ivan S. Dubrov -

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-12 Thread Ivan Dubrov
Geoff Callender wrote: > Hi Joel, > > The activation context is great for passing object ids (or entity > ids), and with database backed applications that is exactly what you'd > be doing most of the time. The notion behind REST is that each URL > represents a resource, which is pretty much what i

Re: "named" page context parameters ?

2008-10-09 Thread Ivan Dubrov
van, > > I'm trying out your extension, thanks, one question though: > The following class seems to be missing from the zip you linked to > below (http://wfrag.org/files/tapext.zip): > > ru.nsc.ict.catalogue.annotations.QueryParameter > > can i get it anywhere? > > Thx

Re: "named" page context parameters ?

2008-10-09 Thread Ivan Dubrov
Joel Halbert wrote: > Hi, > > Is it possible to have "named" page context parameters? (along the > lines of Wicket PageParameters). > > I would like to be able to have bookmarkable URLs but rather than > indexing page context parameters (in onActivate) by ordinal in a list > I would rather key them

Re: Assets caching and versions

2008-08-24 Thread Ivan Dubrov
/src-html/org/apache/tapestry5/services/TapestryModule.html#line.241 Then you just have to remember to up your version in one place... Josh On Thu, Aug 21, 2008 at 10:11 PM, Ivan Dubrov <[EMAIL PROTECTED]> wrote: Hi, With https://issues.apache.org/jira/browse/TAPESTRY-2159 issue fixed

Assets caching and versions

2008-08-21 Thread Ivan Dubrov
Hi, With https://issues.apache.org/jira/browse/TAPESTRY-2159 issue fixed, I’ve got a problem upgrading my application. Since Tapestry sets Expires header to be far in the future, old JS/CSS are used after application upgrade. I don’t want to version my JS/CSS files, because it’s too error-pro

Re: On $content$ again

2008-08-16 Thread Ivan Dubrov
Alex Kotchnev wrote: I also found this solution : http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-to16448904.html#a16448904, but life just becomes a little uglier with it. I see that we're jumping through these hoops to prevent template previewability and so if it becomes too much of a

Re: onActivate called twice when overriding from abstract generic superclass

2008-07-28 Thread Ivan Dubrov
Filip S. Adamsen wrote: Hi, As far as I know it's very difficult - if not impossible - for Tapestry to support generics in method parameters because of the way generics are implemented in Java (type erasure). A lot of type information is still available through reflection. Assuming concrete

Re: Security of t:formdata

2008-06-23 Thread Ivan Dubrov
Howard Lewis Ship wrote: Although you could use this technique (severe hacking of t:formdata) to control what ComponentAction was instantiated at what point in the form submission, the security effects of this are minimal; Tapestry includes only a finite set of ComponentAction classes and each ha

Re: T5: Persistence pains

2008-05-06 Thread Ivan Dubrov
dea --- URL contains a key, which is used to get the data from the store. Every request generates new key. Kalle On Sat, May 3, 2008 at 11:03 PM, Ivan Dubrov <[EMAIL PROTECTED]> wrote: Right. Most annoying things for us about "session" and "flash" scopes was tha

Re: T5: Persistence pains

2008-05-03 Thread Ivan Dubrov
Right. Most annoying things for us about “session” and “flash” scopes was that they don’t work in several tabs. And “client” can’t hold too much data. That’s why we have implemented a new persistence strategy named “flow” (inspired by the Spring WebFlow). The idea is that every URL has flow

Re: How to update a list from a checkbox in a loop in t5

2008-04-24 Thread Ivan Dubrov
Peter Stavrinides wrote: Hi All I this scenario: Have you tried something like this: in .tml: in .java: public boolean isArchived() { return selectedDOA.isArhived(); } public void setArchived(boolean value) { return selectedDOA.setArhived(value); } selectedDOA

Re: Make Tapestry a "full" web framework?

2008-03-19 Thread Ivan Dubrov
Robin Helgelin wrote: The bad thing about tapestry-acegi is that it is not very flexible, though. Recently I was trying to apply tapestry-acegi for CAS authentication (http://www.ja-sig.org/products/cas/) and found that I had to rewrite almost every line of its module class, which unfortunately

Re: Make Tapestry a "full" web framework?

2008-03-19 Thread Ivan Dubrov
What’s the reason to make it NOT depend on Spring? tapestry-acegi does NOT uses Spring IoC container, it uses T5 IoC for configuring the services, but it does use some Spring utility classes, which is in my opinion just fine (it certainly increases size of the final archive, but who bothers abo

Re: T5 5.0.10 Acegi doesn´t work

2008-02-20 Thread Ivan Dubrov
BTW, I think there is a bug in the transform method, instead of this: // Extend class transformation.extendMethod(TransformConstants.BEGIN_RENDER_SIGNATURE, tokenField + " = " + interField + ".checkBefore(" + configField + ");"); transformation.extendMethod(TransformConstants.CLEANUP_RENDER_SI

Re: T5 5.0.10 Acegi doesn´t work

2008-02-20 Thread Ivan Dubrov
prefixMethod appeared only in 5.0.6 (AFAIR). Now it's possible to implement method transformation. Here is working code from our project: // Add to transform method for (TransformMethodSignature method : transformation.findMethodsWithAnnotation(Secured.class)) { transformMethod(transformati

Re: T5 2 question about loop component parameters

2007-10-17 Thread Ivan Dubrov
Andreas Andreou wrote: > Not having to create getters & setters (or abstract getters in T4) just so > that @Loop (and @For) values and indexes can > become accessible is a fairly often request/question... > > Creating a custom binding prefix (perhaps named temp) that attaches objects > to the curre

Using PageTester with tapestry-spring

2007-09-24 Thread Ivan Dubrov
Hi, How can I use the PageTester with the Spring integration? The problem is that when PageTester creates the registry it does not adds SpringModuleDef to the list of modules and all my Spring services are unavailable because of this. Extending the PageTester is not possible as well, so I cannot e

Re: T5: Will it be a full stack framework?

2007-06-27 Thread Ivan Dubrov
Robin Ericsson wrote: > > Ok, I've checked out the code from you SVN so I'll poke around a bit. > Anything specific that's not working? Listerner methods isn't a big > deal for me at the moment :) It works basically, but the IoC configuration code is not very flexible (since it was developed for co

Re: T5: Will it be a full stack framework?

2007-06-27 Thread Ivan Dubrov
Robin Ericsson wrote: > > Ah, real nice, I was working on this as well, but I've just got time > to work on it and now I don't have to. :) > > Can you put this together as a maven package or something? Of course. I thought making something like tapestry-security module, but now I'm completely out o

Re: T5: Will it be a full stack framework?

2007-06-26 Thread Ivan Dubrov
sample code > WRT this, it would be nice to see! > > Daniel > > On 6/26/07, Ivan Dubrov <[EMAIL PROTECTED]> wrote: >> Joshua Jackson wrote: >> > - Built in security or user authentication and authorization. I must >> > admit that using Acegi for the secur

Re: T5: Will it be a full stack framework?

2007-06-26 Thread Ivan Dubrov
Joshua Jackson wrote: > - Built in security or user authentication and authorization. I must > admit that using Acegi for the security is just unnecessary because I > will need Spring just to get Acegi running. And I will have 2 IoC > container in my apps. I think T5 IoC already have the features (

Access other service configuration

2007-06-10 Thread Ivan Dubrov
Hello, I want to extend HibernateSessionSourceImpl from tapestry-hibernate to add automatic schema update support. However, I do not see a way to access configuration contributed to HibernateSessionSource service from my code (the list of packages containing the entities). Of course, I could chang

Re: [T5] usage of library components without a path

2007-06-08 Thread Ivan Dubrov
Dan Adams wrote: > So lets say I have a component in a component library called "FooBar" > and the name of the library is "example". So I could use the component > in my app like this: > > > > but it would be really nice if it could just be used like this just like > the core library components: >

Re: T5: How to generate page links from Java code?

2007-06-04 Thread Ivan Dubrov
Nick Westgate wrote: > Hi Martin. > > A typical way to do this in previous Tapestry versions is to have > some simple logic functions in your component class to provide a > boolean result ("this link is to the current page") which is used > for each link's disabled parameter, and to select a string

Re: T5 How to have multiple modules with separate packages for pages

2007-05-27 Thread Ivan Dubrov
You can contribute to ComponentClassResolver service mappings from prefix (e.g, "mod1") to package, like the following: public static void contributeComponentClassResolver(Configuration configuration) { configuration.add(new LibraryMapping("mod1", "org.comp.app.mod1.presentation")); config

Component transformation: how to extend method at the beginning

2007-05-27 Thread Ivan Dubrov
Hello, I'm trying to implement an AcegiWorker that will add support for Acegi "Secured" annotation to components. Annotation applied to the class will enable security check when the page is attached and annotation applied to the method will enable security check when method is called (for example,

Re: T5: Best practice for rendering a dynamic component

2007-05-24 Thread Ivan Dubrov
Howard Lewis Ship wrote: > This is very easy in Tapestry; just put the components on another page, > inject the page, and choose the component from that page. And how to deal with actionlink's inside the component/block from another page? All actions will go to the page the component/block belongs