Re: Refreshing a dojo Dialog on submit
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
Thank you. Maybe something others goes wrong and cause my problem. Thank you.
Re: dojo's dialog which should hidden not hidden at first
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 be translucent and cannot be select when it is asked to appear. I think maybe that's because there is colliding between the attribute of hidden and the attribute of style? And if I put the rule in the inner DIV, it don't work. The dialog still appear at first. Thanks for your help. Yet this problem still puzzles me.
dojo's dialog which should hidden not hidden at first
hi, I use dojo's dialog to let people login,like this: All is ok, except one small problem. Before the page opened completely,the loginDialog appears on the top of the page. Only after the browser download the entire page the dialog hidden. I initialize the loginHidden property to true. If the time it takes to download the page is long, the dialog which should hidden makes it not perfect. Could someone help me?
Re: t4.1.1 async call crashes inside a Border Component
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.
t4.1.1 async call crashes inside a Border Component
hi, I have a page to let people upload something, using ajax. At first it worked. But after I surround it with a Border Component like the following code, it crashes. //those things worked well, looks like: // // // When I click the upload button, it does nothing. And the listen method on server side is not called. On the firebug console, it says: ERROR: 23:30:42: Error received in IO response. On the DOM pane of firebug, the message is "None of the loaded transports for dojo.io.bind() can handle the request." Could someone help me? Thank you in advance.
Re: flash covers dojo dialog
I resolved it. Just add ""
flash covers dojo dialog
hi, I have a login link which will trigger a dojo dialog appear to let people login and then I add a flash on Home page. Before adding, all things is ok. But after that, when I want login, I find that the flash's div is above the dialog's. The flash covers dojo dialog. Here is the code insert the flash. var f="images/learn.swf"; var f_w = "775"; var f_h = "210"; document.write(''); I examine the dojo script and find the dialog's z-index is 999. So why this happen and how to resolve it ?
Re: an inner component want to get an outer component
Thank you very much! It works well.
an inner component want to get an outer component
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(); } Component [EMAIL PROTECTED]/$Border.$Header.$Login] does not contain a component loginDialog. What can I do then? Or can I do something to tell the outer I am success and you handle other thing? Thank you.
Re: Where can I find the log when using ajax?
I'm sorry. It's me didn't understand you. Thanks for your reply!
Re: Where can I find the log when using ajax?
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, dojo, the two pages overlaped. Just image the right moved horizontally to left and laps over the original page. That's what I see in firefox. The first page doesn't disappear when the second appears. So they overlap and that makes me cannot read the error message. That's my problem. When I ask I thought its a common problem and you can understand what I say easily. But it seems only me encounter this problem. So, if there is no solution, on my, left it to me. There is still a solution. I can read the source file of the html page and get the imformation I need. But still thank you! ___ | error message such | ___| as Object $BaseComponent | | | | [Home/$Border] does not | | the page | | implement a listener | | when errors | | method named 'showDialog' | | happened. | | blah blah... | |_| | blah... | | blah... | | blah... | |_|
Re: Can't a Component has its own listener?
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!
Can't a Component has its own listener?
hi, I have a Border component like this: Show 3 This is content hidden in a Dialog. Close And in Border.java I have a method: public abstract class Border extends BasePage { public void showDialog() { Dialog dlg = (Dialog) getComponent("testDialog3"); dlg.show(); } } However, when I call this component in Home page, it keeps tell me Object [EMAIL PROTECTED]/$Border] does not implement a listener method named 'showDialog' But I do have this method! I found this: http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html is that means component can't has its own listeners defined in itself? Thank you in advance.
Where can I find the log when using ajax?
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 unreadable because it lapped over the original page which makes the error. I want the log to see what cause the error on earth. could anyone help me?
Re: need an example of using Dojo Dialo
I found it, TimeTracker. thank you.
Re: need an example of using Dojo Dialo
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
Thank you!
need an example of using Dojo Dialo
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: where can I download the taestry 4.1.1's documents
ok, then, Gareth, let's wait. And Jesse, thanks for your hard work!
where can I download the taestry 4.1.1's documents
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 knows the dojo.book's download link, please also tell me. Thanks.
Re: cannot pass String parameters if they are not encoded with ISO8859-1
oh, you always know the solution! Thank you!
cannot pass String parameters if they are not encoded with ISO8859-1
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 resultPage; } at this time the System.err.println method prints right character. In another page, the resultPage, I have a DirectLink and persist the profession and address String in the client and then get them back when the client click the DirectLink. This is my DirectLink : the DirectLink's listener is something like this: public void gotoPage(String profession, String address) { System.err.println(profession + address); //... } and the System.err.println just prints characters like ???. If the parameter is English characters , it works ok. But when it is Chinese characters, it seems encoded incorrected. Further more, when I get the result Page in browser, hover the cursor on that direst link, on the bar in the bottom of browser I can see the link and it encoded correct. It seems only when the server get the parameter from the client back, something goes wrong. Could someone help me?
Re: how to use more than one parameters in DirectLink
Thank you, I've tried and it works. It is more conveniency. Thank you all!
Re: how to use more than one parameters in DirectLink
Thank you!
how to use more than one parameters in DirectLink
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: public IPage gotoPage(Object[] parameters) { //... } Is it wrong? how can I use it? Thank you.
Re: looking for such a component
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 this For component!
looking for such a component
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 component presents content this way: -+-- row 1 | row 2 -+-- row 3 | row 4 -+-- it puts the contest into grids, not rows. Is there any conponents like this? thank you!
failed to deploy tapestry to jbossas 4.2.0
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 tapestry.request.DisableCachingFilter: Error building service tapestry.request.DisableCachingFilter: Failure invoking constructor for class org.apache.tapestry.services.impl.DisableCachingFilter: edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock [jar:file:/D:/server/jboss- 4.2.0.GA/server/default/lib/tapestry-framework-4.1.1.jar!/META-INF/tapestry.request.xml, line 238, column 20] org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service( WebRequestServicerPipelineBridge.java:65) $ServletRequestServicer_112a21e8bb3.service($ServletRequestServicer_112a21e8bb3.java) could any one tell me why and how to resolve this? thank you!
Re: any idea to inject a ejb to tapestry?
thank you very much! I will try that.Thank you again!
Re: any idea to inject a ejb to tapestry?
thanks for your reply! however, as I use ejb3, it seems that hivemind doesn't support *EJB3: http://www.nabble.com/EJB3-and-EJBProxyFactory...-t943423.html Since this message is one year ago, I don't know is there any more development of hivemind on this subject? Or any other way to inject slsb to tapestry?* I also looked through HiveMind 2's homepage, but it does not mention this thing. So, I just have no idea. Thank you! 2007/5/18, Andrea Chiumenti <[EMAIL PROTECTED]>: With T4 ? Have a look here: http://hivemind.apache.org/hivemind1/hivedocs/service/hivemind.lib.EJBProxyFactory.html 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, 22, 0.08, 44); > // return message.toString(); > > InitialContext ctx = null; > Calculator bean = null; > try { >ctx = new InitialContext(); >bean = (Calculator) ctx > .lookup("ejb3TapestryJboss/CalculatorBean/local"); > } catch (NamingException e) { >e.printStackTrace(); > } > > Double message = bean.calculate(22, 22, 0.08, 22); > return "ok! " + message.toString(); > } > } > When I use JNDI's lookup, as showed above, it works. But when I want to > inject a slsb to this page, as the commented code showed, it get nothing. No > bean is injected. do I misues this annotation? and how can I inject a bean > to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5 > beta2 as the server. > Thanks for your help in advance. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
any idea to inject a ejb to tapestry?
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 = null; Calculator bean = null; try { ctx = new InitialContext(); bean = (Calculator) ctx .lookup("ejb3TapestryJboss/CalculatorBean/local"); } catch (NamingException e) { e.printStackTrace(); } Double message = bean.calculate(22, 22, 0.08, 22); return "ok! " + message.toString(); } } When I use JNDI's lookup, as showed above, it works. But when I want to inject a slsb to this page, as the commented code showed, it get nothing. No bean is injected. do I misues this annotation? and how can I inject a bean to tapestry? or I can only do this in servlet? By the way, I use jbossAs 5 beta2 as the server. Thanks for your help in advance.