Re: Global validation messages translation

2012-03-04 Thread Donyee
the default FormValid message is in the package org.apache.tapestry5.internal you can add same package in your resource file, add a new file ValidationMessage.properties this will override the default one. it works in my project! 2012/3/1 Markus Grell tapes...@military.de Greetings! I need

Re: [ANN] Tapestry Bootstrap Module

2011-11-01 Thread Donyee
Great Idea! 2011/10/30 Barry Books trs...@gmail.com I'm working on a couple of projects that will use Twitter Bootstrap http://twitter.github.com/bootstrap/ templates so I decided to create a Tapestry Module for this. The project is on GitHub https://github.com/trsvax/tapestry-bootstrap and

Re: [ANNOUNCE] Apache Tapestry preview 5.3-rc-1

2011-10-31 Thread Donyee
Both rc-1 and rc-2, I got this Invalid byte 1 of 1-byte UTF-8 sequence. but works fine with beta-26 is there any new changes?? 2011/11/1 Howard Lewis Ship hls...@gmail.com Uh, yes. It's been a trying afternoon. On Mon, Oct 31, 2011 at 3:26 PM, Muhammad Gelbana m.gelb...@gmail.com wrote:

Re: Tapestry5 Form submit Encoding (Chinese)!!

2010-09-10 Thread Donyee
T5, I don't use the UTF8 filter. and my tml page is GBK,eclipse project encoding is GBK, works fine! what is your page charset??? -- Yet Another Java EE Developer!

Can't get the prototype.js????

2010-01-30 Thread Donyee
Hi all,My app is using T5.1.0.5, and tomcat 6.0.18,jdk6,deployed as a war file. when app works fine some days, then it blocked when the brower request the prototype.js. I use the firebug to find that the blocked request is

Is webflow ready?

2009-07-16 Thread Donyee
I found there is a t5-webflow,is there any example or docs? -- Yet Another Java EE Developer!

Re: where can i find java api

2008-10-27 Thread Donyee
You can find T5 javadoc here http://tapestry.apache.org/tapestry5/apidocs/ 2008/10/27 Muralidhar Y [EMAIL PROTECTED] Hi all where can I find tapestry's java API ? I could not see that on site. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536.7486) India Main:

Re: [ANNOUNCE] Tapestry 5.0.15

2008-09-22 Thread Donyee
Great! 2008/9/22 Howard Lewis Ship [EMAIL PROTECTED] Tapestry 5.0.15 is now available for download or via Maven. We've squeezed a whole lot of last minute improvements and fixes into (what was supposed to be) the released candidate. Alas, we missed a couple so the release candidate will be

Re: About the ApplicationState??

2008-08-23 Thread Donyee
invoking constructor ee.softpro.data.Role(long, String, String, boolean, String, String, String) (at Role.java:20) (for service 'ApplicationStateManager'): No service implements the interface long. I dont know yet why! 2008/8/22 Donyee [EMAIL PROTECTED] I tried to implement

Re: T5: applicationStateObject strage behaviour

2008-08-23 Thread Donyee
The first error is because T5 try to init your appState with a default constructor,but doesn't match, so init got error! The second error is a wrong use of appState. Maybe you need a AppStateCreater, you can find here http://tapestry.apache.org/tapestry5/guide/appstate.html There is a example.

About the ApplicationState??

2008-08-21 Thread Donyee
I tried to implement a ApplicationStatePersistenceStrategy using Memcached. but in my page Start.java: @ApplicationState private AppState appState; @ApplicationState private SessionAppState session; @Inject private Logger log; void onActivate() { log.info(cache

Re: Tapestry5Chinaforum(中文论坛欢迎大家加入)and some words to Howard Lewis Ship

2008-08-20 Thread Donyee
Where is the link??? 2008/8/20 Angelo Chen [EMAIL PROTECTED] [EMAIL PROTECTED] (let's talk only about tapestry 5 in this forum, in English too) 孟凡振 wrote: Firstly,thank u for your suggestion!! 学习是一个过程,不管你现在多牛x,你也是从中国式的英语过度过来的吧,呵呵。况且,俺还不知道您的英语如何。

How to use FormInjector?

2008-08-14 Thread Donyee
any demos about the FormInjector? Some link will be great! I check the apache svn,but it seems not the FormInjector example. -- Yet Another Java EE Developer!

Re: [ANNOUNCE] Tapestry 5.0.14

2008-08-11 Thread Donyee
Great! 2008/8/11 Howard Lewis Ship [EMAIL PROTECTED] The latest release of Tapestry, Tapestry 5.0.14 , is now available. Tapestry 5.0.14 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.14 addresses a large number

Log error????

2008-07-14 Thread Donyee
I use the tapestry-spring, and org.apache.tapestry5.spring.TapestrySpringFilter, then my app get nothing log from tapestry, but the spring boot log and hibernate sql log. Is there any other config i miss? It seems my log4j file doesn't work! -- Yet Another Java EE Developer!

Re: T5 UTF encoding

2008-06-10 Thread Donyee
*1*.add this in your tml file. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; *2*.in the AppModule.java, add public static void contributeApplicationDefaults( MappedConfigurationString, String configuration) {

[T5-12snapshot] How to write a ajaxform?

2008-05-29 Thread Donyee
I use the form component,and the form code: JSONStreamResponse onSuccess(); The json is like {'url':'loginpage'}. how can i get this json data in my javascript method? Is there a form submit callback method? -- Yet Another Java EE Developer!

[T5] StreamResponse causes java.lang.IllegalStateException

2008-05-29 Thread Donyee
when i click to submit the form, i got java.lang.IllegalStateException. I search the web and found that wes because the wrong use of response.getOutputStream(); and response.getWriter(); Is this a bug? how to fix this? In my java code: StreamResponse onSuccess() { return new

Re: help in index page cache tapestry5.11

2008-05-22 Thread Donyee
Hi, i got some ideas. you can cache the index page as a static html page. then use the static html page to response to the client. you can extend tapestry to generate a static html page, just write the index to a real html file. then rewrite the client request, the apache httpd docs may help.

Re: T5 (5.0.11) - ready for production deployment

2008-03-27 Thread Donyee
I had developed a crud system using tapestry-5-0-5, it works fine! and i will upgrade to the latest version. 2008/3/27, Martin Grotzke [EMAIL PROTECTED]: Hi, we also have a production app running T5 http://www.smatch.com, very stable, up and running. Cheers, Martin On Wed, 2008-03-26

How about a PERSESSION_SCOPE?

2008-01-10 Thread Donyee
T5 now supports singleton and per-thread scope; in the webapps the per-session is also a good way! Any tips? -- Yet Another Java EE Developer!

Add a DOCTYPE?

2008-01-09 Thread Donyee
How to add a DOCTYPE in the tapestry tml page. I put !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; in the page. Error: java.lang.RuntimeException Namespace prefix for URI ' http://www.w3.org/XML/1998/namespace' is not defined. and in

Re: Add a DOCTYPE?

2008-01-09 Thread Donyee
I use T5.08-SNAPSHOT. my page: ?xml version=1.0 encoding=UTF-8? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head...

Re: Add a DOCTYPE?

2008-01-09 Thread Donyee
T5.07 works fine! T5.08-SANPSHOT turns wrong! 2008/1/10, Donyee [EMAIL PROTECTED]: I use T5.08-SNAPSHOT. my page: ?xml version=1.0 encoding=UTF-8? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; html xmlns:t=http://tapestry.apache.org/schema

How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Donyee
I want to create a new object per request, and my code is like: @Scope(IOCConstants.PERTHREAD_SCOPE) public Encoder buildEncoder() { System.out.println(new Encoder()...*); return new Encoder(); } when i request my page with IE and FireFox,

Re: How to create PERTHREAD_SCOPE object?

2008-01-03 Thread Donyee
PROTECTED]: On Jan 3, 2008 10:49 AM, Donyee [EMAIL PROTECTED] wrote: is there anything wrong with my code? You actually didn't show your code. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED

[T5] A Hibernate question?

2007-11-22 Thread Donyee
I use tapestry-hibernate in my apps, in one page: t:grid source=pageList row=page2 t:parameter name=pageIdcell t:actionLink id=pageDelete context=${page2.pageId}删除/t:actionLink t:pageLink page=sysadm/editpage context=${page2.pageId}更新/t:pageLink /t:parameter /t:grid in editpage.java void

Re: [T5.06] component action context does not support utf8!

2007-11-04 Thread Donyee
I got the answer from the sources, because the ComponentActionDispatcher.java decode the url with a default charset which doesn't support utf-8! I'm now trying to create a new dispatcher to solve this question. 2007/11/4, Filip S. Adamsen [EMAIL PROTECTED]: Hi Donyee, Have a look

[T5.06] component action context does not support utf8!

2007-11-01 Thread Donyee
I use the actionLink, and the context contains utf8 string, and the onUpdate(string str)... the str is ???, encoding wrong!

Re: T5 book: update

2007-10-31 Thread Donyee
Where is the book? Can someone give me a copy? or the download url ? 2007/11/1, Eko S.W. [EMAIL PROTECTED]: I am sorry, but How can we use DateField in 5.0.6? I am so late on 5.0.6 Thanks 2007/10/26, Ted Steen [EMAIL PROTECTED]: Very nice! Dont forget to update the part about the

Re: DateField format

2007-10-28 Thread Donyee
Try this: format=%Y%m%d, you will get mmdd also you can use :format=%Y-%m-%d, then you will get -mm-dd Do you need this? 2007/10/28, T. Papke [EMAIL PROTECTED]: Hi, i have tried the new Tapestry 5 DateField Component. If i setup a Dateformat for rendering, the component itself

Re: T5.06 The tapestry-hibernate problem? resoloved!

2007-10-26 Thread Donyee
in my appModule.java, i changed : public void contributeHibernateSessionSource( OrderedConfigurationString configuration) { configuration.add(my, org.ts.domain.bo); } 2007/10/26, Donyee [EMAIL PROTECTED]: I got errors when i use T5.06-hibernate, and my app works

T5.06 The tapestry-hibernate problem?

2007-10-26 Thread Donyee
I got errors when i use T5.06-hibernate, and my app works fine when i use T5.05! Also i changed the html to tml, sl4j... Error: No service implements the interface org.apache.tapestry.ioc.Configuration. Error invoking service builder method

Re: T5.07 SNAPSHOT! Where is the Inject Annotation??

2007-10-24 Thread Donyee
Thanks all! 2007/10/24, Robin Helgelin [EMAIL PROTECTED]: On 10/24/07, lasitha [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/TAPESTRY-1800 Its a good idea to keep an eye on jira or the developer mailing list for some forewarning of such chanages :). Or just check the

T5.07 SNAPSHOT! Where is the Inject Annotation??

2007-10-23 Thread Donyee
I tried the t5.07 snapshot today, the Inject Annotation is not found in the src. the doc is not mentioned, Is there anything new? 徐 依伟

[T5.06snap] About PERTHREAD_SCOPE?

2007-10-17 Thread Donyee
I use @Scope(PERTHREAD_SCOPE) on build method in my AppModule.java. It will create new instance in every new request, but it seems the method build a singleton! I use IE and FireFox request the page! my code: in AppModule.java @EagerLoad @Scope(PERTHREAD_SCOPE) public BoboCacheState

Re: [T5.06snap] About PERTHREAD_SCOPE?

2007-10-17 Thread Donyee
threadDidCleanup() { cache.getCacheEventNotificationService ().unregisterListener(state); }); return state; } On 10/17/07, Donyee [EMAIL PROTECTED] wrote: I use @Scope(PERTHREAD_SCOPE) on build method in my AppModule.java. It will create new instance

[T5.06snap] access the Tap webapp from other webapp?

2007-10-17 Thread Donyee
The tap webapp's index page can response json to client! StreamResponse onUpdateMsg()...url:localhost:8080/bobo/index:updatemsg I wonder if i can get the json data from another webapp? I tried to request the urllocalhost:8080/bobo/index:updatemsg in a ajax request! but i didn't get the json data!

Re: [T5] Got a wrong uri from createActionLink!

2007-10-12 Thread Donyee
wrong with using a colon within the path of a URI. Do you know of any problems with this? Its been working so far... Perhaps i'm missing the point? On 10/12/07, Donyee [EMAIL PROTECTED] wrote: The colon (:) /index:updatemsg is not a uri, how could i get a /index.updatemsg? 2007/10/12

Re: [T5] Got a wrong uri from createActionLink!

2007-10-12 Thread Donyee
' and clicking it will invoke onUpdateMsg(). Is that what you're looking for? Cheers, lasitha. On 10/12/07, Donyee [EMAIL PROTECTED] wrote: I request the /index.updatemsg and get a json data, the onActionFromUpdateMsg() method works fine! but i request the /index:updatemsg, it response

[T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
Here is my code: Index.java @Inject private ComponentResources resource; public String getUpdateLink() { Link link = resource.createActionLink(updateMsg, true); return link.toURI(); } and in Index.tml: ${updateLink}... It displays /index:updateMsg, it should be /index.updateMsg! Is this a bug?

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
I use T5.06 snapshot ! 2007/10/12, Donyee [EMAIL PROTECTED]: Here is my code: Index.java @Inject private ComponentResources resource; public String getUpdateLink() { Link link = resource.createActionLink(updateMsg, true); return link.toURI(); } and in Index.tml: ${updateLink

Re: [T5] Got a wrong uri from createActionLink!

2007-10-11 Thread Donyee
/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResourcesCommon.html#createActionLink(java.lang.String,%20boolean,%20java.lang.Object...) On 10/12/07, Donyee [EMAIL PROTECTED] wrote: I use T5.06 snapshot ! 2007/10/12, Donyee [EMAIL PROTECTED]: Here is my code: Index.java

Re: T5: A simple Ajax need(JQuery)

2007-10-06 Thread Donyee
Try this! a t:type=pageLink page=getcomment context=blogId onclick=loadMoreComment(this.href); return false; span LoadMore/span /a 2007/10/6, Angelo Chen [EMAIL PROTECTED]: Hi, I have a very simple Ajax need, here is the situation: My page will

Re: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not.

2007-08-10 Thread Donyee
Looks here! http://groups.google.com/group/t5hrm/web/tapestry-5?hl=zh-CN 2007/8/11, sun58224 [EMAIL PROTECTED]: sun58224 sun58224 at sina.com writes: Tapestry5.0.5 Chinese Firefox can show normal, and in IE6 or not. -

[T5] Integration of Guice in the domain model?

2007-08-09 Thread Donyee
Hi all, I want to use the guice in my t5 app? does anyone got ideas to use it like tapestry-spring? 徐 依伟

Re: [T5] Integration of Guice in the domain model?

2007-08-09 Thread Donyee
Thanks, I got the idea! 2007/8/9, Nick Westgate [EMAIL PROTECTED]: I haven't looked into it, but search this list. Back in April Leon Pennings posted about it. Cheers, Nick. Donyee wrote: Hi all, I want to use the guice in my t5 app? does anyone got ideas to use it like tapestry

Re: [T5] The pattle doesn't work fine with IE!

2007-08-02 Thread Donyee
Is this a bug? 在 07-8-1,小司[EMAIL PROTECTED] 写道: Yes, My pallete does not work ,Button is disabled.only submit button works well 2007/8/1, Donyee [EMAIL PROTECTED]: I use the pattle component in my pages, it works fine in the firefox, but in the IE the (select)buttons were disabled

[T5] The pattle doesn't work fine with IE!

2007-08-01 Thread Donyee
I use the pattle component in my pages, it works fine in the firefox, but in the IE the (select)buttons were disabled! Does anyone meet this problem? 徐 依伟

[T5]How to submit a hidden value?

2007-07-19 Thread Donyee
I need to submit a hidden value, so i write like this:(copy from this TextField) public class HiddenField extends AbstractTextField { @Override protected final void writeFieldTag(MarkupWriter writer, String value) { writer.element(input, type, hidden, name,

Re: [T5]How to submit a hidden value?

2007-07-19 Thread Donyee
into the html? Also, you probably want to extend AbstractField, not AbstractTextField. Cheers, Nick. Donyee wrote: I need to submit a hidden value, so i write like this:(copy from this TextField) public class HiddenField extends AbstractTextField { @Override protected final void

Re: T5: Can I redirect to another page in setupRender()?

2007-07-17 Thread Donyee
I do this in the beforeRenderTemplate(),and works fine! boolean beforeRenderTemplate() throws IOException, ServletException { if (!isLogined()) { if (appState == null) { appState = new AppState(); }

Re: T5 : How to assign Form component with an id ?

2007-07-14 Thread Donyee
Which version do you use? T5.05 works fine! 2007/7/15, Shing Hing Man [EMAIL PROTECTED]: The exception for form t:id=myForm is in my orginal email. Shing form t:id=myForm with @Component(id = myForm) private Form form; in the page java class works. Thanks! Shing --- Eugene Lozovan

Re: properties file does not support UTF8

2007-07-14 Thread Donyee
你要是用Eclipse的话,最好安装个属性文件插件,因为Eclipse本身的好像不好用 http://propedit.sourceforge.jp/eclipse/updates/ You'd better install a plugin for eclipse if you're using it. http://propedit.sourceforge.jp/eclipse/updates/ 2007/7/14, sun58224 [EMAIL PROTECTED]: 1.properties file does not support UTF8. 2.Sort

Re: T5: Architecture Overview

2007-07-12 Thread Donyee
I'm looking for it too! 2007/7/13, Adam Zimowski [EMAIL PROTECTED]: Well, for instance sample request flow diagram demonstrating core components involved when Tap 5 is at work. Something similar to component render states diagram. Perhaps discussion about Tapestry page cache and point out

Re: T5: How to retrieve message from default Errors.properties

2007-07-11 Thread Donyee
You can find it here! http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner 2007/7/11, Adam Zimowski [EMAIL PROTECTED]: Okay, I still don't know a Tap5 way of doing this, so this works, although that's an ugly hack: Template: t:errors banner=banner/ Page Class:

Re: T5: How to retrieve message from default Errors.properties

2007-07-11 Thread Donyee
, Donyee [EMAIL PROTECTED] wrote: You can find it here! http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner 2007/7/11, Adam Zimowski [EMAIL PROTECTED]: Okay, I still don't know a Tap5 way of doing this, so this works, although that's an ugly hack: Template

Re: T5 Tutorial

2007-07-09 Thread Donyee
I change 5.05 to 5.04,then it works fine. 2007/7/10, Howard Lewis Ship [EMAIL PROTECTED]: What version of Maven are you using? On 7/9/07, Nazmul Bhuiyan [EMAIL PROTECTED] wrote: Hello, I'm following the T5 tutorial and getting the following error. I've ran this at my work pc. Is there any

Re: How to override the default validate message?

2007-07-06 Thread Donyee
Do you use the T5? I am using t5! Thanks ! 2007/7/6, Malin Ljungh [EMAIL PROTECTED]: You can use the following syntax for example: binding name=validators value=validators:required[The {0} is missing!],min=0/ /Malin On 7/6/07, Donyee [EMAIL PROTECTED] wrote: Hello everyone! I want

Re: How to override the default validate message?

2007-07-06 Thread Donyee
Cool, I should try this first! It works fine! 2007/7/6, Erik Vullings [EMAIL PROTECTED]: Hi Donyee, Please have a look here: http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner Cheers Erik On 7/6/07, Malin Ljungh [EMAIL PROTECTED] wrote: No, sorry, I use T4

How to override the default validate message?

2007-07-05 Thread Donyee
Hello everyone! I want to change the default validate message,such as You must provide a value for ... , To change the source file maybe not grace! is there another way? 徐 依伟

May I use the tapestry-ioc other packages?

2007-05-20 Thread Donyee
I try to use the Tapestry-ioc in the other packages,not just in the .pages.* package. Does it support this? I try to use @Inject in my domain.service.Impl.AccountServiceImpl.java code: @Inject private AccountDao dao; but it doesn't work! Any suggestion? 徐 依伟

The webApp loading slowly? T5+Spring2

2007-05-19 Thread Donyee
Hi all, I am using T5.05 snapshot + Spring2 in my app. After I start the server(Jetty or Tomcat5), when i click the pageLink ( a ) in my page sereral times ,then the app becomes slowly. The memory changes not much. The app is well before i add the Spring to manage the Dao. Does anyone meet this

Re: Where is the Path annotation

2007-05-06 Thread Donyee
In T5.04 you can find it. 2007/5/2, Joshua Jackson [EMAIL PROTECTED]: Dear all, I wanted to try the guide on assets located here: http://tapestry.apache.org/tapestry5/tapestry-core/guide/assets.html But the problem is I can not find @Path anywhere in my tapestry library. Currently I am using

Where is the Date(java.util.Date) in the grid? T5

2007-04-25 Thread Donyee
I wrote a employee(pojo) with a hiredate (Date type), When it works with a grid, the grid didn't render the hiredate column. Other types(int or string ) work fine! Can anyone explain this? thanks for any help! -- Chinese name:徐 依伟 English name: will

Re: How to add a PageLink in a grid?

2007-04-24 Thread Donyee
Lozovan [EMAIL PROTECTED]: Yes, I also would like to know the way to have a grid with link on a page. E.g. grid with users list and click on a row takes navigation to an EditSpecifiedUser page. Thanks in advance! On 24/04/07, Donyee [EMAIL PROTECTED] wrote: Is there a simple way to add a pagelink

Does the form support utf-8?

2007-04-23 Thread Donyee
Hey , may I ask another question? How to read a utf-8 char from the form? a TextField? I fill the form with a utf-8 char,then it couldn't display right! -- Chinese name:徐 依伟 English name: will

[no subject]

2007-04-22 Thread Donyee
-- Chinese name:徐 依伟 English name: will

hello

2007-04-22 Thread Donyee
hello -- Chinese name:徐 依伟 English name: will

Re: [OT] mailing-list problems with GMail

2007-04-16 Thread Donyee
I got one lastnight! 2007/4/15, Jesse Kuhnert [EMAIL PROTECTED]: Not sure, but if I were a spam blocking program I'd view your all numeric email address as highly suspect. On 4/15/07, Koka Kiknadze [EMAIL PROTECTED] wrote: Occasionally when trying to post reply I recieve Delivery to the

Re: Does T5.0.3 support chinese??

2007-04-16 Thread Donyee
Thank you Nick! and I set ?xml version=1.0 encoding=UTF-8? in the *.html file。 2007/4/16, Nick Westgate [EMAIL PROTECTED]: /*contributing a HttpServletRequestFilter */ ... doesn't work! Maybe something wrong! I didn't check to see why it doesn't work, but I've been looking into this issue