Re: All the code format in tapestry offical site is broken

2017-09-20 Thread Rural Hunter
ork-around fix and it keeps breaking again. I'll see if I can fix it again this morning. On Sep 19, 2017 10:40 PM, "Rural Hunter" wrote: Hi, Such as http://tapestry.apache.org/tapestry-ioc-overview.html All the code format function

All the code format in tapestry offical site is broken

2017-09-19 Thread Rural Hunter
Hi, Such as http://tapestry.apache.org/tapestry-ioc-overview.html All the code format function is broken. Nobody noticed? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

5.4.2: How to completely disable Tapestry core stack?

2017-08-29 Thread Rural Hunter
Hi, I tried both overriding SymbolConstants.INCLUDE_CORE_STACK and contributing MarkupRenderer to set "ImportCoreStack" to null. But I still see some tapestry core staffs are loaded such as core.js, tapestry.css etc. Why? -

Re: Change bootstrap css load order

2017-08-29 Thread Rural Hunter
I suppose that would work but it's bad for ui design changes. I will have to manually do the process everytime when there is page UI change. 在 2017/8/29 14:45, Chris Poulsen 写道: Try using a JavaScriptStack instead of adding them directly with link tags. -

Change bootstrap css load order

2017-08-28 Thread Rural Hunter
Hi, I have some web pages which have bootstrap and some other css extentions depending on bootstrap. We use tag in TML for other css and reply on the bootstrap included in tapestry. The problem is I noticed Tapestry loads the internal bootstrap later than those css in tags which makes the p

Re: Standalone IOC and service overrides

2015-11-26 Thread Rural Hunter
I encountered the same problem with Tapestry IOC 5.4beta. registry.getService() doesn't respect service overrides. Is this a designed feature or a bug? 2013-12-13 2:20 GMT+08:00 Adriaan Joubert : > Hi, > > we love the IOC and are using it in our standalone Java applications as > well as our web a

Re: How to override a service by service id?

2015-11-25 Thread Rural Hunter
of coz I have read that doc and it doesn't answer my question. thanks any way. 2015-11-26 14:19 GMT+08:00 Sven Homburg : > Hi rural, > > have a look at this page > http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html > > hope it helps > > 2015-11-2

How to override a service by service id?

2015-11-25 Thread Rural Hunter
I have a service having several implementations with different service ids. I want to override one of them by its id. I looked around and seems only service decoration can do it. Is there any other better or recommended way to do this?

Re: [5.4] Where to put the require.config?

2015-03-24 Thread Rural Hunter
configuration.add("tool/util", new > JavaScriptModuleConfiguration(toolUtil)); > ... > } > > Cheers, > > Geoff > > On 24 Mar 2015, at 3:59 pm, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > > >

Re: [5.4] Where to put the require.config?

2015-03-23 Thread Rural Hunter
ist(); > } > > } > > In AppModule: > > public static void > contributeJavaScriptStackSource(MappedConfiguration JavaScriptStack> configuration) { > configuration.addInstance("ASupportStack", > ASupportStack.class); > } >

Re: [5.4] Where to put the require.config?

2015-03-22 Thread Rural Hunter
y.apache.org/javascript-rewrite.html has some info on the > infrastructure and the tapestry source code (setup of the core > stack/bootstrap modules etc. are good inspiration as well), > > > > > On Sat, Mar 21, 2015 at 4:19 PM, Rural Hunter > wrote: > > > How to wor

Re: [5.4] Where to put the require.config?

2015-03-21 Thread Rural Hunter
How to work out if I want to config the path of a third-party module if I use js stack? 2015-03-20 17:07 GMT+08:00 Chris Poulsen : > In a javascript stack? > > On Fri, Mar 20, 2015 at 4:05 AM, Rural Hunter > wrote: > > > Hi, > > > > I'm testing tapest

[5.4] Where to put the require.config?

2015-03-19 Thread Rural Hunter
Hi, I'm testing tapestry 5.4. I'm wondering where to put the requirejs.config code for my own modules and third-party modules? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: us

Re: Template encoding fix for 5.4 - TAP5-2219

2014-04-19 Thread Rural Hunter
support! 于 2014/4/17 11:50, Alex Kotchnev 写道: Any chance that a committer can apply the patch from https://issues.apache.org/jira/browse/TAP5-1778 somewhere in the upcoming 5.4 release. The issue has the patch, it addresses the problem at hand and in the worst case scenario has no effect on user

Re: Jetty or NetBeans issue?

2014-03-28 Thread Rural Hunter
I use netbeans+maven+tomcat+tapestry and there is no problem. 于 2014/3/28 16:51, John 写道: I run my dev server using a Maven goal under NetBeans. Quite often Jetty becomes completely unresponsive. Is this a problem of Jetty running in NetBeans, or something to do with Tapestry? John --- This

Re: Application properties

2014-01-07 Thread Rural Hunter
You can also put it in web.xml and access it in your pages/services via injected symbol. 于 2014/1/8 3:15, Matthias 写道: I thought that there is a tapestry way of doing this. But if not, I try to use the database. I actually never thought of that, so thanks for the tip. On 07.01.2014 19:24, Bo

Re: Loving the eclipse-tapestry5-plugin

2013-12-02 Thread Rural Hunter
Seems attractive. Is there a plugin for Netbeans? 于 2013/12/3 3:37, Lance Java 写道: I've just started using the new(ish) eclipse-tapestry5-plugin and I must say it's great!! The killer feature for me is the '+' button to create a .tml, .css, .js file from a java class in a maven friendly locatio

Re: [5.4] Is preview-able TML dead?

2013-10-31 Thread Rural Hunter
I see. Thanks for the nice trick! 于 2013/10/31 20:27, Thiago H de Paula Figueiredo 写道: On Wed, 30 Oct 2013 22:16:59 -0200, Rural Hunter wrote: Thiago, Good answer and I learnt from it. Is there a good way to handle the Layout thing? Yep! Here's an example and the code of the

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Rural Hunter
Thiago, Good answer and I learnt from it. Is there a good way to handle the Layout thing? 于 2013/10/30 19:03, Thiago H de Paula Figueiredo 写道: Short answer: no. It never was. That's what I still do and recommend for almost all cases. It is as dead as it was since the first Tapestry 5 alpha w

Re: [5.4] Is preview-able TML dead?

2013-10-30 Thread Rural Hunter
于 2013/10/30 15:04, Geoff Callender 写道: So, is it time to accept that preview-able TML is dead, drop the techniques above, and teach my web page designer to run the same development environment as me? That's what we have been doing for quite a long time. Cheers, Geoff

Re: [ANN] tapestry-offline

2013-09-10 Thread Rural Hunter
Nice. thanks! 于 2013/9/10 21:16, Lance Java 写道: I'm pleased to announce the first release of tapestry-offline. This library allows you to render your components and pages without a HTTPServletRequest. This can be useful in scheduled tasks, sending emails and other events that are not initiated b

Re: Tapestry template encoding and GAE

2013-07-19 Thread Rural Hunter
I agree. This patch definitely should be in the core. I also have to apply this patch myself in the similar way. 于 2013/7/20 13:38, Alex Kotchnev 写道: I thought I'd just drop a note on the list to report on how I dealt with this issue. At first, I started going down the path of building a modul

Re: Best way to implement continuously background jobs

2013-06-19 Thread Rural Hunter
yes, that's what I thought of. But I would like to see if there is any other option in Tapestry. 于 2013/6/19 14:53, Kalle Korhonen 写道: Create a thread? Kalle On Tue, Jun 18, 2013 at 11:42 PM, Rural Hunter wrote: Hi, Is there a "best practice" to implement continuously/long

Best way to implement continuously background jobs

2013-06-18 Thread Rural Hunter
Hi, Is there a "best practice" to implement continuously/long-run background jobs in Tapestry? I know there is PeriodicExecutor but my requirement is to have the job run continuously in the background. It should start when the application starts and end when the application ends. ---

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-07 Thread Rural Hunter
Yes. I'm already using freemarker. Just want to use less dependencies and get all things unified since we already have one(Tapestry) right? 于 2013/6/7 21:04, Thiago H de Paula Figueiredo 写道: On Fri, 07 Jun 2013 06:45:32 -0300, Rural Hunter wrote: cool, thanks! I am trying to implem

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-07 Thread Rural Hunter
cool, thanks! I am trying to implement a similar requirement as the OP which is to send html formatted mails in a background service of my webapp while there is no actual request/response involved. I'm trying to figure out how to use Tapestry template as the mail template in some way. 于 2013/6

Re: [t5] Is it possible to return a component's generated HTML ?

2013-06-07 Thread Rural Hunter
dose tapx-templating work in a tapestry webapp now? 于 2013/6/6 15:31, Lance Java 写道: Have you considered tapx-templating and a single webapp? https://github.com/hlship/tapx - To unsubscribe, e-mail: users-unsubscr...@tapest

Re: Submit form is very slow in IE

2013-05-09 Thread Rural Hunter
Try to upgrade your ie to latest versions. 于 2013/5/9 16:56, Haiming Zhang 写道: Hi, Thank you for your reply and suggestion. The suggestion is good but we need so many checkboxes and text fields, this page is after filtering. We have 10 more similar pages and we have a full time operator on th

Re: Tapestry performance

2013-05-06 Thread Rural Hunter
Here is a latest framework benchmark: http://www.techempower.com/benchmarks/#section=data-r4 How do you guys think about it? 于 2013/1/25 9:39, Howard Lewis Ship 写道: Performance can be black magic. On the one hand, I've heard some specific things about Node.js performance that are very positive

Re: Jetbrains Idea editor doesn't like tag

2013-04-16 Thread Rural Hunter
I'm seeing similar warnings in Netbeans editor. It just doesn't like any tapestry tags. 于 2013/4/17 4:31, Jon Williams 写道: Hi, I'm using Tapestry 5.3.6 & Jetbrains Idea 12 Just wondering if any else has this same problem/oddity in their Idea development environment. Here's the template for my

Re: [Bug] [T5.3.6] @Startup service contributions executed more than once

2013-04-14 Thread Rural Hunter
OK, I found the cause. There are 3 hosts defined in tomcat's server.xml which caused tapestry application was started one time for each host. So this may be a tomcat problem. How to prevent the jobs being started 3 times in this situation? 于 2013/4/14 14:54, Rural Hunter 写道: It's no

Re: [Bug] [T5.3.6] @Startup service contributions executed more than once

2013-04-13 Thread Rural Hunter
It's not only the @Startup methods, I found even my bind() methods executed 3 times. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: [Bug] [T5.3.6] @Startup service contributions executed more than once

2013-04-13 Thread Rural Hunter
Seems I met the same problem though I don't have any customized services implemeting/extending Runnable. @Startup public static void scheduleJobs(PeriodicExecutor executor, final MailService mailService,final IOSPushService pushService, final Logger logger) { executor.addJob(new IntervalSchedu

Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-08 Thread Rural Hunter
or.version} ${war-deps.scope} flowlogix-maven2 http://flowlogix-m2.googlecode.com/svn/trunk On Apr 1, 2013, at 8:46 PM, Rural Hunter wrote: Hi, The URL is not available any more. Can somebody send me Luck's

Re: AssetsModule.ResourceMinimizer Exception yui compressor

2013-04-01 Thread Rural Hunter
Hi, The URL is not available any more. Can somebody send me Luck's package kindly? Thanks in advance. 于 2012/4/23 19:37, Luke Wilson 写道: On 23 Apr 2012, at 11:25, netdawg wrote: Thanks, Luke. Yes, please... I've uploaded the repackaged version here: http://viscri.co.uk/labs/tapestry/yuic

Re: tapestry5-highcharts available

2013-02-26 Thread Rural Hunter
Hi, The page http://tapestry5-jquery.com/highcharts is not there any more. Where did it go? 于 2012/3/30 17:40, Emmanuel DEMEY 写道: Hi everybody !! The WebPlatform team, from Atos Company, is very pleased to announce a new Tapestry Component library : Tapestry5-HighCharts. This contribution m

Re: tapestry-stitch goes live

2013-02-26 Thread Rural Hunter
Great work! I have seen a few of them in this mailing list and they are awesome! Thanks! 于 2013/2/26 21:16, Lance Java 写道: Hi All, I've just published my tapestry-stitch-demo to cloudbees. Tapestry Stitch is a collection of example components and concepts in Tapestry 5. Most of the inspiration

Re: tapestry-test question

2013-02-19 Thread Rural Hunter
iki.eclipse.org/Jetty/Howto/Configure_JNDI_Datasource regards Taha On Feb 19, 2013, at 9:43 PM, Rural Hunter wrote: Hi, Does the |SeleniumTestCase support to test jsp? I just created a testng suite and when I tried to test a jsp, the test class just got the jsp source not the generated/com

tapestry-test question

2013-02-19 Thread Rural Hunter
Hi, Does the |SeleniumTestCase support to test jsp? I just created a testng suite and when I tried to test a jsp, the test class just got the jsp source not the generated/compiled html file. I used tomcat6 as the test servlet container because we use tomcat in both dev/prod environment and je

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Rural Hunter
cann't you use outputraw? 于 2013/2/6 13:30, Kevin White 写道: I have a chunk of UTF-8 text that came from a database table. It has embedded CRLFs in it, so that if you grab the text out of the table, it breaks up into long lines of text with blank lines in between them. The intention is that a p

Re: [ANN] JumpStart 6.5.0 is out

2013-01-08 Thread Rural Hunter
Congratulation! Great work as always! 于 2013/1/8 20:42, Geoff Callender 写道: Hi all, JumpStart 6.5.0 is out. More examples have been added since the last announcement: * Bootstrap Styling * AJAX Loading Spinner * Grid Data Sources (server-side paging) * If, Not,

doc about return value of render phase methods

2013-01-07 Thread Rural Hunter
Hi, I'm reading the doc: http://tapestry.apache.org/component-rendering.html There are mainly 3 places metioning the return value: 1. Your methods may be void, or return a boolean value. Returning a value can force phases to be skipped, or even be re-visited. In the diagram, solid lines show

Re: [Bug] t:zone update loses background style

2013-01-05 Thread Rural Hunter
I created jira issue for this: https://issues.apache.org/jira/browse/TAP5-2043 于 2012/11/1 5:57, Bryan Lewis 写道: Which reminds me... I sent a closely related question to the list two weeks ago (which is why your question caught my eye) but for some reason it never made it. I'll repeat it here:

Re: AJAX Throbber

2012-12-30 Thread Rural Hunter
Nice! 于 2012/12/30 22:12, Geoff Callender 写道: In case it helps, here's a working example. http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/loadingspinner Cheers, Geoff On 27/12/2012, at 8:40 PM, mateen wrote: Hi, I looking to implement a AJAX Throbber for all ajax c

Re: [Bug] t:zone update loses background style

2012-12-20 Thread Rural Hunter
I've seen an simlar case. We used a js tab lib which opens new page in tab in iframe way. if I switch to other tab before the tab completes loading, the zone manager is not initialized because of this bug. Strangely I didn't see any error in firebug. I have to do manual trace and get the same s

Re: Help me to understand the source of Grid

2012-12-14 Thread Rural Hunter
于 2012/12/14 15:58, antalk 写道: The onAction event will trigger a page-reload, as the currentpage parameter is passed from the Grid to the Pager: @Component(parameters = { "source=dataSource", "rowsPerPage=rowsPerPage", "currentPage=currentPage", "zone=zone" }) private GridPager pager

Re: How to build both .tml, .java page using ant build

2012-12-13 Thread Rural Hunter
Not familiar with ant but in maven I have to put the tml files in src/main/resources instead of src/main/java. I guess ant behaves similarily. 于 2012/12/14 14:13, karthi 写道: Hi, I have developed an application in tapestry & it normally runs in tomcat7. Also when export manually as war file & d

Help me to understand the source of Grid

2012-12-13 Thread Rural Hunter
Hello, I want to customize the grid and the pager. I'm trying to read the source of Grid and GridPager now. I just met one thing I can not understand. The links on pager pass the selected page number into GridPager component by triggering the onAction of GridPager. But in the onAction of the

TAP5-1741 when will it get fixed?

2012-11-26 Thread Rural Hunter
Hi, This is a very severe bug for non-English/UTF8 environment. It seems there is already a patch for it. any way to push it to be fixed? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands,

Re: Howto render a block and put it into a JSON reply?

2012-11-09 Thread Rural Hunter
hmm...This is an event handler for ajax action. I access it via ajax('/somepage:event') at client side. I don't see any problem for Tapestry to handle the json return value. And it works if I skip the getMarkup for the block. The client receives the json string without problem. 于 2012/11/10 1

Re: Howto render a block and put it into a JSON reply?

2012-11-09 Thread Rural Hunter
Hi Lance, I also tried this. But there is some problem. I had to handle the json in this getMarkup method. Otherwise the json returned in my event handler is not rendered. Object onEventXXX() { JSONObject result=new JSONObject(); result.put("html",getMarkup(myblock) ); return result; }

Re: Howto render a block and put it into a JSON reply?

2012-11-09 Thread Rural Hunter
Thanks. I tried this and it works. One limitation is that, all the content in the block must be enclosed in a single html element. If the block is like this: ... The result only renders one tr element. I have to enclose the loop in a div to get all the rows rendered. Don't know why though.

Re: is there a doc describing Tapestry built-in services?

2012-11-01 Thread Rural Hunter
于 2012/11/2 1:31, Thiago H de Paula Figueiredo 写道: On Thu, 01 Nov 2012 13:38:05 -0200, Rural Hunter wrote: yes, thanks guys. I know I can get it from service-status or source code. I have already had a rough read of both. But if there is a doc to briefly describe all those services and how

Re: is there a doc describing Tapestry built-in services?

2012-11-01 Thread Rural Hunter
yes, thanks guys. I know I can get it from service-status or source code. I have already had a rough read of both. But if there is a doc to briefly describe all those services and how to utilize them, it will be very helpful and save a lot of time at least for beginners. Regarding the current I

is there a doc describing Tapestry built-in services?

2012-11-01 Thread Rural Hunter
and what they do and how to extend them. I think it would be very helpful but cannot find such a list. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.o

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
and checks the PersistenceContext using @PersistenceContext on the same method to get the context for which the method has to be advised. On Oct 22, 2012, at 8:22 PM, Rural Hunter wrote: hmm...I think it won't work in any way trying to get the annotation from the method where plastic alre

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
2, at 3:11 PM, Rural Hunter wrote: 于 2012/10/22 17:02, Taha Siddiqi 写道: Did you try invocation.getInstance().getAnnotation() ? What is that for? I read the API and seems it's not what I needed. My annotation is on methods being advised, not on the class instance. I also tried invocation

Re: Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
s to audit methods call on my DAO services, including user information from session, method names(or operation type: update/delete/insert etc.) and some parameters(to get record id etc.), which I planed to implement by service advising and annotation. On Oct 22, 2012, at 1:15 PM, Rural Hunter w

Can not get annotation instance on advised methods

2012-10-22 Thread Rural Hunter
Hi, I have an annotation: @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Audit { String operate() default ""; String desc() default ""; int type(); int idParamIndex() default 0; } I put on some methods of my DAO services and advised

hyperlink color problem in javadoc

2012-10-21 Thread Rural Hunter
Hi, Seems the color of hyperlinks is same as background at some places in javadoc. For example, http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/plastic/MethodInvocation.html In the part: "*Methods inherited from interface org.apache.tapestry5.plastic.MethodInvocationResult <

Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Hi Lance, Thank you very much! 于 2012/10/17 23:48, Lance Java 写道: Creating a URL is probably the easiest thing to do. Note that you can @Inject BaseURLSource to get the URL prefix. Another option is to create a new response type (eg InternalRedirect). You would then contribute a ComponentEvent

Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The question is the default page of myapp when accessed only by "http://myhost/myapp";. Tapestry will show the Tapestry page Index but I want the original page login.jsp being shown. 于 2012/10/17 22:54, Lance Java 写道: Tapestry by d

Re: Redirect to an internal url

2012-10-17 Thread Rural Hunter
Yes, I have already set the ignored paths to ignore all jsps. The question is the default page of myapp when accessed only by "http://myhost/myapp";. Tapestry will show the Tapestry page Index but I want the original page login.jsp is shown. 于 2012/10/17 22:54, Lance Java 写道: Tapestry by defa

Redirect to an internal url

2012-10-17 Thread Rural Hunter
Hi, I'm intergrating tapestry into an existing webapp. The original index page of the webapp is login.jsp. After tapestry is introduced, tapestry sets the index page to Tapestry page "Index". So I want to redirect to "login.jsp" in the onActivate() method of Tapestry page Index. Seems the onl

Re: Why such a simple defect can not be fixed?

2012-09-03 Thread Rural Hunter
use a great framework for free, you cannot expect others to solve your problems for you for free as well. Kind regards, Joachim P.S. patches should also include tests to prove that the fix works and to avoid regressions later on On 04-09-12 06:32, Rural Hunter wrote: Yes, I understand no o

Re: Why such a simple defect can not be fixed?

2012-09-03 Thread Rural Hunter
(1), it says "Please note that a patch is always preferred over an archive of properties files." The comment is the jira thread is even more difficult to apply than a archive. Regards Sigbjørn Tvedt 1: http://tapestry.apache.org/community.html#Community-ContributingtranslationsforTapes

Why such a simple defect can not be fixed?

2012-09-03 Thread Rural Hunter
https://issues.apache.org/jira/browse/TAP5-1865 I raised the defect several months ago and there have been several Tapestry releases since then. I don't see any action in the ticket so I suppose it's not fixed. The solution is very simple and has already been put in the ticket. I'm wondering w

Re: Strange problem with Taha's AjaxUpload

2012-09-01 Thread Rural Hunter
nputstream. 于 2012/9/1 23:45, Taha Siddiqi 写道: I think that should work too but you have to ensure that your filter is before the tapestry-jquery filter by using before:AjaxUploadFilter for ordering. On Sep 1, 2012, at 8:56 PM, Rural Hunter wrote: How would that work? will it disable both fi

Re: Strange problem with Taha's AjaxUpload

2012-09-01 Thread Rural Hunter
jaxUploadFilter", new EmptyHttpServletRequestImpl()); } regards Taha On Sep 1, 2012, at 2:02 PM, Rural Hunter wrote: Hi Taha, I used your comp first. Then other memeber in the team introduced tapestry-jquery later. besides, I do more like the appearance of your comp than he one in tape

Re: Strange problem with Taha's AjaxUpload

2012-09-01 Thread Rural Hunter
s own Ajaxupload component Sent from my iPhone On 01-Sep-2012, at 11:15 AM, Rural Hunter wrote: Yes, thanks. I found that tapestry-jquery in my classpath and it intercept the post request first sometimes. I'm wondering if there is any specific order the request flows among several request fi

Re: Strange problem with Taha's AjaxUpload

2012-08-31 Thread Rural Hunter
ll need to make sure that it did not read out the stream first. - P On Fri, Aug 31, 2012 at 3:02 AM, Rural Hunter wrote: I'm using Tapestry 5.3.3 and AjaxUpload comp blogged by Taha here: http://tawus.wordpress.com/**2011/06/25/ajax-upload-for-**tapestry/<http://tawus.wordpress.com/201

Strange problem with Taha's AjaxUpload

2012-08-31 Thread Rural Hunter
I'm using Tapestry 5.3.3 and AjaxUpload comp blogged by Taha here: http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ Everything works fine but there is a strange problem. Sometimes the file uploaded is alwasy empty(size 0). I checked AjaxFileUploadDecoderImpl.setupUploadedFile and

Re: Is there a way to have Tapestry generate well-formatted html?

2012-05-21 Thread Rural Hunter
Thanks guys! 于 2012/5/22 0:16, Chris Cureau 写道: For what its worth, Firebug and Chrome's debugging tools format the output for you. You can always use this and not mess with the whitespace compression at all... On Mon, May 21, 2012 at 10:58 AM, Rural Hunterwrote: It's very hard to view what

Is there a way to have Tapestry generate well-formatted html?

2012-05-21 Thread Rural Hunter
It's very hard to view what actually Tapestry generated at client side since the html source generated by Tapestry is almost in only one line. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comman

Re: Charset problem of component event handler parameter

2012-05-19 Thread Rural Hunter
15:01, Rural Hunter : anyone has any idea? ?? 2012/5/18 22:43, Rural Hunter : Very very strange. I tried to encode Chinese first in javascript then sent to the component event handler. Javascript: new Ajax.Request(spe

Re: Charset problem of component event handler parameter

2012-05-19 Thread Rural Hunter
anyone has any idea? ?? 2012/5/18 22:43, Rural Hunter : Very very strange. I tried to encode Chinese first in javascript then sent to the component event handler. Javascript: new Ajax.Request(spec.url, { method: '

Re: Charset problem of component event handler parameter

2012-05-18 Thread Rural Hunter
aracters but when I test this in a separate class: String str="%E6%B5%8B%E8%AF%95"; System.out.println(str); System.out.println(URLDecoder.decode(str, "UTF-8")); I got this: %E6%B5%8B%E8%AF%95 //good result How can this be explained? ?? 2012/5/18 9:56, Rural Hunte

Charset problem of component event handler parameter

2012-05-17 Thread Rural Hunter
Hi, I wrote a component which uses ajax request to trigger a component event: new Ajax.Request(spec.url, { method: 'post', parameters: {content: newContent} }); In the event handler: Object onContentChangeDetected(@RequestP

Re: Best place to put application/page parameters?

2012-04-24 Thread Rural Hunter
is determined by a JVM system property, its easy to control which configuration is used when the application starts up, whether inside your IDE or on a continuous integration server. On Tue, Apr 24, 2012 at 8:34 AM, Rural Hunter wrote: ok, thanks a lot. I don't care if it has to be in my own

Re: Best place to put application/page parameters?

2012-04-24 Thread Rural Hunter
ok, thanks a lot. I don't care if it has to be in my own properties file or not. I just want it easy to edit/chage. Now I work this way with your hint: 1. define the parameter as context-param in web.xml, eg. myParam 2. inject it in my page class: @Inject @Value("${myParam}") String myParam; Th

Re: Best place to put application/page parameters?

2012-04-24 Thread Rural Hunter
Sorry I thought this was a very basic question. Anyone? ?? 2012/4/23 17:33, Rural Hunter : Hi, We put parameters in context parameters or servlet parameters web.xml for normal java web application. But where is the best place to put application or page parameters in tapestry? is it a

Best place to put application/page parameters?

2012-04-23 Thread Rural Hunter
Hi, We put parameters in context parameters or servlet parameters web.xml for normal java web application. But where is the best place to put application or page parameters in tapestry? is it a good idea to put them in app.properties and get it by Message service? ---

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: How to customize the display text of DateField?

2012-03-28 Thread Rural Hunter
Well, I finally wrote a mixin to override those js functions and replace those text...but I hope the datefield itself to provide a language properties file in the future. I created a jira issue: https://issues.apache.org/jira/browse/TAP5-1886 ?? 2012/3/28 17:29, Rural Hunter : I see

Re: Form component's validate parameter cause excpetions when clients use zh-cn language

2012-03-28 Thread Rural Hunter
check this: http://tapestry.1045711.n5.nabble.com/A-strange-error-with-MaxLength-Validator-td5546700.html 于 2012/3/28 21:01, Fight Ice 写道: > When the client web browser use the zh_cn locale to load my login page, i get > a exception like this : > Render queue error in BeginRender[admin/Login:user

How to customize the display text of DateField?

2012-03-28 Thread Rural Hunter
I see these in the generated html source of my page: Tapestry.DateField.initLocalization({ "firstDay" : 6, "months" : [ "", "", "", "", "", "", "", "", "", "", "??", "??", "" ], "days" : "?

Re: Change default session timeout interval

2012-03-25 Thread Rural Hunter
why don't you just set it in web.xml? I don't think tapestry will violate it. 于 2012/3/26 9:51, harry 写道: Dear Tapestry community, I am wondering what's the best practice to change default session timeout interval. Specifically, I'd like to shorten it. The older discussions in the mailing li

Re: A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
at 6:33 PM, Rural Hunter wrote: Yes, I overriden the message with the default English one and it works. But...to translate the message into Chinese in a better way, the order of the 2 parameters has to be reversed. Is there anyway to handle this situation? 于 2012/3/8 18:39, Lance Java 写道: Try

Re: A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
les showing an error message and is trying to push a string where an integer should go. Somewhere in the validation error message, there is a %d where it should be a %s. On Thursday, 8 March 2012, Rural Hunter wrote: I just meet a strange error with MaxLength Validator with tapestry 5.3.1.

Re: A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
teger should go. Somewhere in the validation error message, there is a %d where it should be a %s. On Thursday, 8 March 2012, Rural Hunter wrote: I just meet a strange error with MaxLength Validator with tapestry 5.3.1. My test page is vary simple(copied from jump start): Page: aaa: t:valida

Re: A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
teger should go. Somewhere in the validation error message, there is a %d where it should be a %s. On Thursday, 8 March 2012, Rural Hunter wrote: I just meet a strange error with MaxLength Validator with tapestry 5.3.1. My test page is vary simple(copied from jump start): Page: a

Re: A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
re in the validation error message, there is a %d where it should be a %s. On Thursday, 8 March 2012, Rural Hunter wrote: I just meet a strange error with MaxLength Validator with tapestry 5.3.1. My test page is vary simple(copied from jump start): Page: aaa: t:validate="maxlength=5&quo

A strange error with MaxLength Validator

2012-03-08 Thread Rural Hunter
I just meet a strange error with MaxLength Validator with tapestry 5.3.1. My test page is vary simple(copied from jump start): Page: aaa: t:validate="maxlength=5"/> (required, maxLength=10, letters only) Then the page run with error: CreatingValidators1:firstname (class org.apache.

Re: Tapestry 5.3 binaries

2012-03-06 Thread Rural Hunter
It's a greate news! 于 2012/3/6 8:03, Howard Lewis Ship 写道: The next release of Tapestry will include a binary download. On Mon, Mar 5, 2012 at 7:14 AM, TechniciuM wrote: I could assemble binaries looking from here http://mvnrepository.com/ but it would be a lot convenient if someone of you ha

Is tapestry trying to narrow down its users?

2012-02-08 Thread Rural Hunter
I don't understand why Tapestry doesn't provide release binary any more. There are many users not using maven out there. Most of them of cause don't know they can find it in maven repository either since they don't understand maven. This very likely will narrow down Tapestry users...the less th

Re: [ANNOUNCE] Tapestry release 5.3.2

2012-02-07 Thread Rural Hunter
congratulations but I got 404: http://tapestry.apache.org/2011/12/21/announcing-tapestry-532.html 于 2012/2/7 15:54, Massimo Lusetti 写道: The Tapestry Team is very proud to announce the availability of Apache Tapestry 5.3.2. http://tapestry.apache.org/2011/12/21/announcing-tapestry-532.html Tap

a document defect

2012-01-17 Thread Rural Hunter
http://tapestry.apache.org/component-rendering.html Rendering Components Instead of returning true or false, a render phase method may return a component. The component may have been injected via the @Component

Re: What is your tapestry project setup like (build tool/ide)

2012-01-15 Thread Rural Hunter
I use netbeans and never used maven/gradle. I create normal netbean's web project and set up Tapestry things manually since Tapestry is quite simple to set up comparing with other frameworks. Actually there is almost no set up since I always need to create java/tml file in the right package/dir