Re: Tapestry w Scala

2016-12-19 Thread Alex Kotchnev
ponding Java type. There's an > explanation with examples here: > https://tapestry.apache.org/type-coercion.html. > > On Mon, Dec 19, 2016 at 11:59 AM, Alex Kotchnev <akoch...@gmail.com> wrote: > >> John - I've been running Tapestry and Scala for a few years now

Re: Tapestry w Scala

2016-12-19 Thread Alex Kotchnev
John - I've been running Tapestry and Scala for a few years now (e.g. www.zadachite.com on AppEngine, and a few internal apps), and it's been working pretty well. About the specific issue of the collection conversions - it bugged me for a little while, and I'm pretty sure I have a project

Re: New release of Eclipse Tapestry Plugin available for download

2016-01-24 Thread Alex Kotchnev
Dmitry - nice work, what a pleasure to see this ! Cheers - Alex K On Sat, Jan 23, 2016 at 7:33 PM, Dmitry Gusev wrote: > Hi Tapestry users, > > Two major features in new 2.13.x release: > > - Customizable templates >

Re: Where does Tapestry fit today

2015-12-26 Thread Alex Kotchnev
ilt that way), and what brings new users to build their apps with Tapestry (when they're starting from scratch) ? Cheers - Alex K On Sat, Dec 26, 2015 at 7:30 PM, Kalle Korhonen <kalle.o.korho...@gmail.com> wrote: > On Fri, Dec 25, 2015 at 1:22 PM, Alex Kotchnev <akoch...@gmail.com

Where does Tapestry fit today

2015-12-25 Thread Alex Kotchnev
A few years ago, when I first started using Tapestry (sometime in the 4.x days), having a well thought out component based server-side framework was a major improvement to how web apps were developed. When RoR hit, Tapestry rose up the challenge, released Tapestry 5 that used the state of the art

Re: [ANNOUNCE] Apache Tapestry 5.4

2015-12-24 Thread Alex Kotchnev
JT - why do you say that ? Did you have concerns with the release that were not addressed ? Is it the features in the release ? In any case, it would be useful to have some further details. Cheers - Alex K On Thu, Dec 24, 2015 at 1:43 PM, JT wrote: > Worst release ever. > On

Re: [ANNOUNCE] Apache Tapestry 5.4

2015-12-24 Thread Alex Kotchnev
Pretty epic, congrats to all who contributed and participated ! Most notably, this seems like the first Tapestry release that was not headed by Howard (of course, I don't have any stats to back that up). Cheers - Alex K On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner wrote: >

Re: Strange behavior using DataNucleus JDO, always getting same results

2015-08-24 Thread Alex Kotchnev
Yazmin - sounds like some kind of DataNucleus behavior. In general, depending on how you have declared the relationships between your data objects, or some of your JDO configuration options, JDO/DataNucleus might be caching some of the results in the related collection of objects. Chances are

Re: Sticky Sessions

2014-12-04 Thread Alex Kotchnev
George - sounds like those components might be using session persistence for some of their data (e.g. in the case of Grid it uses @Persist , which defaults to session persistence, to store the GridPaginationModel - e.g.

GAE 5.4-beta22 - access denied for modifyThreadGroup

2014-11-14 Thread Alex Kotchnev
I took 5.4-beta-22 out for a spin yesterday and I ran into the following exception when trying to run the AppEngine local dev server and there is an error on the page and Tapestry attempts to display the exception page. I'm not yet sure if this is going to work when deployed to AppEngine proper,

Re: GAE 5.4-beta22 - access denied for modifyThreadGroup

2014-11-14 Thread Alex Kotchnev
might want to have a different exception page (than this default), yet I wonder if there is anything that can still be done about this before 5.4 goes out (if it's considered important enough for a 5.4 release). Cheers - Alex K On Fri, Nov 14, 2014 at 6:08 PM, Alex Kotchnev akoch...@gmail.com wrote

Re: GAE 5.4-beta22 - access denied for modifyThreadGroup

2014-11-14 Thread Alex Kotchnev
behavior of Tapestry should change just for GAE. Kalle On Fri, Nov 14, 2014 at 3:15 PM, Alex Kotchnev akoch...@gmail.com wrote: Bummer, I just confirmed that the same error happens when deployed in AppEngine. At first glance this looked similar to an issue that was fixed a couple of years ago

Re: How to override property files in tapestry

2014-11-10 Thread Alex Kotchnev
Boris - not sure how helpful this would be, but here's my 2c. I'm not entirely sure how you might accomplish the hierarchy of symbols that you're looking for, but I think I've had an alternative approach that might accomplish the same. In the past, I've primarily accomplished this using Maven

Re: Parallel component rendering

2014-11-05 Thread Alex Kotchnev
...@gmail.com wrote: Hello, Alex! On Tue, 04 Nov 2014 21:23:10 -0200, Alex Kotchnev akoch...@gmail.com wrote: I'm a bit puzzled by the negative vibe that I'm getting. Just to be clear - I'm not perceiving any negative vibe, just one idea being proposed and some people thinking

Parallel component rendering

2014-11-04 Thread Alex Kotchnev
I've been poking around Lift for the last few months and one of the interesting approaches it has is that it can mark snippets (roughly the equivalent of tapestry compoents) as parallel - what Lift does w/ snippets that are marked in parallel is that it fires up new threads for rendering those

Re: Parallel component rendering

2014-11-04 Thread Alex Kotchnev
thread will have a separate hibernate session if using tapestry-hibernate which will need to be cleaned up and won't share a level1 cache. On 4 Nov 2014 19:57, Alex Kotchnev akoch...@gmail.com wrote: I've been poking around Lift for the last few months and one of the interesting approaches

Re: Parallel component rendering

2014-11-04 Thread Alex Kotchnev
retrieval is probably a better place to focus your efforts. On 4 Nov 2014 21:52, Alex Kotchnev akoch...@gmail.com wrote: Lance - I'm not saying that doing this would work out of the box or that it would be trivial , I understand that Tapestry as a framework has made choices that might make

Page instance variables and threads

2014-09-30 Thread Alex Kotchnev
I'm putting together a pretty simple application that needs to launch a bunch of background threads to do some work, and the page waits for all of them to complete, and then returns the aggregated results. Now, that sounds pretty straightforward (e.g. sample scala code). Now, the interesting part

Template encoding fix for 5.4 - TAP5-2219

2014-04-16 Thread Alex Kotchnev
Any chance that a committer can apply the patch from https://issues.apache.org/jira/browse/TAP5-1778 somewhere in the upcoming 5.4 release. The issue has the patch, it addresses the problem at hand and in the worst case scenario has no effect on users who don't care about this. Cheers - Alex K

Re: Tapestry template encoding and GAE

2013-07-19 Thread Alex Kotchnev
and beats his head against the wall long enough just to find this posting. Cheers - On Wed, May 22, 2013 at 7:57 AM, Alex Kotchnev akoch...@gmail.com wrote: Alejandro, unfortunately, adding the XML declaration doesn't help. . This obviously wouldn't be an issue if a) I was running my

Re: Tapestry template encoding and GAE

2013-05-22 Thread Alex Kotchnev
Alejandro, unfortunately, adding the XML declaration doesn't help. . This obviously wouldn't be an issue if a) I was running my own JVM, which in most situations where one hosts an application is the case (unfortunately, not the case in PAAS like GAE) or b) Tapestry didn't use the default

Tapestry template encoding and GAE

2013-05-21 Thread Alex Kotchnev
I have an application on Tapestry 5.3.6 that is deployed to GAE 1.8.0. The problem I have seems to be appengine specific (and not necessarily tapestry specific) as I have older versions of this application running on GAE and rendering the locale specific templates normally (whereas now the older

Re: T5 and AppEngine 1.7.3 dev server IllegalStateException

2013-05-17 Thread Alex Kotchnev
Just out of curiosity - this exception is thrown by Tapestry itself; however, since it's just a sanity check and it only happens on the Dev server , is there a way to disable this filter using Tapestry IoC ? org.apache.tapestry5.internal.services.ImmediateActionRenderResponseF

Re: T5 and AppEngine 1.7.3 dev server IllegalStateException

2013-05-17 Thread Alex Kotchnev
Alright - I'm not entirely sure if anyone will find any use for this, but I implemented the approach suggested by Lance (thank you Lance!) and pushed the code into BitBucket : https://bitbucket.org/akochnev/tap5-gae-utils The project wiki explains how to use it, but in short, just include the

Re: Conditional service override

2013-02-28 Thread Alex Kotchnev
instantiating the service inside the override contribution method. configuration.add(FooService.class, objectLocator.autobuild(MyOtherImplementation.class)); regards Taha On Mar 1, 2013, at 4:04 AM, Alex Kotchnev wrote: I would like to be able to conditionally override a service inside

Re: Appropriate/recommended usage for @Persist in components

2013-01-03 Thread Alex Kotchnev
into the session where as @Persist(entity) only serializes a key(entity_id, entity_type) and retrieves it for each request from the database. Hope it helps. regards Taha On Jan 3, 2013, at 9:42 PM, Alex Kotchnev wrote: In the last few weeks I ran into a few instances of what I thought

Re: protecting text field components from SQL injection

2013-01-02 Thread Alex Kotchnev
John - trying to protect against SQL injection by black listing possible SQL reserved words is not a good approach for preventing sql injection. The proper way to deal with that is to not use string concatenation (using the content of your text field) for your queries, and use prepared statements

Re: Tapestry-TestNG with selenium reusable helper methods.

2012-12-06 Thread Alex Kotchnev
George, you should be extending SeleniumTestCase and just using plan object-oriented principles to manage your code (e.g you could have some utility clases with utility methods, possibly classes to encapsulate page specific contents, etc). Trying to put your functional test related code into

Re: Disabling HMAC check

2012-11-21 Thread Alex Kotchnev
This was discussed previously on the list, but having a random string would be a bad idea, especially if you do some kind of load balancing between servers (e.g. server1 would get a different passphrase from server2, and server 2 will not want to process form submissions from server 1). I don't

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-12 Thread Alex Kotchnev
Sorry, I didn't dig into what's causing the issue, I was only able to return it to a working state. Have you tested if this is a problem only in the dev server or does it occur if you deploy to production as well ? I'd love to know if you find anything out - certainly would be useful to post the

Re: java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request.

2012-11-11 Thread Alex Kotchnev
I ran into this issue after I upgraded to GAE 1.7.2 or 1.7.3. Switching to 1.7.1.1 resolved the issue. Cheers - Alex K On Sun, Nov 11, 2012 at 9:57 PM, Muhammad Gelbana m.gelb...@gmail.comwrote: Any more info about the error message(s) ? What about the stacktrace ? Could this be more about

Re: ajaxResponseRenderer in event

2012-11-05 Thread Alex Kotchnev
There was a bug in tapestry-jquery not too long ago that wasn't processing the scripts on ajax events - make sure that you're on the latest tapestry-jquery version. Cheers - Alex K On Mon, Nov 5, 2012 at 9:28 AM, nquirynen nat...@pensionarchitects.bewrote: I think I found it:

Re: T5 and AppEngine 1.7.3 dev server IllegalStateException

2012-11-05 Thread Alex Kotchnev
Correction, this issue seems to have shown up w/ GAE 1.7.2 instead of 1.7.3 . Reverting the appengine sdk to version 1.7.1.1 resolves the issue whereas staying w/ 1.7.2 does not. Cheers - Alex K On Mon, Nov 5, 2012 at 11:35 PM, Alex Kotchnev akoch...@gmail.com wrote: I was migrating an older

Re: injecting the currently logged in user

2012-11-01 Thread Alex Kotchnev
Ulrich - I'll be curious to see what you come up with. I also use Shiro and have the user stored in the database, and have been thinking that I need to have a better way of having access to the current user (e.g. using some annotation). I'm not entirely sure how this FieldConduit would work (what

Re: Image lazy loading using tapestry without jquery.

2012-10-25 Thread Alex Kotchnev
I don't think you'll find an existing component that does this in Tapestry - it sounds like a general dynamic HTML kind of problem (and more specifically, how you can handle that problem on the phone browsers you are working with), for which you will most likely will need to write some javascript

Re: [T5.3]Zone parameter of a form null after ajax rendering?

2012-10-24 Thread Alex Kotchnev
Thomas - indeed, the issue w/ tap5-jquery not evaluating the init was a pretty gnarly one. I ran into it myself, albeit in a somewhat different context (and unfortunately it didn't ring a bell when I looked at your questions). Just as a side note, seeing the flurry of your own responses,

Re: chenillekit velocity template injectable service not working.

2012-10-23 Thread Alex Kotchnev
George, what is the error ? Does it not find the dependency when you build ? I do use chenillekit-template (1.3.3) w/ Tapestry 5.3.4 and have no issues with it.. Cheers, Alex K On Tue, Oct 23, 2012 at 10:02 AM, George Christman gchrist...@cardaddy.comwrote: Hello, I'm trying to get the

Re: chenillekit velocity template injectable service not working.

2012-10-23 Thread Alex Kotchnev
I do see the Velocity annotation in the jar ( inside the org.chenillekit.template.services package). I assume that you have an import statement (e.g. import org.chenillekit.template.services.Velocity) at the top of your VelocityTemplateServiceImpl ? The other difference in my case is that for

Re: chenillekit velocity template injectable service not working.

2012-10-23 Thread Alex Kotchnev
George, I haven't worked with the velocity service configuration (and I haven't looked at the source for that specifically). My assumption is that if you don't contribute anything to the velocity service configuration, that would be equivalent to having a null configuration, but doing it the

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Alex Kotchnev
Tony, I use Testify to accomplish what you describe ( http://tapestrytestify.sourceforge.net/junit4.html) . I used it w/ EasyMock mocks, but I assume it should be very similar to that. Cheers - Alex K On Mon, Oct 22, 2012 at 10:27 AM, Tony Nelson tnel...@starpoint.com wrote: Does anyone have

Re: Greenfield development: Tapestry or Grails for Groovy dev?

2012-10-10 Thread Alex Kotchnev
Sean, I missed this in my original post, but Szemere's post reminded me of another issue w/ Grails. Although I agree that at times, there is quite a bit of 'magic' that happens under the covers in Tapestry, it's nothing to the amount of magic that happens in Grails. For a seasoned java

Re: Greenfield development: Tapestry or Grails for Groovy dev?

2012-10-09 Thread Alex Kotchnev
In the past five years, I worked on a number of greenfield projects. In three out of four, we ended up choosing Grails - it is very hard to deny the market mindshare , the expansive documentation, the big name company behind the project, the large community, a massive number of plugins (for

Re: Generating link/url without RequestGlobals

2012-09-29 Thread Alex Kotchnev
have been nice not to have to use freemarker for the mail templates) Cheers, Alex K On Fri, Sep 28, 2012 at 2:59 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Fri, 28 Sep 2012 15:41:50 -0300, Alex Kotchnev akoch...@gmail.com wrote: In my application, I send html emails which

Re: Generating link/url without RequestGlobals

2012-09-29 Thread Alex Kotchnev
response (but obviously, it's not easy, since nobody has been able to crack this problem, and even tapx-templating needs a separate context). Cheers, Alex K On Sat, Sep 29, 2012 at 3:55 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Sat, 29 Sep 2012 12:01:40 -0300, Alex Kotchnev

Re: Tapestry-Security : Filter settings

2012-09-24 Thread Alex Kotchnev
The problem w/ the wildcard statement is that when Shiro tries to redirect it to the login page, the login page ends up requiring authentication (because it matches the /* wildcard pattern), etc. In order to make it do what you want, you'll need to allow the login page to be accessed w/o

Re: No 404 error is raised

2012-09-05 Thread Alex Kotchnev
This is quite a pesky problem. I tried going w/ the Start page approach mentioned in https://issues.apache.org/jira/browse/TAP5-879?attachmentOrder=desc ; however, as it appears the approach w/ Start pages no longer works (and they're deprecated anyway). It certainly is a surprise when the app

Injecting tapestry5.ioc.Messages ino service

2012-08-31 Thread Alex Kotchnev
I have a service that needs access to the global message catalog. In a previous email ( http://tapestry.1045711.n5.nabble.com/component-scope-service-with-injected-messages-td4724993.html), Howard indicated that Messages can now be injected into the service layer. However, when I add an

Named translators

2012-08-23 Thread Alex Kotchnev
I would like to contribute a Translator for Long values that would allow me to translate between byte counts and human readable file sizes (e.g. 5000bytes ~ 5MB). Since around 5.2 , the Translator configuration switched to a Mapped configuration where each translator is contributed for a given

Re: Named translators

2012-08-23 Thread Alex Kotchnev
Lance, this approach definitely works; however, I was looking for a way to declare this field translator somewhere globally as I use it in a few different places. Cheers, Alex K On Thu, Aug 23, 2012 at 11:20 AM, Lance Java lance.j...@googlemail.comwrote: This might work: TML:

Re: [Sharing] How to setup a Global XSS Filter in Tapestry 5

2012-08-17 Thread Alex Kotchnev
Martin, out of curiosity - why was it necessary to add all of the additional regexes in addition to using ESAPI ? Didn't ESAPI contain the needed APIs to perform the filtering only with it ? Cheers, Alex K On Fri, Aug 17, 2012 at 3:16 AM, kheldar666 mar...@liber-mundi.org wrote: Hi all,

Re: Tapestry Testing with Javascript off

2012-08-16 Thread Alex Kotchnev
You can change the Selenium test to use a different browser, e.g. for example HtmlUnit and set up HtmlUnit to not run Javascript. E.g.

Re: Library binder and IDE helper

2012-08-15 Thread Alex Kotchnev
I don't quite get it. If , as a user, I know that I need a ValueEncoderFactory, why is it helpful to inject T5, and call valueEncoderFactory() instead of declaring a field of type ValueEncoderFactory and marking it up w/ @Inject ? Cheers, Alex K On Tue, Aug 14, 2012 at 7:30 PM, Lenny Primak

Re: Conditionally (IE) including javascript

2012-08-13 Thread Alex Kotchnev
, Alex Kotchnev akoch...@gmail.com wrote: I'll give George's suggestion a go tomorrow. It seems like I should be able to do this from the layout components that pages use, so that I don't have to add the code to each page. Cheers, Alex K On Wed, Jul 18, 2012 at 4:51 PM, trsvax trs

Re: Import/export in tapestry

2012-08-09 Thread Alex Kotchnev
No way to do it from Tapestry (or any other web app for that matter) - where the file will be stored on your client machine when you click on a link to download it is a browser feature. If you have multiple files that you need to download, you can always zip them up (on the fly) to download all at

Re: Import/export in tapestry

2012-08-09 Thread Alex Kotchnev
...@gmail.com wrote: Thanks. Sorry but I dont understand that meaning of this phrase Alex Kotchnev-2 wrote *If you have multiple files that you need to download, you can always zip them up (on the fly) to download all at the same time.* Cheers - Alex K On Wed, Aug 8, 2012

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
Martin, you really should be able to continue using @Persist and @SessionState. Both Shiro's subject.getSession() and the @Persist annotation store their values in the same http session. Is that not working for you ? Cheers, Alex K On Wed, Aug 8, 2012 at 7:20 AM, kata

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
implementation. If I can do that, then I hope I can use the servlet API in the application instead of the shiro-specific calls. Ideally annotations would also work as intended, with clustering and all. Regards, Martin Alex Kotchnev-2 wrote Martin, you really should be able

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
It seems that you could override the session persistence strategy and replace the usage of http session with Shiro's session -e.g. the implementation seems to be pretty straightforward e.g. inside of Tapestry , look at SessionApplicationStatePersistenceStrategy (

Re: Changing default session behavior.

2012-08-08 Thread Alex Kotchnev
look into it. Regards, Martin Alex Kotchnev-2 wrote Martin, it sounds like you might need to crack open the Tapestry source, but it seems doable. Although I don't know the details, I know for sure that the @Persist annotation allows for different persistence strategies (e.g

Re: Intercept component event actions?

2012-08-06 Thread Alex Kotchnev
Dmitry, there is the import org.apache.tapestry5.services.ComponentRequestFilter, which gets called on page and component events. For example, Tynamo's tapestry-security module (e.g. org.tynamo.security.SecurityComponentRequestFilter) uses these to check if the user has the correct permissions.

Re: How to override a component message

2012-08-02 Thread Alex Kotchnev
Matias, the validation page has a snippet of info ( http://tapestry.apache.org/forms-and-validation.html ) on the validation message selection from the message catalog. So, specifically on overriding the tynamo login form error message, I have the following in app.properties:

Re: Tapestry 5 Book EAP Launched

2012-08-01 Thread Alex Kotchnev
So, if the cards are already charged, is there any way of getting the books out before the campaign ends ? Cheers, Alex K On Wed, Aug 1, 2012 at 1:50 PM, Chris Cureau cmcur...@gmail.com wrote: If someone would want to withdraw their contribution, I'd be happy to pay them instead...a buy out,

Re: Applet in Tapestry

2012-07-30 Thread Alex Kotchnev
There is nothing Tapestry specific that you need to do - you would just use the plain HTML examples for using an applet on a page. You will need to put the applet jar somewhere inside your web context (e.g. outside of your java packages directory structure), where it would be accessible from the

Re: relative page links in components

2012-07-26 Thread Alex Kotchnev
Ozkan - just an idea - it seems that you might be able to do something like this : @Inject private ComponentResources compResources @Property String editPath page = compResources.getPage() editPath = page.getComponentResources().getBaseResource().forPath(edit).getPath() then, in your

Re: Missing 11 Build Path Entries

2012-07-25 Thread Alex Kotchnev
I think that the command line version of the tutorial is still very valuable as it provides a process that always works w/o having to depend on IDE features. So, I'd say, maybe have something in the tutorial on Eclipse or NetBeans instructions but the baseline, in my opinion, should remain on the

Re: Tapestry-Hibernate Configuration Woes - The user must supply a JDBC connection

2012-07-23 Thread Alex Kotchnev
It seems that you might be setting the wrong hibernate configuration property - at least this thread ( http://stackoverflow.com/questions/5303671/configure-hibernate-to-connect-to-database-via-jndi-datasource ) on stack overflow indicates that the datasource property is

Re: tapestry-beanvalidation and tapestry-jquery js error

2012-07-20 Thread Alex Kotchnev
Nevermind - it looks like a version conflict/omission on my end. I was using tapestry-jquery 3.2.0 together w/ tapestry 5.3 . When I updated tapestry5-jquery to 3.3.0, the error went away. Cheers, Alex K On Thu, Jul 19, 2012 at 5:51 PM, Alex Kotchnev akoch...@gmail.com wrote: I use tapestry

Re: Displaying non-field specific errors

2012-07-20 Thread Alex Kotchnev
fields of your form). That's the only solution i see right now. 2012/7/18 Alex Kotchnev akoch...@gmail.com Is there a way to display the non-field specific errors ? t:errors shows all errors (field and non-field specific) whereas , t:error displays errors for a specific field

Re: partially update with another page or component

2012-07-19 Thread Alex Kotchnev
You can probably use Blocks to return the partial page updates, e.g. in your template t:block t:id=fooBlock Some content here /t:block In your page class @Inject private Block fooBlock Object onSomeEvent() { return fooBlock } Technically, it's the easiest if your blocks are defined on the

Re: Tapestry-Security / Javascript auto logout

2012-07-19 Thread Alex Kotchnev
It doesn't necessarily have to be a completely separate page - you can generate a URL for a logout event and give that URL to the jquery plugin. Cheers - Alex K On Thu, Jul 19, 2012 at 12:50 PM, George Christman gchrist...@cardaddy.comwrote: Hello I'm using tapestry security and a jQuery

Re: Tapestry 5.3.4

2012-07-19 Thread Alex Kotchnev
Stephan / George, did you figure out what the issue was with the missing bizarre missing dependency problem ? I switched the version in my POM and I see the same problem. Cheers, Alex K On Wed, Jul 18, 2012 at 6:37 PM, Angelo C. angelochen...@gmail.com wrote: congrats! any breaking

tapestry-beanvalidation and tapestry-jquery js error

2012-07-19 Thread Alex Kotchnev
I use tapestry-beanvalidation and tapestry-jquery. As a result, when I open up a page, I get a javascript error in tapestry-beanvalidator.js:15: Cannot set property 'notnull' of undefined The offending line is : Tapestry.Validator.notnull = function(field, message, spec) Uncaught TypeError:

Re: Adding a class to a div based on field validation status

2012-07-18 Thread Alex Kotchnev
Lance, thanks for the sample mixin code : I hadn't created any mixins previously and this was a great start. It works like a charm. Thiago, I did think of using the Validation decorator; however, at least for now it looked a bit of an overkill as I'm not 100% sure if this is going to be the

Re: Conditionally (IE) including javascript

2012-07-18 Thread Alex Kotchnev
George, yep, I had seen this example on conditionally including stylesheets. However, I was wondering how to do the same w/ javascript... Cheers, Alex K On Wed, Jul 18, 2012 at 12:23 PM, George Christman gchrist...@cardaddy.comwrote: You could do something like this, @Inject

Re: Conditionally (IE) including javascript

2012-07-18 Thread Alex Kotchnev
I'll give George's suggestion a go tomorrow. It seems like I should be able to do this from the layout components that pages use, so that I don't have to add the code to each page. Cheers, Alex K On Wed, Jul 18, 2012 at 4:51 PM, trsvax trs...@gmail.com wrote: For this particular case I suspect

Re: Beaneditform Troubles

2012-07-17 Thread Alex Kotchnev
Milos, I don't seem to have a problem w/ this functionality: t:beaneditform t:id=fooForm object=foo exclude=id, dateCreated add=users submitLabel=Save p:users [ display the user related information here ], e.g. t:checklist t:id=usersChecklist model=userSelectModel

Re: Beaneditform Troubles

2012-07-17 Thread Alex Kotchnev
I haven't tested it but I'd guess that it's doing this because it doesn't have an editor registered for the Autor and Jezik entities. You have two options : 1. Create property editors for the entities as described in http://jumpstart.doublenegative.com.au/jumpstart/examples/lang/propertyeditors

Adding a class to a div based on field validation status

2012-07-17 Thread Alex Kotchnev
I have a very simple form and I'm trying to add a special class to a div inside the form which would indicate if the field that's contained inside the div has an error. It seems that it should be simple to do so, but I can't seem to do it. I'm trying to style the form using the Bootstrap form

Re: Adding a class to a div based on field validation status

2012-07-17 Thread Alex Kotchnev
+ this.errorClass); } } } On Tue, Jul 17, 2012 at 5:13 PM, Alex Kotchnev akoch...@gmail.com wrote: I have a very simple form and I'm trying to add a special class to a div inside the form which would indicate if the field that's contained inside the div has an error. It seems that it should

Re: [Announce] Tapestry-Bootstrap 2.0 early Alpha

2012-07-09 Thread Alex Kotchnev
Barry - this is pretty cool. I hadn't seen your module and just ended up adding the bootstrap related assets into the layout, but I see that you've added a whole lot of useful components and stuff. Does it seem like the project is stable enough to produce a stable release soon (e.g. in the next

Invisible instrumentation and library namespaces

2012-07-09 Thread Alex Kotchnev
Does the invisible instrumentation approach work w/ library namespaces short names inside of the t:type attribute value ? That is, if I specify a library namespace, can I expect to use the t:type=libNs/componentName to work, where the libNs is the short name for libraryNamespace , e.g. div

Re: Invisible instrumentation and library namespaces

2012-07-09 Thread Alex Kotchnev
H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 09 Jul 2012 17:13:53 -0300, Alex Kotchnev akoch...@gmail.com wrote: Does the invisible instrumentation approach work w/ library namespaces short names inside of the t:type attribute value ? That is, if I specify a library namespace

Re: Tapestry jodatime module (based on jumpstart) ?

2012-07-06 Thread Alex Kotchnev
, 2012 at 2:20 PM, Alex Kotchnev akoch...@gmail.com wrote: I was looking at Geoff's examples in JumpStart on supporting JodaTime, e.g. http://jumpstart.doublenegative.com.au/jumpstart/examples/lang/typecoercers and http://jumpstart.doublenegative.com.au/jumpstart/examples/jodatime

Re: Tapestry jodatime module (based on jumpstart) ?

2012-07-06 Thread Alex Kotchnev
need the source code. Regards Dimitris Zenios On Fri, Jul 6, 2012 at 1:37 PM, Alex Kotchnev akoch...@gmail.com wrote: Geoff, thanks for allowing this. Jumpstart is such an invaluable resource for good examples, I would be very happy to add a small contribution that other people

Tapestry app live console

2012-06-28 Thread Alex Kotchnev
I was wondering how people in the Tapestry community approach this and if you have any tips on how to deal with this. In the last couple of years, I've worked on a couple of Grails projects. One very useful aspect of running a Grails app has been the Console plugin (

Re: Tapestry app live console

2012-06-28 Thread Alex Kotchnev
Right - exposing the configurable values via JMX could work for the configuration aspect of such a console. I haven't worked w/ JMX enough, but it sounds like a lot of complication to add on top of the existing configuration system via symbols (e.g. it seems that I would need to add a jmx property

Re: QaModule / DevelopmentModule intended usage

2012-06-20 Thread Alex Kotchnev
, 2012 at 9:12 PM, Alex Kotchnev akoch...@gmail.com wrote: Ah, I forgot to add the more important question - if I wanted to have other custom environments, how would I go about defining one ? I understand that I'd need to add a new module for the given environment, but the more interesting

QaModule / DevelopmentModule intended usage

2012-06-19 Thread Alex Kotchnev
Not having used Tapestry for a while, I ran into the addition of the QaModule and Development module. I've been looking at the new Tapestry project setup and I noticed the new (at least 'new for me') QaModule and DevelopmentModule . Is there a special relationship between the regular AppModule and

Re: QaModule / DevelopmentModule intended usage

2012-06-19 Thread Alex Kotchnev
a matter of adding a new closure in the config files ( http://grails.org/doc/latest/guide/conf.html#environments) . Cheers, Alex K On Tue, Jun 19, 2012 at 11:51 PM, Alex Kotchnev akoch...@gmail.com wrote: Not having used Tapestry for a while, I ran into the addition of the QaModule

Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-30 Thread Alex Kotchnev
.txt fails, boot2.txt succeeds. I'll see if I can send you a project that reproduces this. Regards Paulo Andrade On Apr 27, 2012, at 3:03 AM, Alex Kotchnev wrote: Paulo, would you be able to put together a sample project that does this ? I'll have another look at the jdo sample

Re: Tynamo's tapestry-jdo and JDOEntityValueEncoder not getting registered

2012-04-26 Thread Alex Kotchnev
Paulo, would you be able to put together a sample project that does this ? I'll have another look at the jdo sample project but I'm pretty sure this worked OK there (although it wasn't tested w/ T5.3.x). Cheers, Alex K On Thu, Apr 26, 2012 at 5:45 PM, Paulo Andrade

Re: tynamo resteasy and JDO objects

2012-04-23 Thread Alex Kotchnev
Paulo, I'm not sure what the significance of using tapestry-jdo has in this context. It seems that the issues you're having are related to resteasy (e.g. not serializing to xml would be a problem even if they were not JDOs. Can you try your problem and see if you can serialize non-JDO objects ?

Re: Tapestry Forums

2012-03-06 Thread Alex Kotchnev
Technicium, I'm just curious - how did you conclude that the tapestry community is growing very rapidly ? Cheers, Alex K On Tue, Mar 6, 2012 at 3:20 PM, Chris Mylonas ch...@opencsta.org wrote: there's an irc channel - freenode #tapestry On 07/03/2012, at 6:36 AM, Thiago H. de Paula

Re: Is tapestry trying to narrow down its users?

2012-02-08 Thread Alex Kotchnev
A big +1 on having binaries with dependencies distributed/available. Having to build a maven project w/ tapestry just to get the dependencies is a massive PITA. Cheers, Alex K On Wed, Feb 8, 2012 at 5:09 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: As a maven user myself I don't personally

How to export maven poms from gradle for tapestry

2012-01-02 Thread Alex Kotchnev
I use NetBeans and I wanted to look something up in the Tapestry source tree. NetBeans has pretty decent Maven support, so in the past, I was able to just check out the source tree and then open the projects. Now, w/ the build moved to Gradle, there are no more pom files that I can open. I have a

Re: Which IDE for Tapestry?? [short and medium term]

2011-11-15 Thread Alex Kotchnev
There is a netbeans tapestry plugin ( http://java.net/projects/nbtapestrysupport/), although it's pretty basic. Cheers, Alex K On Tue, Nov 15, 2011 at 11:21 AM, Julien Martin bal...@gmail.com wrote: Thanks all for this interesting information. It is a shame no netbeans plugin exists for

Re: Meap Tapestry 5 book cancelled?

2011-09-22 Thread Alex Kotchnev
This is a bummer indeed. If I recall correctly, this was gong to be a translation from German - so the content actually exists, something must have fallen through with the translation. I know for a fact that the NetBeans community has had at least a couple of 'community translated' books.

Re: Using layouts - partial page templates

2011-09-15 Thread Alex Kotchnev
David - try using the t:content element ( http://tapestry.apache.org/component-templates.html). It's supposed to do exactly what you need - just put it around your main content and everything else would be ignored when the template is rendered. Cheers, Alex K On Thu, Sep 15, 2011 at 9:32 AM,

Re: [T5.3 beta 2] Using Tapestry-Spring-Security with 5.3?

2011-09-06 Thread Alex Kotchnev
I'd go w/ tynamo's tapestry-security (and I did on a latest small project). I used TSS on a previous project (and contributed some changes to get TSS to T5.2 and Spring 3.0 back in the day) and it ended up being the ball that kept me chained to Spring (although the rest of the app didn't

Re: Netbeans and Tapestry integration

2011-08-02 Thread Alex Kotchnev
The live reloading doesn't depend on anything eclipse specific - it's a tapestry feature. As long as your compiled classes end up in a container that supports it (e.g. in the past, I've had problems w/ live reloading and Tomcat), you should be OK. The Compile on Save feature in NetBeans is

  1   2   3   >