Re: Rendering cache

2012-07-30 Thread dh ning
Hi, one of my simple implementation, hope it helps. public abstract class StaticCacheComponent { private final static int CACHE_EXPIRED = 60; @Inject private ComponentResources componentResources; @Inject private CacheService cacheService; @Inject private TypeCoerc

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

2012-02-16 Thread dh ning
Hi, To render block as html markup, I did like this: public String renderMarkup(RenderCommand renderCommand) { MarkupWriter markupWriter = new MarkupWriterImpl(); // validation track ValidationDecorator decorator = new DefaultValidationDecorator(environment, assetSource.g

Re: Field versus constructor parameter injection

2012-01-06 Thread DH
Yes, Try: @Inject @Symbol("configuration.service.connectionTimeoutMillis") private Integer configurationServiceConnectionTimeoutMillis; 2012-01-06 DH 发件人:Borut Bolčina 发送时间:2012-01-06 22:35 主题:Field versus constructor parameter injection 收件人:List Tapestry User 抄送: Hi, I am

Re: T5.1 locale switch back to default english after navigate to other page

2011-11-17 Thread dh ning
Hi, If you switch locale by PersistentLocale service, I think the locale will be persisted. Thanks, DH 2011/11/18 wesleywj2 > hi there, > > i successfully switch the locale between english and chinese "zh_CN" within > a page, but encountered a problem where once i

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

2011-11-01 Thread dh ning
A pleasure! Done. https://issues.apache.org/jira/browse/TAP5-1741 Thanks, DH 2011/11/1 Howard Lewis Ship > It is possible, can you open up a JIRA issue and attach your template? > > On Tue, Nov 1, 2011 at 3:01 AM, dh ning wrote: > > Me too where tml contains Chinese words. &g

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

2011-11-01 Thread dh ning
Me too where tml contains Chinese words. Should be caused by the html5 doc type changes? Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence. at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source) at org.apache.xerces.impl.io.UTF8Reader.

回复: Re: Deadlock issue in 5.3-beta-5 ?

2011-09-23 Thread DH
I think it is not fixed yet. https://issues.apache.org/jira/browse/TAP5-1650 2011-09-23 DH 发件人: Chris Poulsen 发送时间: 2011-09-23 17:08 主 题: Re: Deadlock issue in 5.3-beta-5 ? 收件人: Tapestry users There have been some work related to synchronization in more recent betas. Why are you

Re: Directory listing error

2010-03-18 Thread DH
Please have a look at your jetty log, there must be some error message when deploying your t5 application. DH - Original Message - From: "Mite" To: Sent: Friday, March 19, 2010 9:38 AM Subject: Directory listing error > > I have created a project few hours ago wit

Re: Error in tapestry.js in IE 8

2010-03-15 Thread DH
Prototype 1.6.0 in T5.1 has such issue on IE8. You can upgrade prototype.js to 1.6.1 or use tapx lib. DH - Original Message - From: "LiborGMC" To: Sent: Monday, March 15, 2010 3:51 PM Subject: Re: Error in tapestry.js in IE 8 > > Hi, > I'm still facing

Re: message catalog and generated labels from property name

2010-01-26 Thread DH
If it is boolean, better way is to define the label in properties. propertyname.true=Yes propertyname.false=No DH - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Tuesday, January 26, 2010 11:07 PM Subject: Re: message catalog

Re: page generic problem

2010-01-12 Thread DH
I think T5 doens't support generic well in page class, I got some unexpected exceptions too. DH - Original Message - From: "Jun Tsai" To: "Tapestry users" Sent: Monday, January 11, 2010 11:44 AM Subject: page generic problem > hi,all > I had meet

Re: Best practice for initializing page to default context

2009-12-08 Thread DH
g annotatedName) { if (InternalUtils.isNonBlank(annotatedName)) return annotatedName; return InternalUtils.stripMemberName(fieldName); } } 3. In app module public static void contributeComponentClassTransformWorker( OrderedConfiguration configuration, TypeCoe

Re: Best practice for initializing page to default context

2009-12-08 Thread DH
value'. Yes, I encode the field name in the url and its value in a pair. Another advantage is if later another param 'orderBy' is added, I don't have to change any code at all. DH http://www.gaonline.com.cn - Original Message - From: "Kalle Korhonen"

Re: t5 handling events by components, event handling sequence

2009-12-07 Thread DH
activation context. DH http://www.gaonline.com.cn - Original Message - From: "kamiseq" To: Sent: Tuesday, December 08, 2009 7:38 AM Subject: t5 handling events by components, event handling sequence hi, I ve wrote simple component that renders link and handles event trigge

Re: t5 Environment property

2009-12-07 Thread DH
http://tapestry.apache.org/tapestry5.1/guide/env.html DH http://www.gaonline.com.cn - Original Message - From: "kamiseq" To: Sent: Tuesday, December 08, 2009 7:54 AM Subject: t5 Environment property hi, I really cant find any proper explanation of Environment and Env

Re: zone id as property expression ?

2009-12-07 Thread DH
Finally id in the Dom would be the one 'id'. DH http://www.gaonline.com.cn - Original Message - From: "Gunnar Eketrapp" To: "Tapestry users" Sent: Monday, December 07, 2009 4:43 PM Subject: zone id as property expression ? > Hi! >

Re: Access the Tapestry IoC from another servlet

2009-12-06 Thread DH
ServletContext context = FilterConfig.getServletContext(); context.getAttribute(TapestryFilter.REGISTRY_CONTEXT_NAME); See TapestryFilter, hope that helps. DH http://www.gaonline.com.cn - Original Message - From: "Mike Leonardo" To: Sent: Monday, December 07, 2009 2:08

Re: "missing key" for localized resources on Linux

2009-11-23 Thread DH
Please check whether the properties file name is the same as the filter name in web.xml (case sensitive) . I made such mistake before. DH http://www.gaonline.com.cn - Original Message - From: "Ilya Obshadko" To: "Tapestry users" Sent: Monday, November 23,

Re: Pass params to pager of grid component

2009-11-10 Thread DH
It seems that Grid doesn't support 'context' parameter. But why don't you add the keyword to the page's activation context? DH http://www.gaonline.com.cn - Original Message - From: "Xuan Tran Le" To: "Tapestry users" Sent: Wednesday, Novem

Re: beaneditform question

2009-11-09 Thread DH
I never had this issue before. I just test and everything works right, can you share the whole stack trace? DH http://www.gaonline.com.cn - Original Message - From: "Jonhy Pear" To: "Tapestry users" Sent: Tuesday, November 10, 2009 3:27 AM Subject: Re: beanedi

Re: beaneditform question

2009-11-08 Thread DH
e(password)); service.save(user); return successpage or other; } DH http://www.gaonline.com.cn - Original Message - From: "Jonhy Pear" To: Sent: Monday, November 09, 2009 9:21 AM Subject: Re: beaneditform question Sorry, I mean beaneditform, not beaneditform On Mon, Nov 9, 20

Re: Problem with ActionLinks inside Zone

2009-11-02 Thread DH
Never got this issue. Since the action link is linked to the zone, in the ajax response, the action link will be linked to the zone again (script in the response will be executed), so the next time it is still an ajax request. Maybe post some code that we can help you. DH http

Re: T5 Random Issue

2009-11-02 Thread DH
I got this issue with gzip enabled and tomcat6, tomcat5 has no problem. So I had to disable gzip in tapestry. DH http://www.gaonline.com.cn - Original Message - From: "Norman Franke" To: "Tapestry users" Sent: Tuesday, November 03, 2009 12:31 AM Subj

Re: how can i construct external url with querystring???

2009-10-28 Thread DH
But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: "sameerkhare" To: Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i

Re: how can i construct external url with querystring???

2009-10-27 Thread DH
/www.mysite.com?userId=%s&pass=%s, userId, ab); // you can use any way you like } In tml, login. DH http://www.gaonline.com.cn - Original Message - From: "sameerkhare" To: Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with q

Re: how can i construct external url with querystring???

2009-10-27 Thread DH
Don't understand your problem well. Doesn't [login] fit your need? DH http://www.gaonline.com.cn - Original Message - From: "sameerkhare" To: Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? > > I

Re: Login page - passing context between pages

2009-10-15 Thread DH
In that case, the context is only useful for Login page, but not the following page, so only returning logic name of source page would not carry the context. Try PageRenderLinkSource#createPageRenderLinkWithContext(String pageName, Object... context) and return that link. DH http

Re: calling action link from a javascript

2009-10-11 Thread DH
updateItem()? I think should be ${updateItem()}. DH http://www.gaonline.com.cn - Original Message - From: "Angelo Chen" To: Sent: Monday, October 12, 2009 9:40 AM Subject: t5: calling action link from a javascript > > Hi, > > I'm trying to call an a

Re: eclipse / mvn / run-jetty-run

2009-09-29 Thread DH
tely reloaded, but for adding new method, I still need restart mvnDebug. DH http://www.gaonline.com.cn - Original Message - From: "Gunnar Eketrapp" To: "Tapestry users" Sent: Tuesday, September 29, 2009 6:22 PM Subject: eclipse / mvn / run-jetty-run > Hi! >

Re: How to display Blob byte array image?

2009-09-20 Thread DH
Maybe this is feasible: Create an event link and get the url, put the url to the http://www.gaonline.com.cn - Original Message - From: "Jun Tsai" To: "Tapestry users" Sent: Monday, September 21, 2009 8:49 AM Subject: Re: How to display Blob byte array image? > Thank your quick reply.

Re: T5:can we nest a bean's property value in message resource?

2009-09-17 Thread DH
Currently no such solution, but you can create new binding prefix for your requirement. But maybe a bit complicated. Another simpler way is using Messages#get in your page class. DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users&q

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
yes. I am sorry that I gave the wrong example. should be . Append the 'Cell' and will work. DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users" Sent: Thursday, September 17, 2009 11:38 AM Subject: Re: T5:how to

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
Hey, do it yourself^_^ It was introduced in T5.1. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users" Sent: Thursday, S

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
uld almost work. DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users" Sent: Thursday, September 17, 2009 8:57 AM Subject: Re: T5:how to use rowIndex in Grid component? anyone have idea on this? On Wed, Sep 16, 2009 at 8:06 PM, cl

Re: How to .tml template access a class's static variable

2009-09-10 Thread DH
One question is how you expect to access the variable/method in the template and why you prefer to show/access so many static variable in the template? DH http://www.gaonline.com.cn - Original Message - From: "Xuan Tran Le" To: "Tapestry users" Sent: Friday, Sep

Re: New Tapestry tutorial to replace the quickstart tutorial

2009-09-09 Thread DH
I can help on Chinese. DH http://www.gaonline.com.cn - Original Message - From: "Komiwes Robin" To: "Tapestry users" Sent: Wednesday, September 09, 2009 5:28 PM Subject: RE: New Tapestry tutorial to replace the quickstart tutorial I can help to translate it in F

Re: How to .tml template access a class's static variable

2009-09-07 Thread DH
I think we can't and should delegate in B class DH http://www.gaonline.com.cn - Original Message - From: "Xuan Tran Le" To: "Tapestry users" Sent: Tuesday, September 08, 2009 11:17 AM Subject: How to .tml template access a class's static variable

Re: Marker for required fields on bean editor

2009-09-03 Thread DH
d write your own CustomEditBlocks.java and CustomEditBlocks.tml to do something like PropertyEditBlocks.java and PropertyEditBlocks.tml, then just put the mixin 'FieldDecorator' there. DH http://www.gaonline.com.cn - Original Message - From: "Juan E. Maya" To: "Tapestry users"

Re: Create actionlinks in components with page context

2009-08-25 Thread DH
Sure, there must be a passivate method. Action link in tmeplate is fairly simple: English. DH http://www.gaonline.com.cn - Original Message - From: "Erik Putrycz" To: Sent: Wednesday, August 26, 2009 4:44 AM Subject: Re: Create actionlinks in components with page context

Re: Create actionlinks in components with page context

2009-08-24 Thread DH
Since my action handler returns Void, so in my case T5 will return current page(with context) and redirects, here T5 will carry the context again without any work of mine. What about your action handler? DH http://www.gaonline.com.cn - Original Message - From: "Erik Putrycz

Re: Create actionlinks in components with page context

2009-08-24 Thread DH
ublic void onActionFromEnglish() { persistentLocale.set(Locale.ENGLISH); } DH http://www.gaonline.com.cn - Original Message - From: "Erik Putrycz" To: Sent: Tuesday, August 25, 2009 5:21 AM Subject: Create actionlinks in components with page context > > I star

Re: TextField Setting Text

2009-08-05 Thread DH
tring textToSet; public initialize(String textToSet) { this.textToSet = textToSet; } In your PageToCreate.tml DH http://www.gaonline.com.cn - Original Message - From: "Joshua Martin" To: Sent: Thursday, August 06, 2009 11:15 AM Subject: TextField Setting Text > How

Re: Log remote IP address with MDC class?

2009-07-15 Thread DH
Hi, Have a try with public RequestFilter buildRequestLoggingFilter(RequestGlobals requestGlobals){ } , requestGlobals has the HttpServletRequest. DH http://www.gaonline.com.cn - Original Message - From: "learningtapestry" To: Sent: Thursday, July 16, 2009 9:33 AM Su

Re: locales supported

2009-07-05 Thread DH
Hi, They are en,it,es,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da,pt_BR,ja,el. DH http://www.gaonline.com.cn - Original Message - From: "Angelo Chen" To: Sent: Monday, July 06, 2009 6:54 AM Subject: t5: locales supported > > Hi, > > What are the locales offi

Re: Accessing parameter of container from mixin

2009-07-02 Thread DH
sImpl)componentResources.getContainerResources(); String zone= (String)containerResources.getBinding("zone").get(); return zone; } DH http://www.gaonline.com.cn - Original Message - From: "Alfie Kirkpatrick" To: "Tapestry users" Sent: Thursday, July 02, 2009 4:08

Re: Problem with form inside div

2009-07-01 Thread DH
Hi, Don't ever have such issue, I always put form inside div too. What about the generated html source code? Is it right? DH http://www.gaonline.com.cn - Original Message - From: "Andrew Nguyen" To: Sent: Thursday, July 02, 2009 10:16 AM Subject: Problem with form

Re: T5 Grid Error

2009-06-30 Thread DH
Is the data source 'displayedCompanies' volatile? Error comes out in ajax request? DH http://www.gaonline.com.cn - Original Message - From: "haipeng du" To: "Tapestry users" Sent: Wednesday, July 01, 2009 11:54 AM Subject: T5 Grid Error >I have one

Re: RenderSupport in pages?

2009-06-19 Thread DH
I am sure that exception comes out in ajax request, right? RenderSupport is not available in ajax request. DH http://www.gaonline.com.cn - Original Message - From: "Piero Sartini" To: "Tapestry users" Sent: Friday, June 19, 2009 7:03 PM Subject: Re: RenderSupp

Re: RenderSupport in pages?

2009-06-19 Thread DH
sure, you can use directly in page. @Environmental private RenderSupport renderSupport; Why to extend page from component, page itself is the top root component. DH http://www.gaonline.com.cn - Original Message - From: "Piero Sartini" To: "Tapestry users" Sent: F

Re: @AfterRender in AJAX requests

2009-06-18 Thread DH
Hi, Thiago Not sure about how special your case is, but I can confirm that @AfterRender is invoked in my ajax request. Maybe share more about the code and let us help you kind man. DH http://www.gaonline.com.cn - Original Message - From: "Thiago H. de Paula Figueiredo" To:

Re: How to render a page as JSON-formatted AJAX response?

2009-06-17 Thread DH
Isn't the Zone/MultiZoneUpdate/Block way suitable for your case? It is very simple enough to deal with most ajax cases. DH - Original Message - From: "Renger Wilde" To: Sent: Thursday, June 18, 2009 4:42 AM Subject: How to render a page as JSON-formatted AJAX respons

Re: more actionlink's context values in *.tml directly

2009-06-15 Thread DH
If 5.1, like context="[param1,param2]" If 5.0, refer to list binding of t5component project. DH - Original Message - From: "Radek Terber" To: "Tapestry users" Sent: Monday, June 15, 2009 3:49 PM Subject: more actionlink's context values in *.tml dire

Re: best book for T5

2009-06-15 Thread DH
Waiting for it too. DH - Original Message - From: "Peter Stavrinides" Sent: Monday, June 15, 2009 2:59 PM Subject: Re: best book for T5 > Yes of course I am interested. > > Peter > > -- > If you are not an intended recipient of this e-mail, please not

Re: Decoration passed by parameter. Possible?

2009-06-09 Thread DH
Environment environment; Object beginRender() { return environment.peek(Block.class); } } I've test and it works. aaa bbb They all work and show what I need. DH - Original Message - From: "Lukasz Jazgar" To: "Tapestry users"

Re: File upload and AJAXized forms

2009-06-07 Thread DH
I remembered it seems that file uploading is not supported by XHR. DH - Original Message - From: "Hugo Palma" Sent: Monday, June 08, 2009 2:46 AM Subject: Re: File upload and AJAXized forms > I've created an issue for this ( > https://issues.apache.org/jira/b

Re: [T 5.1] Problem with: Block parameters are only allowed directly within component elements

2009-06-04 Thread DH
Refer https://issues.apache.org/jira/browse/TAP5-571. I've put my comment on this fixing too. I think the fixing is not so perfect. DH - Original Message - From: "Stefan Esterer" Sent: Thursday, June 04, 2009 4:04 PM Subject: [T 5.1] Problem with: Block parameters a

Re: overriding dateeditor

2009-06-03 Thread DH
BeanBlockSourceImpl call BeanBlockOverrideSource first to find the display/edit block, so contribute to BeanBlockOverrideSource give you the chance to overwrite the default. DH - Original Message - From: "Moritz Gmelin" Sent: Thursday, June 04, 2009 4:01 AM Subject: Re:

Re: T5: Very strange issue getting unreadable code on Tomca

2009-05-19 Thread DH
Forget to mention that T5's gzip is enabled. If gzip is disabled, tomcat6 is ok too. Summary: If tomat 5.x, everything is ok whether gzip is enabled or not. If tomcat6.x (we have tested on 6.0.18 too), gzip disabled, OK; Gzip enabled, all failed. DH - Original Message - From: &

Re: t5: use image for submit

2009-05-08 Thread DH
Another option: DH - Original Message - From: "Ulrich Stärk" To: "Tapestry users" Sent: Thursday, May 07, 2009 6:01 PM Subject: Re: t5: use image for submit > Am 07.05.2009 11:57 schrieb Angelo Chen: >> Hi, >> >> Is there a way to

Re: [T5] How to listen/trigger event in componentA from component B ?

2009-05-04 Thread DH
In my understanding, there should be no way. Events can only be listened in itself or its parents. DH - Original Message - From: "CG" To: Sent: Monday, May 04, 2009 11:57 PM Subject: Re: [T5] How to listen/trigger event in componentA from component B ? Hi , anybody can

Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-29 Thread DH
Hi, Zack I just tried your example, but nothing wrong. Mine is 5.1.0.3. DH - Original Message - From: "zack1403" To: Sent: Wednesday, April 29, 2009 2:56 PM Subject: Re: AjaxFormLoop Exception on 5.1.0.2 upgrade > > Alright this is the simplest setup I could

Re: Getting a zone id when inside another zone

2009-04-27 Thread DH
What about giving the static id to the innerZone, like following: DH - Original Message - From: "Hugo Palma" To: "Tapestry users" Sent: Monday, April 27, 2009 11:38 PM Subject: Getting a zone id when inside another zone >I have a template that lo

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
Not yet, thanks for remind, I will try soon. If so, cool. Thanks, DH - Original Message - From: "Fernando Padilla" To: "Tapestry users" Sent: Wednesday, April 15, 2009 11:19 AM Subject: Re: T5 how to execute javascript after zone update? > did you try @En

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
I remember @Inject RenderSupport is not available in ajax action request even though in latest snapshot, I just tried several days ago and got error. Thanks DH - Original Message - From: "Fernando Padilla" To: "Tapestry users" Sent: Wednesday, April 15, 2009

Re: T5 how to execute javascript after zone update?

2009-04-14 Thread DH
1. If your return is Block or Zone, just put ... inside the block or zone. 2. If return is JSONObject, can do like this: JSONObject response = new JSONObject(); response.put("script", "alert('ff');"); return response; Thanks, DH - Original Mess

Re: usability: javascript focus on input fields

2009-04-13 Thread DH
Try to set autofocus="false" to your form component. Thanks, DH - Original Message - From: "Sergey Didenko" To: "Tapestry users" Sent: Monday, April 13, 2009 5:32 PM Subject: usability: javascript focus on input fields > Hi, > > I'm go

Re: Inherited properties

2009-04-07 Thread DH
It is possible, just think displayMessage is a property of B like in java world, and can use ${displayMessage} and others to reference it. Thanks, DH - Original Message - From: "Peter Stavrinides" To: "Tapestry Mailing List" Sent: Tuesday, April 07, 2009 3:55 P

Re: Index page URL generation

2009-04-07 Thread DH
I don't have this issue, 5.1.0.3-snapshot. Thanks, DH - Original Message - From: "Blower, Andy" To: "'Tapestry users'" Sent: Tuesday, April 07, 2009 5:33 PM Subject: Index page URL generation I'm still working through the migration from 5.0.

Re: Component parameters & events

2009-04-02 Thread DH
Should be void onHello() { // ... } Tapestry has complained that you don't supply a event handler 'hello' which is like onHello. Thanks, DH - Original Message - From: "Jason Tan" To: "Tapestry users" Sent: Friday, April 03, 2009 8:48 AM Subject

Re: multiple parameters in PageLink's context?

2009-03-30 Thread DH
In 5.1, use like context="[param1,param2]" Thanks DH - Original Message - From: "Angelo Chen" Sent: Monday, March 30, 2009 2:25 PM Subject: t5: multiple parameters in PageLink's context? > > Hi, > > Is there a way to specify multiple parameters

Re: component specific action event

2009-03-25 Thread DH
sources#triggerEvent. Thanks DH - Original Message - From: "Reinhold Gruber" Sent: Thursday, March 26, 2009 5:36 AM Subject: RE: component specific action event Ok, I see. The method must be named "onActionFromTest". Thanks for that. But does that mean, that in

Re: Tapestry-Spring-Security and Tapestry 5.1.0.x

2009-03-25 Thread DH
orker. Thanks, DH - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Wednesday, March 25, 2009 10:23 AM Subject: Tapestry-Spring-Security and Tapestry 5.1.0.x > Hi! > > Is it just me or Tapestry-Spring-Security doesn&#

Re: Template Inheritance and Overriding - How to Do It?

2009-03-23 Thread DH
Here: http://tapestry.formos.com/nightly/tapestry5/guide/templates.html Template Inheritance Thanks DH - Original Message - From: "Dragan Djuric" To: Sent: Monday, March 23, 2009 3:44 PM Subject: Template Inheritance and Overriding - How to Do It? > > Howard

Re: ActionLink button called twice when onclick.

2009-03-16 Thread DH
Hi, I am not sure whether it is produced by button nested in . What about replacing Convert with 'Convert' and have a try? Thanks, DH - Original Message - From: "Tan cyb...@n" To: "Tapestry users" Sent: Monday, March 16, 2009 5:20 PM Subject: Actio

Re: "OnEvent" no response

2009-03-16 Thread DH
I would suggest you to look at the source of onevent mixin (not onevent annotation) in t5commons project. Thanks, DH - Original Message - From: "Zenberg Ding" To: "Tapestry users" Sent: Monday, March 16, 2009 2:00 PM Subject: Re: "OnEvent" no respons

Re: "OnEvent" no response

2009-03-15 Thread DH
pend the value 11/22 by js code. Hope it helps. Thanks, DH - Original Message - From: "Zenberg Ding" To: "Tapestry users" Sent: Monday, March 16, 2009 11:45 AM Subject: Re: "OnEvent" no response >I still confused with how to fire javascript objec

Re: "OnEvent" no response

2009-03-15 Thread DH
How do you fire the 'click' event in your xtree component? This 'click' is not the one 'click' in html dom. Thanks, DH - Original Message - From: "Ding Zenberg" To: Sent: Monday, March 16, 2009 10:11 AM Subject: "OnEvent" no res

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
Hi, Yes, I think so. HibernateSessionSource is top of HibernateSessionManager. DH - Original Message - From: "Angelo Chen" To: Sent: Wednesday, March 11, 2009 2:08 PM Subject: Re: T5ï¼s getting new Hibernate session in a lengthy thread Hi, HibernateSessionManage

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
Sorry, my fault. If code don't call any method of HibernateSessionManager, it won't create a session. Thanks, DH - Original Message - From: "Angelo Chen" To: Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: T5ï¼s getting new Hibernate session in a lengthy th

Re: T5ï¼s getting new Hibernate session in a lengthy thread

2009-03-10 Thread DH
still last fro the whole request process. If close manually, maybe 'session has closed' exception is thrown by tapestry-hibernate because at the end tapestry would try to close the session of HibernateSessionManager, but it has been closed manually. Thanks, DH - Original Message

Re: T5ï¼s getting new Hibernate session in a lengthy t hread

2009-03-10 Thread DH
Maybe you can directly use HibernateSessionSource service instead of HibernateSessionManager. HibernateSessionSource.create() creates a new session always, and do remember to commit and close the session by yourself. Thanks, DH - Original Message - From: "Angelo Chen"

Re: actionlink pass combobox value.

2009-03-10 Thread DH
Yes, that's it. I always learn from jumpstart. Thanks DH - Original Message - From: "Tan cyb...@n" Sent: Tuesday, March 10, 2009 8:11 PM Subject: Re: actionlink pass combobox value. > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/input/linksubmits

Re: actionlink pass combobox value.

2009-03-10 Thread DH
If you are not limited on actionlink, have a try with LinkSubmit component, it can post form. Or else you need js to help post the value back. Thanks DH Sent: Tuesday, March 10, 2009 4:47 PM Subject: actionlink pass combobox value. > Hi all, > > I have my a combo box. getC

Re: [T5.1.0.0] Loop in Form problem introduced in T5.1.0.0

2009-03-09 Thread DH
w during process, so exception happens. Thanks DH - Original Message - From: "Joost Schouten (mailing lists)" To: "Tapestry users" Sent: Tuesday, March 10, 2009 11:13 AM Subject: Re: [T5.1.0.0] Loop in Form problem introduced in T5.1.0.0 Dear DH, Thanks for y

T5: Critial security of t:formdata

2009-03-07 Thread dh ning
te based on tapestry5 is not very secured and can be attacked by any experienced t5 programmer? Thanks, DH

Re: Page navigation passed value not displayed (@InjectPage style)

2009-03-05 Thread DH
/tapestry5/guide/pagenav.html # Page Navigation Patterns Thanks DH - Original Message - From: "Andy Pahne" To: "Tapestry users" Sent: Friday, March 06, 2009 10:33 AM Subject: Re: Page navigation passed value not displayed (@InjectPage style) > > > I usually

Why Grid component fetches data one more time in form submit

2009-02-19 Thread dh ning
re to prevent it from calling during submit. Unfortunately 'volatile' parameter is now declared as publishParameters of GridRows component. How do you handle grid component in a form? Thanks, DH

stylesheet processing in ajax response doesn't work in firefox3.0

2009-02-12 Thread dh ning
WindowPanel { } If I remove @IncludeStylesheet annotation, then it works well in firefox3.0 too. Is it a known issue of firefox3.0 or tapestry.js code issue? Any workaround for this? Thanks, DH

Re: [T5] 5.0.16 Spanish special characters

2008-12-03 Thread dh ning
That's true, native2ascii is unnecessarily any more. Try to locate the issue whether it is caused at server side or by html page encoding. What's that value in tapestry page.java level? If it is correct, then this should be the html encoding problem. 2008/12/4 Thiago H. de Paula Figueiredo <[EMAIL

Re: [T5] Page naigation using submit

2008-10-17 Thread dh ning
You don't want the component rely on page, but you do (rely on outer form, right?), so if you want your component handle event independently, set the form in the component is a must. btw, onSelect's signature should only be Void type. DH 2008/10/17 Ville Virtanen <[EMAIL PROTECT

An exception at jetty starts up while using classNameLocator

2008-08-15 Thread dh ning
ames("com.mycompany.entities"); other codes } } If I comment classNameLocator.locateClassNames("com.mycompany.entities"), then everything works and Jetty starts up. Please help on solving the problem. It blocks me for several days. Thanks. DH

Re: Problem wuth internacionalization

2008-05-12 Thread dh ning
B-INF. Thanks! DH 2008/5/13, Igoor <[EMAIL PROTECTED]>: > > > when i make files Start.properties and Start_de.properties and put them > into > WEB-INF, or when i make com.igor.bookStore.pages and put these files into > this root my application doesen't work... But when

Is it possible to prevent the render method in parent component from being invoked?

2008-04-23 Thread dh ning
page. So is there a way to prevent the render method in parent from being invoked? And how? And what's the best practice here dealing with search funcion with Grid? Anyone please share your experience. Thanks in advance. DH