Re: Dynamic CSS depending on URL

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 18:03:40 -0300, Juan Alba wrote: This was a test to understand how it works. So the UrlRewrite is like a redirect? No! I thought that was only replacing the url for the new url. Like rendering the XXXPage and showing in the url YYYPage. No. If you rewrite /xxx into /

Protected page properties confusion

2012-03-30 Thread Olaf Tomczak
Guys, After reading the announcement about https://issues.apache.org/jira/browse/TAP5-1801 I decided to start using protected properties in my pages. I wanted to be able to create some properties in a base page and then use them in the page's subclass. Unfortunately I encountered a problem - when

Re: Dynamic CSS depending on URL

2012-03-30 Thread Juan Alba
On Fri, Mar 30, 2012 at 5:23 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 30 Mar 2012 17:16:00 -0300, Juan Alba > wrote: > > URLRewriterRule rule = new URLRewriterRule() { >> @Override >> public Request process(Request request, URLRewriteContext context) { >>

Re: Dynamic CSS depending on URL

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 17:16:00 -0300, Juan Alba wrote: URLRewriterRule rule = new URLRewriterRule() { @Override public Request process(Request request, URLRewriteContext context) { return new SimpleRequestWrapper(request, request.getPath()+"/test");

Re: Dynamic CSS depending on URL

2012-03-30 Thread Juan Alba
Guys I am having problems with the URLRewrite: As a test I am trying to write in the browser url : thePath/test for every url, so I did this: public static void contributeURLRewriter(OrderedConfiguration configuration) { URLRewriterRule rule = new URLRewriterRule() { @Override public

Re: writer.writeRaw(String text)

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Wed, 28 Mar 2012 18:27:38 -0300, Tapbeg wrote: Thiago H de Paula Figueiredo wrote Gosh, did you even try to read the documentation and try the component in> your project before asking in the mailing list? public String getMyHtml() { return " \"www.google.com\" Google "; }

Re: writer.writeRaw(String text)

2012-03-30 Thread Tapbeg
trsvax wrote > > I did something similar to this by creating a BeanModel > > @Property > private Map args; > > BeanModel model = beanModelSource.createEditModel(args.getClass(), > resources.getMessages()); > > and then add the datatypes I wanted like this > > model

Re: writer.writeRaw(String text)

2012-03-30 Thread Tapbeg
Thiago H de Paula Figueiredo wrote > > > Gosh, did you even try to read the documentation and try the component in > your project before asking in the mailing list? > > public String getMyHtml() { > return " \"www.google.com\" Google "; > } > > > Yes, I did. I was doing it in the wr

Re: Dynamic CSS depending on URL

2012-03-30 Thread Juan Alba
Ok, I think that I have no solution for my problem. I do the authentication in the webapp with Spring so in my AppModule I have: configuration.add("spring-security.target.url", "/start"); This means that when authentication process finishes it will redirect there (without using the urlRewriter)..

Re: Mixing prototype and JQuery based components?

2012-03-30 Thread Lenny Primak
Thanks for your info. Is there a way that my components work with either prototype or jquery or is this a non-starter? Depending on whether jquery model is installed? What should be my strategy if I have a custom component library? On Mar 30, 2012, at 2:54 AM, Emmanuel DEMEY wrote: > With Ta

Re: Which method is called in a page when click back button from browser

2012-03-30 Thread fredramsey
And this: http://www.boutell.com/newfaq/creating/backbutton.html You can probably find other solutions, just google "disable browser back button". -- View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp560653

Re: Which method is called in a page when click back button from browser

2012-03-30 Thread fredramsey
Check out the "Disable Back functionality using history.forward" on this page for a JavaScript solution: http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html Caveat: I've not tried it, but it looks like it should work, IF they have JavaScript enabled. -- View this me

Re: Where to store site settings?

2012-03-30 Thread trsvax
I think I've done this differently on every project and every way has turned out wrong. The way I do it now is objects in the environment. The great thing about this way is you can set defaults for the entire site, override them depending on development/production and override it at any point in th

Re: Enum with Values in Select

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 10:22:32 -0300, sub wrote: what I want is: One Hour Two Hours Four Hours Eight Hours Why? How can I achieve this? Implement your own ValueEncoder and pass it to the encoder parameter of Select. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5

Re: Dynamic CSS depending on URL

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 10:05:07 -0300, Juan Alba wrote: Thiago, where can I find some documentation on the URLRewriter (some examples or how tos)? http://tapestry.apache.org/url-rewriting.html -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, devel

Enum with Values in Select

2012-03-30 Thread sub
I have a enum with values: public enum Duration { ONE_HOUR(3600), TWO_HOURS(7200), FOUR_HOURS(14400), EIGHT_HOURS(28800); private final int value; private Duration(int value) { this.value = value; } public int getValue() {

Re: Which method is called in a page when click back button from browser

2012-03-30 Thread karthi
Hi thank you for your reply... Then how can I stop that behavior, I want to show the login page once after the user log out and clicks the browser back button? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-brow

Re: Dynamic CSS depending on URL

2012-03-30 Thread Juan Alba
Thiago, where can I find some documentation on the URLRewriter (some examples or how tos)? Thanks! On Fri, Mar 30, 2012 at 10:02 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 30 Mar 2012 09:39:08 -0300, Lance Java > wrote: > > No, URLRewriters can decorate the result

Re: Implement chat function

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 09:34:56 -0300, Lance Java wrote: AFAIK tapestry does not support ajax push AKA reverse ajax. I can recommend DWR http://directwebremoting.org/dwr/documentation/reverse-ajax/index.html The mailing list archives have someone, I don't recall who, integrating Tapestry wi

Re: Sonotype Security Brief

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 09:09:36 -0300, trsvax wrote: There is an interesting paper on the Sonotype site. http://www.sonatype.com/Products/Sonatype-Insight/Why-Insight/Mitigate-Security-Risks/Security-Brief Tapestry is listed in the top open source downloads with a security vulnerability. Unfortu

Re: Dynamic CSS depending on URL

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 09:39:08 -0300, Lance Java wrote: No, URLRewriters can decorate the result (generated links) too. Fair enough... I would still decorate the ComponentEventLinkEncoder to future-proof your code (URLRewriter is not in the 5.3 code base) URLRewriter does that. If you want

Re: Which method is called in a page when click back button from browser

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 09:38:13 -0300, karthi wrote: Hi, Hi! What is the method which is called when I press the back button on the browser? It depends: if the browser requests the page again, the normal events are triggered: activate, setupRender, etc. If it doesn't, the page isn't re

Re: Implement chat function

2012-03-30 Thread Markus Feindler
You might consider using xmpp, if it should be scalable. Hi, For our current project we need a kind of customer service chat function. A logged in user can see if there is an admin online and can start a one-to-one chat (simple text). Is there already something made for Tapestry like this? Or w

Re: Sonotype Security Brief

2012-03-30 Thread Massimo Lusetti
On Fri, Mar 30, 2012 at 2:09 PM, trsvax wrote: > There is an interesting paper on the Sonotype site. > > http://www.sonatype.com/Products/Sonatype-Insight/Why-Insight/Mitigate-Security-Risks/Security-Brief > Definitely we should go for a marketing and merchandising like this one: http://www.open

Re: Dynamic CSS depending on URL

2012-03-30 Thread Lance Java
> No, URLRewriters can decorate the result (generated links) too. Fair enough... I would still decorate the ComponentEventLinkEncoder to future-proof your code (URLRewriter is not in the 5.3 code base)

Which method is called in a page when click back button from browser

2012-03-30 Thread karthi
Hi, I have login page after user enters their credentials will navigate the user to home page once after logout will again navigate to login page. Here my problem is i) User enters the login credentials ii) Goes to home page iii) Now press the logout button iv) Sees the login page

Re: Implement chat function

2012-03-30 Thread Lance Java
AFAIK tapestry does not support ajax push AKA reverse ajax. I can recommend DWR http://directwebremoting.org/dwr/documentation/reverse-ajax/index.html On Friday, 30 March 2012, nquirynen wrote: > Hi, > > For our current project we need a kind of customer service chat function. A > logged in user

Implement chat function

2012-03-30 Thread nquirynen
Hi, For our current project we need a kind of customer service chat function. A logged in user can see if there is an admin online and can start a one-to-one chat (simple text). Is there already something made for Tapestry like this? Or who can help me with some pointers on how to start working o

Sonotype Security Brief

2012-03-30 Thread trsvax
There is an interesting paper on the Sonotype site. http://www.sonatype.com/Products/Sonatype-Insight/Why-Insight/Mitigate-Security-Risks/Security-Brief Tapestry is listed in the top open source downloads with a security vulnerability. Unfortunately they don't say what version or what the vulnera

Re: Tutorial issue- changing code and refresh not working

2012-03-30 Thread fredramsey
Thank you, Bob. That will be very helpful in case someone else runs into the same issue. When evaluating a software tool, one of the things I look for is how friendly and helpful the community is. I really don't see the harm in helping someone, and, as part of that, reminding them to search. But

Re: Dynamic CSS depending on URL

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 04:58:25 -0300, Lance Java wrote: I'm not 100% but I think that you might need to decorate the ComponentEventLinkEncoder instead of contributing a URLRewriter as I *think* that URLRewriters can't decorate the result, they can only short circut out of the chain. No, URLRe

Re: @SessionState and Translator

2012-03-30 Thread Thiago H. de Paula Figueiredo
On Fri, 30 Mar 2012 03:44:33 -0300, resign wrote: hi, Hi! is it possible to add an translator to textfield depends on logged user? For example i want to translate Date object depends on logged user. Use the translate parameter of TextField. -- Thiago H. de Paula Figueiredo Independent Ja

Re: tapestry5-highcharts available

2012-03-30 Thread Rural Hunter
wow, very promising! thanks a lot! 于 2012/3/30 18:15, Dragan Sahpaski 写道: I can just say this is AWESOME !. I will try to use it the first chance I got. Cheers, Dragan Sahpaski On Fri, Mar 30, 2012 at 11:40 AM, Emmanuel DEMEYwrote: Hi everybody !! The WebPlatform team, from Atos Company

Re: tapestry5-highcharts available

2012-03-30 Thread Dragan Sahpaski
I can just say this is AWESOME !. I will try to use it the first chance I got. Cheers, Dragan Sahpaski On Fri, Mar 30, 2012 at 11:40 AM, Emmanuel DEMEY wrote: > Hi everybody !! > > The WebPlatform team, from Atos Company, is very pleased to announce a new > Tapestry Component library : Tapes

RE: when return streamResponse, Ajax stop working in tapestry5

2012-03-30 Thread Athneria, Mahendra
Hi Bryan, Thanks a lot for your help. Regards, Mahendra Athneria Ext-+91 22 6733 3729 Mob-+91 9833 121 309 mahendra.athne...@atos.net -Original Message- From: Bryan Lewis [mailto:jbryanle...@gmail.com] Sent: Thursday, March 29, 2012 5:23 PM To: Tapestry users Subject: Re: when return

tapestry5-highcharts available

2012-03-30 Thread Emmanuel DEMEY
Hi everybody !! The WebPlatform team, from Atos Company, is very pleased to announce a new Tapestry Component library : Tapestry5-HighCharts. This contribution makes it possible to integrate the highcharts library ( http://www.highcharts.com/) into a Tapestry5-jQuery based application. The relea

Unable to decode multipart encoded request - Help required to check this exception

2012-03-30 Thread nazarhussain_s
Currently I am facing the following issues during the uploading of a File through a form in tapestry. I need to know how to handle the below exceptions.I am using Tapestry 4 , Jdk 1.5 , Weblogic 9.2. Can you please suggest what could be done for below two exceptions -> org.apache.hivemind.Applica

Re: Dynamic CSS depending on URL

2012-03-30 Thread Lance Java
I'm not 100% but I think that you might need to decorate the ComponentEventLinkEncoder instead of contributing a URLRewriter as I *think* that URLRewriters can't decorate the result, they can only short circut out of the chain. I think you will need to do something like this: public class AppModu

Re: [T5.3] tapestry-jpa and spock

2012-03-30 Thread Kalle Korhonen
If your code or the code you are testing is using context assets (which tapestry-jpa does), you need to set the context: ApplicationGlobals globals = registry.getObject(ApplicationGlobals.class, null); globals.storeContext(new PageTesterContext(contextPath)); registry.perfor

Re: [T5.1] Cookies.removeCookieValue issue

2012-03-30 Thread sub
I found this old thread, since I also have the problem, that I want to remove a cookie with a custom path and there is no method to do that. Will there be a fix for this in the future? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-1-Cookies-removeCookieValue-issue-tp24