Re: Refreshing a dojo Dialog on submit

2007-06-28 Thread Heping Zhang
do you resolve the problem? I think you can try to update the entire dialog box component, not only the if component, or something like this, contains the error message. I don't know whether it will work in your project, but I when encounter this problem, I tried this and it works.

Re: dojo's dialog which should hidden not hidden at first

2007-06-06 Thread Heping Zhang
Thank you. But there are some problems. If I put style=display:none in the out DIV, like the following, the Dialog will never be selected. In general, when the dialog appears, others below it will become translucent and cannot be select. And if I add the style rule like this, the dialog will also

Re: dojo's dialog which should hidden not hidden at first

2007-06-06 Thread Heping Zhang
Thank you. Maybe something others goes wrong and cause my problem. Thank you.

dojo's dialog which should hidden not hidden at first

2007-06-05 Thread Heping Zhang
hi, I use dojo's dialog to let people login,like this: div jwcid=[EMAIL PROTECTED] hidden=ognl:loginHidden div jwcid=@Login dialog=component:loginDialog needUpdate=component:userToolbarP/ /div All is ok, except one small problem. Before the page opened completely,the loginDialog appears on the

Re: t4.1.1 async call crashes inside a Border Component

2007-06-02 Thread Heping Zhang
btw, as long as I delete the async=true, even though the form still in the border component, it works. Only async+outer border component will wreck the app.

Re: flash covers dojo dialog

2007-05-31 Thread Heping Zhang
I resolved it. Just add param name=wmode value=opaque /

an inner component want to get an outer component

2007-05-30 Thread Heping Zhang
hi, I have a login pane which embeded in a dojo dialog. And when login successful, I want the dialog close. In my Login.java I wrote public void doLogin() { //... Dialog dlg = (Dialog)getComponent(loginDialog); dlg.hide(); } div jwcid=[EMAIL PROTECTED]

need an example of using Dojo Dialo

2007-05-29 Thread Heping Zhang
hi, can any one give me an example of using Dojo Dialog in tap4.1.1? Or just some cue? Since there's no one example in tapestry4.1's home page and I am a novice of tap, I do not know how to do. Thanks.

Re: need an example of using Dojo Dialo

2007-05-29 Thread Heping Zhang
Thank you!

Re: need an example of using Dojo Dialo

2007-05-29 Thread Heping Zhang
Thank you. But, you see, after one hour later, I still puzzled. It is a shame. But if any one has some a little more simply example, please help me. Thank you.

Re: need an example of using Dojo Dialo

2007-05-29 Thread Heping Zhang
I found it, TimeTracker. thank you.

Where can I find the log when using ajax?

2007-05-29 Thread Heping Zhang
hi, I use jbossas4.2.0 as server and when I do not use ajax, I can find logs in server.log, console and the page opened in browser. However, when I use ajax on the page and something happened, there's no error message on both server.log and console. And In the page the error message is

Can't a Component has its own listener?

2007-05-29 Thread Heping Zhang
hi, I have a Border component like this: html jwcid=@Shell title=test body jwcid=@Body a jwcid=@DirectLink listener=listener:showDialog updateComponents=testDialog3Show 3/abr/ div jwcid=[EMAIL PROTECTED] hidden=ognl:dlHidden3 p style=display:block;background:#ff;width:20em;

Re: Can't a Component has its own listener?

2007-05-29 Thread Heping Zhang
Thank you Jesse! It is because of the org.apache.tapestry.component-class-packages configuration. In fact I just thought org.apache.tapestry.page-class-packages is enough and I don't know there is a org.apache.tapestry.component-class-packages. Thank you!

Re: Where can I find the log when using ajax?

2007-05-29 Thread Heping Zhang
Oh thank you. But maybe I don't express it correctly. My page is the left and when error happened Tapestry will generate a page like the right. When I don't use ajax, it works well, first the original page and then error happened and it turns to the right. But when using ajax, or more exactly,

Re: Where can I find the log when using ajax?

2007-05-29 Thread Heping Zhang
I'm sorry. It's me didn't understand you. Thanks for your reply!

Re: where can I download the taestry 4.1.1's documents

2007-05-25 Thread Heping Zhang
ok, then, Gareth, let's wait. And Jesse, thanks for your hard work!

where can I download the taestry 4.1.1's documents

2007-05-24 Thread Heping Zhang
hi, all, could any one tell me where can I download the taestry 4.1.1's documents, includes UsersGuide, api and so on? I have seeked this in its homepage and the download page but not found. Since sometimes I cannot access the net, an offline document is really needed. Thank you! BTW, if someone

how to use more than one parameters in DirectLink

2007-05-23 Thread Heping Zhang
hi, all, I know how to use binding parameters in DirectLink if there is only one parameter. However now I want two parameters and it keeps say No listener method named 'gotoPage' suitable for no listener parameters found . I doubt I use it incorrectly. I write it this way: component

Re: how to use more than one parameters in DirectLink

2007-05-23 Thread Heping Zhang
Thank you!

Re: how to use more than one parameters in DirectLink

2007-05-23 Thread Heping Zhang
Thank you, I've tried and it works. It is more conveniency. Thank you all!

cannot pass String parameters if they are not encoded with ISO8859-1

2007-05-23 Thread Heping Zhang
hi, all, I write a button and its listener is a onOk method like this: public IPage onOk() { //... resultPage.setProfession(prof); resultPage.setAddress(add); System.err.println(resultPage.getProfession()+resultPage.getAddress() +resultPage.getProfession()+resultPage.getAddress()); return

Re: cannot pass String parameters if they are not encoded with ISO8859-1

2007-05-23 Thread Heping Zhang
oh, you always know the solution! Thank you!

looking for such a component

2007-05-20 Thread Heping Zhang
hi, all, I'm a novice to tapestry. And I wonder whether there is such a compenont. Generally, it acts like a table. But while table presents content this way: - row 1 - row 2 - row 3 - row 4 - I am looking for a

Re: looking for such a component

2007-05-20 Thread Heping Zhang
hi, Jonathan, thank you. That's what I am trying to do now. As I have ever used JSF and it has a table component which can designate its style to ask it display rows as grids, I do know whether tap has such a component, so I post this email. Still thanks for your help. Your demo helps me with

any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang
hi, I use tapestry as web tier and want get a slsb in this tier. this is my code: public abstract class Home extends BasePage { // @EJB // Calculator bean; public String getResult() { // Double message = bean.calculate(11, 22, 0.08, 44); // return message.toString(); InitialContext ctx =

Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang
ciao, kiuma On 5/18/07, Heping Zhang [EMAIL PROTECTED] wrote: hi, I use tapestry as web tier and want get a slsb in this tier. this is my code: public abstract class Home extends BasePage { // @EJB // Calculator bean; public String getResult() { // Double message = bean.calculate(11

Re: any idea to inject a ejb to tapestry?

2007-05-18 Thread Heping Zhang
thank you very much! I will try that.Thank you again!

failed to deploy tapestry to jbossas 4.2.0

2007-05-18 Thread Heping Zhang
hi, I've ever deploy my app on jbossas 5 and it works well. but when today I just want to use jbossas 4.2.0 since it is GA version, it crashed. here is the message: javax.servlet.ServletException: org.apache.hivemind.ApplicationRuntimeException: Unable to construct service