Re: How to write to sitemap

2014-06-03 Thread Magnus Kvalheim
Hi. Yes, you can generate the sitemap and place it an arbitrary location - another domain even. You provide a path to the sitemap in the robots.txt (which is located on our real domain) By doing so you have proven ownership of the domain and can basically host the sitemap on any path/domain. http

Exception reporting with mixed http & https

2014-04-15 Thread Magnus Kvalheim
Hi guys. We have used the recipe for Exception reporting - version 3 http://tapestry.apache.org/overriding-exception-reporting.html This way we can render the exception page with the current uri (no redirect and proper 40x). The website have both http and https pages (@Secure). The problem we'r

Re: [5.4-beta-2] Two JavaScript Errors - Quick Fixes

2014-01-24 Thread Magnus Kvalheim
ppedConfiguration, AssetSource) (at AppModule.java:614)) does not match an existing key. Perhaps missing something obvious? /magnus On Sat, Jan 25, 2014 at 12:04 AM, Magnus Kvalheim wrote: > Thanks Howard, that's good tip :-) > > Not verified, but think that will solve current issue I

Re: [5.4-beta-2] Two JavaScript Errors - Quick Fixes

2014-01-24 Thread Magnus Kvalheim
Thanks Howard, that's good tip :-) Not verified, but think that will solve current issue I'm having with with 5.4 beta. Ajax radio submit, https://issues.apache.org/jira/browse/TAP5-2231 Have been unsuccessful in approach to override forms module and tried unsuccessfully approaches like this: @Co

Re: Any thoughts on Tapestry with PhoneGap?

2014-01-23 Thread Magnus Kvalheim
se within a business, ie. it's not public, but the > users will be very geographically dispersed; so I will look into whether > the App Store has more relaxed rules for Enterprise apps. > > BTW, the tips in the Exfm blog entry are great. Thanks. > > Geoff > > On 22/01/

Re: Any thoughts on Tapestry with PhoneGap?

2014-01-22 Thread Magnus Kvalheim
Hi Geoff. Think Apple guys officially don't look too kind on views(full markup, assets) created outside of app. It could mean that look'n feel - and possibly behavior may change after it's been approved as it's controlled from server. You 'may' risk a possible rejection based on that. That said,

Re: Changing to default localization without extension for the language

2013-12-17 Thread Magnus Kvalheim
Yes, decorating didn't seem possible - so have (for now) copied and overridden PersistentLocaleImpl to allow null. It is part of a requirement to always force locale through uri, except for english which is on unlocalized. So need to clear persistentlocale when switching to english. Locale switch

Re: Changing to default localization without extension for the language

2013-12-17 Thread Magnus Kvalheim
Hi Geoff. A bit of an old thread now, but am also looking for a way to clear/reset persistent locale. Did you/anyone come up with a solution? /magnus On Sat, Nov 24, 2012 at 3:57 AM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > Once I have gone to a specific locale I can't

Re: domain change with path added

2013-11-23 Thread Magnus Kvalheim
Hi Alex. Typically you don't set the context path. And if you do, then it's often in the app server(container) config. The value of context path is normally the same as the warfile name, and then you use the (httpservlet)request-interface to access it. I can see that 5.4 have deprected Request#g

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
mselves express dependencies. (But can also be used to 'patch' tapestry modules as mentioned here) On Fri, Nov 22, 2013 at 12:20 PM, Chris Poulsen wrote: > Why not submit a patch, now that you've spent the time figuring it out? > > > On Fri, Nov 22, 2013 at 12:07 PM, Magn

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
ide public JSONObject configure(JSONObject configuration) { JSONObject paths = (JSONObject) configuration.opt("paths"); if(paths==null) paths = new JSONObject(); paths.put("t5/core/forms", "t5-custom/core/forms"); configuration.put("paths", paths); retur

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
JIRA is here: https://issues.apache.org/jira/browse/TAP5-2231 On Fri, Nov 22, 2013 at 9:10 AM, Magnus Kvalheim wrote: > Just verified again with a simple form like this one: > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html > > =

Re: [5.4.25] Ajax submit with Radiogroup submits all values

2013-11-22 Thread Magnus Kvalheim
all values - and not just the checked one. I'll create a JIRA. magnus On Thu, Nov 21, 2013 at 11:07 PM, Magnus Kvalheim wrote: > Hi guys. > > Just notised a strange issue with radio ajax/zone submit. It submits all > values - selected and not selected. > > - If I disable javasc

[5.4.25] Ajax submit with Radiogroup submits all values

2013-11-21 Thread Magnus Kvalheim
Hi guys. Just notised a strange issue with radio ajax/zone submit. It submits all values - selected and not selected. - If I disable javascript - then it submits single value. Correct - If I remove form t:zone then it also submits fine. Correct If I enable t:zone then it submits all possible rad

Re: domain change with path added

2013-11-15 Thread Bård Magnus Kvalheim
Hi Alex Could you be missing to add contextpath when generating the url? http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/api/javax/servlet/http/HttpServletRequest.html#getContextPath() If the app was previously deployed in 'ROOT' context then the contextpath was - well - empt

Re: Apache Tapestry 5.4-alpha-25 preview release

2013-11-12 Thread Bård Magnus Kvalheim
Great. That looks very good indeed :-) On Mon, Nov 11, 2013 at 11:01 PM, Howard Lewis Ship wrote: > This updates a number of bundled dependencies: > - Bootstrap 3.0.2 > - RequireJS 2.1.9 > - Less4J 1.2.0 > - Closure Compiler v20131014 > > It also fixes a bug that prevent JavaScript stacks from be

[T5.4] - stack js not minified

2013-11-10 Thread Bård Magnus Kvalheim
Hi guys. Just noised that stack js in not minified in 5.4. Tried on 5.4.22 and 5.4.24 and seems to be missing on both. I'm in production mode and have also set combine-scripts=true enable-minification=true Modules and asset js + css seem to all minify correctly, so look like a possible oversight

Re: [T5.4] A Tapestry upgrade experience

2013-11-08 Thread Bård Magnus Kvalheim
On Fri, Nov 8, 2013 at 2:31 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 07 Nov 2013 19:27:11 -0200, Bård Magnus Kvalheim < > mag...@kvalheim.eu> wrote: > > ... On slightly different note while discussing 24 - the ordering of >> stack css

Re: [T5.4] A Tapestry upgrade experience

2013-11-07 Thread Bård Magnus Kvalheim
On Thu, Nov 7, 2013 at 2:03 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 07 Nov 2013 10:13:47 -0200, Bård Magnus Kvalheim < > mag...@kvalheim.eu> wrote: > > It is very common that thirdparty js modules also rely on RequireJs. >> Therefore

[T5.4] A Tapestry upgrade experience

2013-11-07 Thread Bård Magnus Kvalheim
*Movellas - Our [T5.4] Tapestry upgrade experiences* 5.4 is underway and think a lot of users are wondering if or when they can start using it for their applications. New or existing ones. We've upgraded ours to 5.4 and hope our experiences can be helpful for other and also help improving 5.4 towa

Re: Apache Tapestry 5.4-alpha-24 preview release

2013-11-05 Thread Bård Magnus Kvalheim
That's great - keeps improving heaps with every release. Also great with 3.0.1 update Briefly tried the stacks and seems to be working well :-) Think it can be very useful indeed. I've noised a change related to ordering of stack css files. Seems like page css now comes after stacks - which I t

[5.4.22] Serious issue with assets and checksums - different for same file

2013-10-11 Thread Bård Magnus Kvalheim
Hi everybody. Today we've launched a website based on 5.4. We're very exited about the upcoming release(5.4) and I'll post separately about our experiences (mostly great). Post release we've identified a potential serious issue related to assets and their checksums. What we see is that a handful

Re: [5.4.22] RequireJs custom path contribution - perhaps on Stacks or JavaScriptSupport

2013-10-03 Thread Bård Magnus Kvalheim
Thanks Lenny, JIRA created https://issues.apache.org/jira/browse/TAP5-2196 Please vote guys :) On Thu, Oct 3, 2013 at 8:02 PM, Lenny Primak wrote: > +1. I can see lots of things needing this. JIRA please ill vote for it. > > > On Oct 3, 2013, at 1:33 AM, Bård Magnus Kvalh

Re: [5.4.22] Need example of custom javascript

2013-10-03 Thread Bård Magnus Kvalheim
Hi Geoff. Believe the META-INF should be on the classpath (in resources if using maven structure) On Thu, Oct 3, 2013 at 1:52 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > I've dropped the @Import and tried many things inspired by Thiago and > Lenny's source (thanks guys),

[5.4.22] RequireJs custom path contribution - perhaps on Stacks or JavaScriptSupport

2013-10-03 Thread Bård Magnus Kvalheim
Hi folks. As part of 5.4 migration process we have some components that make use of JQueryFileUpload, https://github.com/blueimp/jQuery-File-Upload . This library uses the factory approach for defining the modules to work in both AMD and non AMD environments. Internally it handles loading of requ

Re: Should the JQuery UI library be include with 5.4

2013-10-03 Thread Bård Magnus Kvalheim
define(["t5/core/dom", "t5/core/events", "jquery", "// code.jquery.com/ui/1.10.3/jquery-ui.js"], ... That's interesting - loading of scripts directly within a define. Seems very useful and convenient. Thought I might use same approach in some scenarios. I tried to lookup on documentation of that

Re: Should the JQuery UI library be include with 5.4

2013-10-03 Thread Magnus Kvalheim
define(["t5/core/dom", "t5/core/events", "jquery", "// code.jquery.com/ui/1.10.3/jquery-ui.js"], ... That's interesting - loading of scripts directly within a define. Seems very useful and convenient. Thought I might use same approach in some scenarios. I tried to lookup on documentation of that

Re: 5.4 Datepicker survey

2013-10-01 Thread Bård Magnus Kvalheim
This is great news and good timing. We're currently in process of making a 5.4 migration and will soon be in the market for a datepicker as well. Have been looking at https://github.com/eternicode/bootstrap-datepicker and seems like there are some efforts to bring it up to speed with bootstrap 3 h

Re: [5.4.22] Possible issue with Element#attribute for css class. -> Class is replaced and not added

2013-10-01 Thread Bård Magnus Kvalheim
it wrong (perhaps with namespaces). Does anyone have some more insight or have come across similar issues with duplicate class attributes or missing class attribute values? cheers Magnus On Mon, Sep 30, 2013 at 10:45 PM, Bård Magnus Kvalheim wrote: > Hi again. > > So have still not been able

Re: [5.4.22] Possible issue with Element#attribute for css class. -> Class is replaced and not added

2013-09-30 Thread Bård Magnus Kvalheim
i.find("a")!=null) { contentId = activeLi.find("a").getAttribute("href"); } } if(contentId!=null) { if(contentId.startsWith("#")) contentId = contentId.substring(1); Element cnt = thisEl.getElementById(contentId); if(cnt!=null) { cnt.attribute("cl

[5.4.22] Possible issue with Element#attribute for css class. -> Class is replaced and not added

2013-09-27 Thread Bård Magnus Kvalheim
Hi guys. So I've might have come across a bug in 5.4.22 when trying to add a css class to an element. The Element#addClassName is deprecated and delegate to Element#attribute where attributes named "class" now gets special treatment. The problem I'm seeing is that Element#attribute overrides the

Re: T5.4 migration discussions

2013-09-24 Thread Bård Magnus Kvalheim
stack. > > RequireJS's optimize does a bit more; you specify some module names and it > figures out the transitive dependencies and builds a single script. That > would be great, but I'm not sure I can pull it off. > > > On Tue, Sep 24, 2013 at 12:57 AM, Bård Magn

Re: [5.4] LinkSubmit Client-side Validation Broken

2013-09-24 Thread Bård Magnus Kvalheim
Hi Peter. I'm also seeing the same issue with alpha 22. Could reproduce with a simple form having linksubmit. Haven't done any further research, but possibly good idea to track as jira? -magnus On Thu, Sep 5, 2013 at 9:14 AM, Peter Hvass wrote: > Thanks Boris and Eugen. Boris; are you using a

Re: T5.4 migration discussions

2013-09-24 Thread Bård Magnus Kvalheim
Thanks for reply. Do the tapestry-jquery guys mentioned their plans for 5.4? The > include-jQuery-and-**reimplement-everything-in-**jQuery isn't needed > anymore, but the other parts should still be quite useful in 5.4. > Yes, think so too. Looks like the plan is to get it updated, but not sure o

T5.4 migration discussions

2013-09-23 Thread Bård Magnus Kvalheim
Hi guys and Howard :) So I've been taking 5.4 out for a testdrive (alpha 22). The application is fairly large 150+ pages, 250+ components and mixins. *Plugins:* Is using tapestry-jquery, t5conduit (less & coffieescript), tapestry-yuicompressor (with Lenny's workaround) The plugins are omitted for

Re: tapestry 5.2.5 doesnot work on Jboss 6

2013-08-02 Thread Bård Magnus Kvalheim
Hi. I know it's JBoss's fault and all that, but shouldn't 'we' support jboss out of the box anyways? Either in core(preferred) or as a module? Might be wrong, but it just seems like such a small thing to add. Community/ Benjamin/Geoff already did all the work. Think it's a bad experience having to

Re: best way of incorporating static pages?

2013-06-15 Thread Bård Magnus Kvalheim
Maybe it's just me and I didn't see the problem, but can't you just link to the cms content? The cms content has a link so why should tapestry service it? Is it on the same base domain? Then use request services to generate an absolute url. -magnus HTC one Den 12. juni 2013 13:07 skrev "John" f

Re: Is it possible to Import external sources

2013-05-28 Thread Bård Magnus Kvalheim
It does not come out of the box. But it is possible with little effort. You need to make an assetfactory with friends (Resource+asset). Check: http://osdir.com/ml/users-tapestry-apache/2009-03/msg00937.html Would then be like this: @Import(stylesheet = {"uri: http://fonts.googleapis.com/css?fami

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
> I did try to implement my own proposed solution with Advice > > That's a lot of messy byte code manipulation for a single method interface. > Yes, I have to agree. Delegate is probably a better choice in this case. Cleaner and also typesafe. Tried your suggestion - and it works just as well as

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
Hi. On Thu, May 23, 2013 at 11:31 AM, Lance Java wrote: > I think the easiest way would be to decorate the JavaScriptStackSource > service. Wrap the default implementation with a version which decorates > getStack(String name) to return a custom JavaScriptStack implementation. > > The custom JavaS

Re: Why is AssetPathConverter not called for javascript stacks

2013-05-23 Thread Bård Magnus Kvalheim
4:48 PM, Bård Magnus Kvalheim wrote: > I'm still searching for a way to resolve this - now in 5.3.6. > > Anyone have ideas on what potentially could be done? Creative ideas > welcome :) > > cheers > Magnus > > > On Thu, Oct 25, 2012 at 2:13 PM, Bård Magnus

Re: [ANNOUNCE] Tapestry-cdi contribution

2013-05-16 Thread Bård Magnus Kvalheim
On Thu, May 16, 2013 at 12:08 PM, Nourredine Khadri < nourredine.kha...@atos.net> wrote: > >I do believe that the same could be said for tapestry-cdi and by > extension FlowLogix > >Magnus, can you comment on this? > I think that you have to rely on a specific container's implementation > to exclu

Re: [ANNOUNCE] Tapestry-cdi contribution

2013-05-15 Thread Bård Magnus Kvalheim
part of > the got5[1] project. > > This library is based on work of Romain Manni Bucau[2] and inspired > from other contributions (Magnus Kvalheim[3] and FlowLogix > projects[4]). > We have updated the dependencies of this library to use Tapestry 5.3.7 > > Tapestry-CDI module allows

Re: date field as 3 drop down fields

2013-04-17 Thread Bård Magnus Kvalheim
True that - learned the hard way :( Using a threadlocal is quite convenient as well. http://stackoverflow.com/questions/817856/when-and-how-should-i-use-a-threadlocal-variable http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadLocal.html On Thu, Apr 18, 2013 at 12:15 AM, Lance Java wrote:

Re: How to change HTML form action? Or is there any better option?

2013-03-30 Thread Bård Magnus Kvalheim
Hi dmitry. Think the activation context for forms is in a hidden field , possibly serialized. Magnus -sent from mobile Den 30. mars 2013 09:30 skrev "Dmitry Gusev" følgende: > So, the onPassivate() didn't worked, there's no context in the form's > action... looking for another options. > > On Sa

Re: delegage or target

2013-03-25 Thread Bård Magnus Kvalheim
Hi Ken. I think what you refer to as the target="" approach is html frames and you can certainly do that with tapestry or any other framework. Here is my understanding of Tapestry 'best practices'. *Master layouts* In tapestry you can create master layouts. A master layout is a page template tha

Re: First stab at CDI module for tapestry

2013-03-10 Thread Magnus Kvalheim
/tapestry-dev/201210.mbox/%3CCA+=ewnb+tjv01fiyzsded3u5iyop3wcf1r3prhqtdjrm7ix...@mail.gmail.com%3E > >> ). > >>>> JPA 2.1 is required the check the SPI (see > >>>> http://java.dzone.com/articles/cdi-extensions-you-can-build, > >>>> http

Re: Keeping the session alive pattern?

2013-02-06 Thread Bård Magnus Kvalheim
If you can do with activation context - then look no further.. I guess though what you're requesting is user data/login persistence. We have been quite happy with storing user 'tokens' in cookies - and transparently logging in users (put in session) prior to any page or component activity. We ha

Re: Tapestry 5 book is here

2013-01-25 Thread Bård Magnus Kvalheim
Thank you for this, looks very good. Even as a tapestry 'veteran' by now, I'm sure I'll find nice gems and tricks - and it will surely help new developers getting up to speed quickly. Just great! On Fri, Jan 25, 2013 at 11:42 AM, Christian Riedel wrote: > Thank you, Igor! > > 100 pages more tha

Re: [ANNOUNCE] FlowLogix Tapestry & JEE Integration Library, version 1.2.1

2013-01-11 Thread Magnus Kvalheim
tation in Tapestry objects, including Stateful session beans > and bridge Tapestry and JEE > CDI (Context and Dependency Injection) Support - Thanks to Magnus Kvalheim > Use tapestry-jpa with multiple databases easily with PersistenceRegistry > Improved Tapestry DateField calendar functio

Re: Why is AssetPathConverter not called for javascript stacks

2012-11-07 Thread Bård Magnus Kvalheim
I'm still searching for a way to resolve this - now in 5.3.6. Anyone have ideas on what potentially could be done? Creative ideas welcome :) cheers Magnus On Thu, Oct 25, 2012 at 2:13 PM, Bård Magnus Kvalheim wrote: > > Regarding AssetPathConverter - should I open a JIRA for s

Re: Image lazy loading using tapestry without jquery.

2012-10-26 Thread Bård Magnus Kvalheim
Hi Anbazhagan. Yes, Alex is right - you need some javascript for that. jquery afaik works well with mobile devices. Don't know if you used a plugin - or did it yourself, but I've wrapped a jquery library to do our lazy loading: http://www.appelsiini.net/projects/lazyload . Works well for us - als

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-25 Thread Bård Magnus Kvalheim
> Regarding AssetPathConverter - should I open a JIRA for stack assets? > > I just created Jira. https://issues.apache.org/jira/browse/TAP5-2019 Let me know if you know of a workaround in tap 5.3.4. thanks Magnus

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-05 Thread Bård Magnus Kvalheim
On Fri, Oct 5, 2012 at 6:28 PM, Howard Lewis Ship wrote: Sounds nice; that's how I've always assumed CDNs worked (lazily) > though I'm told other require an explicit load of assets into the CDN, > which is tricky in the Tapestry world where many of those assets are > dynamically generated (or com

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-05 Thread Magnus Kvalheim
On Fri, Oct 5, 2012 at 6:28 PM, Howard Lewis Ship wrote: > Sounds nice; that's how I've always assumed CDNs worked (lazily) > though I'm told other require an explicit load of assets into the CDN, > which is tricky in the Tapestry world where many of those assets are > dynamically generated (or c

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Bård Magnus Kvalheim
Hi Howard - thanks for your reply. Looks like an oversight. I'm not familiar with CloudFront; can you > give me a thumbnail overview of how your CDN hooks work? > > Sure. Well Cloudfront is at heart a CDN. It has many features, but how it works is that it delivers content from edges that are clo

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Magnus Kvalheim
Hi Howard - thanks for your reply. Looks like an oversight. I'm not familiar with CloudFront; can you > give me a thumbnail overview of how your CDN hooks work? > > Sure. Well Cloudfront is at heart a CDN. It has many features, but how it works is that it delivers content from edges that are clo

Why is AssetPathConverter not called for javascript stacks

2012-10-04 Thread Bård Magnus Kvalheim
l AssetPathConverter assetPathConverter) { * * configuration.add(AssetPathConverter.class, assetPathConverter);* *}* * * Any idea how to convert paths for javascript stacks? Many thanks in advance Magnus Kvalheim

Re: Rendering cache

2012-07-29 Thread Bård Magnus Kvalheim
Hi Jens, As it happens I too was thinking about this a while back. I didn't make any research, but I would probably look into making mixin or component using the before and after render phases. Saving/caching the markup in after - and then short-circuit in before if cache is valid. I think is sho

Re: Tapestry on OpenShift: did someone already tried it?

2012-05-30 Thread Magnus Kvalheim
> > >> >> Do you know if there's some other use of a "vfs" HTTP protocol besides >> the JBoss one? If not, we could add the code in tapestry-core itself. >> Otherwise, I prefer a separate module. Is there a JIRA for that? If not, >> please post one. >> > > > Yes there is one https://issues.apache.o

Re: Tapestry on OpenShift: did someone already tried it?

2012-05-29 Thread Magnus Kvalheim
On Tue, May 29, 2012 at 1:55 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 29 May 2012 03:11:06 -0300, Magnus Kvalheim > wrote: > > Hi Thiago. >> > > Hi, Magnus! > > > This is unfortunately expected behavior. Openshift is ru

Re: Official jboss support

2012-05-29 Thread Magnus Kvalheim
On Tue, May 29, 2012 at 2:06 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 29 May 2012 07:47:12 -0300, Magnus Kvalheim > wrote: > > [2]CDI support >> With Jee6 it's highly desirable to use cdi(jsr 299) for managing beans. I >> dare

Re: Official jboss support

2012-05-29 Thread Magnus Kvalheim
mail > > > wrote: > > > > > Be advised that as7 is very different from previous versions so proceed > > > with that in mind. > > > > > > Sent from my iPhone > > > > > > On May 28, 2012, at 7:58 AM, Geoff Callender < > > >

Re: Tapestry on OpenShift: did someone already tried it?

2012-05-28 Thread Magnus Kvalheim
Hi Thiago. This is unfortunately expected behavior. Openshift is running JBoss(7.1) and tapestry is not supported on jboss out of the box. I was a bit sad to discover this myself - I was kinda expecting it to work for all major deployment env. Basically what you need is a ClasspathURLConverter l

Official jboss support

2012-05-28 Thread Magnus Kvalheim
Hi tapestry friends. We are in process of converting a project to deploy on JBoss AS7 in production. I've used http://wiki.apache.org/tapestry/HowToRunTapestry5OnJBoss6Dot1 and seems to work fine. I'm wondering though if anyone else have/are using this in production. Is it stable and efficient en

Re: Rendering components in Alerts

2012-03-08 Thread Magnus Kvalheim
Thanks Kalle, For alerts I created issue: https://issues.apache.org/jira/browse/TAP5-1863 For the more general renderer for blocks: https://issues.apache.org/jira/browse/TAP5-1864 --magnus On Wed, Mar 7, 2012 at 8:20 PM, Kalle Korhonen wrote: > On Wed, Mar 7, 2012 at 12:17 AM, Mag

Re: Rendering components in Alerts

2012-03-07 Thread Magnus Kvalheim
much!! > > On Wednesday, 7 March 2012, Magnus Kvalheim wrote: > > Hi Tapestry friends, > > > > We've just upgraded to 5.3.2 and checked out some of the new components. > > The Alerts seems pretty useful, but looks like it's only possible to pass > >

Rendering components in Alerts

2012-03-07 Thread Magnus Kvalheim
Hi Tapestry friends, We've just upgraded to 5.3.2 and checked out some of the new components. The Alerts seems pretty useful, but looks like it's only possible to pass on strings. I'm thinking a pretty common use-case would be to render some components/markup in it - like links. I experimented a

Re: What is your tapestry project setup like (build tool/ide)

2012-01-15 Thread Bård Magnus Kvalheim
hi, * We have a multi module maven project(s). * Use eclipse with m2e plugin. * m2e plugin resolves workspace artifacts * Use jetty to test apps. maven build, jetty:run from 'run configuration' We don't use any specific tapestry plugins. All about conventions so CTRL+SHIFT+R(/T) works well Howev

Re: tapestry-resteasy: How to Get IP Address on Resource Class

2011-12-27 Thread Bård Magnus Kvalheim
Hi Yohan, Havent tried but you should be able to get it from @Context HttpServletRequest request http://docs.jboss.org/resteasy/docs/2.3.0.GA/userguide/html_single/index.html#_Context Think context injection works on resource method as well as members. Then use request.getRemoteAddr() Guess you

Re: Live reload in production?

2011-12-13 Thread Bård Magnus Kvalheim
> > > For 5.4, we can introduce yet another level of indirection that > indicates that live reloading is desired in production mode; perhaps > an enum to define what gets reloaded. Is there a JIRA issue yet? > Thanks Howard - that sounds great. Created issue: https://issues.apache.org/jira/browse

Re: Live reload in production?

2011-12-12 Thread Magnus Kvalheim
Any update on this? We're about to upgrade to T5.3, but conveniently use template reload in production on rare occasions. >From prior discussions a symbol would/could be introduced, but don't seem like it has..? Any way of supporting reload(without production=false)? Or is the dynamic component t

Re: Textarea with character count?

2011-09-26 Thread Magnus Kvalheim
nter.jsp . You can specify a fixed number of characters. Works well and has good documentation. Cheers Magnus Kvalheim

Re: Tapestry 5.3 and JQuery

2011-08-31 Thread Magnus Kvalheim
No, you just need to call it once after jquery itself has loaded. jQuery plugin authors (should) define the plugin in an capsuled function/closure in order to avoid issues with other libraries - like prototype. see - http://docs.jquery.com/Plugins/Authoring#Summary_and_Best_Practices So - although

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Magnus Kvalheim
No sorry, that's not relevant for this. Eager to help, but I should have paid more attention to detail :) On Wed, Aug 24, 2011 at 8:33 AM, Magnus Kvalheim wrote: > I sometimes use a proxy for doing redirects. > > *public class RedirectProxy {* > * @Persist private S

Re: Problem with securing ajax enabled Tapestry pages with Annotations ...

2011-08-23 Thread Magnus Kvalheim
I sometimes use a proxy for doing redirects. *public class RedirectProxy {* * @Persist private String redirectURL;* * @Inject private ComponentResources _resources;* * Object onActivate(){* * try {* * URL url = new URL(redirectURL);* * return url;* * } catch (Exception e) {* * // TODO: handle exce

Re: First stab at CDI module for tapestry

2011-08-18 Thread Magnus Kvalheim
3 :) On Thu, Aug 18, 2011 at 12:56 PM, Igor Drobiazko wrote: > Just as a side note: starting with T5.3 it's possible to use JSR 330 for > injection. > > Check this out: > http://tapestry.apache.org/using-jsr-330-standard-annotations.html > > On Wed, Jun 8, 2011 at 1

Re: First stab at CDI module for tapestry

2011-08-18 Thread Magnus Kvalheim
host the code somewhere, perhaps github, in case others would be interested in giving it a spin as well. ..and please let me know if you have any suggestion for a cleaner approach --magnus On Thu, Jun 9, 2011 at 10:10 AM, Magnus Kvalheim wrote: > Thanks Howard, great to hear I'm on

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
On Wed, Aug 17, 2011 at 6:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 17 Aug 2011 12:08:12 -0300, Magnus Kvalheim > wrote: > > I'm are still very interested in moving from tomcat to a EE6 server like >> glassfish in order to adopt s

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
uration* *...* @Contribute(ComponentClassTransformWorker.class) public static void provideClassTransformWorkers(OrderedConfiguration configuration) { configuration.addInstance("CDI", CDIAnnotationWorker.class, "before:Property"); } Hope that helps a bit. As I mentioned I'll try to get CDI

Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Magnus Kvalheim
I'm are still very interested in moving from tomcat to a EE6 server like glassfish in order to adopt standards and benefit from the new stuff. Have not found time to actually replace spring with cdi in our apps. There were also stuff we need to find a different solution for when moving away from s

Re: Last visited pages

2011-08-10 Thread Magnus Kvalheim
Dough... I missed the part with dispatcher! Thought it was a regular ComponentClassTransformWorker. Sorry guys. Not sure how to do that on top of my head... Will let you know if I think of any --magnus On Wed, Aug 10, 2011 at 12:28 PM, Magnus Kvalheim wrote: > Hi, I did something related

Re: Last visited pages

2011-08-10 Thread Magnus Kvalheim
Hi, I did something related and looked at org.apache.tapestry5.internal.transform.CachedWorker for inspiration. Basically you need access to BindingSource.. (Just put in in ComponentClassTransformWorker constructor) --from CachedWorker-- Binding binding = bindingSource.newBinding("@Cached watch",

Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Magnus Kvalheim
Hi Lenny, Which version of glassfish? And have you been successful in getting tapestry's live class reload working there? best regards Magnus Kvalheim On Tue, Jul 12, 2011 at 6:58 PM, Lenny Primak wrote: > Thanks, Igor! Change in Tapestry is not required. >

Glassfish 3.1 - and tapestry live class reload

2011-06-09 Thread Magnus Kvalheim
Hi all, We're considering switching from a servlet container to a java EE 6 server. I've installed glassfish 3.1 and am using eclipse helios with glassfish plugin. Glassfish has a reloading feature built in, but it actually reloads the app whenever a class file change. Tapestry's live class reloa

Re: First stab at CDI module for tapestry

2011-06-09 Thread Magnus Kvalheim
hard part, which is still difficult with Spring, is proper > co-dependence: allowing Tapestry services to be injected into Spring > beans as well as the reverse. It comes down to a turf battle about > which framework is "in charge". > > On Wed, Jun 8, 2011 at 4:56 AM, Magnus K

First stab at CDI module for tapestry

2011-06-08 Thread Magnus Kvalheim
Hi all, We're looking into moving our apps from a 'traditional' servlet container with spring into a Java EE web profile server like glassfish 3.1. Motivations for doing this is to utilize cdi(jsr 299, 330), ejb3 and more. Not just for the tapestry app, but also the other applications in our portf

Re: Java based spring configuration

2011-05-05 Thread Magnus Kvalheim
Hi Thiago - thanks for your answer, See comments below... On Wed, May 4, 2011 at 6:06 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 04 May 2011 12:51:05 -0300, Magnus Kvalheim > wrote: > > >> How would I make that play with Tapestry? >&g

Re: Java based spring configuration

2011-05-04 Thread Magnus Kvalheim
; EJB3 in the middle tier doing all the heavy lifting you're talking > about (Transactions, Hibernate/JPA, Endeca, PeopleSoft, and much more) > > We used to heavily rely on Spring in the previous Struts-based version > of our app, but since we've moved to Tapestry, we kiss

Re: Java based spring configuration

2011-04-01 Thread Magnus Kvalheim
Hi thanks for your reply, Looking back on my original mail I now realize I've been unclear... To clarify: What I do want to achieve is to + Not rely on xml for configuration + Inject spring beans into tapestry (+) Injecting tapestry services into spring is desired Your suggestion would probably

Re: Integrating tynamo tapestry-security (apache shiro)

2011-03-07 Thread Magnus Kvalheim
Hi Kalle - thanks for reply, I've created an issue for #1 http://jira.codehaus.org/browse/TYNAMO-87 <http://jira.codehaus.org/browse/TYNAMO-87>--magnus On Fri, Mar 4, 2011 at 6:23 PM, Kalle Korhonen wrote: > On Fri, Mar 4, 2011 at 1:49 AM, Magnus Kvalheim > wrote: > &

Integrating tynamo tapestry-security (apache shiro)

2011-03-04 Thread Magnus Kvalheim
ndex.class;* *}* * * Thank you so much for making the tapestry-security module. For our use cases and applications I think it's a perfect match. >From my experience it seems to be very stable and reliable. Thanks in advance Magnus Kvalheim

Java based spring configuration

2011-02-21 Thread Bård Magnus Kvalheim
Hi all, Versions Tapestry: 5.2.4 Spring: 3.1.0.M1 We're using java based container configuration with spring - so no xml files are used for configuring beanfactories. With tapestry-spring this is currently unsupported as TapestryApplicationContext extends from XmlWebApplicationContext. As a wor

Re: T5 : Zone / Tapestry.windowUnloaded / Download link

2011-02-17 Thread Magnus Kvalheim
Yes, we've experienced same problem and resorted to use target="_blank" as we didn't have the time to come up with something more creative. A better solution would be welcomed though :) On Thu, Feb 17, 2011 at 3:05 PM, Richard Kolísek wrote: > > same problem here > -- > View this message in cont

Re: tapestry 5.2

2010-07-22 Thread Magnus Kvalheim
No, tested in tomcat and jetty 6. Plain old war packaged webapp... 2010/7/22 Sha Aith > > Thanks for the update. But I'm using Spring DM server in an OSGi > environment. > Are you using the same? > > > Magnus Kvalheim-3 wrote: > > > > I'm using 5.1.0.5

Re: tapestry 5.2

2010-07-22 Thread Magnus Kvalheim
I'm using 5.1.0.5 with Spring 3 (in production). The key thing is the TapestyBeanFactory which was incompatible with spring 3. If I remember correctly - the steps I did was: 1. copy 5.2 version of beanfactory: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org

Re: Layout Component

2010-06-30 Thread Magnus Kvalheim
Ok, guess this would work in Gerry's case - although it feels like a bit of a hack. In my case this wont work as I have a single application and would like to do the layout/branding in runtime - switching based on domain names. 2010/6/28 Pierce Wetter > > On Jun 25, 2010, at 1:31

Re: Layout Component

2010-06-25 Thread Magnus Kvalheim
Hi, I have a similar requirement for our project where we plan to 'white label' an application and brand it in different ways. Have been thinking about a way of reusing pages by changing the layout dynamically - for example triggered by domain names, but we haven't started attempting to implement a

Re: What websites are using Tapestry 5?

2010-02-17 Thread Bård Magnus Kvalheim
Hi, We're recently soft-launced Movellas - http://movellas.com Movellas is a place for young authors to write, publish and read mobile novels(movellas). Components We have mainly built composite components, but some of our own; * Image component to generate src for db images * String related for

Re: Render block for Ajax component

2009-12-10 Thread Magnus Kvalheim
json response. {"content":"Hello world<\/h1>"} The javascript library is obfuscated so I can't easily modify it :( How can I return only the partial markup to client? Any ideas? 2009/12/10 Magnus Kvalheim > Hi all, > > I'm trying to integrat

  1   2   >