Re: Disabling HMAC check

2012-11-21 Thread angelochen
I was the one asking that question before, I am using this: configuration.add(SymbolConstants.HMAC_PASSPHRASE, "rIbShOefrOze77SPy12niBS"); any string should work. TG wrote > Non-random string? How do I do that? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disabli

Re: tapestry-hibernate and mysql console

2012-11-05 Thread angelochen
Taha > > On Nov 5, 2012, at 2:01 PM, angelochen wrote: > >> Hi, >> >> a T5 app uses tapestry-hibernate to display some pages, when I updated >> some >> fields in mysql console, commit, and close the mysql console, and go back >> to >> t5 app,

tapestry-hibernate and mysql console

2012-11-05 Thread angelochen
Hi, a T5 app uses tapestry-hibernate to display some pages, when I updated some fields in mysql console, commit, and close the mysql console, and go back to t5 app, some times the changes are not reflected, in fact, there are times when I checked the mysql again, the data was still there, got some

hmac sample

2012-10-12 Thread angelochen
Hi, got this error when upgrading to 5.3.6, any sample to set this? ClientDataEncoder The symbol 'tapestry.hmac-passphrase' has not been configured. Thanks, -- View this message in context: http://tapestry.1045711.n5.nabble.com/hmac-sample-tp5716873.html Sent from the Tapestry - User mailin

Re: setting japanese locale in a service

2012-04-12 Thread angelochen
t; > Cheers, > Lance. > > On Wednesday, 11 April 2012, angelochen <angelochen960@.com> wrote: >> i did: >> >> configuration.add("tapestry.supported-locales", "en,zh,ru,jp"); >> >> a little confusion is, the doc says &#x

Re: setting japanese locale in a service

2012-04-11 Thread angelochen
i did: configuration.add("tapestry.supported-locales", "en,zh,ru,jp"); a little confusion is, the doc says 'ja' not 'jp', but even 'ja' does not work. to clear this question a little bit, i supply an app_jp.properties, and when i do a localhost:8080/jp, it works. the place it is not working is

setting japanese locale in a service

2012-04-11 Thread angelochen
hi, in tapestry 5.3, i enabled the 'jp' and it works, but in a service if i do a locale.setLocale(Locale.JAPANESE) in a PageLinkTransformer, it does not work in the page, still shows English, but if i did Locale.CHINESE, it works. any idea why? simplified code as follow: public class SampleTransf

Re: [ANN] AjaxUpload : An ajax based upload component

2012-01-27 Thread angelochen
here is a simple form, why the sizelimit and uploadText are not being used? < t:form t:id="form" > < input t:type="tawus/ajaxupload" t:id="uploads" t:maxFiles="1" sizeLimit="1000" t:uploadtext="here, please"/> < input t:type="submit" name="next" value="Save my photos"/> < /

T5.3.1 using jQueryMobile

2012-01-14 Thread angelochen
Hi, Anybody using T5 with jQueryMobile? it works quite well, now got this problem, is there an easier way to pass parameters between internal pages? two pages are all 'listview'. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-using-jQueryMobile-tp5146068p5146068.ht

Re: T5.3.1 passing parameters to datasource method

2012-01-14 Thread angelochen
yes, solution is: -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-passing-parameters-to-datasource-method-tp5146041p5146064.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

T5.3.1 passing parameters to datasource method

2012-01-14 Thread angelochen
Hi, is the following code possible? < t:loop source="rows(1)" value="row" > thanks, -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-passing-parameters-to-datasource-method-tp5146041p5146041.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

T5.3.1 javascript logging

2012-01-13 Thread angelochen
Hi, I use following code to log some info, but where we can find it out? in Chrome's javascript console, there was nothing: @Environmental private JavaScriptSupport javaScriptSupport; void setupRender() throws IOException { javaScriptSupport.addScript("Tapestry.error(\"hello he

Re: reading an asset into a string

2012-01-13 Thread angelochen
Hi Thiago, String s = myEffects.toString() it does not read the content of the file, but the name of the asset. Thiago H de Paula Figueiredo wrote > > On Fri, 13 Jan 2012 12:40:37 -0200, angelochen > <angelochen960@.com> wrote: > >> is this possible? >> &

Re: reading an asset into a string

2012-01-13 Thread angelochen
hi, i checked that link, but can't find info. -- View this message in context: http://tapestry.1045711.n5.nabble.com/reading-an-asset-into-a-string-tp5142710p5142757.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

reading an asset into a string

2012-01-13 Thread angelochen
is this possible? @Inject @Path("context:/js/init.photoswipe.js") private Asset myEffects; -- View this message in context: http://tapestry.1045711.n5.nabble.com/reading-an-asset-into-a-string-tp5142710p5142710.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T5.3.1 load js and execute it

2012-01-13 Thread angelochen
Hi, I have js file like following and I'd like it to be run when page is loaded, using @Import includes the js file, but not running it, any way to achieve this? Thanks, (function(window, $, PhotoSwipe){ $(document).ready(function(){ // more code here }); }(window, window.jQuery

Re: tapestry-security

2011-12-29 Thread angelochen
Hi, One more question, when you go to a @RequiresAuthentication page, it will show the login page, that's good, then, the url in the browser does not change, seems it just do a forward, is there a way to do a redirect instead so the url got changed in the browser? thanks, Angelo -- View this mes

Re: tapestry-security

2011-12-29 Thread angelochen
so we can do something like this: configuration.add(factory.createChain("/admin/**").add(factory.authc()).build()); the entire admin package should be protected, right? I like that reverse annotation approach, or probably something like https in tapestry5, once set, everything should be https un

tapestry-security

2011-12-29 Thread angelochen
Hi, tried tynamo's tapestry-security just a few hours, it's really a very handy framework. got a question, T5's annotation @Secure can be placed in a Index page of a package that makes all the pages @Secure, can @RequiresAuthentication do something similar? thanks, Angelo -- View this message in

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
hi, This works, thanks, however, it seems I can't catch the exception: @OnEvent(EventConstants.SUCCESS) Class succcess() { AuthenticationToken authenticationToken = new UsernamePasswordToken(email, password, false); try { SecurityUtils.getSubject().login(authentic

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
hi, thanks, that works. now I use my own login page, what needed to be set in that log in page? currently I use a sessionState data to flag as logged in, with this tapestry-security, how to change? thanks. angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-a-si

Re: T5.3.1 mongodb?

2011-12-29 Thread angelochen
Hi Christian, The two mappers you pointed out, morphia seems more Hibernate like, what's the reason you switch to Jacson? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p5107779.html Sent from the Tapestry - User mailing list archiv

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
Hi, I follow the guide and added this to AppModule: public static void contributeWebSecurityManager(Configuration configuration) { ExtendedPropertiesRealm realm = new ExtendedPropertiesRealm("classpath:shiro-users.properties"); configuration.add(realm); }

Re: T5.3.1 mongodb?

2011-12-29 Thread angelochen
Hi, Native one will be nice, is that available somewhere for me to try it now? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p5107517.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T5.3.1 mongodb?

2011-12-28 Thread angelochen
Hi, hibernate and t5 really goes very well, now got a need to use mongodb, seems no mongodb native support for t5, found one in Spring: SPRING DATA - MONGODB, anybody have tried this? thanks. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p

Re: T5.3.1 a simple security

2011-12-28 Thread angelochen
hi, right, that's what I was looking for. however, lprimak pointed me to that tynamo's security package, think might be time now to look at a more complete security package for future projects, applying that to a current, small project might be a good practice. Thanks, Angelo -- View this messag

Re: T5.3.1 a simple security

2011-12-28 Thread angelochen
ok, i put it in the pom, it got around 800k in size, looks like i have to read that doc, that's quite many. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-a-simple-security-tp5106576p5106613.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

T5.3.1 a simple security

2011-12-28 Thread angelochen
Hi, I know there are many security solutions, what I'm looking is a very simple one: my app has a few pages all except login requires user signed, for that I checked a class by ApplicationStateManager. I'd like to redirect to login page if not sign in. hints? Thanks, Angelo -- View this messag

Re: T5.3 trigger a Cancel event in Form

2011-12-27 Thread angelochen
right, that's the one, I think the event should be EventConstants.CANCEL. Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-trigger-a-Cancel-event-in-Form-tp5102632p5103197.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: T5.3.1: replacing css for t:errors

2011-12-27 Thread angelochen
it is this one: HTML>BODY DIV.t-error LI { margin-left: 20px; } but putting it in tml file does not work, put it in an external css file works. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-replacing-css-for-t-errors-tp5102590p5103128.html Sent from the Tapestr

Re: T5.3 trigger a Cancel event in Form

2011-12-27 Thread angelochen
Hi Paulo, Thanks for the code, I think that works in other versions as well, I noticed that 5.3 has this Cancel event and I'd like to know how different it is. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-trigger-a-Cancel-event-in-Form-tp5102632p5102931.htm

T5.3.1: replacing css for t:errors

2011-12-26 Thread angelochen
Hi, I'd like to replace some css elements for component errors, but seems not working no matter how I tried, following is the code for that, the t-error li defined will not be used by browser, it's already the one in default.css take over, any idea why? -- View this message in context: http://t

T5 progress bar in a grid

2011-12-26 Thread angelochen
Hi, would like to have some ideas about how to implement following: I have a t:grid, every row has a link, when click, it will do a process which might take a while, once done, it will either disable the link or re-display the link depending on the result. I'd like that, when clicked, the link is

Re: https and @Secure

2011-12-23 Thread angelochen
can't find anything else, but it still force to be https -- View this message in context: http://tapestry.1045711.n5.nabble.com/https-and-Secure-tp5098520p5098545.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

https and @Secure

2011-12-23 Thread angelochen
Hi, I annotated a class with @Secure, pagelink renders it with https prefix, that's right, now I removed the annotation, I still get https prefix, I have searched the entire project for @Secure, there is none at all, but I'm still getting https, quite strange, is there any other place I have to lo

Re: Alerts

2011-12-23 Thread angelochen
right, that works, is there a way to remove the line 'dismiss all'? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Alerts-tp5096663p5098371.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Bean Model and related field

2011-12-23 Thread angelochen
Hi, I have an entity named 'detail', if I use this: model = beanModelSource.createDisplayModel(Detail.class, _messages); this will not include the item field, how to add this item field to the model? or just a field of item? thanks, angelo @Entity @Table(name = "detail") public class Detai

Re: Alerts

2011-12-23 Thread angelochen
Hi, thanks for the links, I copied and paste those sample codes into a t5 project, it works, but why it does no go away, i have to click 'dismiss all' to get those removed. any? angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/Alerts-tp5096663p5096756.html Sent from

Alerts

2011-12-23 Thread angelochen
Hi, can anybody show me a simple code that uses Alerts? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/Alerts-tp5096663p5096663.html Sent from the Tapestry - User mailing list archive at Nabble.com.

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

T5.3 Application Folder ?

2011-12-16 Thread angelochen
One of new features in 5.3 is: Application Folder Tapestry can now be configured to execute inside a folder, which can be useful when running Tapestry inside a web application that contains other servlets or filters, as a way to prevent conflicts. don't really understand, some explanations ? than

T5.3 : Kaptcha

2011-12-14 Thread angelochen
got some questions regarding kaptcha: 1. since validation is off, but it shows a red 'X' in addition to error "Enter the text displayed in the image.", i'd prefer to have no red 'X'. 2. t:height and t:width has no effort, height and width same, how to resize the image? Thanks, Angelo -- View

Re: T5.3: form/submit stop working (solved)

2011-12-11 Thread angelochen
it's related to this issue: https://issues.apache.org/jira/browse/TAP5-1765 -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-form-submit-stop-working-tp5060324p5065763.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5.3: form/submit stop working (solved)

2011-12-11 Thread angelochen
it's related to this issue: https://issues.apache.org/jira/browse/TAP5-1765 -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-form-submit-stop-working-tp5060324p5065764.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5.3 rc3 upload exception

2011-12-11 Thread angelochen
that fixed the problem, thanks. I tried 5.3.1-rc1, it does not have this problem, but I'd rather stay in 5.3 until 5.3.1 is released. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc3-upload-exception-tp4989904p5065603.html Sent from the Tapestry - User mailing lis

Re: T5.3 rc3 upload exception

2011-12-10 Thread angelochen
I file a jira regarding this, a small project was provided as well: https://issues.apache.org/jira/browse/TAP5-1786 the issue seems more serious than uploading, if somebody uploaded a file to trigger a FileUploadException, the entire site become read only, as all the forms with or without upload

Re: T5.3 rc3 upload exception (released version)

2011-12-10 Thread angelochen
Hi, got the exact problem when upgrading to 5.3 the released version, any work around on this? thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-rc3-upload-exception-tp4989904p5065273.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: uploading of files gmail style (solved)

2011-12-10 Thread angelochen
maxfiles of ajaxupload can do that, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/uploading-of-files-gmail-style-tp5064401p5064536.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-10 Thread angelochen
Sorry, did not try. this is exactly what i need, thanks. is there a way to have some fields for every file uploaded (say a description, a checkbox,etc)? Taha Hafeez wrote > > Did you try maxFiles parameter of AjaxUpload ? > > > -- View this message in context: http://tapestry.1045711.n5.na

uploading of files gmail style

2011-12-10 Thread angelochen
Hi, gmail accepts multiple file uploads(attachment), is there a way to implement something like with T5? any suggestions, hints? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/uploading-of-files-gmail-style-tp5064401p5064401.html Sent from the Tapestry - U

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to allow multiple file uploads? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5063748.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
right, submit works, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5062123.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5.3: form/submit stop working

2011-12-09 Thread angelochen
have to roll back to t5.2.6 release, major difference between these two versions is servlet 2.4 and 2.5, will that cause the problem? a related question is, is tomcat 6.0.20 enough for servlet 2.5 as it's required by T5.3? thanks. -- View this message in context: http://tapestry.1045711.n5.nabble

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
here is my code/tml: < t:form t:id="myForm" > < input t:type="tawus/ajaxupload" t:id="uploads" type="file" / > < /t:form > @Persist @Property private List uploads; @OnEvent (value = EventConstants.VALIDATE, component = "myForm") void validateU

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
t; > On Fri, Dec 9, 2011 at 2:01 PM, angelochen > <angelochen960@.com>wrote: > >> i added that to pom.xml but get this: >> >> Downloading: >> >> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
i added that to pom.xml but get this: Downloading: https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml Downloading: https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-a

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
gt; upload artifact in your local repo. > > Cheers, > Dragan Sahpaski > > > > On Fri, Dec 9, 2011 at 9:17 AM, angelochen > <angelochen960@.com>wrote: > >> how to use maven to compile this component? for T5.3. thanks. >> >> -- >> View this

Re: Returning an instance of a page

2011-12-09 Thread angelochen
how about: return "UserDetailPage" -- View this message in context: http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
ok, i did that, it pulls down a lot of things, now stop at: Test method test_if_setup_render_sets_active_to_first_value_if_not_specified(com.googlecode.tawus.addons.components.TabPanelTest) PASSED Test method test_if_setup_render_throws_exception_if_no_tabs_are_specified(com.googlecode.tawus.addo

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in tml file, you should use < a t:type="pagelink" page="..." >my link< /> -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061123.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in your tml you should use to generate links. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061119.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to use maven to compile this component? for T5.3. thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-08 Thread angelochen
if you put the locale in url: http://sample.com/zh then all the links in the page has 'zh' as part of the url? example: http://sample.com/zh/page2 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5060961.htm

Re: pagecatalog still visible in production mode

2011-12-08 Thread angelochen
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html > > On Thu, Dec 8, 2011 at 1:24 AM, angelochen <angelochen960@.

T5.3: form/submit stop working

2011-12-08 Thread angelochen
Hi, just upgraded an app to T5.3, after a few hours of running it, every form/submit in all the pages triggers following error, looks like due to a file uploading problem, I use tapestry-upload, any hints on the problem? Thanks, [ERROR] RequestExceptionHandler Unexpected runtime exception: Unable

pagecatalog still visible in production mode

2011-12-08 Thread angelochen
hi, setting production mode to true in 5.3, servicestatus not show details, but pagecatalog still shows everything. what's the easy way to turn this off? Thanks, angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/pagecatalog-still-visible-in-production-mode-tp5058173p50

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi, tried that and duplicated the issue, this is the same issue as in 5.2.6, that's the reason I use Robert's AssetProtectionDispatcher, looks like 5.3 and 5.2.6 handle this same way, have tried your code and it works. hope Robert will have his AssetProtectionDispatcher ready for 5.3 as well. Tha

Re: T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi Robert, Thanks for the confirmation, it has been so useful in securing my apps, would like to try that again when 5.3 is available. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-do-we-still-need-AssetProtectionDispatcher-tp5055048p5055819.html Sent from

T5.3: do we still need AssetProtectionDispatcher?

2011-12-07 Thread angelochen
Hi, Have been using Robert's AssetProtectionDispatcher to protect assets in the versions prior to 5.3, do we still need that for 5.3? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-do-we-still-need-AssetProtectionDispatcher-tp5055048p5055048.html Sen

Re: t5.3 upgrade

2011-12-06 Thread angelochen
that's what I do now, but seems not working, the code was quoted above. Thiago H de Paula Figueiredo wrote > > On Tue, 06 Dec 2011 04:18:55 -0200, angelochen > <angelochen960@.com> wrote: > >> AliasContribution is gone from 5.3, so i change baseURLservice to &g

t5.3 upgrade

2011-12-05 Thread angelochen
AliasContribution is gone from 5.3, so i change baseURLservice to following, seems not working, not got called, Am I missing something here? THanks. @Contribute(ServiceOverride.class) public static void contributeAlias(MappedConfiguration configuration, @Value("${domainname}") final String

Re: rewriting incoming url with locale as part of url

2011-12-05 Thread angelochen
found a way, following is a simplified one, this will display pages in Chinese locale, but got a new problem, all the links generated in the site does not have a locale as part of url, that will go back to default locale if click: @Inject private ThreadLocale locale; public PageRende

rewriting incoming url with locale as part of url

2011-12-05 Thread angelochen
Hi, I use PageRenderLinkTransformer to rewrite a incoming link, if incoming link has no locale as part of url, it works. examples: http://localhost:8080/1000/list I have to rewrite it to /item/list/1000 http://localhost:8080/zh/1000/list I have to rewrite it to /zh/item/list/1000 this does not

Re: a trouble problem

2011-12-04 Thread angelochen
try this: JAVA_OPTS='-Xms256m -Xmx1024m' -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-trouble-problem-tp5047877p5047892.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsu

Re: T5.3 upgrade exception problem

2011-12-04 Thread angelochen
this works: configuration.add(SymbolConstants.UNKNOWN_COMPONENT_ID_CHECK_ENABLED, "false"); -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-upgrade-exception-problem-tp5047703p5047842.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

T5.3 upgrade exception problem

2011-12-04 Thread angelochen
Hi, notice this when trying to upgrade, say your have this in the page/component: onActionFromValidate then you need to have an action link in the tml: validate if you don't have an action link, then you got an exception: ...references component id 'validate' which does not exist. is there

Re: urlrewriter and T5.3

2011-12-04 Thread angelochen
Thanks Thiago, here is the JIRA: https://issues.apache.org/jira/browse/TAP5-1767 Thiago H de Paula Figueiredo wrote > > On Sat, 03 Dec 2011 10:57:07 -0200, angelochen > > > File a JIRA for that. ;) I'll do that when I have time. > > -- View this message in

Re: urlrewriter and T5.3

2011-12-04 Thread angelochen
I did, but not able to make it work:( Kalle Korhonen-2 wrote > > Since URLrewriter is a separate service, couldn't you just lift the > code from 5.2 and put it in your application so you can go on with > your business? Just asking - I don't know if there were some drastic > internal changes that

Re: URL Rewrite

2011-12-04 Thread angelochen
Hi Thiago, Your API has been working well up to this day, for the sake of upgrading to 5.3, now I need to convert it to LinkTransformer, now I can't find a way to do the part for outgoing rewrite, can you point me to some directions? THanks, Angelo Thiago H de Paula Figueiredo wrote > > > We

Re: EventContext (Solved)

2011-12-03 Thread angelochen
when you have a page: /items/itemslist this seems not working: return new PageRenderRequestParameters(ItemsList.class.getSimpleName() ... but this works: return new PageRenderRequestParameters("items/itemslist", ... -- View this message in context: http://tapestry.1045711.n5.nabble.com/EventC

Re: rewriting incoming linkes in the pages

2011-12-03 Thread angelochen
Seems to me DelegatingRequest and RequestFilter is for redirecting links, what I need is rewriting the links during rendering, this can be done before using urlrewrite service like this: public Request process(Request request, URLRewriteContext context) { if (context.isIncoming()) {

Re: SimpleRequestWrapper and LinkTransformer (Solved)

2011-12-03 Thread angelochen
this works, thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/SimpleRequestWrapper-and-LinkTransformer-tp5043890p5045517.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To un

rewriting incoming linkes in the pages

2011-12-03 Thread angelochen
Hi, I have a page called: items/list, normal way of showing it is, localhost:8080/items/list/0001. thru the LinkTransformer, the incoming URL can be localhost:8080/0001/items, works. now all the links shown in the pages are still /items/list/0001, I'd like to rewrite all those links to /0001/items

Re: EventContext

2011-12-03 Thread angelochen
I noticed code below, actually cause a http 302, that's actually a redirect, not the thing I was expecting. angelochen wrote > > works, thanks. a related question, I was rewriting the incoming url: > > /3/list > > it will be sent to /Mylist/3 > > it work

Re: urlrewriter and T5.3

2011-12-03 Thread angelochen
got quite a big application and would like to upgrade to 5.3. struggling whole day to convert my rewriting rules from URLrewriter to LinkTransformer, seems not getting expected behavior, is there a way to have urlrewriter in as an extra package for 5.3? this will make upgrading easier. Thanks, A

Re: EventContext

2011-12-03 Thread angelochen
works, thanks. a related question, I was rewriting the incoming url: /3/list it will be sent to /Mylist/3 it works, but the url in the browser got changed to /Mylist/3 as well which I don't want, I want the url to remain as /3/list, the old URLRewrite was working as expected, her

EventContext

2011-12-03 Thread angelochen
Hi, this works: new PageRenderRequestParameters(Sample.class.getSimpleName(), new EmptyEventContext(), false); but if I want to pass some context here, say '/1234/xyzc', so how to construct the eventContext? Thanks, Angelo -- View this message in context: http://tapestry.

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
"after" not accepte, btw, i'm still using 5.2.6 Martin Strand-4 wrote > > > public void contributeRequestHandler(OrderedConfiguration > configuration) > { >configuration.add("basicPathRequestFilter", new > BasicPathRequestFilter(...), > after("StoreIntoGlobals").before("EndOfRequest").build

Re: SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
Thanks, can you give more details on this part? mine does not work: public void contributeRequestHandler(OrderedConfiguration configuration) { configuration.add("basicPathRequestFilter", new basicPathRequestFilter(pathServices)); } Martin Strand-4 wrote > > > public void contribute

SimpleRequestWrapper and LinkTransformer

2011-12-02 Thread angelochen
Hi, I have following implementation in T5.2's URLrewrite: some entries in a property file: /newpage/123=/view/231 /newpage2/123=/view_more/xyz/abcd then in URLRewrite I can simply do this: public Request process(Request request, URLRewriteContext urlRewriteContext) { String path = req

urlrewriter and T5.3

2011-12-02 Thread angelochen
Hi, My code uses urlrewriter heavily, however, once it was done and tested i totally forgot about this interface, a lot of effort was spent in the testing of those rewriting rules. it was gone from T5.3, is there an easier way to put something like that back? or i have to rewrite everything using

Re: onValidate in T5.2.6

2011-12-02 Thread angelochen
lidateForm() event. > > Steve. > > > On 2 December 2011 13:40, angelochen <angelochen960@.com> wrote: >> Hi, >> >> So actually onValidate behave differently in 5.2.6 and 5.3? >> >> >> Steve Eynon wrote >>> >>> That woul

Re: onValidate in T5.2.6

2011-12-01 Thread angelochen
ateFromID() > > And that works everywhere, both in T5.2.6 and in T5.3. > > Steve. > > > > On 2 December 2011 13:07, angelochen <angelochen960@.com> wrote: >> I have a lot of onValidateForm, and also onValidateFormFromID, can not >> remember why, seems

Re: onValidate in T5.2.6

2011-12-01 Thread angelochen
Martin Strand > <do.not.eat.yellow.snow@> wrote: >> Yes, they work the same. The new "validate" event is fired just before >> the >> deprecated "validateForm" and is meant to replace the old event. >> Having both events in 5.2 is simply a way to r

Re: onValidate in T5.2.6

2011-12-01 Thread angelochen
Thanks, does it work the same? what my approach will be, replace all 'onValidateForm' with 'onValidate' first in 5.2.6, and later upgrade to 5.3. Martin Strand-4 wrote > > On Fri, 02 Dec 2011 00:21:09 +0100, angelochen <angelochen960@.com> > wrote: > >

onValidate in T5.2.6

2011-12-01 Thread angelochen
hi, to uprade to 5.3, we need to replace all onValidateForm to onValidate, but does onValidate works in 5.2.6? Thanks, -- View this message in context: http://tapestry.1045711.n5.nabble.com/onValidate-in-T5-2-6-tp5040192p5040192.html Sent from the Tapestry - User mailing list archive at Nabble.c

upgrading to 5.3

2011-11-29 Thread angelochen
Hi, got quite a number of IncludeJavaScriptLibrary/IncludeStylesheet in the code, is there an easy way to find and replace in IntelliJ for this task? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/upgrading-to-5-3-tp5031567p5031567.html Sent from the Tape

Re: common file upload in a t5 page

2011-11-25 Thread angelochen
Thanks, this really works! @Inject private MultipartDecoder decoder; UploadedFile uf = decoder.getFileUpload("filename"); Taha Hafeez wrote > > Hi Angelo > > It may be because of tapestry-upload jar being in the classpath. > > I think you can still use tapestry support by injectin

Re: common file upload in a t5 page

2011-11-25 Thread angelochen
that form is dynamically generated, so it can not be bound to a Tapestry form. -- View this message in context: http://tapestry.1045711.n5.nabble.com/common-file-upload-in-a-t5-page-tp5022246p5022498.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

common file upload in a t5 page

2011-11-25 Thread angelochen
Hi, following is part of code used in a T5 page, I use it to accept a file upload from a regular html form, but after submit, the items parse from serverRequest is always zero, any idea? thanks. html: http://localhost:8080/reg_upload"; method="post" enctype="multipart/form-data" >

  1   2   >