RE: js open a page in new window.
Thanks Jash. The directory is like below, JPKC (The application name, when it is packaged, the name is jpkc.war) | -- VideoPlayer.tml | --apply | | -- VideoList.tml Now, when user click a link in VideoList, a new VideoPlayer page should be opened using the js I pasted in blow thread. I know I can use OpenWindow('/jpkc/VideoPlayer/' + id); to open it. But sometime, I maybe change the jpkc.war to .war. If I do that, I must change js to OpenWindow('//VideoPlayer/' + id). If I can use related path in js, the issue will disappear. Thanks Stony -Original Message- From: Josh Canfield [mailto:joshcanfi...@gmail.com] Sent: Wednesday, December 22, 2010 1:56 PM To: Tapestry users Subject: Re: js open a page in new window. How can I identify the page VideoPlayer? /VideoPlayer means root context, VideoPlayer means current folder VideoPlayer page. Both of them are not what I expected. Your application is deployed in the VideoPlayer context? If that is the case everything after VideoPlayer is what's in your page package. So if you have com.whatever.app.pages.VideoPlayer and your servlet context is VideoPlayer then you access /VideoPlayer/VideoPlayer, which isn't very pretty. If you are the only app in the container consider deploying as ROOT.war, or whatever your container does to deploy your app to / instead of /VideoPlayer If I've mis-understood then could you give more information about how your app is configured? Josh On Tue, Dec 21, 2010 at 9:34 PM, Stony Zhang zhangyon...@cyberobject.com.cn wrote: I encounter a problem about how to open a page in a new window by js. In the following js, the function play() will be called when user click a window, And then try to open VidioPlayer page in a new window, the id will be captured in VideoPlayer.java ( onActivate(int id) ). Now my question is, How can I identify the page VideoPlayer? /VideoPlayer means root context, VideoPlayer means current folder VideoPlayer page. Both of them are not what I expected. function OpenWindow(openurl) { var paramet = 'toolbar=no,width=520,height=440,location=no,status=no,scrollbars=no,menubar =no,resizable=no'; newWindow = window.open(openurl, jdzcnnet, paramet); newWindow.focus(); } function play(id) { OpenWindow('/VideoPlayer/' + id); } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
js open a page in new window.
I encounter a problem about how to open a page in a new window by js. In the following js, the function play() will be called when user click a window, And then try to open VidioPlayer page in a new window, the id will be captured in VideoPlayer.java ( onActivate(int id)). Now my question is, How can I identify the page VideoPlayer? /VideoPlayer means root context, VideoPlayer means current folder VideoPlayer page. Both of them are not what I expected. function OpenWindow(openurl) { var paramet = 'toolbar=no,width=520,height=440,location=no,status=no,scrollbars=no,menubar =no,resizable=no'; newWindow = window.open(openurl, jdzcnnet, paramet); newWindow.focus(); } function play(id) { OpenWindow('/VideoPlayer/' + id); }
RE: Alternating table rows
Change code to, public boolean isEvenColumn () { return index % 2 == 0; } t:loop index=index source=list value=element t:if test=evenColumn tr class=even t:parameter name=else tr class=odd /t:parameter /t:if /tr /t:loop Thanks Stony -Original Message- From: John Doe [mailto:nicu4...@yahoo.com] Sent: Tuesday, September 14, 2010 4:28 PM To: Tapestry users Subject: Re: Alternating table rows Yes, I could do that, but that would mean putting CSS in Java classes and I would prefer avoiding that. Does Tapestry 5 have any support for conditions like index % 2 == 0 in templates? From: Stephan Windmüller stephan.windmuel...@tu-dortmund.de To: users@tapestry.apache.org Sent: Tue, September 14, 2010 11:17:03 AM Subject: Re: Alternating table rows On 14.09.2010 10:01, John Doe wrote: How can I make the alternating rows? Use the following code: private boolean switch; public String getSwitchedClass() { switch = !switch; return switch ? odd : even; } And in the tml: tr class=${switchedClass} HTH Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Can't upload file with Easy FCKeditor
I'm using T5.1.0.5 and Easy_FCKeditor 1.0.4 I just try the Easy_FCKeditor to upload image, but when I Click Image Button and then open Resouces Browser, I saw the url is as blow ./browser.html?Type=ImageConnector=http://localhost:8080/CDVAdmin/assets/easyfck/fckeditor/editor/filemanager/connectors/php/connector.php Did you notice the Connector is connector.php. I did all followed the demo http://t5-easy-fckeditor.kenai.com/FileUploads.html I'm not sure how to handle it. With you get your help. Thanks a lot in advance. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: How to unsubscribe maillist?
Hi Lili, I have the same question as you. Afeter I sent a email to [EMAIL PROTECTED], receive the error message,too. Stony -Original Message- From: lili [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 04, 2007 10:19 AM To: Tapestry users Subject: RE: How to unsubscribe maillist? I send a blank email to [EMAIL PROTECTED] But it seems that the email don't send to destination.Instead I receive a email from hotmail :( I check my mailbox filter and no tapestry.apache.org in it. This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. [EMAIL PROTECTED] Reporting-MTA: dns;bay0-omc1-s28.bay0.hotmail.com Received-From-MTA: dns;BAY111-W30 Arrival-Date: Mon, 3 Sep 2007 07:17:06 -0700 Final-Recipient: rfc822;[EMAIL PROTECTED] Action: failed Status: 5.5.0 Diagnostic-Code: smtp;552 spam score (7.3) exceeded threshold 离人网 Date: Mon, 3 Sep 2007 19:40:21 +0900 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: How to unsubscribe maillist? And check any mail filters or rules you have. I think the unsubscribe sends a confirmation mail. You have to reply to it. Cheers, Nick. Nick Westgate wrote: Hmm, I had read this before, but just tested it now. The list server will mail the help info to any email address. Check your junk mail folder etc. The help info has the email address you should contact if you can't unsubscribe. Cheers, Nick. lili wrote: hi nick: I try it.But don't receive a reply. I forget which email I use in tapestry,how to do it? How to get the email address which I create account in tapestry maillist? Date: Mon, 3 Sep 2007 16:54:19 +0900 From: [EMAIL PROTECTED] To: users@tapestry.apache.org Subject: Re: How to unsubscrib e maillist? Ensure that you are sending from the same mail account you subscribed with. To check that, email for help: [EMAIL PROTECTED] If you don't receive a reply, you are mailing from the wrong account. Cheers, Nick. lili wrote: hi everyone: Anyone could tell me how to unsubscribe tapestry mail list. Now,I don't use tapestry,so I don't want to receive email from there. I send a email with empty(blank) title to [EMAIL PROTECTED]. But I remain receive hundreds of emails everyday ! It's make me crazy~ How to unsubscribe from [EMAIL PROTECTED]? Thks! _ MSN 中文 网,最新时尚生活资讯,白领聚集门户。 http://cn.msn.com -- - --- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 手机也 能上 MSN 聊天了,快来试试吧! http://mobile.msn.com.cn/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ 手机也能上 MSN 聊天了,快来试试吧! http://mobile.msn.com.cn/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set pages to the different folder
Hi everyone, Now I want to organize my folder structure, and I don't wish all page in the same folder. Then I new a folder, and add some page files(html files too) to the new folder, But I can't access the pages in the new folder! Anyone can tell me how to solve it? Thanks Stony
RE: How to link to another website
Thanks Daniel, But WEBSITE_URL need be got in server side. and I can't use ognl:weburl to do that. Best wishes, Stony -Original Message- From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 11:53 AM To: Tapestry users Subject: Re: How to link to another website You mean to another non-tapestry website? You just do a href=WEBSITE_URL /a If you don't want to use a static URL in your template then you could also use the @GenericLink component. On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote: Hello, I want to a link to another website. Anyone can tell me how to do it? Thanks you in advance! Yours Stony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to link to another website
Thanks a lot. I have done that with @Any... -Original Message- From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 1:11 PM To: Tapestry users Subject: Re: How to link to another website Like I said, if you need to generate the url use @GenericLink. Also, keep in mind that you can add dynamic content to any tag using the @Any component. For example: a jwcid=@Any href=ognl:weburlCLiCK ME/a On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote: Thanks Daniel, But WEBSITE_URL need be got in server side. and I can't use ognl:weburl to do that. Best wishes, Stony -Original Message- From: Daniel Tabuenca [mailto:[EMAIL PROTECTED] Sent: Thursday, February 08, 2007 11:53 AM To: Tapestry users Subject: Re: How to link to another website You mean to another non-tapestry website? You just do a href=WEBSITE_URL /a If you don't want to use a static URL in your template then you could also use the @GenericLink component. On 2/7/07, Stony Zhang [EMAIL PROTECTED] wrote: Hello, I want to a link to another website. Anyone can tell me how to do it? Thanks you in advance! Yours Stony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]