development with eclipse+tomcat

2011-12-22 Thread Paul Stanton
Its been over 2 years since I started a new production tapestry application, and once again in the same server environment we need to do our development & testing in the environment familiar with the team: ie tomcat. For productivity, live class reloading, the ability to step through code and

Re: remote archetype catalog for quickstart

2011-12-22 Thread Lenny Primak
In my experience, m2eclipse is terrible and slow. I just use mvn eclipse:eclipse and that works perfectly and fast. On Dec 22, 2011, at 10:50 PM, Paul Stanton wrote: > I gave up and installed maven to do this. not sure why m2eclipse doesn't > work... > > On 23/12/2011 1:31 PM, Paul Stanton wrot

Re: remote archetype catalog for quickstart

2011-12-22 Thread Paul Stanton
I gave up and installed maven to do this. not sure why m2eclipse doesn't work... On 23/12/2011 1:31 PM, Paul Stanton wrote: Hi All, I'm trying to create a tapestry quickstart project via the eclipse maven plugin. Eclipse version: Helios Service Release 2 Build id: 20110301-1815 Maven Plugin

remote archetype catalog for quickstart

2011-12-22 Thread Paul Stanton
Hi All, I'm trying to create a tapestry quickstart project via the eclipse maven plugin. Eclipse version: Helios Service Release 2 Build id: 20110301-1815 Maven Plugin: Sonatype Inc Maven Integration for Eclipse 0.12.1.20110112-1712 I am following the rough 'getting started' guide (as close

Re: paypal

2011-12-22 Thread Chris Mylonas
Beauty! Thanks for the tips Kalle On 22/12/2011, at 6:18 PM, Kalle Korhonen wrote: > On Wed, Dec 21, 2011 at 8:05 PM, Chris Mylonas wrote: >> after taking most of this year off from deving i'm looking at a project for >> early next year. >> i'm looking at porting an application that uses PHP

Front End Developer resources/tutorials?

2011-12-22 Thread yazdog8
I'm new to Tapestry, although I have experience in MVC frameworks (Rails, Codeigniter, Symfony) I'm finding it a little difficult to relate my knowledge to the "tapestry way". Basically I want to make sure that I'm doing things from a front end perspective that fits with Tapestry's methodologies. A

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread Lenny Primak
Thanks for confirming this. It is definitely a bug. Please file an JIRA issue. On Dec 22, 2011, at 4:21 PM, David Canteros wrote: > You are right... thanks again! According to the UrlEncoderImpl the safe > chars are the following: > > *private final BitSet safe = new BitSet(128); > >

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread David Canteros
You are right... thanks again! According to the UrlEncoderImpl the safe chars are the following: *private final BitSet safe = new BitSet(128); { markSafe("abcdefghijklmnopqrstuvwxyz"); markSafe("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); markSafe("01234567890-_.:"); } * I

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread Lenny Primak
Bet the syntax checker is a bit overzealous. Unconfirmed though. I think you should file an issue. On Dec 22, 2011, at 3:56 PM, David Canteros wrote: > Mmm I have a doubt.. .why tapestry consider that asterisk symbol (*) is > unsafe?? (that symbol is my problem now). The specification for URLs

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread David Canteros
Mmm I have a doubt.. .why tapestry consider that asterisk symbol (*) is unsafe?? (that symbol is my problem now). The specification for URLs (RFC 1738 , Dec. '94) says that asterisk could be used unencoded... ---

Fwd: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Sergueï Cambour
-- Forwarded message -- From: Sergueï Cambour Date: Thu, Dec 22, 2011 at 3:37 PM Subject: Re: inject i18 text in javascript variables (jQuery) To: "Thiago H. de Paula Figueiredo" Thanks for your help. I have some more questions: 1. Did you miss ';' in the expression(highlighted

Which Portlet Container?

2011-12-22 Thread Jon Williams
Hi Tapesafarians, I want to start using the new portlet shizzle. I want a portlet container that has minimal BS and isn't 10 Million lines of code. What should I be using? Danke

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread David Canteros
Opps! at first glance it will be a problem for meThat url is automatically generated by other tool... I got back to 5.3 for the moment. Thanks Lenny! David -- David Germán Canteros 2011/12/22 Lenny Primak > This is one of th

Re: Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread Lenny Primak
This is one of the incompatible changes in 5.3.1. You have to URLencode all parameters form now on. I use the URLEncoder service. On Dec 22, 2011, at 3:05 PM, David Canteros wrote: > Hi guys! > Today I have updated the libraries to tapestry 5.3.1 and my applications > started to throw an unexpect

Tap 5.3.1: IllegalArgumentException

2011-12-22 Thread David Canteros
Hi guys! Today I have updated the libraries to tapestry 5.3.1 and my applications started to throw an unexpected exception *(this doesnt happen with tapestry 5.3 or earlier*). I have a page called "login" that receives a variable called "key" by URL, which looks like the following example: *http:

Blog Post: Dissecting a Tapestry Operation Trace

2011-12-22 Thread Howard Lewis Ship
This is useful stuff about how to figure out what Tapestry is doing when things go wrong ... in this case, using Spock/Tapestry Integration with Tapestry 5.3. http://tapestryjava.blogspot.com/2011/12/dissecting-tapestry-operation-trace.html -- Howard M. Lewis Ship Creator of Apache Tapestry Th

Re: How to get Html Source of a Page

2011-12-22 Thread Bo Gao
Thank you, Chris, this is what I am looking for. On Dec 22, 2011, at 6:40 PM, Christian Köberl wrote: > 2011-12-22 11:21, Bo Gao: >> I have a page, how can I get the page's HTML source as a String in another >> page or Service method? > > You can get the real Source by Class#getResource

Re: A problem about tapestry-security

2011-12-22 Thread Lenny Primak
I have solved this problem in the FlowLogix library: http://code.google.com/p/flowlogix/ On Dec 22, 2011, at 6:39 AM, dick_hu wrote: > The tynamo's tapestry-security advise the RequestExceptionHandler, > It is useful in the request that not isXHR. But in the XHR request it > can'not jump to the

Re: ComponentRequestFilter alert a dialog

2011-12-22 Thread Lenny Primak
There are working examples here: http://code.google.com/p/hope-website/ On Dec 22, 2011, at 3:08 AM, dick_hu wrote: > > lprimak wrote >> >> yes. and lots more. >> >> > when I use the Tapestry-security,there is a exception occur > > Caused by: java.lang.IllegalArgumentException: Realms c

show a zone with javascript

2011-12-22 Thread dick_hu
Can show a zone in the page with only javascript? -- View this message in context: http://tapestry.1045711.n5.nabble.com/show-a-zone-with-javascript-tp5094924p5094924.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: How to handle urls for a White Label site

2011-12-22 Thread captain_rhino
The following seems to work but I'm not an experieinced tapestry developer so comments are more than welcome. Thx for the advice so far. public Link transformPageRenderLink( Link defaultLink, PageRenderRequestParameters parameters) {

Re: How to handle urls for a White Label site

2011-12-22 Thread captain_rhino
I think i can see how to rewrite the incoming urls but the outgoing ones I seem to be stuck in a loop? Any suggestions? Am i coding correctly for outgoing urls please? import com.axa.cao.pages.partner.Test; import com.axa.cao.pages.partner.TestDetails; public class UrlLinkTransformer implement

Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Dec 2011 10:35:13 -0200, Sergueï Cambour wrote: Taking in account that the number of classes to modify, I think I'll choose the first solution, - using RenderSupport. In this case, I should remove all the calls to the same js function from all the pages, right? Because it's up

Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Sergueï Cambour
Thanks a lot for your replies. It is not so clear for me for the moment. I'm on Tapestry 5.1. In all the 'tml' pages there are calls to some js functions which all are in separate js files, like that, for example: -

grid and sort lable

2011-12-22 Thread angelochen
Hi, is there a way to set the sort option globally for a grid? now I have to set every one in code: model.get("first_name").sortable(false).label("First"); ... sometimes a grid has no field need to be sorted, and yet we have to add one line code for every field. angelo -- View this message in

Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Christian Köberl
2011-12-22 12:31, Sergueï Cambour: > Is it possible to translate some javascript popup mesages by injection the > translated values from a 'tml' page into javascript function which is in a > separate js file? There are two options to localize your JavaScript: 1. add messages in the initializer cal

Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Sergueï Cambour
Thansk for the reply. I've already seen that code. The problem is that in that example a class Confirm was created in a javascript file: var Confirm = Class.create(); But as far as I know it is valid only for prototype and for jQuery as it's in my case. The js file uses jQuery. Any other idea? Th

Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Paulo Ricardo Ribeiro
Hello I Have something like this: Delete So, i guess that, the same way I'm able to get the username, it's maybe possible to get a i18n message, and pass it to the javascript. (The mixin code is here: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained) On Thu, Dec 22, 201

A problem about tapestry-security

2011-12-22 Thread dick_hu
The tynamo's tapestry-security advise the RequestExceptionHandler, It is useful in the request that not isXHR. But in the XHR request it can'not jump to the login page. How can I do? Can anyone help, Thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-problem-a

inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Sergueï Cambour
Is it possible to translate some javascript popup mesages by injection the translated values from a 'tml' page into javascript function which is in a separate js file? Thanks

How to remove a locale prefix from url

2011-12-22 Thread Sergueï Cambour
I can't figure out how to remove the locale prefix from the url on Tapestry 5.1. Every time when switching the locale, the url changed as follows: my_host/en/home or my_host/fr/home I fond that it is possible to add the following in the AppModule class: public static void contributeApplication

Re: How to get Html Source of a Page

2011-12-22 Thread Christian Köberl
2011-12-22 11:21, Bo Gao: > I have a page, how can I get the page's HTML source as a String in another > page or Service method? You can get the real Source by Class#getResourceAsStream(String), e.g. Index.class.getResourceAsStream("/test/Index.tml"); If you want to generate content of your temp

Re: How to get Html Source of a Page

2011-12-22 Thread Christian Riedel
what do you want to do with the source? whatever it is, I think it's going to be very inefficient. except you want to use it for testing. for that case I recommend the PageTester. Am 22.12.2011 um 11:21 schrieb Bo Gao: > I have a page, how can I get the page's HTML source as a String in another

How to get Html Source of a Page

2011-12-22 Thread Bo Gao
I have a page, how can I get the page's HTML source as a String in another page or Service method? -- Bo Gao eli...@gmail.com

Re: [ANNOUNCE] Announcing Tapestry 5.3.1

2011-12-22 Thread Gunnar Eketrapp
A pity that the easy fix described in https://issues.apache.org/jira/browse/TAP5-1777 wasn't added. I have coded around this but some people has reverted back to 5.2.6 due to this. 2011/12/21 Massimo Lusetti > On Wed, Dec 21, 2011 at 11:43 PM, jose luis sanchez > wrote: > > > No binary package

Re: Issues / feature requests for tapestry-security?

2011-12-22 Thread Kalle Korhonen
On Wed, Dec 21, 2011 at 1:01 PM, Borut Bolčina wrote: > this is perfect timing for us! Just a week ago, we considered using > tynamo-federatedaccounts for our new app (big one). We have already a > tapestry 5 based openid server, so tynamo-federatedaccounts with openid > realm would be a natural f

Re: ComponentRequestFilter alert a dialog

2011-12-22 Thread dick_hu
lprimak wrote > > yes. and lots more. > > when I use the Tapestry-security,there is a exception occur Caused by: java.lang.IllegalArgumentException: Realms collection argument cannot be empty. at org.apache.shiro.mgt.RealmSecurityManager.setRealms(RealmSecurityManager.java:78)