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)
at
org.apache.shiro.web.mgt.DefaultWebSecurityManager.init(DefaultWebSecurityManager.java:81)
at
org.tynamo.security.services.TapestryRealmSecurityManager.init(TapestryRealmSecurityManager.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:60)
... 35 more


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093905.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 borut.bolc...@gmail.com 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 fit. As noted on the website, the support for
 openid is planned for version 0.0.3. Too late :-) we implemented it - so we
 can share the code back to the project if you wish. Currently we can
 sign-in into our webapp with facebook, our openid server and google
 account. We think it would be nice if LinkedIn would be supported too.
 There are some open questions, we can discuss if you want.

Depends on your definition for a perfect timing I suppose... Anyway,
I've done openid, oauth, ldap, custom sso protocols etc. every which
way, but generalizing all that into a commonly used library is a
different beast altogether, so you seem just like the right kind of
user I'm looking for - one who's done it before, now wants to do it
again better / cheaper / faster. A new version of federatedaccounts
will happen after a release of tapestry-security, but it shouldn't be
too far behind. The new, modularized approach of federatedaccounts
means that linkedin integration will eventually see the light of day
as well. I'll gladly take a look at your openID implementation, and
I'm especially interested in a generalized approach for handling
attribute extensions in case you've dealt with that (I briefly touch
the topic at 
http://docs.codehaus.org/display/TYNAMO/2011/02/23/OAuth+-+auth+is+for+authorization).
Join if you are not already on tynamo's user/dev lists, it may be more
appropriate to continue to discussion there.

Kalle


 2011/12/20 Kalle Korhonen kalle.o.korho...@gmail.com

 After grueling six months of development on Android, I'm back at the
 server side. I'll be cutting a new, T5.3 specific version of Tynamo's
 tapestry-security in the near future, though unfortunately it won't
 make it to Santa's sleigh. I'm hoping to also pick up Shiro 1.2 as a
 dependency if we get that finalized in time. If there's anything you
 really wanted to change or fix in tapestry-security but never got
 around reporting it, right about now would be a good time. All the
 currently open issues will be resolved as well. Thanks to all, it's
 been a great year for Tapestry!

 Kalle

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 mluse...@gmail.com

 On Wed, Dec 21, 2011 at 11:43 PM, jose luis sanchez
 joseluis.sanc...@m-centric.com wrote:

  No binary package available yet …  8-(

 I'm not sure where you were looking for but you can find it in the
 central maven repo:


 http://search.maven.org/#artifactdetails%7Corg.apache.tapestry%7Ctapestry5-annotations%7C5.3.1%7Cjar

 and on Apache main distribution:

 http://www.apache.org/dist/tapestry/apache-tapestry-5.3.1-sources.zip

 Maybe the archives need to reach every single mirror but it should a
 matters of hours...

 Cheers
 --
 Massimo
 http://meridio.blogspot.com

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


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: 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 
 page or Service method?
 
 
 --
 Bo Gao
 eli...@gmail.com
 
 
 
 
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 template to send it via email
you can use:
http://tapestry.formos.com/nightly/tapx/tapx-templating/

-- 
Chris

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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
contributeApplicationDefaults(MappedConfigurationString, String
configuration) {
  configuration.add(SymbolConstants.ENCODE_LOCALE_INTO_PATH, false);
}

coupled with LinkCreationListener2 (in the same AppModule class):

public LinkCreationListener2 buildLinkCreationListener(LinkCreationHub hub)
{

LinkCreationListener2 listener = new AppLinkCreationListenerImpl();
hub.addListener(listener);
return listener;
}

But how should I use AppLinkCreationListenerImpl ? I found on the net an
example but it does nothing, my local does not switch any more:

public class AppLinkCreationListenerImpl implements LinkCreationListener2
{


public void createdComponentEventLink(Link link,
ComponentEventRequestParameters params) {
link.addParameter(locale, String.valueOf(System.currentTimeMillis()));

}

public void createdPageRenderLink(Link link,
PageRenderRequestParameters params) {
link.addParameter(locale, String.valueOf(System.currentTimeMillis()));

}

}

Before that, I used PersistentLocale technic:

//in my Header class

@Inject
private PersistentLocale persistentLocale;

@Inject
private Locale currentLocale;

@Persist
private String localeLabel;

 public String getLocaleLabel() {
if (localeLabel == null) {
if (currentLocale.equals(Locale.FRENCH)) {
localeLabel = new Locale(en).getDisplayName(Locale.ENGLISH);
} else {
localeLabel = new Locale(fr).getDisplayName(Locale.FRENCH);
}
}
return localeLabel;
}

@OnEvent(component = switchlocale)
void changeLocale() {
localeLabel = currentLocale.getDisplayName(currentLocale);
if (currentLocale.equals(Locale.FRENCH)) {
persistentLocale.set(Locale.ENGLISH);
} else {
persistentLocale.set(Locale.FRENCH);
}
}

Any idea? Thanks.


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


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-about-tapestry-security-tp5094402p5094402.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Paulo Ricardo Ribeiro
Hello

I Have something like this:

span t:type=any t:mixins=Confirm t:message=The user ${user.username}
will be removed.Delete/span



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, 2011 at 11:31 AM, Sergueï Cambour s.camb...@gmail.comwrote:

 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



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?
Thks


On Thu, Dec 22, 2011 at 12:46 PM, Paulo Ricardo Ribeiro 
paulo.rica...@gmail.com wrote:

 Hello

 I Have something like this:

 span t:type=any t:mixins=Confirm t:message=The user ${user.username}
 will be removed.Delete/span



 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, 2011 at 11:31 AM, Sergueï Cambour s.camb...@gmail.com
 wrote:

  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
 



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 call
   this is what Tapestry's DateField does - look in DateFieldStack
2. create separate asset for localized part and @Import it
   so, you'll have mylibloc.js and mylibloc_de.js and in your
   component class you do @Import(library={mylib.js, mylibloc.js})

 Thanks
You're welcome :)


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 context: 
http://tapestry.1045711.n5.nabble.com/grid-and-sort-lable-tp5094433p5094433.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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:
-
script type=text/javascript
loadSomeJSFunction();
/script
-

In all those js files all the messages are hard-coded. The question is how
to translate them? I believde that there was a way to pass a translates
variable or parameter to the js function, smth like that:

-
script type=text/javascript
var msgStrings = {
msg1 :
'${message:js.error.password.not_given}',
msg2 :
'${js.error.no_confirmed_password}',
msg3 :
'${js.error.password_not_matched}',
msg4 : '${js.error.email.not_given}',
msg5 : '${js.error.email.wrong}'
  };
loadSomeJSFunction(msgStrings);
/script
-
And then in the js file just use them:
-
function   loadSomeJSFunction(msgStrings) {
jQuery('#forgottenPassLink').click(function(event){
event.preventDefault();
var error = false;
var email = jQuery('#email');
var emailVal = email.val();
var emailError = jQuery('#email-error');

if (!emailVal) {
error = true;
email.addClass('error');
emailError.html(msgStrings.msg4);
emailError.show();
}
}
...
loadSomeJSFunction(msgStrings);

Not sure it will work.

On Thu, Dec 22, 2011 at 12:52 PM, Christian Köberl 
tapestry.christian.koeb...@gmail.com wrote:

 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 call
   this is what Tapestry's DateField does - look in DateFieldStack
 2. create separate asset for localized part and @Import it
   so, you'll have mylibloc.js and mylibloc_de.js and in your
   component class you do @Import(library={mylib.js, mylibloc.js})

  Thanks
 You're welcome :)


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




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 s.camb...@gmail.com  
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 to Tapestry to inject the same call in the bottom of the page,
right?


Yep. In addition, Tapestry or not, using inline JavaScript is not a good  
thing.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 implements PageRenderLinkTransformer{


   public PageRenderRequestParameters decodePageRenderRequest(
  Request request) {
  String path = request.getPath();
  
 
  MapString,Integer urlQuestionSetMap = new
HashMapString,Integer();
  urlQuestionSetMap.put(/LLOYDS,1);
  urlQuestionSetMap.put(/AMEX,2);
  
  PageRenderRequestParameters pageRenderRequestParameters = null;
  for (Map.EntryString, Integer entry : 
urlQuestionSetMap.entrySet())
{
String key = entry.getKey();
Integer value = entry.getValue();

if (path.toUpperCase().contains(key)) {

int keyIndex = path.toUpperCase().indexOf(key);
String requestPath = 
path.substring(keyIndex+key.length());
pageRenderRequestParameters = new
PageRenderRequestParameters(partner+requestPath, new
IssuerEventContext(value), true);
return pageRenderRequestParameters;
}
}
  
  return null;
}
   
   @Inject
   private PageRenderLinkSource renderLinkSource; 
   
   @Inject
   private PageRenderLinkSource pageRenderLinkSource;
 
   public Link transformPageRenderLink(
 Link defaultLink,
 PageRenderRequestParameters parameters) {
   
 if (defaultLink.getBasePath().contains(/partner)) {
 return this.pageRenderLinkSource
   
.createPageRenderLink(TestDetails.class);
 }
  
  
  return defaultLink;

   }

}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-handle-urls-for-a-White-Label-site-tp5091687p5094605.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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) {
   
 if (defaultLink.getBasePath().contains(/partner)) {
 return 
defaultLink.copyWithBasePath(/makeaclaim/amex/testdetails);
 }
   
   
  
  return defaultLink;

   }


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-handle-urls-for-a-White-Label-site-tp5091687p5094862.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 dickan...@gmail.com wrote:

 
 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)
at
 org.apache.shiro.web.mgt.DefaultWebSecurityManager.init(DefaultWebSecurityManager.java:81)
at
 org.tynamo.security.services.TapestryRealmSecurityManager.init(TapestryRealmSecurityManager.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
 org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:60)
... 35 more
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093905.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 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-about-tapestry-security-tp5094402p5094402.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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#getResourceAsStream(String), e.g.
 Index.class.getResourceAsStream(/test/Index.tml);
 
 If you want to generate content of your template to send it via email
 you can use:
 http://tapestry.formos.com/nightly/tapx/tapx-templating/
 
 -- 
 Chris
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 

--
Bo Gao
eli...@gmail.com








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

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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://localhost:8080/mytool/login?key=diXmpfiW1uk*1w21wCIi*21312423*w*

In the onActivate() method I have to catch the value of key to do some
work. The code of Login.java is very short:

   @ActivationRequestParameter
private String key;
 @Inject
private Logger log;

public Object onActivate() {
// Some work with key value
}

The exception happens when I try to access to the above URL, it occurs
before to call onActivate  (i think). The exception is:

[ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected runtime
exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the
character '*' at position 12 is not valid. (Track ID: 1324576808506)
org.apache.tapestry5.runtime.ComponentEventException:* Input string
'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
position 12 is not valid.*
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
(and continues..)

I think is a problem when tapestry tries to handle the URL to catch the
value of  key ... someone have an idea of the problem?? This not happens
with tap 5.3...
Regards!
David

Complete exception:

[ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected runtime
exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the
character '*' at position 12 is not valid. (Track ID: 1324576808506)
org.apache.tapestry5.runtime.ComponentEventException: Input string
'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
position 12 is not valid.
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
at
org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
at
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
at
org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
at $PageActivator_7f2c9a23350.activatePage(Unknown Source)
at
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
at
org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
at $PageRenderRequestHandler_7f2c9a23351.handle(Unknown Source)
at $PageRenderRequestHandler_7f2c9a2334a.handle(Unknown Source)
at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
at
org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
at $ComponentRequestHandler_7f2c9a2334b.handlePageRender(Unknown Source)
at
org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:50)
at $ComponentRequestFilter_7f2c9a23348.handlePageRender(Unknown Source)
at $ComponentRequestHandler_7f2c9a2334b.handlePageRender(Unknown Source)
at $ComponentRequestHandler_7f2c9a23311.handlePageRender(Unknown Source)
at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
at $Dispatcher_7f2c9a23314.dispatch(Unknown Source)
at $Dispatcher_7f2c9a2330e.dispatch(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
at $RequestHandler_7f2c9a2330f.service(Unknown Source)
at

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 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://localhost:8080/mytool/login?key=diXmpfiW1uk*1w21wCIi*21312423*w*
 
 In the onActivate() method I have to catch the value of key to do some
 work. The code of Login.java is very short:
 
   @ActivationRequestParameter
private String key;
 @Inject
private Logger log;
 
public Object onActivate() {
// Some work with key value
}
 
 The exception happens when I try to access to the above URL, it occurs
 before to call onActivate  (i think). The exception is:
 
 [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected runtime
 exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the
 character '*' at position 12 is not valid. (Track ID: 1324576808506)
 org.apache.tapestry5.runtime.ComponentEventException:* Input string
 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
 position 12 is not valid.*
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
 (and continues..)
 
 I think is a problem when tapestry tries to handle the URL to catch the
 value of  key ... someone have an idea of the problem?? This not happens
 with tap 5.3...
 Regards!
 David
 
 Complete exception:
 
 [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected runtime
 exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the
 character '*' at position 12 is not valid. (Track ID: 1324576808506)
 org.apache.tapestry5.runtime.ComponentEventException: Input string
 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
 position 12 is not valid.
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
at
 org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
at
 org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
 org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
at
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
at
 org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
at
 org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
at $PageActivator_7f2c9a23350.activatePage(Unknown Source)
at
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
at
 org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
at $PageRenderRequestHandler_7f2c9a23351.handle(Unknown Source)
at $PageRenderRequestHandler_7f2c9a2334a.handle(Unknown Source)
at
 org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
at
 org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
at $ComponentRequestHandler_7f2c9a2334b.handlePageRender(Unknown Source)
at
 org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:50)
at $ComponentRequestFilter_7f2c9a23348.handlePageRender(Unknown Source)
at $ComponentRequestHandler_7f2c9a2334b.handlePageRender(Unknown Source)
at $ComponentRequestHandler_7f2c9a23311.handlePageRender(Unknown Source)
at
 org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
at $Dispatcher_7f2c9a23314.dispatch(Unknown Source)
at $Dispatcher_7f2c9a2330e.dispatch(Unknown Source)
at
 

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 lpri...@hope.nyc.ny.us

 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 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://localhost:8080/mytool/login?key=diXmpfiW1uk*1w21wCIi*21312423*w*
 
  In the onActivate() method I have to catch the value of key to do some
  work. The code of Login.java is very short:
 
@ActivationRequestParameter
 private String key;
  @Inject
 private Logger log;
 
 public Object onActivate() {
 // Some work with key value
 }
 
  The exception happens when I try to access to the above URL, it occurs
  before to call onActivate  (i think). The exception is:
 
  [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected
 runtime
  exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid;
 the
  character '*' at position 12 is not valid. (Track ID: 1324576808506)
  org.apache.tapestry5.runtime.ComponentEventException:* Input string
  'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
  position 12 is not valid.*
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
  (and continues..)
 
  I think is a problem when tapestry tries to handle the URL to catch the
  value of  key ... someone have an idea of the problem?? This not
 happens
  with tap 5.3...
  Regards!
  David
 
  Complete exception:
 
  [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected
 runtime
  exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid;
 the
  character '*' at position 12 is not valid. (Track ID: 1324576808506)
  org.apache.tapestry5.runtime.ComponentEventException: Input string
  'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
  position 12 is not valid.
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
 at
 
 org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
 at
 
 org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
 at
 
 org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
 at
 
 org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
 at
 
 org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
 at $PageActivator_7f2c9a23350.activatePage(Unknown Source)
 at
 
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
 at
 
 org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
 at $PageRenderRequestHandler_7f2c9a23351.handle(Unknown Source)
 at $PageRenderRequestHandler_7f2c9a2334a.handle(Unknown Source)
 at
 
 org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
 at
 
 org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
 at $ComponentRequestHandler_7f2c9a2334b.handlePageRender(Unknown
 Source)
 at
 
 org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:50)
 at $ComponentRequestFilter_7f2c9a23348.handlePageRender(Unknown
 Source)
 at 

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


Fwd: inject i18 text in javascript variables (jQuery)

2011-12-22 Thread Sergueï Cambour
-- Forwarded message --
From: Sergueï Cambour s.camb...@gmail.com
Date: Thu, Dec 22, 2011 at 3:37 PM
Subject: Re: inject i18 text in javascript variables (jQuery)
To: Thiago H. de Paula Figueiredo thiag...@gmail.com


Thanks for your help.
I have some more questions:
1. Did you miss ';' in the expression(highlighted red):

@BeginRender
void addJsLibs() {
renderSupport.addScript(loadPass('%s', '%s','%s', '%s', '%s');,
messages.get(js.error.password.not_given),
messages.get(js.error.no_confirmed_password),
messages.get(js.error.password_not_matched),
messages.get(js.error.email.not_given),
messages.get(js.error.email.wrong));
}

2. Do I need to add in the top of the class definition the include of js
library like that:

@IncludeJavaScriptLibrary(value={context:/static/javascript/password.js})
public class ForgottenPassword {
...
}

Thank you.


On Thu, Dec 22, 2011 at 2:24 PM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 On Thu, 22 Dec 2011 10:35:13 -0200, Sergueï Cambour s.camb...@gmail.com
 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 to Tapestry to inject the same call in the bottom of the page,
 right?


 Yep. In addition, Tapestry or not, using inline JavaScript is not a good
 thing.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br



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 http://www.rfc-editor.org/rfc/rfc1738.txt, Dec. '94) says that
asterisk could be used unencoded...



--
David Germán Canteros


2011/12/22 David Canteros davidcanteros@gmail.com

 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 lpri...@hope.nyc.ny.us

 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 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://localhost:8080/mytool/login?key=diXmpfiW1uk*1w21wCIi*21312423*w*
 
  In the onActivate() method I have to catch the value of key to do some
  work. The code of Login.java is very short:
 
@ActivationRequestParameter
 private String key;
  @Inject
 private Logger log;
 
 public Object onActivate() {
 // Some work with key value
 }
 
  The exception happens when I try to access to the above URL, it occurs
  before to call onActivate  (i think). The exception is:
 
  [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected
 runtime
  exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid;
 the
  character '*' at position 12 is not valid. (Track ID: 1324576808506)
  org.apache.tapestry5.runtime.ComponentEventException:* Input string
  'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
  position 12 is not valid.*
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
  (and continues..)
 
  I think is a problem when tapestry tries to handle the URL to catch the
  value of  key ... someone have an idea of the problem?? This not
 happens
  with tap 5.3...
  Regards!
  David
 
  Complete exception:
 
  [ERROR] PricetoolModule.PricetoolRequestExceptionHandler Unexpected
 runtime
  exception: Input string 'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid;
 the
  character '*' at position 12 is not valid. (Track ID: 1324576808506)
  org.apache.tapestry5.runtime.ComponentEventException: Input string
  'diXmpfiW1uk*1w21wCIi*21312423*w' is not valid; the character '*' at
  position 12 is not valid.
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1130)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3200(ComponentPageElementImpl.java:61)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1051)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1048)
 at
 
 org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
 at
 
 org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
 at
 
 org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1121)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
 at
 
 org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1047)
 at
 
 org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
 at
 
 org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
 at $PageActivator_7f2c9a23350.activatePage(Unknown Source)
 at
 
 org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
 at
 
 org.apache.tapestry5.services.TapestryModule$37.handle(TapestryModule.java:2207)
 at $PageRenderRequestHandler_7f2c9a23351.handle(Unknown Source)
 at $PageRenderRequestHandler_7f2c9a2334a.handle(Unknown Source)
 at
 
 

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 (RFC
 1738 http://www.rfc-editor.org/rfc/rfc1738.txt, Dec. '94) says that
 asterisk could be used unencoded...
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 dont know the internal working of Tapestry that have this requirement,
but it should consider that some applications follow the standard, al least
with @ActivationRequestParameter.


--
David Germán Canteros


2011/12/22 Lenny Primak lpri...@hope.nyc.ny.us

 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
 (RFC
  1738 http://www.rfc-editor.org/rfc/rfc1738.txt, Dec. '94) says that
  asterisk could be used unencoded...
 


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




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);
 
{
markSafe(abcdefghijklmnopqrstuvwxyz);
markSafe(ABCDEFGHIJKLMNOPQRSTUVWXYZ);
markSafe(01234567890-_.:);
}
 *
 I dont know the internal working of Tapestry that have this requirement,
 but it should consider that some applications follow the standard, al least
 with @ActivationRequestParameter.
 
 
 --
 David Germán Canteros
 
 
 2011/12/22 Lenny Primak lpri...@hope.nyc.ny.us
 
 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
 (RFC
 1738 http://www.rfc-editor.org/rfc/rfc1738.txt, Dec. '94) says that
 asterisk could be used unencoded...
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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. Are there any out there that people can recommend?
Specifically I'm interested in the following:

1. Creating re-usable page components for layout templates (common header
and footer, etc). Are these are probably considered components including
components? 
2. Changing the ordering of the JS and CSS default include stacks. If I want
to run Modernizr.js before any other JS gets called, is there a way to do
that? 
3. Documentation regarding the Tapestry JS namespaces (Tapestry and T5). The
files themselves are very well documented (thank you for that!) but it never
hurts if one has more info.

I'm really excited about the component based nature of the system and think
that once I get up to speed, the ability for the java developer side and
front end side to absolutely crank on code will really take off. Thanks for
the help!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Front-End-Developer-resources-tutorials-tp5095919p5095919.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 ch...@opencsta.org 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 stuff (drupal.org + 
 ubercart.org) to tapestry5 early next year.
 the paypal integration is new to me in java, does a library exist already 
 that just requires the keys put into a file?
 
 There's more than one way to skin the Paypal cat. I wouldn't use an
 implementation that just requires the keys put into a file. There
 are lots and lots of different workflows with Paypal depending on what
 you need. If there was a module available, I'd carefully look into how
 extensible and customizable it was.
 
 also, apart from session stuff, are there any gotchas that i need to be wary 
 of for a tapestry web app --- paypal site?
 
 No. For my use case, progressive display worked great (there are
 several steps to process a payment via Paypal). For server-to-server
 communication, I used the SOAP api with CXF client  wsdl2java.
 
 Kalle
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 closely as I can 
interpret)

http://tapestry.apache.org/getting-started.html

Problem is that when I attempt to add a Remote Archetype Catalog using 
http://tapestry.apache.org; and click verify eclipse tells me that 
the Remot catalog is empty.


If I try to Add archetype manually using the following:

Archetype Group Id: org.apache.tapestry
Archetype Artifact Id: quickstart
Archetype Version: 5.3.1
Repository URL: http://tapestry.apache.org/;

..

I can see that eclipse tries to download
http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom
however this url gives a 404.

So, is it possible to create the quickstart project via the maven 
eclipse plugin?


If so, where am I going wrong?

Thanks, Paul.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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: Sonatype Inc Maven Integration for Eclipse 
0.12.1.20110112-1712


I am following the rough 'getting started' guide (as closely as I can 
interpret)

http://tapestry.apache.org/getting-started.html

Problem is that when I attempt to add a Remote Archetype Catalog 
using http://tapestry.apache.org; and click verify eclipse tells me 
that the Remot catalog is empty.


If I try to Add archetype manually using the following:

Archetype Group Id: org.apache.tapestry
Archetype Artifact Id: quickstart
Archetype Version: 5.3.1
Repository URL: http://tapestry.apache.org/;

..

I can see that eclipse tries to download
http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom 


however this url gives a 404.

So, is it possible to create the quickstart project via the maven 
eclipse plugin?


If so, where am I going wrong?

Thanks, Paul.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 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: Sonatype Inc Maven Integration for Eclipse 0.12.1.20110112-1712
 
 I am following the rough 'getting started' guide (as closely as I can 
 interpret)
 http://tapestry.apache.org/getting-started.html
 
 Problem is that when I attempt to add a Remote Archetype Catalog using 
 http://tapestry.apache.org; and click verify eclipse tells me that the 
 Remot catalog is empty.
 
 If I try to Add archetype manually using the following:
 
 Archetype Group Id: org.apache.tapestry
 Archetype Artifact Id: quickstart
 Archetype Version: 5.3.1
 Repository URL: http://tapestry.apache.org/;
 
 ..
 
 I can see that eclipse tries to download
 http://tapestry.apache.org/org/apache/tapestry/quickstart/5.3.1/quickstart-5.3.1.pom
  
 however this url gives a 404.
 
 So, is it possible to create the quickstart project via the maven eclipse 
 plugin?
 
 If so, where am I going wrong?
 
 Thanks, Paul.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 being able to start and stop the container are all required.


Last time around (T5.1) I tried and failed to arrive at a project setup 
which allowed all of the above with tomcat. I tried to get the 
Sysdeotomcat launcher plugin to work without success, among other 
approaches I have since forgotten.


We ended up compiling into webapp/WEB-INF/classes and copying all 
dependencies into webapp/WEB-INF/lib. This allowed us to achieve all 
of the above, except for live class and template reloading.


Are there any improvements in this space since Tapestry 5.1? Has anyone 
come up with an easy to follow formula for configuring 
tapestry+tomcat+eclipse for development?


Thanks, Paul.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org