Re: 5.4 Datepicker survey

2013-10-02 Thread Yunhua Sang
I'd like to go with Michal's, love the time option. Thanks a lot for working on it. Yunhua On Tue, Oct 1, 2013 at 4:37 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: I would go with JQueryUI datepicker. It looks great and doesn't even depend of bootstrap version or even has bootstrap

Re: Ckeditor and tapestry 5.4

2013-08-05 Thread Yunhua Sang
Hi Dimitris, You could create a new JavaScript module and put all the needed JavaScript files into the same folder. The folder structure could be like: resources META-INF modules ckeditor js files... The default folder of JavaScript modules is

Re: Ckeditor and tapestry 5.4

2013-08-05 Thread Yunhua Sang
Is Ckeditor loading CSS files by itself? If not, you could leave the CSS files in assets folder, then load the css files through @Import in the component Java class. On Mon, Aug 5, 2013 at 6:08 PM, Dimitris Zenios dimitris.zen...@gmail.comwrote: Also Yunhua Sang module dispatcher only

Re: T5.4 DateField popup

2013-07-25 Thread Yunhua Sang
Sorry, it was not clear; the popup's DIV position style is not absolute, break the html page. On Thu, Jul 25, 2013 at 8:23 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 24 Jul 2013 23:45:54 -0300, Yunhua Sang yunhua.s...@gmail.com wrote: I noticed the popup's

Re: T5.4 DateField popup

2013-07-25 Thread Yunhua Sang
I am not complaining, I just to want to report the issues I have seen in the new version; I've been using Tapestry since 4.0 alpha, I love it. On Thu, Jul 25, 2013 at 8:42 AM, Yunhua Sang yunhua.s...@gmail.com wrote: Sorry, it was not clear; the popup's DIV position style is not absolute

T5.4 DateField popup

2013-07-24 Thread Yunhua Sang
I noticed the popup's position is relative now, version 5.4-alpha-10 was OK. I am using the latest code. Thanks, Yunhua

Re: zoneUpdate on datefield

2013-07-13 Thread Yunhua Sang
In version 5.3.x (or before, not sure), the Tapestry will let document to fire a Tapestry.FOCUS_CHANGE_EVENT after the value gets changed in a DateField, as: document.fire(Tapestry.FOCUS_CHANGE_EVENT, this.field); So you could capture this event and do something you want. The 5.4.x changed it,

Re: FormFragment validates on the server even when not visible

2013-07-11 Thread Yunhua Sang
I have the similar problem; I thinks it's because the FormFragment renders a hidden element, when the zone gets refreshed, the hidden element's disable property is set to be true, which is invalid, then the elements within the FromFragment get submitted I guess it's related to isDeepVisible()

Re: how to run tapestry5 app from Intellij 12

2013-04-11 Thread Yunhua Sang
Or you can create a class as following which you can found in the Tapestry source code, then create a run/debug configuration on it. It's very handy when you're working on multiple Maven modules in a project. import org.apache.tapestry5.test.Jetty7Runner; public class RunJetty { public

Upgrading to 5.4, recommendation on JavaScript part?

2013-04-10 Thread Yunhua Sang
Hi all, I am going to start upgrading one of my project from 5.3 to 5.4, it has many components built on UIZE JavaScript framework (http://www.uize.com/) which come up with its own script loader, any suggestions on it? such as modules design, avoiding conflict between requireJS and UIZE etc?

T5: how to catch the exceptions thrown by the event handler?

2012-08-20 Thread Yunhua Sang
Hi there, Tapestry version: 5.3.3 How to catch the exceptions thrown by the event handler? e.g.: try { resources.triggerEvent(anEvent, new Object[]{}, null); } catch (Exception e) { logger.error(Error occurred., e);

Re: T5: how to catch the exceptions thrown by the event handler?

2012-08-20 Thread Yunhua Sang
Paula Figueiredo thiag...@gmail.com wrote: On Mon, 20 Aug 2012 12:09:25 -0300, Yunhua Sang yunhua.s...@gmail.com wrote: Hi there, Hi! Tapestry version: 5.3.3 How to catch the exceptions thrown by the event handler? e.g.: try { resources.triggerEvent

Re: T5: how to catch the exceptions thrown by the event handler?

2012-08-20 Thread Yunhua Sang
Thanks Thiago and Lenny. It's my bad, I messed up the events chain. On Mon, Aug 20, 2012 at 3:18 PM, Lenny Primak lpri...@hope.nyc.ny.uswrote: Tynamo.org has an excellent tapestry-exceptionpage module just for this purpose as well. On Aug 20, 2012, at 10:09 AM, Yunhua Sang yunhua.s

Re: tapestry-func on large dataset

2011-10-19 Thread Richard Yunhua Sang
. Thanks, Richard On Wed, Oct 19, 2011 at 2:40 AM, Howard Lewis Ship hls...@gmail.com wrote: I'm curious what Guava (the google Java functional programming library) does in this situation? I'm not sure they even try for laziness. On Tue, Oct 18, 2011 at 5:57 PM, Richard Yunhua Sang yunhua.s

Re: tapestry-func on large dataset

2011-10-18 Thread Richard Yunhua Sang
Oct 14, 2011 at 4:49 PM, Howard Lewis Ship hls...@gmail.com wrote: On Fri, Oct 14, 2011 at 1:22 PM, Richard Yunhua Sang yunhua.s...@gmail.com wrote: Tapestry 5 version: 5.3-beta19 I love the API of tapestry-func, Today when I use tapestry-func to process a file with 3 million lines, I

tapestry-func on large dataset

2011-10-14 Thread Richard Yunhua Sang
Tapestry 5 version: 5.3-beta19 I love the API of tapestry-func, Today when I use tapestry-func to process a file with 3 million lines, I get following exception: Exception in thread main java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Arrays.java:3209) at

tapestry-jpa: JpaGridDataSource sort by a transient field

2011-07-11 Thread Richard Yunhua Sang
Hi there, I am using a Grid with JpaGridDataSource; when I click sort icon on a transient field of an entity, I get following exception: Caused by: java.lang.IllegalArgumentException: Unable to resolve attribute [name] against path at

Re: tapestry-jpa: JpaGridDataSource sort by a transient field

2011-07-11 Thread Richard Yunhua Sang
-0300, Richard Yunhua Sang yunhua.s...@gmail.com wrote: Hi there, Hi! I am using a Grid with JpaGridDataSource; when I click sort icon on a transient field of an entity, I get following exception: I don't think any GridDataSource implementation backed by a database would be able

Re: tapestry-jpa: JpaGridDataSource sort by a transient field

2011-07-11 Thread Richard Yunhua Sang
to reproduce the issue. On Mon, Jul 11, 2011 at 11:06 PM, Richard Yunhua Sang yunhua.s...@gmail.com wrote: Hi there, I am using a Grid with JpaGridDataSource; when I click sort icon on a transient field of an entity, I get following exception: Caused

Re: tapestry-jpa: JpaGridDataSource sort by a transient field

2011-07-11 Thread Richard Yunhua Sang
, Richard Yunhua Sang yunhua.s...@gmail.comwrote: Thanks for your reply, but I do want to sort the result by transient field in Grid. It would be appreciated that the JPAGridDataSource is able to sort the result within JVM. On Mon, Jul 11, 2011 at 5:29 PM, Thiago H. de Paula Figueiredo

Re: Tapestry Web Site Updated

2010-11-22 Thread Yunhua Sang
Congratulations for the new site, it looks a lot better. One problem, The new site does not work properly with IE7, which is the only one I can use in my company. Somehow I cannot scroll the page down, and page down key also doesn't work. On Fri, Nov 19, 2010 at 4:15 PM, Howard Lewis Ship

Tapestry 5.2 bug?

2010-09-27 Thread Yunhua Sang
Hi everyone, I am using 5.2.1-SNAPSHOT. I found a new thread in page class has problem to access the persisted fields, for example: @Persist @Property private String field; public void onSubmit() { try { Thread thread = new Thread() { public

Re: Tapestry 5.2 bug?

2010-09-27 Thread Yunhua Sang
on, then will spend a lot of time to figour out. Yunhua On Mon, Sep 27, 2010 at 4:13 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 27 Sep 2010 16:47:38 -0300, Yunhua Sang yunhua.s...@gmail.com wrote: Hi everyone, Hi! The field is always null when printing it out within

Re: Tapestry 5.2 bug?

2010-09-27 Thread Yunhua Sang
it wouldn't be better handled using ThreadPools (for starters) and perhaps a JMS solution. I'm having some great luck using ActiveMQ right now, so split long synchronous work into small asynchronous work. On Mon, Sep 27, 2010 at 1:37 PM, Yunhua Sang yunhua.s...@gmail.com wrote: Hi Thiago, Thanks

Re: No service implements the interface org.slf4j.Logger

2010-08-03 Thread Yunhua Sang
see https://issues.apache.org/jira/browse/TAP5-977 Quoted from comment: It is necessary to use @InjectResource, to indicate that the thing (the Logger) being injected is a resource specific to the service, rather than a general object provided via the MasterObjectProvider service. So this

Re: Invalid length 138 in LocalVariableTable

2010-03-19 Thread Yunhua Sang
Hi Jagadesh, use Javassist 3.9.0, the version 3.11.0 is not working well with Java 6 and Tapestry 5. On Fri, Mar 19, 2010 at 6:08 AM, Jagadesh Paladugula jagadeshpaladug...@gmail.com wrote: Hi Every One, I am facing a wierd exception which says some thing like this *Invalid length 138 in

Question: any schedule for the new 5.1 release?

2010-02-26 Thread Yunhua Sang
Hi all, Is there any plan for the new official release of 5.1? It's supposed to have the fix of *TAP5-815* https://mail.google.com/jira/browse/TAP5-815 Asset dispatcher allows any file inside the webapp visible and downloadable ? Thanks, Yunhua

Re: a space character in url context

2010-01-21 Thread Yunhua Sang
Tapestry 5 has its own URLEncoder, a JIRA has been logged about this issue with client encode js by Hugo, but seems this way's not recommended. On Thu, Jan 21, 2010 at 9:45 AM, lyf yifanliu...@gmail.com wrote: The url of my form looks like: ./index.domains:selected/Internal%20Domain , which

Re: a space character in url context

2010-01-21 Thread Yunhua Sang
forgot the link of ticket: https://issues.apache.org/jira/browse/TAP5-637 On Thu, Jan 21, 2010 at 12:43 PM, Yunhua Sang yunhua.s...@gmail.com wrote: Tapestry 5 has its own URLEncoder, a JIRA has been logged about this issue with client encode js by Hugo, but seems this way's not recommended

Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Yunhua Sang
Overriding specific portions of parent template is a really amazing feature from 5.1; however can it be extended to override specific portions of template within a component in containing component/page? In my opinion, it's the most straightforward way. Currently only sub-class is able to

Re: NPE with ajax form loop

2009-02-19 Thread Yunhua Sang
I got this NPE too, but seems at different place: Request time: 16 ms [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: java.lang.NullPointerException java.lang.NullPointerException at

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-13 Thread Yunhua Sang
. To the instrumented component, there's no difference between a getter/setter and any other (private) method that accesses the field. Robert On Feb 12, 2009, at 2/122:18 PM , Yunhua Sang wrote: Hi Robert, 2) I tried your way, it doesn't work; it doesn't work even back to 5.0.18. 3) I

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-13 Thread Yunhua Sang
, I wrote a filter mixin for grid so any grid could have filtering applied to it just by adding the mixin. What is it you're trying to do? Robert On Feb 13, 2009, at 2/1310:58 AM , Yunhua Sang wrote: Hi guys, Thanks for all your input. I've decided to change my code to use composition

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-13 Thread Yunhua Sang
. Robert On Feb 13, 2009, at 2/131:43 PM , Yunhua Sang wrote: I want to provide user a jpa entity grid component, which will provide its own griddatasource and hide it to end user; user instead will provide an ejbql for the entity grid and the component will execute the ejbql, generate

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Yunhua Sang
, that is already defined in a super-class. On Wed, Feb 11, 2009 at 12:20 PM, Yunhua Sang yunhua.s...@gmail.com wrote: Hello Howard, It turns out the error occurs only when the child wants to provide its own default binding for a parameter originally defined in parent; example: public class

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-12 Thread Yunhua Sang
, access in the child via code is mediated through normal java channels: create a public (or protected) getter and setter in the Parent class. Robert On Feb 12, 2009, at 2/1212:45 PM , Yunhua Sang wrote: Hi Howard, Can you show me in a child component, how to access a parameter defined

T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-11 Thread Yunhua Sang
Hello all, It seems there is no clear document about how to access a parameter defined in parent component; previous to 5.0.18, I was using the way of declaring the parameter again in child class and it worked well; however looks like some changes in 5.1.0.0 broke the way, seems there is no link

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-11 Thread Yunhua Sang
are looking for. Check the component paramter docs in the user guide. Uli Yunhua Sang schrieb: Hello all, It seems there is no clear document about how to access a parameter defined in parent component; previous to 5.0.18, I was using the way of declaring the parameter again in child class

Re: T5 Question: how to access a parameter defined in parent component(not container) in 5.1.0.0

2009-02-11 Thread Yunhua Sang
elaborate? On Wed, Feb 11, 2009 at 10:56 AM, Yunhua Sang yunhua.s...@gmail.com wrote: Hello all, It seems there is no clear document about how to access a parameter defined in parent component; previous to 5.0.18, I was using the way of declaring the parameter again in child class

Re: T5: SetupRender before parameters binding in 5.1.0.0-SNAPSHOT?

2009-01-19 Thread Yunhua Sang
or inherit:defaultSource? The latter could cause your NPE. On Mon, Jan 19, 2009 at 8:22 AM, Yunhua Sang yunhua.s...@gmail.com wrote: Hi Howard, I am sorry for this late message; source are as below: public class EntityGrid extends Grid { @Inject private EntityProvider entityProvider

T5: SetupRender before parameters binding in 5.1.0.0-SNAPSHOT?

2009-01-16 Thread Yunhua Sang
Hello, Is SetupRender phase changed to be in front of parameters binding in 5.1.0.0-SNAPSHOT? I have a EntityGrid component which is a sub-class of Grid and providing its own GridDataSource; it worked well with 5.0.18. Today I tried the snapshot but got following exceptions:

Re: T5: SetupRender before parameters binding in 5.1.0.0-SNAPSHOT?

2009-01-16 Thread Yunhua Sang
The exception is NPE, On Fri, Jan 16, 2009 at 5:42 PM, Howard Lewis Ship hls...@gmail.com wrote: There shouldn't be a change there. What is the exception (you only included the stack trace). On Fri, Jan 16, 2009 at 2:01 PM, Yunhua Sang yunhua.s...@gmail.com wrote: Hello, Is SetupRender

Re: T5: call Javascript after Tapestry.init()

2008-11-21 Thread Yunhua Sang
You can use Function.defer() from Prototype to make your JavaScript call after Tapestry.init() (actually when the intepretor is idle). The problem is functions within Tapestry.init are not ordered, I don't know if this should be considered a bug. On Fri, Nov 21, 2008 at 1:41 PM, Fernando

Re: [T5] Pagelink bug in Tapestry 5.0.16?

2008-11-17 Thread Yunhua Sang
I can see this issue, when the context root is /. Yunhua On Mon, Nov 17, 2008 at 1:23 PM, Michael Dukaczewski [EMAIL PROTECTED] wrote: I think I found a bug in the new Tapestry Release Candidate. I have a page (Foo.tml) with following code: t:layout

Re: T5.0.14-SNAPSHOT: strange behavior Dispatcher when using a Session

2008-07-24 Thread Yunhua Sang
It sounds more like a data issue, check your data in database carefully. Yunhua On Wed, Jul 23, 2008 at 11:18 PM, Chris Lewis [EMAIL PROTECTED] wrote: Hello, I have a dispatcher that uses a hibernate session. The dispatcher is auto bound and receives the session in the constructor. I'm using

Re: T5: Different behavior of Palette Component in FireFox, Safari and IE

2008-07-10 Thread Yunhua Sang
What version of T5 are you guys using? I think there was a jira about it and it has been fixed already. see. https://issues.apache.org/jira/browse/TAPESTRY-2507 - Palette component forces an unwanted form submit under FireFox 3 Yunhua On Thu, Jul 10, 2008 at 5:44 AM, Martin Grotzke [EMAIL

Re: T5: Different behavior of Palette Component in FireFox, Safari and IE

2008-07-10 Thread Yunhua Sang
Sorry the link was wrong, it should be https://issues.apache.org/jira/browse/TAPESTRY-2490 On Thu, Jul 10, 2008 at 7:37 AM, Yunhua Sang [EMAIL PROTECTED] wrote: What version of T5 are you guys using? I think there was a jira about it and it has been fixed already. see. https

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Yunhua Sang
. there is no a data. On Tue, Jul 1, 2008 at 12:44 AM, Tan [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: no. do you have any sample ? On Tue, Jul 1, 2008 at 12:39 AM, Yunhua Sang [EMAIL PROTECTED] wrote: Have you put the grid in a zone? On Mon, Jun 30, 2008 at 10:48 AM, Tan [EMAIL PROTECTED] [EMAIL

Re: [T5] tapestry grid inplace.

2008-06-30 Thread Yunhua Sang
${materialType.id} /t:actionlink /t:parameter /t:grid /t:zone thank you On Tue, Jul 1, 2008 at 12:57 AM, Yunhua Sang [EMAIL PROTECTED] wrote: So when you remove the inPlace attribute, it works well, right? May I have a look at your code

Re: Javassist exception on deploy time

2008-06-26 Thread Yunhua Sang
Hi Martijn, I guess you are using jdk 6; switching to jdk 5 will solve this problem. Yunhua. On Thu, Jun 26, 2008 at 12:54 AM, Martijn Brinkers (List) [EMAIL PROTECTED] wrote: Hi, I get this long Javassist exception when I startup Jetty from within eclipse. This only happens when I start

Re: [T5] About core components subclassing and methods with package visibility

2008-06-25 Thread Yunhua Sang
I have same pain with you, Thiago. It's not easy for subclasses to access parameters in parent classes. Delegation works perfectly, but you have to copy all parameters from parent component. Yunhua On Tue, Jun 24, 2008 at 11:05 PM, Thiago H. de Paula Figueiredo [EMAIL PROTECTED] wrote: I've

How to override default-binding for a inherited parameter in component which is sub-class of another component

2008-05-17 Thread Yunhua Sang
Hi all, I have a component which is a sub-class of Grid. I want to override default-binding for parameter model in Grid, does someone know how to do it? I have tried creating a function: Binding defaultModel() in the new component, but it seems never gets called. Thanks Yunhua

Re: EventLink strange behaviour (bug ?)

2008-03-19 Thread Yunhua Sang
Are you using Vista and the D:\ is FAT32? I saw strange behaviors on this combination some times ago. On Wed, Mar 19, 2008 at 4:45 PM, José Paumard [EMAIL PROTECTED] wrote: Hi all, Let's take the simple following case : Start.tml : t:eventlink t:event=refreshrefresh/t:eventlink t:menu /

Re: T5: TransformationException

2008-03-11 Thread Yunhua Sang
Are you using JDK 1.6? Try JDK 1.5 if you are. On 3/11/08, osamuo [EMAIL PROTECTED] wrote: Hi, I show you additional information. When a page class was defined like the following, I got the 'TransformationException'. If I comment out the code which uses 'ApplicationState' variables, no

Re: javassist problems with Java 1.6

2008-03-07 Thread Yunhua Sang
Hi Geoff, I found upgrading JBossAS may not help, it can be a bug in Javassist. I compiled latest T5 (5.0.11 SNAPSHOT) code by using JDK 1,6, just want to see how well T5 works on Java 6 bytecode. I started the integration app1, then ended up of ArrayIndexOutOfBoundsException when I was trying

Re: T5: quickstart archetype problem and solution

2008-02-19 Thread Yunhua Sang
Many thanks Julian, You did save me a lot of time. Yunhua On Feb 19, 2008 7:33 PM, Julian Wood [EMAIL PROTECTED] wrote: Hi all, Just starting a new project, and have decided to do it in Tap5 (I have done many in Tap4). So, seeing the tutorial, and the quickstart archetype. I thought that

Re: T4: Newbie's questions

2008-01-10 Thread Yunhua Sang
Hi Xiahong, For Layout management, there is a example in Workbench demo: src\Workbench\src\context\WEB-INF\Border.html You may have better sense after you take a look of this page. Cheers, Yunhua On Jan 10, 2008 2:26 PM, Ulrich Stärk [EMAIL PROTECTED] wrote: Zheng, Xiahong schrieb: Hi, I

Re: JSR-168/JSR-286 revisited --- what's happening at the 'neighbours'

2008-01-03 Thread Yunhua Sang
Emmanuel, please cease with your regurgitated points and annotations. We all know. We also all know about Wicket. It too is a respectable and highly visible framework. Your points, which now are just rants, are falling on dead ears here. If you seek an audience, kindly find a more

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-22 Thread Yunhua Sang
by Tapestry then it is also doing all kind of conversion on it also (but I'm not sure wherever it works, check honeycomb). Renat On 21/11/2007, Yunhua Sang [EMAIL PROTECTED] wrote: Hi Renat, Do you have some good ideas to prevent LazyInitializationException be thrown out after form

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-11-21 Thread Yunhua Sang
Hi Renat, Do you have some good ideas to prevent LazyInitializationException be thrown out after form submitting? My current solution looks not smart: explicitly call collection.size() in the first thread. Thanks Yunhua On Nov 21, 2007 9:54 AM, Renat Zubairov [EMAIL PROTECTED] wrote: There is

Re: Tapestry 5 Roadmap

2007-10-17 Thread Yunhua Sang
2. Tapestry is an one man show. .. Actually, this is one advantage of Tapestry: guaranteed quality. On 10/17/07, Daniel Jue [EMAIL PROTECTED] wrote: What happens to our multi-million dollar project if Howard is hit by a bus tomorrow Yes, please don't do that.

Re: T5: Why does the default string translator translate the empty string to null?

2007-10-17 Thread Yunhua Sang
Your way may reduce the portability of your application. In Oracle, there is no difference between empty text and NULL, empty text is NULL. Yunhua On 10/17/07, Ted Steen [EMAIL PROTECTED] wrote: In most cases I want my empty text areas and text fields to translate to an empty string.