t5:How to trigger a client side event after ajax form submit ?

2009-05-12 Thread luna_guo
How to trigger a client side event after ajax form submit?For example a ajax login form,redisplay the form when failure . thanks /luna -- View this message in context: http://www.nabble.com/t5%3AHow-to-trigger-a-client-side-event-after-ajax-form-submit---tp23499985p23499985.html Sent from the

t5:tomcat url enconding for non english character

2009-05-05 Thread luna_guo
In jetty it works well to send non english parameter with ajax get method,but in tomcat i have to switch to ajax post.If i need to use get,what should i do? -- View this message in context: http://www.nabble.com/t5%3Atomcat-url-enconding-for-non-english-character-tp23384139p23384139.html Sent

t5:odd response with gzip compress

2009-05-05 Thread luna_guo
I have a page includes a lot of javascript.And i use Tapestry 5.1.0.4,set compress and combine javascript on.It works well almost time.But i have received odd response serveral times when i use ie.It's not a character encoding problem,because the is even no "" in the response.Is this a bug with i

Re: t5: multiple parameters in PageLink's context?

2009-03-30 Thread luna_guo
Angelo Chen wrote: > > Hi, > > Is there a way to specify multiple parameters in the PageLink's context, > example: > > this works: > > Send > Order > > this fails: > > Send > Order > > what I'm doing now is, return the combined paramter from java and put it > in the context,

Re: Grid Pagination And onActivate()

2009-03-28 Thread luna_guo
Davor Miku wrote: > > Hello! > > I have component witch takes one parameter and based on it > shows Grid component. > > In page Archive, I have : > > public class Archive > { > > @Persist > private String currentCategoryName; > > public void onActivate(String currentCa

Re: How to get a page's html to send it as an email?

2009-03-17 Thread luna_guo
Andreas Pardeike-2 wrote: > > On 17 mar 2009, at 10.06, luna_guo wrote: > >> Is this what you want? >> >> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageDocumentGenerator.html > > Yes! Works very well. Two minor questions rema

Re: How to get a page's html to send it as an email?

2009-03-17 Thread luna_guo
Is this what you want?http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/PageDocumentGenerator.html Andreas Pardeike-2 wrote: > > On 16 mar 2009, at 16.34, Lance Java wrote: > >> DWR does this by forwarding to the URL passing a response object >> that writes to a local

Re: t5: catching exception in onException

2009-03-15 Thread luna_guo
See http://tapestry.apache.org/tapestry5/guide/event.html onException caches exceptions throwed by event handlers. Angelo Chen wrote: > > Hi, > > I'm trying to use onException to catch exceptions, when I throw an > exception from onActivate, onException can catch it, but if it is thrown > from

[T5]form filed component not so handy.

2009-03-15 Thread luna_guo
Tapestry's form related components is not very handy in some case.for example: select: render out a list of options from database is complex,and what shall we do when the options are rendered by javascript?More complex,eh? checkbox can only used for a single boolean value.Multiple check is often

Re: t5 How to use renderInformals together with t:body

2009-03-14 Thread luna_guo
; Thanks, > DH > ----- Original Message - > From: "luna_guo" > To: > Sent: Saturday, March 14, 2009 9:31 AM > Subject: t5 How to use renderInformals together with t:body > > >> >> In the template i need .It doesn't work when i use &

t5 How to use renderInformals together with t:body

2009-03-13 Thread luna_guo
In the template i need .It doesn't work when i use ComponentResources.renderInformals.Is there any way to render body in component class ? thanks in advance luna -- View this message in context: http://www.nabble.com/t5--How-to-use-renderInformals-together-with-t%3Abody-tp22508231p22508231.ht

Re: How to set response encoding?

2008-09-28 Thread luna_guo
This dosn't work for me. Harald Geritzer-2 wrote: > >> Unfortunately this settings will affect the whole application. I >> wonder if there's a way to set charset only for specific pages. > > @Meta(value = {"tapestry.response-content-type=text/html", > "tapestry.response-encoding=GBK"}) > publi

How to set response encoding?

2008-09-28 Thread luna_guo
I have a page that required using GBK encoding. I have the following line in the template file: but in the browser,the page still display with UTF-8. -- View this message in context: http://www.nabble.com/How-to-set-response-encoding--tp19710060p19710060.html Sent from the Tapestry - User mai

Re: [T5] How to remove tapestry.js file include?

2008-09-08 Thread luna_guo
lds needed to validate? /luna Howard Lewis Ship wrote: > > It's only included if you need it. Try turning off client-side > validation (it's a parameter of the Form component). > > On Sat, Sep 6, 2008 at 12:19 AM, luna_guo <[EMAIL PROTECTED]> wrote: >> >> t

Re: T5: AJAX ActionLink exception if clicked as page loads

2008-09-08 Thread luna_guo
Geoff It's ok to return a block object in a action handler method,but you can't use the type Block,it will throw exceptions.You should use Object instead. /luna -- View this message in context: http://www.nabble.com/T5%3A-AJAX-ActionLink-exception-if-clicked-as-page-loads-tp19346336p19372125.ht

[T5] How to remove tapestry.js file include?

2008-09-06 Thread luna_guo
t5 5.0.14 I find that the tapestry.js file make my page works so slowly in IE. Is there any way to make it faster or remove including of tapestry.js file? Thanks . /luna -- View this message in context: http://www.nabble.com/-T5--How-to-remove-tapestry.js-file-include--tp19343756p19343756.html

Re: [T5]How to make indentical validation on the client side.

2008-08-18 Thread luna_guo
Filip S. Adamsen-2 wrote: > > Hi, > > This should get you started: > http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators > > -Filip > I want make a validator named confirm,just used to confirm the retype password. Using like this: Now i have a problem: public void validate(Field fie

Re: [T5]How to make indentical validation on the client side.

2008-08-18 Thread luna_guo
Stephane Decleire wrote: > > I'm not sure at all that the password checking should be done on the > client side for security reason > > Stephane > Password checking on the client is faster, It will alert user immediately,right? For security,I think it's ok. It's just use to make sure us

[T5]How to make indentical validation on the client side.

2008-08-18 Thread luna_guo
Confirm password checking is so common. It should happen on the client side,right? So,what should i do ? /luna -- View this message in context: http://www.nabble.com/-T5-How-to-make-indentical-validation-on-the-client-side.-tp19027077p19027077.html Sent from the Tapestry - User mailing list ar

Re: t5 how to write response to file

2008-08-02 Thread luna_guo
Write response to a html file. So that I can request the html instead of a tapsestry page. Toby Hobson wrote: > > Sorry ... i don't fully understand your question. Could you explain a > little more > > Thanks > > Toby > -- View this message in context: http://www.nabble.com/t5-how-to-writ

t5 how to write response to file

2008-08-01 Thread luna_guo
how to use t5 to write response to a html file? is there any tutorial or example? -- View this message in context: http://www.nabble.com/t5-how-to-write-response-to-file-tp18785645p18785645.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Converting type of request parameter error

2008-07-24 Thread luna_guo
that line is this: int id=Integer.getInteger(param.toString()); i just convert a string to a integer ,why does it throw exception? does the inject service request's getParameter method return a actual String? Thiago H. de Paula Figueiredo wrote: > > Here: > > Caused by: java.lang.NullPointerE

Converting type of request parameter error

2008-07-23 Thread luna_guo
tapestry5.0.13 @Inject private org.apache.tapestry5.services.Request request; String param=request.getParameter(PARAM_NAME); int id=coercer.coerce(param,Integer.class); log.debug(PARAM_NAME+" is "+param); //it's ok, display a number. int id=Integer.getInteger(param.toString()); //The error mess

tapestry-hibernate Transaction not successfully started

2008-07-19 Thread luna_guo
(tapestry5.0.13 hibernate3.2.2) I have a page to display a list of some entities. it lookes well. but i get the error message in the log file: Error invoking listener [EMAIL PROTECTED]: Transaction not successfully started org.hibernate.TransactionException: Transaction not successfully starte

PageLink problem

2008-07-19 Thread luna_guo
I use onPassivate() method to add the context to the pageLink of the page, all the link to that page display with the context. but when i group the link to a component named Navigator,the PageLink shows only the pageName. How to display a pagelink to somePage with context in a component? -- View

Re: question about inject annotation.

2008-07-16 Thread luna_guo
oh,i've got it. i put the wrong hibernate version. Filip S. Adamsen-2 wrote: > > Hi, > > What error message do you get? > > -Filip > > On 2008-07-16 16:37, luna_guo wrote: >> in tapestry 5.0.5 >> use tapestry-hibernate,to inject to Session,i write &

Re: question about inject annotation.

2008-07-16 Thread luna_guo
tive Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tapestry5.ioc.internal.ServiceBuil

Re: question about inject annotation.

2008-07-16 Thread luna_guo
ip S. Adamsen-2 wrote: > > Hi, > > What error message do you get? > > -Filip > > On 2008-07-16 16:37, luna_guo wrote: >> in tapestry 5.0.5 >> use tapestry-hibernate,to inject to Session,i write >> @org.apache.tapestry.annotations.Inject >> Session

question about inject annotation.

2008-07-16 Thread luna_guo
in tapestry 5.0.5 use tapestry-hibernate,to inject to Session,i write @org.apache.tapestry.annotations.Inject Session _session; It works well. then i change to 5.0.13, the inject annotation changed. @org.apache.tapestry5.ioc.annotations.Inject Session _session; and i get a error message. can anyon

tapestry-hibernate problem

2008-07-16 Thread luna_guo
i've tested the hibernate.cfg.xml and the mapping files. when i put them under classpath root. i get a exception page:do i need more configuration when use tapestry-hibernate? Render queue error in Expansion[PropBinding[expansion Start(hello)]]: Error invoking service builder method org.apache.t

where does onActivate method's pramameter come from?

2008-04-24 Thread luna_guo
i have the following code: int onPassivate(){ System.out.println("passivate is running"); return 3; } void onActivate(int a){ System.out.println("onActivate:"+a); } void onActivate(){ Sys

how to use t5 complete mixin

2008-04-16 Thread luna_guo
t5 beta: Start.tml: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> tutorial1 Start Page Start.java: import java.util.List; import org.apache.tapestry.annotations.Persist; import org.apache.tapestry.ioc.internal.util.CollectionFactory; publi

how to use maven?

2008-03-22 Thread luna_guo
i use maven plugin ,and add the following code to pom.xml tapestry5 http://tapestry.formos.com/maven-snapshot-repository/ but when i click add dependency ,i can't find tapesty5.0.11, the lasted version i found is tapestry5.07. can anyone tell me how to solve this proble