use template in property files?

2015-03-29 Thread Angelo Chen
Hi, this is an entry in app.properties: copyright=@2013 xyz company. All Rights Reserved. is there a way to use something like this: copyright=@2013 ${company_name}. All Rights Reserved. and company_name can be stored somewhere else? Thanks, A.C.

dynamic css id

2015-03-29 Thread Angelo Chen
Hi, Say I have a html like this: < div id="myid"> that id is fixed to 'myid', I'd like to be able to change it to something else during run time, let's say getting the value from a page property, possible? Thanks, Angelo

Re: Is there will be any Tapestry5 + AngularJS integration?

2014-03-30 Thread Angelo Chen
Hi, I'd like to see, more layers in t5, one is the easy way of creating a rest api, or the page class without template as mentioned by Howard, this should be enough for the Single page app like angularJS, maybe it's already there, but not so visible to me. Another layer will be the complicated pa

Tapestry5 and nodejs app coexist

2013-12-01 Thread Angelo Chen
Hi, got an existing T5 app running with Hibernate and 2nd level cache, now I'd like to make some nodejs apps accessing the same database, what will be a better approach to this? it seems that there might be some inconsistencies in the database, any thoughts on this? Thanks, A.C.

include url in the exception log

2013-06-01 Thread Angelo Chen
Hi, in a production log, I can see some exceptions, but it's difficult to trace as I don't know from what url that trigger this exception, is there a way to include the url in the exception log? Thanks, Angelo

is openJDK compatible with Tapestry 5?

2013-05-19 Thread Angelo Chen
Hi, I got an app running well in : ava version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode) now need to change to a new server, its default java is: java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11

dependencies of tapestry5

2013-05-07 Thread Angelo Chen
Hi, How to check the dependencies of tapestry5? does it use apache httpclient4? if yes, what version? Thanks, Angelo

Re: basic auth in T5

2013-05-02 Thread Angelo Chen
at the container level. > > http://docs.oracle.com/cd/E19798-01/821-1841/bncck/index.html > > > Once you are authenticated you can use the details (principal, roles) with > the annotation approach. > > regards > Taha > > > On 02-May-2013, at 10:55 AM, Angelo Ch

Re: basic auth in T5

2013-05-01 Thread Angelo Chen
Not yet, but that seems not the http basic auth. On Thu, May 2, 2013 at 12:31 PM, Taha Hafeez Siddiqi < tawus.tapes...@gmail.com> wrote: > Did you try this. > > http://tapestryjava.blogspot.in/2009/12/securing-tapestry-pages-with.html > > regards > Taha > > On 0

basic auth in T5

2013-05-01 Thread Angelo Chen
Hi, I'd like to put http basic authentication in some of page classes, not all, is there a simple way to do this? probably an annotation approach? Thanks Angelo

how to run tapestry5 app from Intellij 12

2013-04-10 Thread Angelo Chen
Hi, how to run Tapestry5 app from Intellij IDEA 12? thanks, A

t5: if and expression

2010-08-05 Thread Angelo Chen
Hi, is it possible to use an expression in the t:if? something like this < t:if test="user.id=99"> < /t:if> ? -- View this message in context: http://old.nabble.com/t5%3A-if-and-expression-tp29355495p29355495.html Sent from the Tapestry - User mailing list archive at Nabble.com.

t5: calling another T5 app

2010-07-25 Thread Angelo Chen
Hi, Two T5 apps: main and sub, the sub has a few pages, and might run in different machines, I'd like that the main app can bring up sub's different pages, sort of embedding sub's page in the main app, any good approach to this? Thanks. Angelo -- View this message in context: http://old.nabble

Tapestry 5 and Html 5

2010-06-08 Thread Angelo Chen
Hi, Html 5 is getting popular lately, any idea how we can try to integrate it with tapestry 5? or what is direction we can take for html 5? Thanks, Angelo -- View this message in context: http://old.nabble.com/Tapestry-5-and-Html-5-tp28824708p28824708.html Sent from the Tapestry - User mailin

Re: [ANNOUNCEMENT] tapestry-watchdog 0.0.1 released!

2010-05-30 Thread Angelo Chen
good, does it work with 5.1.0.5? Kalle Korhonen-2 wrote: > > On Sun, May 30, 2010 at 10:28 PM, Angelo Chen > wrote: >> I think this is very handy app. does it depend on other modules of >> Tynamo? > > No, I'll add a note on that in the guide. > >

Re: [ANNOUNCEMENT] tapestry-watchdog 0.0.1 released!

2010-05-30 Thread Angelo Chen
I think this is very handy app. does it depend on other modules of Tynamo? Kalle Korhonen-2 wrote: > > Hey all, it's the Tynamo project here again. Just to keep up with > releasing something new every month, we are announcing > tapestry-watchdog, version 0.0.1! This module got released sometim

Re: T5: develop t5 app in Snow Leopard

2010-04-17 Thread Angelo Chen
jetty:run): export MAVEN_OPTS="-Xms256m > -Xmx1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m" > For tomcat: export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=256m > -XX:+CMSClassUnloadingEnabled -Djava.awt.headless=true" > > > Cheers. > Alejandr

Re: T5: develop t5 app in Snow Leopard

2010-04-17 Thread Angelo Chen
: > > Angelo, i have been working with Snow Leopard and Tapestry since SL came > out > and never have i ever encounter a compatibility problem. I think as u > pointed out the problem might be related with JAI not with tapestry. > > On Tue, Apr 13, 2010 at 9:08 AM, Angelo Chen > wro

T5: develop t5 app in Snow Leopard

2010-04-13 Thread Angelo Chen
Hi, I moved recently from Tiger to Snow Leopard and try to make my T5 app works, here is what I encountered: 1) in a newly installed Snow Leopard with default Java installation(1.6 64 bits) T5 app compiles and works well, but got 'heap out of memory' when using Java's JAI to process some images

t5: standard form and post

2010-03-26 Thread Angelo Chen
Hi, T5 binds < t:form > to a page class. if standard < form > is used, how to define a page class method to accept the posting from the form? Thanks. Angelo -- View this message in context: http://old.nabble.com/t5%3A-standard-form-and-post-tp28049417p28049417.html Sent from the Tapestry - Use

Re: "dynamic" tml

2010-03-22 Thread Angelo Chen
delegate might work. also Velocity with outraw component can somehow achieve that. Alfonso Quiroga wrote: > > Hi! I just want to know something.. I used layouts in T5 ( > http://wiki.apache.org/tapestry/Tapestry5SimpleAndPowerfulLayouts) and it > works OK. My layout-tml has 3 o 4 IF and renders

t5: properties files

2010-03-18 Thread Angelo Chen
Hi, As I understand, Tapestry treats app_?.properties files as UTF-8 encoded and converts them to ISO-8850-1 with unicode escapes. however, this does not apply to the properties files accessed by Properties class, any idea how to do the same thing as what t5 is doing to those app.properties files

T5: getting a specific locale string from Messages

2010-03-15 Thread Angelo Chen
Hi, Messages.get("key") returns a localized string, is there a way to get a string from a particular locale? example: Messages.get("key", "de")? Thanks, Angelo -- View this message in context: http://old.nabble.com/T5%3A-getting-a-specific-locale-string-from-Messages-tp27903953p27903953.html S

Re: Error in tapestry.js in IE 8

2010-03-15 Thread Angelo Chen
how about : < meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" / > ? LiborGMC wrote: > > Hi, > I'm still facing this issue. I cannot use Tapestry 5 on IE8! Am I only one > who face to this problem? Or Tapestry cannot be used on IE8? Could anybody > answer me, plese? Please help! > >

Re: [Announce] Tapestry Testify project - v1.0.1 released

2010-03-12 Thread Angelo Chen
Hi Paul, THis is a good news, I'd like to give it another try. last time I gave up after encountering a problem and can't find any solution anywhere: http://old.nabble.com/T5%3A-how-to-put-Testify-into-real-use--td26038980.html#a26038980 any idea why I'm getting that error? Angelo Paul Field

Re: [Tapestry Central] Securing Tapestry pages with Annotations, Part 1

2010-02-24 Thread Angelo Chen
Hi, I found this solution to the security elegant: simply putting a @RequiresLogin in the page to be protected and let the ComponentRequestFilter checks the annotation in the page. now if I need something else, say @ReqiresOwner, say I'd allow the owner of inbox to go to a Inbox page, I can pass

t5: maven problem

2010-02-21 Thread Angelo Chen
Hi, suddenly I can not build my t5 app, got following error: A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-reso

t5: Easy template layout

2010-02-20 Thread Angelo Chen
Hi, I have been using Intellij for layout tml files, all are just typing, it works quite well, I'm looking for an easier way, no need to be completely wyswig, but at least a little faster than completely typing, I'd like to know how other developers design their templates, care to share? Thanks,

t5: tml css code completion in Intellij 9

2010-02-18 Thread Angelo Chen
Hi, This might be a out of topic question, sorry. I notice that css codes embedded in tml file does not have code completion in the IDEA 9, it used to be working in IDEA 8, any idea how to enable it? thanks. -- View this message in context: http://old.nabble.com/t5%3A-tml-css-code-completion-in

t5: form and zone

2010-02-18 Thread Angelo Chen
Hi, in the following code, the 'infoblock' will be rendered when the form is submitted, but I'd like the 'infoblock' to be rendered before submitting as well, how to achieve this? Thanks. < t:form t:id="info" zone="zone1"> < input t:type="textfield" t:id="temp" t:value="te

Re: t5: beaneditform and timestamp

2010-02-17 Thread Angelo Chen
00, Stephan Windmüller > wrote: > >> Angelo Chen wrote: >> >>> Using following code to update an object: >>> < t:beaneditform t:id="user" submitlabel="message:create-user" /> >>> but when click 'update&#x

t5: beaneditform and timestamp

2010-02-17 Thread Angelo Chen
Hi, Using following code to update an object: < t:beaneditform t:id="user" submitlabel="message:create-user" /> but when click 'update', got following error: Could not find a coercion from type java.util.Date to type java.sql.Timestamp. Any idea? Thanks, -- View this message in cont

Re: searchengine bots and tapestry

2010-02-11 Thread Angelo Chen
in the page class, you might have methods returning block, put a check for isXHR, if true return the block otherwise return null. you have to inject Request in order to check isXHR. Sergey G. Kashin wrote: > > I have a problem with Ajax pages and google bot. > > Then google bot view ajax pag

Re: T5: how to capture non existing component exceptions

2010-02-05 Thread Angelo Chen
layout but have probably not defined the > t:type="whateverYourHelpComponentsTypeIs" or in your java class: > @Component(id = "help") private YourHelpComponent help; > > Cheers, > Joost > > > > > > Angelo Chen wrote: >> Hi, >> &

T5: how to capture non existing component exceptions

2010-02-05 Thread Angelo Chen
Hi, often when url contains main.layout.help, and exception happens, how to capture this in the page? thanks, RequestExceptionHandler Unexpected runtime exception: Component Main:layout does not contain an embedded component with id 'help'. Available components: -- View this message in context

Re: T5 and Play framework

2010-01-07 Thread Angelo Chen
good observation, reusing is strong point in t5. Thiago H. de Paula Figueiredo wrote: > > > I've read the documentation and I haven't found a word about reuse, > something that is very easy to do in Tapestry. Just build your own > components and mixins. > > > -- View this message in

T5 and Play framework

2010-01-06 Thread Angelo Chen
Hi, This might be a little off topic here, sorry. I have found T5 a very good framework to use, it's really a fun when using it, particularly if you know how to do what you want. lately, I took a look at Playframework(http://www.playframework.org/), it is simple, and fun to use as well. Is t

t5: errors

2009-12-30 Thread Angelo Chen
Hi, I'd suggest that t:errors should have an option to display only one message instead of all the messages returned from the server, this make the page cleaner, of course this can be achieved by setting only one error in the validation event. for now, i just copied Errors.java and make a SingleE

Re: T5: create directory permission denied

2009-12-29 Thread Angelo Chen
that depends on how you start tomcat, if it runs from root, should be no problem, otherwise make sure that directory has the permission for the user who starts tomcat. wesleywj2 wrote: > > hi, > > i'm actually create directory to store image after user upload the image. > i'm using java.io fo

t5 restarting a t5 app in tomcat

2009-12-20 Thread Angelo Chen
hi, not sure if this is t5 related, there are times that I have this problem when restarting tomcat for t5 app: 1. stop the tomcat 2. copy the latest version of app 3. start tomcat tomcat got started, but can not see the app's page, in the log, i can see those dispatchers got called, but just no

Re: t5 webflow

2009-11-16 Thread Angelo Chen
thanks, looks like what I need, will try it out. Kalle Korhonen-2 wrote: > > http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails > > Kalle > > On Mon, Nov 16, 2009 at 6:40 AM, Angelo Chen > wrote: >> >> Hi, >> >> I know t5 does not ha

t5 webflow

2009-11-16 Thread Angelo Chen
Hi, I know t5 does not have a web flow yet, any idea of implementing a simple one? thanks. A.C. -- View this message in context: http://old.nabble.com/t5-webflow-tp26373086p26373086.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

t5: testing t5 pages under SeleniumRC

2009-11-13 Thread Angelo Chen
Hi, I'm using SeleniumRC to test some pages under a T5 app, if I test: http://www.example.com/ this works. but if I test http://www.example.com/items and I got following It looks like your baseUrl (http://www.example.com/items) is pointing to a file, not a directory (it doesn't end with a

Re: javascript locale for numbers

2009-11-12 Thread Angelo Chen
I use this approach to get the time zone locale, probably that can be extended to numbers too? http://old.nabble.com/T5%3A-OutputLocaleNumber-td22068067.html#a22092360 Joachim Van der Auwera (PROGS bvba) wrote: > > I have component which does some javascript manipulation on a form field > va

Re: Hibernate question

2009-11-11 Thread Angelo Chen
Hi, If you use Tapestry-Hibernate, it manages session for you, so there is only one session in one request, i don't think you have to merge them, just put @CommitAfter. one thing I notice, if table is MyIsam, it is always committed, for InoDB, u need @CommitAfter. A.C Alfonso Quiroga wrote: >

Re: Embed a generated image in a page with IE6

2009-11-10 Thread Angelo Chen
I followed that sample too, and works in IE7, Safari and Chrome. ellisonchiu wrote: > > I also test it in IE7, But it also does not work. > The wiki "Tapestry5HowToCreatePieChartsInAPage" sample: > http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage > http://wiki.apache.org/ta

Re: t5: Link s addParameter and null

2009-11-09 Thread Angelo Chen
ameters not being set > makes it null. > > On Mon, Nov 9, 2009 at 3:50 PM, Angelo Chen > wrote: >> >> Hi, >> Thanks for the reply, but it does not work, still same error, i check the >> LinkImpl: >> >>  public void addParameter(String parameterNam

Re: t5: Link s addParameter and null

2009-11-09 Thread Angelo Chen
> > lnk.addParameter("country", country == null ? "" : country); > > On Mon, Nov 9, 2009 at 3:24 PM, Angelo Chen > wrote: >> >> Hi, >> >> I have a query string that I need to append to a  Link object, the query >> string is: >>

t5: Link s addParameter and null

2009-11-09 Thread Angelo Chen
Hi, I have a query string that I need to append to a Link object, the query string is: ?gender=M&country= I got two questions: 1) is there a simple way to append this string to a Link object instead of using addParameter? 2) if I do a lnk.addParameter("country", null) and I got following:

t5: passing date to a context

2009-11-05 Thread Angelo Chen
Hi, How to pass a date from url to a page with: void onActivate(Date date) -- View this message in context: http://old.nabble.com/t5%3A-passing-date-to-a-context-tp26227575p26227575.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Help with HTML and Tapestry 5.0.10

2009-11-05 Thread Angelo Chen
i meant & plus gt; Angelo Chen wrote: > > how about using " >< ", put following in the first line: > > !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"

Re: Help with HTML and Tapestry 5.0.10

2009-11-05 Thread Angelo Chen
how about using " >< ", put following in the first line: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Ashwanth Kumar wrote: > > Hey, > > I just started working with TAPESTRY v5.0.10, and found one problem

Re: t5: updating a zone during loading of page?

2009-11-05 Thread Angelo Chen
"loading ..." message), and an invisible tag in an > non-visible div. When the image is loaded, it removes the loading div > and makes the visible. > > On Thu, Nov 5, 2009 at 4:36 PM, Thiago H. de Paula Figueiredo > wrote: >> Em Thu, 05 Nov 2009 22:06:28 -0200

Re: t5: updating a zone during loading of page?

2009-11-05 Thread Angelo Chen
e using it. > > Kalle > > > On Thu, Nov 5, 2009 at 3:07 AM, Thiago H. de Paula Figueiredo > wrote: >> Em Thu, 05 Nov 2009 05:40:20 -0200, Angelo Chen >> >> escreveu: >> >>> Hi, >> >> Hi! >> >> As Ville sug

Re: t5: updating a zone during loading of page?

2009-11-05 Thread Angelo Chen
the > image link to it. ProgressiveDisplay works for most partial rendering > cases, it's just a matter of how you are using it. > > Kalle > > > On Thu, Nov 5, 2009 at 3:07 AM, Thiago H. de Paula Figueiredo > wrote: >> Em Thu, 05 Nov 2009 05:40:20 -0200, Angelo Chen >&

t5: updating a zone during loading of page?

2009-11-04 Thread Angelo Chen
Hi, Zone has to be updated by an actionlink or a form, is there another way? here is what I intend to use: 1. when page is loaded: < t:zone t:id="content" show="slidedown" update="show" >Loading, please wait.. < /t:zone> 2. the template retrieves some other info from the server thru ${moreIn

Re: Testify and activation context problems

2009-10-27 Thread Angelo Chen
Hi, I attempted to do some page/component testings with PageTester, finally gave up, lately tried again with Testify, and gave up as well, following the tutorials, it works, but when trying to apply the test to an existing project, can not make it work, probably we need some more tutorials to mak

T5: how to put Testify into real use?

2009-10-24 Thread Angelo Chen
Hi, I have tested Testify with a simple sample and manage to make it work: public class MyPageTest extends TapestryTest{ private static final TapestryTester SHARED_TESTER = new TapestryTester("org.apache.tapestry5.tutorial", TestModule.class); public MyPageTest() {super(SHAR

Re: T5: Can read/write directory outside of ContextPath?

2009-10-22 Thread Angelo Chen
hi, not sure about tomcat under windows, but if it is under windows, you just create the directory under webapps, example: c:/tomcat/webapps/myimages, and in T5 app, you refer to that path instead of http://localhost:8080/webapps/myimages, that might work. wesleywj2 wrote: > > hi angelo, > >

Re: Testify NullPointerException?

2009-10-22 Thread Angelo Chen
hi, I have similar problem, did you find a solution? Thanks. Mats Henricson-2 wrote: > > Hi! > > I'm getting pretty close now. I've managed to get to the > renderPage() function, where I get a NPE: > > Caused by: java.lang.NullPointerException > at > org.apache.tapestry5.internal.rendere

Re: T5: Can read/write directory outside of ContextPath?

2009-10-22 Thread Angelo Chen
you can create a directory in the file system, then put a symbolic link under tomcat6/webapps. wesleywj2 wrote: > > hi there, > > i have 2 application written using T5.1 named "ax" and "ux" both deployed > in Tomcat6/webapps directory. > However, I would like to create a new folder call "myima

t5: Testify newbie

2009-10-22 Thread Angelo Chen
Hi, I tried to set up a testify test, but keep getting, I'm sure I have a page called 'TestPage', any idea why? thanks ava.lang.RuntimeException: Request was not handled: 'testpage' may not be a valid page name. at org.apache.tapestry5.test.PageTester.renderPage(PageTester.java:177)

t5: getting started with Testify

2009-10-22 Thread Angelo Chen
Hi, I'd like to use Testify, any simple sample to get me started? here is something i wrote, probably somebody can put in what missing here? public class AbstractMyTest extends TapestryTest { private static final TapestryTester SHARED_TESTER = new TapestryTester("demo", AppModule.class);

Re: Tapestry behaving strangely in production environment

2009-10-19 Thread Angelo Chen
try 5.1.0.5, it works fine with me in a quite large application. Vidya Sivadas wrote: > > Hi, > > The application developed using Tapestry 5.0.15 is working fine here in > India in the development environment,but when it is deployed in client's > machine at U.K,the application is behaving st

Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry

2009-10-16 Thread Angelo Chen
mention of it any where in the documentation. Did it > not make the cut? > > > > - Original Message > From: Angelo Chen > To: users@tapestry.apache.org > Sent: Thu, October 15, 2009 8:17:18 PM > Subject: Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing >

Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry

2009-10-15 Thread Angelo Chen
Hi Thiago, Thanis for the link, but I was interested in the using of Google's CDN version of Prototype.js, of course T5's option to combine js into one file is a good option as well. Thiago H. de Paula Figueiredo wrote: > > Em Thu, 15 Oct 2009 13:13:02 -0300, Angelo Ch

Re: [Tapestry Central] Tapestry 5.1 and IE 8 -- Customizing Tapestry

2009-10-15 Thread Angelo Chen
Any update on this ? Sergey Didenko wrote: > > Thanks. I'm planning to make it in the future. > >>> BTW, is there a simple way to change the bundled Prototype for Google >>> CDN's one? ( >>> http://ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js >>> ) >> >> Not a simple way, as that

t5: redirect to a page in javascript?

2009-10-12 Thread Angelo Chen
Hi, How to redirect to another page in a javascript? example: function do_proc() { saveupdates() window.location="items" } this does not work, any idea? Thanks, -- View this message in context: http://www.nabble.com/t5%3A-redirect-to-a-page-in-javascript--tp258

Re: t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
t > the > actionlink url (as you have done) then pass this to the javascript using > RenderSupport's addScript() method > > Toby > > 2009/10/12 Angelo Chen > >> >> Hi, >> >> I'm trying to call an actionlink from a javascript, but i'm

t5: calling action link from a javascript

2009-10-11 Thread Angelo Chen
Hi, I'm trying to call an actionlink from a javascript, but i'm getting: Remote server closed the connection before sending response header and I never see the pop up dialog in the javascript, any idea how to avoid errors like this? Thanks. A.C. sample code: in java: public String getUpdat

t5: sending json object to an actionlink

2009-10-11 Thread Angelo Chen
Hi, I use jQuery's post to send json objects to an actionlink, but how to convert it back to a json object in the T5 side? I read somewhere we can use json.js to convert first a json to string before sending, but including that json.js always encounter an javascript exception, any idea how? Tha

t5: logging in IOC only app

2009-10-09 Thread Angelo Chen
Hi, Following the link at end of this post, i made a IOC only app, it works. then I added a logging like this: @Inject private Logger logger; import org.slf4j.Logger; but I got: No service implements the interface org.slf4j.Logger. any idea how to register the logger manually? Thanks,

Re: t5: url rewriting and query parameter part

2009-10-08 Thread Angelo Chen
Hi Thiago, Another question is, how do you rewrite a outgoing link without rewriting the query parameters? Thanks, Thiago H. de Paula Figueiredo wrote: > > On Thu, Oct 8, 2009 at 11:11 AM, Angelo Chen > wrote: > >> Hi, > > Hi! > > >> I'm

Re: t5: url rewriting and query parameter part

2009-10-08 Thread Angelo Chen
Hi Thiago, I do rewrite them in the outgoing : mypage/look.grid.pager/3?t:ac=0001/ABCD becoming: mypage/0001/ABCD/3 so in the incoming, I need to rewrie it back to: mypage/look.grid.pager/3?t:ac=0001/ABCD Thiago H. de Paula Figueiredo wrote: > > On Thu, Oct 8, 2009 at 11:11 AM,

t5: url rewriting and query parameter part

2009-10-08 Thread Angelo Chen
Hi, I'm rewriting a incoming url into: mypage/look.grid.pager/3?t:ac=0001/ABCD SimpleRequestWrapper works with path, that means it is only up to "mypage/look.grid.pager/3", how about the query string part(?t:ac=0001/ABCD), how to make it path of rewritten url? Thanks, -- View this message i

Re: t5: urlrewrite and grid pager's link

2009-10-05 Thread Angelo Chen
ween "outbound" and "inbound" > rewriting via the urlRewriteContext. > > Cheers, > > Robert > > On Oct 5, 2009, at 10/55:21 PM , Angelo Chen wrote: > >> >> Hi, >> >> I use following code to rewrite http://localhost:8080/mylist

t5: urlrewrite and grid pager's link

2009-10-05 Thread Angelo Chen
Hi, I use following code to rewrite http://localhost:8080/mylist to http://localhost:8080/internallist/X this works, however the page has a grid, so the pagination's link does not change, I still get: /internallist.grid.pager/2?t:ac=X any idea how to change the pager's link as well? Thanks. p

Re: Projects and sites powered by Tapestry

2009-10-03 Thread Angelo Chen
ils.getExtension(path) > { > logger.warn("access to asset " + path + " denied"); > > response.sendRedirect(request.getContextPath() + "/" + > accessDeniedPage); > > return true; >

Re: Projects and sites powered by Tapestry

2009-10-03 Thread Angelo Chen
wrote: > > Angelo Chen wrote: >> how to close access to ".class" and ".tml"? >> > > > This has been posted to the list multiple times so I another time > wouldn't hurt ;) > > > I use the following code to whitelist some assets.

t5: files in the classpath

2009-10-03 Thread Angelo Chen
Hi, came across a component from Robert, AssetProtectionDispatcher, where can I download it? or any other solution now for protecting files in the classpath? ac -- View this message in context: http://www.nabble.com/t5%3A-files-in-the-classpath-tp25727583p25727583.html Sent from the Tapestry

Re: Projects and sites powered by Tapestry

2009-10-03 Thread Angelo Chen
n't .class and .tml files be under >> WEB-INF and hence inaccessible automatically? >> >> Benny >> >> On Thu, Sep 10, 2009 at 2:52 AM, martijn.list > >wrote: >> >> > Angelo Chen wrote: >> > >> >> how to close access to "

t5: onActivate and Exceptionreport

2009-10-02 Thread Angelo Chen
Hi, I'd like to redirect from ExceptionReport class to a normal page, however I notice that onActivate was never called, any idea? Thanks, public class ExceptionReport implements ExceptionReporter { public void reportException(Throwable exception) { } public Object onActivate() {

Re: t5: popup window and pagelink

2009-10-02 Thread Angelo Chen
; Should be the same but I have not tried it! > > Anyone else? > > 2009/10/2 Angelo Chen : >> >> Looks like I made a mistake, so you return the page that you want to show >> in >> the pop up window from onActivate, not onActionFromLaunch, >> >> so ho

Re: t5: popup window and pagelink

2009-10-02 Thread Angelo Chen
with $('mylink').href when opening the popup. You >> might also want to consider using simulated popups like Prototype Window >> ( >> http://prototype-window.xilinus.com). >> >> Benny >> >> On Fri, Oct 2, 2009 at 12:10 AM, Angelo Chen > >wrote: >&g

Re: t5: popup window and pagelink

2009-10-02 Thread Angelo Chen
d language > url += "&sessionid=" + cs.getToken(); > > try { > log.debug(LOGPRE + "Launch URL=[" + url + "]"); > return new URL(url); > } catch (MalformedURLException e) { > log.error(&quo

Re: t5: popup window and pagelink

2009-10-01 Thread Angelo Chen
y Law > >> This may not be the best solution, but you could create an empty (and >> invisible) pagelink like page='mypage'> >> and reference its href with $('mylink').href when opening the popup. You >> might also want to consider using simula

t5: popup window and pagelink

2009-10-01 Thread Angelo Chen
Hi, I use following to open a pagelink page in another window: details Now I'd like to make it a popup, so I'm thinking of using: window.open(href, windowname, 'width=400,height=200,scrollbars=yes'); now, how to specify the pagelink in href field of window.open? Thanks -- View this message

t5 capturing output of ping

2009-10-01 Thread Angelo Chen
Hi, Sorry if this is not t5 related, I'd like to run from T5 app the ping command in the server and capture the output so i can display it back as a page to the browser, hints? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5-capturing-output-of-ping-tp25694236p256942

Re: T5 & Hibernate

2009-09-29 Thread Angelo Chen
amazing, i did not know that we can configure manually until reading that link: apestry.hibernate.default-configuration is there a short sample that how this can be be used? Thanks, angelo Thiago H. de Paula Figueiredo wrote: > > Em Tue, 29 Sep 2009 17:00:34 -0300, Benny Law > escreveu:

t5: Urlrewrite to a html path

2009-09-26 Thread Angelo Chen
Hi, I have a html that works under this link: http://127.0.0.1:8080/html_pages/sample/info.html now I'd like to be able to use this: http://127.0.0.1:8080/exinfo so I added a rewrite: if ("/exinfo".equalsIgnoreCase(path)) { return new SimpleRequestWrapper(request, "/html_pages/samp

t5: redirect to a normal page in ExceptionReport

2009-09-23 Thread Angelo Chen
Hi, I use an ExceptionReporter to catch error: public class ExceptionReport implements ExceptionReporter { //; } Is there a way to just redirect or forward to a normal page in the class above? Thanks, A.C. -- View this message in context: http://www.nabble.com/t5%3A-redirect-to-a-normal-page-

t5: generating an external link

2009-09-16 Thread Angelo Chen
Hi, this question sounds stupid:) but suddenly my mind is blank, anybody give me a hint? Thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-generating-an-external-link-tp25467984p25467984.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: t5: Snow Leopard upgrade?

2009-09-10 Thread Angelo Chen
ing > together very well. > > On Thu, Sep 10, 2009 at 8:56 PM, Angelo Chen > wrote: > >> >> Hi, >> >> Snow Leopard comes with 64 bit java 6, programs compiled under that >> compatible with Tapestry 5 binary from the apache site? Thanks, >> >&g

t5: Snow Leopard upgrade?

2009-09-10 Thread Angelo Chen
Hi, Snow Leopard comes with 64 bit java 6, programs compiled under that compatible with Tapestry 5 binary from the apache site? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-Snow-Leopard-upgrade--tp25394678p25394678.html Sent from the Tapestry - User mailing list

Re: t5: templates used for component

2009-09-09 Thread Angelo Chen
n >> the file system. However, I don't think changes in the templates would >> be picked up unless you run in non-production mode. >> >> Kalle >> >> >> On Wed, Sep 9, 2009 at 10:20 PM, Angelo Chen >> wrote: >> > >> > Hi, >> >

t5: templates used for component

2009-09-09 Thread Angelo Chen
Hi, I'd like to update the templates for component in the live server, but it is always stored in: myapp/ROOT/WEB-INF/lib/myapp.jar is there a way not to include those tml in the jar file? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-templates-used-for-componen

Re: Projects and sites powered by Tapestry

2009-09-09 Thread Angelo Chen
how to close access to ".class" and ".tml"? Sergey Didenko wrote: > > BTW, it's worth to remind again everyone who is going to publish their > site urls, to close the access to ".class" and ".tml" files . > > On Tue, Sep 8, 2009 at 6:46 PM, Massimo Lusetti > wrote: >> On Tue, Sep 8, 2009 at 5

t5: request count

2009-09-03 Thread Angelo Chen
Hi, In tomcat manager, we can see: Request count: 1 is it equivalent to the request make to t5 pages? Angelo -- View this message in context: http://www.nabble.com/t5%3A-request-count-tp25272224p25272224.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: t5: URLRewriteRule, domain and CSS

2009-08-29 Thread Angelo Chen
r domain you want), what > you're looking to do just can't happen. > > Cheers, > > Alex K > > On Sat, Aug 29, 2009 at 11:03 AM, Angelo Chen > wrote: > >> >> hi, >> >> my t5 app has url: >> >> http://localhost:8080/masterl

t5: URLRewriteRule, domain and CSS

2009-08-29 Thread Angelo Chen
hi, my t5 app has url: http://localhost:8080/masterlist now I'd like to make a short cut for the user: http://masterList:8080 above URL should go to http://localhost:8080/masterList following code works, but it will not use the css in the app, seems css is applicable to http://localhost, not

  1   2   3   4   5   6   7   8   9   >