Re: how can i construct external url with querystring???
Don't understand your problem well. Doesn't [a href=${fwdLink}login/a] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26089334.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26089334.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26089818.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, a href=${fwdLink}login/a. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer
Re: tapestry 5.1.0.5 and AJAX project/example?
I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. And to you Argo, please be more specific. Post code samples of (isolated) things you would like to achieve. Don't be vague, don't ask a lot of different questions in a single post, and be respectful. Then, I'm 100% sure you'll get the help you need from the smart and friendly people on this list. As the others say, you can learn a lot from checking out the wiki, source code and so on. Read the autocompleter mixin source code and the documentation. That's all I needed to get started writing AJAX easy and clean. See my code samples at: http://tinybits.blogspot.com On Wed, Oct 28, 2009 at 1:13 AM, Argo Vilberg wilps...@gmail.com wrote: 2009/10/27 Magnus Rundberget run...@me.com On 27. okt.. 2009, at 19.58, Argo Vilberg wrote: hi, Is there any project sources on internet where i can learn advance ajax and Tapestry coding? So you are way beyond http://tapestry.apache.org/tapestry5.1/guide/ajax.html ? You have looked at the bundled components and mixins (and their source) ? Maybe you have even had a peak at www.chenillekit.org / http://chenillekit.codehaus.org ? And you have tried http://wiki.apache.org/tapestry/Tapestry5HowTos for inspiration ? Let me rephrase. What do you mean by advanced and which sources have you tried already ? I want create full dynamic HTML, with full ajax and javascript control over dynamic HTML. I write early 2 month ago asp 1.0 + jQuery + ajax. And that was pretty easy. And also i write php with codeignator + jQuery, also no problem. Watch estonian fresh food google MAP project (www.elavtoit.com) And now with tapestry, i use day after day try - exit method(this is exactly translation from estonian:) and i do not fully understand why this framework is so complicated. There are annotations and other trick, that combine full new tehnology over html,css,javascript,ajax. What is that for? All component deals with hard staff for you. But if i do not understand how component works, and secondly if i try do something diffferent that component allows then there is black hole( no way to do it ). Or spend days after days try-and try wich ways in tapestry works. This try to make coding easier is at last make coding much harder than in regular asp 1.0 or PHP. Earler i write estonain e-School project, now approximatley 85% estonian school are using it and 50% of population of estonia using it. There are my own written framework, similar to hibarenate(caching, clustering, db-pooling) and also old j2ee standard xml-xslt transformation framework. Fully optimized and works fine. In current project tapestry is not my choise but i must end this project. Once you get the hang of how tapestry supports ajax, i'm sure you can go as advanced as you like. Also is i interested jQuery and Tapestry advance examples. Once you get over the conflict of $, it should in theory be straight forward... check out the wiki on howto enable jquery. Let me know if you find any good examples of cool jquery plugin integrations for tapestry ! Jes i get over $ confict. But i spend over 1 week to get tapestry ajax working with select onchange. Changing 5.0.14 to 5.1.0.5 And if i want generate dynamic HTML. This is only possible with tapestry LOOP, if loop is over LIST of String:) If there are any kind on other datatype, then error occored. But how to put in dynamic HTML select javacript and AJAX. I dont know So i must figure out how get over Tapestry and use only ANY tapestry component. And is there possible switch off tapestry javascript and write fully my own javascript? Search this forum for disable javascript (somebody asked the same not to long ago) Is there any particular reason you wish to fight the framework ? Why must framework so complicated. So many classes and annotation that hard to see hole picture. If there are some greate project done in tapestry5 with complicated AJAX, then plese send me source code:) This is way to learn Tapestry5!!! ARgo
Re: tapestry 5.1.0.5 and AJAX project/example?
Argo maybe u could describe consider a complex example. I didn't see anything complex that could be handle using the zone component. Jumpstsry provide Ajax demos with forms and the behavior of the zone component should be enough for most of the cases. So please let us know an example that would require something else. (autocomplete uses json) A component based framework works differntly to what u may have used. And It's very difficult to like something if u r not open minded. Yes, there's a learning curve but I don't think there r more than 5 annotation u have to learn and ur classes don't need to know about any other class. Also tapestry does a lot of JS for u. That is one of the advantages. U can write a web app that uses Ajax without writing a single line of js. If u want to change the js completly u should have a very good reason. It's not a common thing to do. This's ur first project and u have to deal with internal of tapestry to change the js(at least understand it), that could be frustrating. On Wednesday, October 28, 2009, Inge Solvoll inge.tapes...@gmail.com wrote: I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. And to you Argo, please be more specific. Post code samples of (isolated) things you would like to achieve. Don't be vague, don't ask a lot of different questions in a single post, and be respectful. Then, I'm 100% sure you'll get the help you need from the smart and friendly people on this list. As the others say, you can learn a lot from checking out the wiki, source code and so on. Read the autocompleter mixin source code and the documentation. That's all I needed to get started writing AJAX easy and clean. See my code samples at: http://tinybits.blogspot.com On Wed, Oct 28, 2009 at 1:13 AM, Argo Vilberg wilps...@gmail.com wrote: 2009/10/27 Magnus Rundberget run...@me.com On 27. okt.. 2009, at 19.58, Argo Vilberg wrote: hi, Is there any project sources on internet where i can learn advance ajax and Tapestry coding? So you are way beyond http://tapestry.apache.org/tapestry5.1/guide/ajax.html ? You have looked at the bundled components and mixins (and their source) ? Maybe you have even had a peak at www.chenillekit.org / http://chenillekit.codehaus.org ? And you have tried http://wiki.apache.org/tapestry/Tapestry5HowTos for inspiration ? Let me rephrase. What do you mean by advanced and which sources have you tried already ? I want create full dynamic HTML, with full ajax and javascript control over dynamic HTML. I write early 2 month ago asp 1.0 + jQuery + ajax. And that was pretty easy. And also i write php with codeignator + jQuery, also no problem. Watch estonian fresh food google MAP project (www.elavtoit.com) And now with tapestry, i use day after day try - exit method(this is exactly translation from estonian:) and i do not fully understand why this framework is so complicated. There are annotations and other trick, that combine full new tehnology over html,css,javascript,ajax. What is that for? All component deals with hard staff for you. But if i do not understand how component works, and secondly if i try do something diffferent that component allows then there is black hole( no way to do it ). Or spend days after days try-and try wich ways in tapestry works. This try to make coding easier is at last make coding much harder than in regular asp 1.0 or PHP. Earler i write estonain e-School project, now approximatley 85% estonian school are using it and 50% of population of estonia using it. There are my own written framework, similar to hibarenate(caching, clustering, db-pooling) and also old j2ee standard xml-xslt transformation framework. Fully optimized and works fine. In current project tapestry is not my choise but i must end this project. Once you get the hang of how tapestry supports ajax, i'm sure you can go as advanced as you like. Also is i interested jQuery and Tapestry advance examples. Once you get over the conflict of $, it should in theory be straight forward... check out the wiki on howto enable jquery. Let me know if you find any good examples of cool jquery plugin integrations for tapestry ! Jes i get over $ confict. But i spend over 1 week to get tapestry ajax working with select onchange. Changing 5.0.14 to 5.1.0.5 And if i want generate dynamic HTML. This is only possible with tapestry LOOP, if loop is over LIST of String:) If there are any kind on other datatype, then error occored. But how to put in dynamic HTML select javacript and AJAX. I dont know So i must figure out how get over Tapestry and use only ANY tapestry component.
Re: tapestry 5.1.0.5 and AJAX project/example?
Sorry the mess at the begining. What I meant is that I didn't see anything complex in the url u provided that couldn't be handle using the zone component On Wednesday, October 28, 2009, Juan E. Maya maya.j...@gmail.com wrote: Argo maybe u could describe consider a complex example. I didn't see anything complex that could be handle using the zone component. Jumpstsry provide Ajax demos with forms and the behavior of the zone component should be enough for most of the cases. So please let us know an example that would require something else. (autocomplete uses json) A component based framework works differntly to what u may have used. And It's very difficult to like something if u r not open minded. Yes, there's a learning curve but I don't think there r more than 5 annotation u have to learn and ur classes don't need to know about any other class. Also tapestry does a lot of JS for u. That is one of the advantages. U can write a web app that uses Ajax without writing a single line of js. If u want to change the js completly u should have a very good reason. It's not a common thing to do. This's ur first project and u have to deal with internal of tapestry to change the js(at least understand it), that could be frustrating. On Wednesday, October 28, 2009, Inge Solvoll inge.tapes...@gmail.com wrote: I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. And to you Argo, please be more specific. Post code samples of (isolated) things you would like to achieve. Don't be vague, don't ask a lot of different questions in a single post, and be respectful. Then, I'm 100% sure you'll get the help you need from the smart and friendly people on this list. As the others say, you can learn a lot from checking out the wiki, source code and so on. Read the autocompleter mixin source code and the documentation. That's all I needed to get started writing AJAX easy and clean. See my code samples at: http://tinybits.blogspot.com On Wed, Oct 28, 2009 at 1:13 AM, Argo Vilberg wilps...@gmail.com wrote: 2009/10/27 Magnus Rundberget run...@me.com On 27. okt.. 2009, at 19.58, Argo Vilberg wrote: hi, Is there any project sources on internet where i can learn advance ajax and Tapestry coding? So you are way beyond http://tapestry.apache.org/tapestry5.1/guide/ajax.html ? You have looked at the bundled components and mixins (and their source) ? Maybe you have even had a peak at www.chenillekit.org / http://chenillekit.codehaus.org ? And you have tried http://wiki.apache.org/tapestry/Tapestry5HowTos for inspiration ? Let me rephrase. What do you mean by advanced and which sources have you tried already ? I want create full dynamic HTML, with full ajax and javascript control over dynamic HTML. I write early 2 month ago asp 1.0 + jQuery + ajax. And that was pretty easy. And also i write php with codeignator + jQuery, also no problem. Watch estonian fresh food google MAP project (www.elavtoit.com) And now with tapestry, i use day after day try - exit method(this is exactly translation from estonian:) and i do not fully understand why this framework is so complicated. There are annotations and other trick, that combine full new tehnology over html,css,javascript,ajax. What is that for? All component deals with hard staff for you. But if i do not understand how component works, and secondly if i try do something diffferent that component allows then there is black hole( no way to do it ). Or spend days after days try-and try wich ways in tapestry works. This try to make coding easier is at last make coding much harder than in regular asp 1.0 or PHP. Earler i write estonain e-School project, now approximatley 85% estonian school are using it and 50% of population of estonia using it. There are my own written framework, similar to hibarenate(caching, clustering, db-pooling) and also old j2ee standard xml-xslt transformation framework. Fully optimized and works fine. In current project tapestry is not my choise but i must end this project. Once you get the hang of how tapestry supports ajax, i'm sure you can go as advanced as you like. Also is i interested jQuery an - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Injecting Tapestry services into Spring beans
Ok, i found the problem. To inject the service u have to use: @Inject @Autowired private Service MyService; As always the problem was between the screen and chair :) On Wed, Oct 28, 2009 at 1:06 AM, Juan E. Maya maya.j...@gmail.com wrote: Hi Hennig, did u manage to resolve this problem? i am having the same issue. I just can't inject any tapestry beans inside Spring. I using tapestry 5.1.0.5 and spring 2.6. Without compatible mode but the services just don't get injected :( On Fri, Jul 10, 2009 at 3:00 PM, Henning Petersen henning.peter...@daenen4.de wrote: Hi everybody, I'm trying to inject two services from Tapestry-Spring-Security into a Spring bean, using Tapestry 5.1.0.5 and Spring 2.5.6-SEC01. The way I think this should work is this: public class PasswordChangeServiceImpl implements PasswordChangeService { �...@inject private SaltSourceService saltSource; �...@inject private PasswordEncoder passwordEncoder; ... private String createPasswordHash(String plainTextPass) { UserDetails userDetails = ... Object salt = this.saltSource.getSalt(userDetails); return this.passwordEncoder.encodePassword(plainTextPass, salt); } } and bean id=passwordChangeService class=PasswordChangeServiceImpl ...(other dependencies)... /bean I inject the service instance into my page using the @Inject annotation: public class UserProfile { �...@inject private PasswordChangeService passwordChangeService; ... } The service is properly configured as far as the dependencies handled by Spring are concerned, but the two services that I'd like to be injected from Tapestry's IoC newer make it into the instance, and I get a NullPointerException when they are accessed. Both SaltSourceService and PasswordEncoder are defined and visible on the service status page, and they work like a charm when injected into components directly. I'm not using 5.0 compatibility mode. Does anyone have an idea what I am missing? Thanks Henning - 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
Re: how can i construct external url with querystring???
But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i construct external url with querystring??? Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
That's right... createPageRender() is to create internal link, Thats why i am not able to create external link by this method. Currently i am constructing the link with following approach. But i am not sure, that is it good way to create an exteranl link./ public String getFwdLink(){ StringBuilder fwdLink= new StringBuilder(); fwdLink.append(messages.get(siteURL)); fwdLink.append(?); fwdLink.append(RET_URL); fwdLink.append(messages.get(mysite)); fwdLink.append(); fwdLink.append(AUTH_DPID); fwdLink.append(messages.get(dsp_ID)); fwdLink.append(); fwdLink.append(AUTH_ACTION); fwdLink.append(messages.get(actionToken)); return fwdLink.toString(); } Please conferm that is above method to create exteranl link is good with tapestry. Sameer DH-14 wrote: But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i construct external url with querystring??? Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26092168.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
Hello I use java.net.URL to create external URLs, this allows me to verify URL is valid. Tapestry uses java.net.URL for external redirection, i mean that action method can return URL and Tapestry will do the redirection work. Regards Christophe. 2009/10/28 sameerkhare sameer.kh...@hcl.in That's right... createPageRender() is to create internal link, Thats why i am not able to create external link by this method. Currently i am constructing the link with following approach. But i am not sure, that is it good way to create an exteranl link./ public String getFwdLink(){ StringBuilder fwdLink= new StringBuilder(); fwdLink.append(messages.get(siteURL)); fwdLink.append(?); fwdLink.append(RET_URL); fwdLink.append(messages.get(mysite)); fwdLink.append(); fwdLink.append(AUTH_DPID); fwdLink.append(messages.get(dsp_ID)); fwdLink.append(); fwdLink.append(AUTH_ACTION); fwdLink.append(messages.get(actionToken)); return fwdLink.toString(); } Please conferm that is above method to create exteranl link is good with tapestry. Sameer DH-14 wrote: But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i construct external url with querystring??? Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26092168.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how can i construct external url with querystring???
I am not very much clear that how it will work in my case. I have a link in tml page and assign the url value with querystring to that link. How can i do this with URL class. Please help me more on it. BR Sameer cordenier christophe wrote: Hello I use java.net.URL to create external URLs, this allows me to verify URL is valid. Tapestry uses java.net.URL for external redirection, i mean that action method can return URL and Tapestry will do the redirection work. Regards Christophe. 2009/10/28 sameerkhare sameer.kh...@hcl.in That's right... createPageRender() is to create internal link, Thats why i am not able to create external link by this method. Currently i am constructing the link with following approach. But i am not sure, that is it good way to create an exteranl link./ public String getFwdLink(){ StringBuilder fwdLink= new StringBuilder(); fwdLink.append(messages.get(siteURL)); fwdLink.append(?); fwdLink.append(RET_URL); fwdLink.append(messages.get(mysite)); fwdLink.append(); fwdLink.append(AUTH_DPID); fwdLink.append(messages.get(dsp_ID)); fwdLink.append(); fwdLink.append(AUTH_ACTION); fwdLink.append(messages.get(actionToken)); return fwdLink.toString(); } Please conferm that is above method to create exteranl link is good with tapestry. Sameer DH-14 wrote: But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i construct external url with querystring??? Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26092168.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26092303.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:
Upload within AjaxFormLoop Example
Hello out there, I am trying to use the Tapestry 'Upload' component within an AjaxFormLoop component but having a lot of trouble with it. I am near to the solution but the final result doesn´t come. I found a small example documented within bug 'TAPESTRY-2453' and in another thread of this mailing list which describes the problem, see the following links please: https://issues.apache.org/jira/browse/TAPESTRY-2453 http://www.mail-archive.com/users@tapestry.apache.org/msg25966.html If any one out there has a COMPLETE WORKING EXAMPLE how to accomplish this, could you please provide it somehow. Thanks in advance smime.p7s Description: S/MIME cryptographic signature
Re: how can i construct external url with querystring???
Maybe you want String.format instead? String.format(http://somesite.com/ath/?param1=%sparam2=%s;, param1, param2) On Wed, 28 Oct 2009 11:11:37 +0100, sameerkhare sameer.kh...@hcl.in wrote: That's right... createPageRender() is to create internal link, Thats why i am not able to create external link by this method. Currently i am constructing the link with following approach. But i am not sure, that is it good way to create an exteranl link./ public String getFwdLink(){ StringBuilder fwdLink= new StringBuilder(); fwdLink.append(messages.get(siteURL)); fwdLink.append(?); fwdLink.append(RET_URL); fwdLink.append(messages.get(mysite)); fwdLink.append(); fwdLink.append(AUTH_DPID); fwdLink.append(messages.get(dsp_ID)); fwdLink.append(); fwdLink.append(AUTH_ACTION); fwdLink.append(messages.get(actionToken)); return fwdLink.toString(); } Please conferm that is above method to create exteranl link is good with tapestry. Sameer DH-14 wrote: But what you want is external link, createPageRender() is to create internal link, you need provide your app internal page name. DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 5:29 PM Subject: Re: how can i construct external url with querystring??? Is it the good way to construct the url by this way. I think it is not. I am trying to use Link tapestry class with createPageRender() method. but no luck.. DH-14 wrote: I think there isn't any difference between Tapestry and other framewords here. Or did I misunderstand? You have defined the 'getFwdLink' in your java class, then just construct the url and assign this property in tml: public String getFwdLink() { return String.format(http://www.mysite.com?userId=%spass=%s, userId, ab); // you can use any way you like } In tml, ${fwdLink} login . DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 2:08 PM Subject: Re: how can i construct external url with querystring??? Then how can i construct the external URL with query string in tapestry. My Problem is that, I have a link on my tml page. and i need to construct URL with querystring and assign it to the link in tml page. Please suggest me, that how can i implement it. sameer DH-14 wrote: Don't understand your problem well. Doesn't [ ${fwdLink} login ] fit your need? DH http://www.gaonline.com.cn - Original Message - From: sameerkhare To: users@tapestry.apache.org Sent: Wednesday, October 28, 2009 12:47 PM Subject: how can i construct external url with querystring??? I want to construct a URL as below and forward to that external URL through tapestry 5. My tml file contains link as below ${fwdLink} login and correspoinding java file contains getter method for it. public String getFwdLink() { return fwdLink= Http://www.mysite.com?userId=abcpass=ab; } My problem is that how can i construct url with querystring??? Please let me know if any one has any idea on it. Thanks Sameer -- View this message in context: http://www.nabble.com/how-can-i-construct-external-url-with-querystringtp26089334p26091675.html Sent from the Tapestry - User mailing list archive at Nabble.com. - 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
Re: Good news about Tapestry 5 in Google App Engine
I've made a Pull request on github with fixes for java.lang.VerifyError. Here's the commit details: http://github.com/dmitrygusev/tapestry5/commit/35197745d13ffed1fb89d730dbc85f750bf50bb0 On Mon, Sep 14, 2009 at 07:14, Alex Kotchnev akoch...@gmail.com wrote: A follow up question to the committers on this : Is Jun's approach below something acceptable to do in the meantime ? I was trying to deploy a test 5.1 app to GAE and I ran into the same issue. As he indicated these methods had emtpy try-catch blocks, removing which is supposed to resolve the issue. THe part that worries me are the magical $ANTLR comments that I think can somehow be used by ANTLR. Any tips ? Cheers, Alex K On Fri, Sep 4, 2009 at 3:50 AM, Jun Tsai jun.t...@gmail.com wrote: I had manually fixed the problem.Remove some empty method body in PropertyExpressionLexer.java maked by antlr. // $ANTLR start INTEGER public final void mINTEGER() throws RecognitionException { } // $ANTLR end INTEGER // $ANTLR start DEREF public final void mDEREF() throws RecognitionException { } // $ANTLR end DEREF // $ANTLR start RANGEOP public final void mRANGEOP() throws RecognitionException { } // $ANTLR end RANGEOP // $ANTLR start DECIMAL public final void mDECIMAL() throws RecognitionException { } and repacked. It works fine. 2009/9/4 Jun Tsai jun.t...@gmail.com The ticket had been fixed.I had tested on GAE using 1.2.5 SDK. But when I write simple pagelink t:pagelink page=about about/t:pagelink ,some exception thrown. java.lang.VerifyError: (class: org/apache/tapestry5/internal/antlr/PropertyExpressionLexer, method: mRANGEOP signature: ()V) Stack size too large at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.parse(PropertyConduitSourceImpl.java:1229) at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1124) at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1080) Who can give me an idea about the exception. thanks. 2009/9/4 Thiago H. de Paula Figueiredo thiag...@gmail.com --- Mensagem encaminhada --- De: codesite-nore...@google.com Assunto: Issue 1277 in googleappengine: Add javax.xml.stream to whitelist Data: Thu, 03 Sep 2009 19:34:42 -0300 Updates: Status: Fixed Labels: Version-1.2.5 Comment #12 on issue 1277 by sly...@google.com: Add javax.xml.stream to whitelist http://code.google.com/p/googleappengine/issues/detail?id=1277 This has been fixed in the 1.2.5 release. http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes Support for the Stax API, javax.xml.stream. You can now use both the JDK's Stax parser as well as third-party Stax libraries like Woodstox. Can anyone confirm that a vanilla Tapestry 5.1.0.5 works in GAE now? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- regards, Jun Tsai -- regards, Jun Tsai -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: how can i construct external url with querystring???
Em Wed, 28 Oct 2009 07:29:54 -0200, sameerkhare sameer.kh...@hcl.in escreveu: Is it the good way to construct the url by this way. It is for external URLs. I am trying to use Link tapestry class with createPageRender() method. but no luck.. createPageRender() and similar methods is the right way to create links for Tapestry pages (internal links). -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Upload within AjaxFormLoop Example
That thread, in the last message, says that it isn't possible to use AJAX to do file uploads. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Upload within AjaxFormLoop Example
Yeah sure but it also says that someone has managed to do this by using hidden iframes. On 28.10.2009, at 13:31, Thiago H. de Paula Figueiredo wrote: That thread, in the last message, says that it isn't possible to use AJAX to do file uploads. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org smime.p7s Description: S/MIME cryptographic signature
Addendum to previous request for help.
Sorry, I forgot to put this in the first e-mail.. I'm using Tapestry 5.1.0.5, running in Tomcat.
Soliciting suggestions about how to even start tracking this problem down.
Really sorry for the fragmentary e-mails. I mis-typed the e-mail for the main post, posted an addendum, then saw this post had been bounced. Ignore my other e-mail. Honest, occasionally I'm competent The end of the email is a partial stack trace that I'm pretty sure is corresponds to this error. I'm using Tapestry 5.1.0.5, running in Tomcat. The problems are: 1 it's intermittent 2 I can't reproduce it at will, even when it's just happened to her. 3 She only sees it when using IE 7, but since it's intermittent that's not necessarily required. 4 The server gets bounced every night when we put up the nightly build, and this has happened Monday and Wednesday, but not Tuesday. I'm looking for any suggestions for approaches to tracking this down, particularly if there's some help I can get from Tapestry logging or our app loggin etc. I'd really like to have some other resolution than making random changes until the problem goes away, perhaps permanently G Several notes about this trace: 1 there's a *LOT* more. I'll be glad to post it if it'll help. 2 mystuff/CreateAgeProfile] is in our code, but line 84 is just a blank line near the beginning of the class. It's possible that the source code I'm looking is a few hours out of date, but according to our process and SVN it shouldn't be. 3 The lines in the trace from SKSModuleServices are below, line 178 is in yellow. They're part of a contributeMarkupRenderer method. environment.push(ValidationDecorator.class, new InlineSksValidationDecorator(environment, writer, spacerImage, false)); renderer.renderMarkup(writer); // line 178 environment.pop(ValidationDecorator.class); 4 I had a partial stack trace Monday that *might* have implicated a number format exception, but there's no trace of that today. Additionally, that trace *might* have implicated long-int conversion. 5 I really hate intermittent problems like this G. Thanks Erick ERROR [2009-10-28 12:03:19,515] rocessor1 (Registry:75 ) - No service implements the interface [B. ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:76 ) - Operations trace: ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:85 ) - [ 1] Autobuilding instance of class java.lang.String ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 2] Determining injection value for parameter #1 (byte[]) ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 3] Resolving object of type byte[] using MasterObjectProvider ERROR [2009-10-28 12:03:19,518] rocessor1 (CreateAgeProfile:84 ) - Render queue error in BeginRender[mystuff/CreateAgeProfile]: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:948) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$400(ComponentPageElementImpl.java:49) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.callback(ComponentPageElementImpl.java:159) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.render(ComponentPageElementImpl.java:211) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:74) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121) at $PageRenderQueue_1249923d08b.render($PageRenderQueue_1249923d08b.java) at $PageRenderQueue_1249923d083.render($PageRenderQueue_1249923d083.java) at org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) at com.proquest.apps.sks.services.SKSModuleServices$1.renderMarkup(SKSModuleServices.java:178) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1748) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1732) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1714) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1700) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at
Re: Soliciting suggestions about how to even start tracking this problem down.
Hello Can you send the code of the 'CreateAgeProfile' page ? For the meantime a good thing (if you have not already done it) would be to check your classpath to verify that there is not multiple tapestry jar versions, and verify that your javassist jar is conformed to the one used by Tapestry 5 - 3.9.0.GA Regards Christophe 2009/10/28 Erick Erickson erickerick...@gmail.com Really sorry for the fragmentary e-mails. I mis-typed the e-mail for the main post, posted an addendum, then saw this post had been bounced. Ignore my other e-mail. Honest, occasionally I'm competent The end of the email is a partial stack trace that I'm pretty sure is corresponds to this error. I'm using Tapestry 5.1.0.5, running in Tomcat. The problems are: 1 it's intermittent 2 I can't reproduce it at will, even when it's just happened to her. 3 She only sees it when using IE 7, but since it's intermittent that's not necessarily required. 4 The server gets bounced every night when we put up the nightly build, and this has happened Monday and Wednesday, but not Tuesday. I'm looking for any suggestions for approaches to tracking this down, particularly if there's some help I can get from Tapestry logging or our app loggin etc. I'd really like to have some other resolution than making random changes until the problem goes away, perhaps permanently G Several notes about this trace: 1 there's a *LOT* more. I'll be glad to post it if it'll help. 2 mystuff/CreateAgeProfile] is in our code, but line 84 is just a blank line near the beginning of the class. It's possible that the source code I'm looking is a few hours out of date, but according to our process and SVN it shouldn't be. 3 The lines in the trace from SKSModuleServices are below, line 178 is in yellow. They're part of a contributeMarkupRenderer method. environment.push(ValidationDecorator.class, new InlineSksValidationDecorator(environment, writer, spacerImage, false)); renderer.renderMarkup(writer); // line 178 environment.pop(ValidationDecorator.class); 4 I had a partial stack trace Monday that *might* have implicated a number format exception, but there's no trace of that today. Additionally, that trace *might* have implicated long-int conversion. 5 I really hate intermittent problems like this G. Thanks Erick ERROR [2009-10-28 12:03:19,515] rocessor1 (Registry:75 ) - No service implements the interface [B. ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:76 ) - Operations trace: ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:85 ) - [ 1] Autobuilding instance of class java.lang.String ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 2] Determining injection value for parameter #1 (byte[]) ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 3] Resolving object of type byte[] using MasterObjectProvider ERROR [2009-10-28 12:03:19,518] rocessor1 (CreateAgeProfile:84 ) - Render queue error in BeginRender[mystuff/CreateAgeProfile]: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:948) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$400(ComponentPageElementImpl.java:49) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.callback(ComponentPageElementImpl.java:159) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.render(ComponentPageElementImpl.java:211) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:74) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121) at $PageRenderQueue_1249923d08b.render($PageRenderQueue_1249923d08b.java) at $PageRenderQueue_1249923d083.render($PageRenderQueue_1249923d083.java) at org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) at com.proquest.apps.sks.services.SKSModuleServices$1.renderMarkup(SKSModuleServices.java:178) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1748) at $MarkupRenderer_1249923d08d.renderMarkup($MarkupRenderer_1249923d08d.java) at org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1732) at
OGNL expressions in Tapestry 5
Why are the following ognl expressions not supported anymore in the latest Tapestry5 version? ${method.getSomething()} ${method.getSomething(´some constant´)} ${ognl:method.getSomething(´some constant´)} and how does this work now? Thanks! Toby
Re: OGNL expressions in Tapestry 5
http://tapestry.apache.org/tapestry5.1/guide/propexp.html or try this http://chenillekit.codehaus.org/chenillekit-tapestry/ognlbinding.html with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/10/28 ARD Marx Tobias tobias.marx...@daserste.de Why are the following ognl expressions not supported anymore in the latest Tapestry5 version? ${method.getSomething()} ${method.getSomething(´some constant´)} ${ognl:method.getSomething(´some constant´)} and how does this work now? Thanks! Toby
Re: Soliciting suggestions about how to even start tracking this problem down.
No, I really can't post our company source code, other than snippets. Why would multiple jar files in the class path cause this only very occasionally? I'll check anyway, but it seems like this problem would be more reproducible if this was the case We get through this process many many times w/o any problems, then blooey Thanks Erick On Wed, Oct 28, 2009 at 9:39 AM, cordenier christophe christophe.corden...@gmail.com wrote: Hello Can you send the code of the 'CreateAgeProfile' page ? For the meantime a good thing (if you have not already done it) would be to check your classpath to verify that there is not multiple tapestry jar versions, and verify that your javassist jar is conformed to the one used by Tapestry 5 - 3.9.0.GA Regards Christophe 2009/10/28 Erick Erickson erickerick...@gmail.com Really sorry for the fragmentary e-mails. I mis-typed the e-mail for the main post, posted an addendum, then saw this post had been bounced. Ignore my other e-mail. Honest, occasionally I'm competent The end of the email is a partial stack trace that I'm pretty sure is corresponds to this error. I'm using Tapestry 5.1.0.5, running in Tomcat. The problems are: 1 it's intermittent 2 I can't reproduce it at will, even when it's just happened to her. 3 She only sees it when using IE 7, but since it's intermittent that's not necessarily required. 4 The server gets bounced every night when we put up the nightly build, and this has happened Monday and Wednesday, but not Tuesday. I'm looking for any suggestions for approaches to tracking this down, particularly if there's some help I can get from Tapestry logging or our app loggin etc. I'd really like to have some other resolution than making random changes until the problem goes away, perhaps permanently G Several notes about this trace: 1 there's a *LOT* more. I'll be glad to post it if it'll help. 2 mystuff/CreateAgeProfile] is in our code, but line 84 is just a blank line near the beginning of the class. It's possible that the source code I'm looking is a few hours out of date, but according to our process and SVN it shouldn't be. 3 The lines in the trace from SKSModuleServices are below, line 178 is in yellow. They're part of a contributeMarkupRenderer method. environment.push(ValidationDecorator.class, new InlineSksValidationDecorator(environment, writer, spacerImage, false)); renderer.renderMarkup(writer); // line 178 environment.pop(ValidationDecorator.class); 4 I had a partial stack trace Monday that *might* have implicated a number format exception, but there's no trace of that today. Additionally, that trace *might* have implicated long-int conversion. 5 I really hate intermittent problems like this G. Thanks Erick ERROR [2009-10-28 12:03:19,515] rocessor1 (Registry:75 ) - No service implements the interface [B. ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:76 ) - Operations trace: ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:85 ) - [ 1] Autobuilding instance of class java.lang.String ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 2] Determining injection value for parameter #1 (byte[]) ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 3] Resolving object of type byte[] using MasterObjectProvider ERROR [2009-10-28 12:03:19,518] rocessor1 (CreateAgeProfile:84 ) - Render queue error in BeginRender[mystuff/CreateAgeProfile]: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:948) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$400(ComponentPageElementImpl.java:49) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.callback(ComponentPageElementImpl.java:159) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.render(ComponentPageElementImpl.java:211) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:74) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121) at $PageRenderQueue_1249923d08b.render($PageRenderQueue_1249923d08b.java) at $PageRenderQueue_1249923d083.render($PageRenderQueue_1249923d083.java) at
Re: tapestry 5.1.0.5 and AJAX project/example?
How to create dynamic forms. Where is N different textbox, autocomplete, select or datepicker. In every textbox,autocomplete,select or datapicker can bound ajax behaviour. Example input type text select -countries -ajax trigger after oncahnge new selected citys for taht countries. select -city-s input type datepicer input type autocomplete Argo 2009/10/28 Juan E. Maya maya.j...@gmail.com Argo maybe u could describe consider a complex example. I didn't see anything complex that could be handle using the zone component. Jumpstsry provide Ajax demos with forms and the behavior of the zone component should be enough for most of the cases. So please let us know an example that would require something else. (autocomplete uses json) A component based framework works differntly to what u may have used. And It's very difficult to like something if u r not open minded. Yes, there's a learning curve but I don't think there r more than 5 annotation u have to learn and ur classes don't need to know about any other class. Also tapestry does a lot of JS for u. That is one of the advantages. U can write a web app that uses Ajax without writing a single line of js. If u want to change the js completly u should have a very good reason. It's not a common thing to do. This's ur first project and u have to deal with internal of tapestry to change the js(at least understand it), that could be frustrating. On Wednesday, October 28, 2009, Inge Solvoll inge.tapes...@gmail.com wrote: I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. And to you Argo, please be more specific. Post code samples of (isolated) things you would like to achieve. Don't be vague, don't ask a lot of different questions in a single post, and be respectful. Then, I'm 100% sure you'll get the help you need from the smart and friendly people on this list. As the others say, you can learn a lot from checking out the wiki, source code and so on. Read the autocompleter mixin source code and the documentation. That's all I needed to get started writing AJAX easy and clean. See my code samples at: http://tinybits.blogspot.com On Wed, Oct 28, 2009 at 1:13 AM, Argo Vilberg wilps...@gmail.com wrote: 2009/10/27 Magnus Rundberget run...@me.com On 27. okt.. 2009, at 19.58, Argo Vilberg wrote: hi, Is there any project sources on internet where i can learn advance ajax and Tapestry coding? So you are way beyond http://tapestry.apache.org/tapestry5.1/guide/ajax.html ? You have looked at the bundled components and mixins (and their source) ? Maybe you have even had a peak at www.chenillekit.org / http://chenillekit.codehaus.org ? And you have tried http://wiki.apache.org/tapestry/Tapestry5HowTosfor inspiration ? Let me rephrase. What do you mean by advanced and which sources have you tried already ? I want create full dynamic HTML, with full ajax and javascript control over dynamic HTML. I write early 2 month ago asp 1.0 + jQuery + ajax. And that was pretty easy. And also i write php with codeignator + jQuery, also no problem. Watch estonian fresh food google MAP project (www.elavtoit.com) And now with tapestry, i use day after day try - exit method(this is exactly translation from estonian:) and i do not fully understand why this framework is so complicated. There are annotations and other trick, that combine full new tehnology over html,css,javascript,ajax. What is that for? All component deals with hard staff for you. But if i do not understand how component works, and secondly if i try do something diffferent that component allows then there is black hole( no way to do it ). Or spend days after days try-and try wich ways in tapestry works. This try to make coding easier is at last make coding much harder than in regular asp 1.0 or PHP. Earler i write estonain e-School project, now approximatley 85% estonian school are using it and 50% of population of estonia using it. There are my own written framework, similar to hibarenate(caching, clustering, db-pooling) and also old j2ee standard xml-xslt transformation framework. Fully optimized and works fine. In current project tapestry is not my choise but i must end this project. Once you get the hang of how tapestry supports ajax, i'm sure you can go as advanced as you like. Also is i interested jQuery and Tapestry advance examples. Once you get over the conflict of $, it should in theory be straight forward... check out the wiki on howto enable jquery. Let me know if you find any good examples
Re: tapestry 5.1.0.5 and AJAX project/example?
As pointed out before u can see examples of this in Jumpstar. http://jumpstart.doublenegative.com.au:8080/jumpstart/ the AjaxFormLoop Component my be also useful: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html Also using the ZoneUpdater mixin any existing component can raise event to be processed by ajax. http://tinybits.blogspot.com/2009/05/update-zone-on-any-client-side-event.html Example input type text select -countries -ajax trigger after oncahnge new selected citys for taht countries. select -city-s Jumpstart: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxselect1 input type datepicer My favorite is: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo input type autocomplete Jumpstart: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/autocompletemixin On Wed, Oct 28, 2009 at 3:11 PM, Argo Vilberg wilps...@gmail.com wrote: How to create dynamic forms. Where is N different textbox, autocomplete, select or datepicker. In every textbox,autocomplete,select or datapicker can bound ajax behaviour. Example input type text select -countries -ajax trigger after oncahnge new selected citys for taht countries. select -city-s Jumpstart: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxselect1 input type datepicer My favorite is: http://www.chenillekit.org/demo/tapcomp/datetimefielddemo input type autocomplete Jumpstart: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/autocompletemixin Argo 2009/10/28 Juan E. Maya maya.j...@gmail.com Argo maybe u could describe consider a complex example. I didn't see anything complex that could be handle using the zone component. Jumpstsry provide Ajax demos with forms and the behavior of the zone component should be enough for most of the cases. So please let us know an example that would require something else. (autocomplete uses json) A component based framework works differntly to what u may have used. And It's very difficult to like something if u r not open minded. Yes, there's a learning curve but I don't think there r more than 5 annotation u have to learn and ur classes don't need to know about any other class. Also tapestry does a lot of JS for u. That is one of the advantages. U can write a web app that uses Ajax without writing a single line of js. If u want to change the js completly u should have a very good reason. It's not a common thing to do. This's ur first project and u have to deal with internal of tapestry to change the js(at least understand it), that could be frustrating. On Wednesday, October 28, 2009, Inge Solvoll inge.tapes...@gmail.com wrote: I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. And to you Argo, please be more specific. Post code samples of (isolated) things you would like to achieve. Don't be vague, don't ask a lot of different questions in a single post, and be respectful. Then, I'm 100% sure you'll get the help you need from the smart and friendly people on this list. As the others say, you can learn a lot from checking out the wiki, source code and so on. Read the autocompleter mixin source code and the documentation. That's all I needed to get started writing AJAX easy and clean. See my code samples at: http://tinybits.blogspot.com On Wed, Oct 28, 2009 at 1:13 AM, Argo Vilberg wilps...@gmail.com wrote: 2009/10/27 Magnus Rundberget run...@me.com On 27. okt.. 2009, at 19.58, Argo Vilberg wrote: hi, Is there any project sources on internet where i can learn advance ajax and Tapestry coding? So you are way beyond http://tapestry.apache.org/tapestry5.1/guide/ajax.html ? You have looked at the bundled components and mixins (and their source) ? Maybe you have even had a peak at www.chenillekit.org / http://chenillekit.codehaus.org ? And you have tried http://wiki.apache.org/tapestry/Tapestry5HowTosfor inspiration ? Let me rephrase. What do you mean by advanced and which sources have you tried already ? I want create full dynamic HTML, with full ajax and javascript control over dynamic HTML. I write early 2 month ago asp 1.0 + jQuery + ajax. And that was pretty easy. And also i write php with codeignator + jQuery, also no problem. Watch estonian fresh food google MAP project (www.elavtoit.com) And now with tapestry, i use day after day try - exit method(this is exactly translation from estonian:) and i do not fully understand why this framework is so complicated. There
Re: Soliciting suggestions about how to even start tracking this problem down.
This stands out to me: org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) I would look for something like: @SessionState private String foo; (it might be @ApplicationState) SSOs should be JavaBeans. Tapestry will try to instantiate them (with injected dependencies) as needed. It does so by invoking the constructor with the largest number of parameters. You can see in the trace that Tapestry is autobuilding a String. Since the SSO is constructed as needed it may be that your user base doesn't use the SSO in question except at certain times. On Wed, Oct 28, 2009 at 7:01 AM, Erick Erickson erickerick...@gmail.com wrote: No, I really can't post our company source code, other than snippets. Why would multiple jar files in the class path cause this only very occasionally? I'll check anyway, but it seems like this problem would be more reproducible if this was the case We get through this process many many times w/o any problems, then blooey Thanks Erick On Wed, Oct 28, 2009 at 9:39 AM, cordenier christophe christophe.corden...@gmail.com wrote: Hello Can you send the code of the 'CreateAgeProfile' page ? For the meantime a good thing (if you have not already done it) would be to check your classpath to verify that there is not multiple tapestry jar versions, and verify that your javassist jar is conformed to the one used by Tapestry 5 - 3.9.0.GA Regards Christophe 2009/10/28 Erick Erickson erickerick...@gmail.com Really sorry for the fragmentary e-mails. I mis-typed the e-mail for the main post, posted an addendum, then saw this post had been bounced. Ignore my other e-mail. Honest, occasionally I'm competent The end of the email is a partial stack trace that I'm pretty sure is corresponds to this error. I'm using Tapestry 5.1.0.5, running in Tomcat. The problems are: 1 it's intermittent 2 I can't reproduce it at will, even when it's just happened to her. 3 She only sees it when using IE 7, but since it's intermittent that's not necessarily required. 4 The server gets bounced every night when we put up the nightly build, and this has happened Monday and Wednesday, but not Tuesday. I'm looking for any suggestions for approaches to tracking this down, particularly if there's some help I can get from Tapestry logging or our app loggin etc. I'd really like to have some other resolution than making random changes until the problem goes away, perhaps permanently G Several notes about this trace: 1 there's a *LOT* more. I'll be glad to post it if it'll help. 2 mystuff/CreateAgeProfile] is in our code, but line 84 is just a blank line near the beginning of the class. It's possible that the source code I'm looking is a few hours out of date, but according to our process and SVN it shouldn't be. 3 The lines in the trace from SKSModuleServices are below, line 178 is in yellow. They're part of a contributeMarkupRenderer method. environment.push(ValidationDecorator.class, new InlineSksValidationDecorator(environment, writer, spacerImage, false)); renderer.renderMarkup(writer); // line 178 environment.pop(ValidationDecorator.class); 4 I had a partial stack trace Monday that *might* have implicated a number format exception, but there's no trace of that today. Additionally, that trace *might* have implicated long-int conversion. 5 I really hate intermittent problems like this G. Thanks Erick ERROR [2009-10-28 12:03:19,515] rocessor1 ( Registry:75 ) - No service implements the interface [B. ERROR [2009-10-28 12:03:19,516] rocessor1 ( Registry:76 ) - Operations trace: ERROR [2009-10-28 12:03:19,516] rocessor1 ( Registry:85 ) - [ 1] Autobuilding instance of class java.lang.String ERROR [2009-10-28 12:03:19,517] rocessor1 ( Registry:85 ) - [ 2] Determining injection value for parameter #1 (byte[]) ERROR [2009-10-28 12:03:19,517] rocessor1 ( Registry:85 ) - [ 3] Resolving object of type byte[] using MasterObjectProvider ERROR [2009-10-28 12:03:19,518] rocessor1 ( CreateAgeProfile:84 ) - Render queue error in BeginRender[mystuff/CreateAgeProfile]: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B. at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:948) at
Re: Soliciting suggestions about how to even start tracking this problem down.
Howard: Thanks, that's something I'd *never* have figured out, I'll see what I can find... Erick On Wed, Oct 28, 2009 at 10:35 AM, Howard Lewis Ship hls...@gmail.comwrote: This stands out to me: org.apache.tapestry5.ioc.internal.util.TapestryException: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) I would look for something like: @SessionState private String foo; (it might be @ApplicationState) SSOs should be JavaBeans. Tapestry will try to instantiate them (with injected dependencies) as needed. It does so by invoking the constructor with the largest number of parameters. You can see in the trace that Tapestry is autobuilding a String. Since the SSO is constructed as needed it may be that your user base doesn't use the SSO in question except at certain times. On Wed, Oct 28, 2009 at 7:01 AM, Erick Erickson erickerick...@gmail.com wrote: No, I really can't post our company source code, other than snippets. Why would multiple jar files in the class path cause this only very occasionally? I'll check anyway, but it seems like this problem would be more reproducible if this was the case We get through this process many many times w/o any problems, then blooey Thanks Erick On Wed, Oct 28, 2009 at 9:39 AM, cordenier christophe christophe.corden...@gmail.com wrote: Hello Can you send the code of the 'CreateAgeProfile' page ? For the meantime a good thing (if you have not already done it) would be to check your classpath to verify that there is not multiple tapestry jar versions, and verify that your javassist jar is conformed to the one used by Tapestry 5 - 3.9.0.GA Regards Christophe 2009/10/28 Erick Erickson erickerick...@gmail.com Really sorry for the fragmentary e-mails. I mis-typed the e-mail for the main post, posted an addendum, then saw this post had been bounced. Ignore my other e-mail. Honest, occasionally I'm competent The end of the email is a partial stack trace that I'm pretty sure is corresponds to this error. I'm using Tapestry 5.1.0.5, running in Tomcat. The problems are: 1 it's intermittent 2 I can't reproduce it at will, even when it's just happened to her. 3 She only sees it when using IE 7, but since it's intermittent that's not necessarily required. 4 The server gets bounced every night when we put up the nightly build, and this has happened Monday and Wednesday, but not Tuesday. I'm looking for any suggestions for approaches to tracking this down, particularly if there's some help I can get from Tapestry logging or our app loggin etc. I'd really like to have some other resolution than making random changes until the problem goes away, perhaps permanently G Several notes about this trace: 1 there's a *LOT* more. I'll be glad to post it if it'll help. 2 mystuff/CreateAgeProfile] is in our code, but line 84 is just a blank line near the beginning of the class. It's possible that the source code I'm looking is a few hours out of date, but according to our process and SVN it shouldn't be. 3 The lines in the trace from SKSModuleServices are below, line 178 is in yellow. They're part of a contributeMarkupRenderer method. environment.push(ValidationDecorator.class, new InlineSksValidationDecorator(environment, writer, spacerImage, false)); renderer.renderMarkup(writer); // line 178 environment.pop(ValidationDecorator.class); 4 I had a partial stack trace Monday that *might* have implicated a number format exception, but there's no trace of that today. Additionally, that trace *might* have implicated long-int conversion. 5 I really hate intermittent problems like this G. Thanks Erick ERROR [2009-10-28 12:03:19,515] rocessor1 (Registry:75 ) - No service implements the interface [B. ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:76 ) - Operations trace: ERROR [2009-10-28 12:03:19,516] rocessor1 (Registry:85 ) - [ 1] Autobuilding instance of class java.lang.String ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 2] Determining injection value for parameter #1 (byte[]) ERROR [2009-10-28 12:03:19,517] rocessor1 (Registry:85 ) - [ 3] Resolving object of type byte[] using MasterObjectProvider ERROR [2009-10-28 12:03:19,518] rocessor1 (CreateAgeProfile:84 ) - Render queue error in BeginRender[mystuff/CreateAgeProfile]: Error invoking constructor java.lang.String(byte[], int, int, int) (at String.java:338) (for service 'ApplicationStateManager'): No service implements the interface [B.
Re: Jetty lock on JS-files in classpath breaks eclipse autobuild
Hi Inge, one of our developers had the same issues (eclipse, jetty, maven) on windows XP - we tried several configurations (including the disabled jetty lock) without success. the problem disappeared after a fresh install of windows xp; we could not get rid of the problem with in any other way (tried several jetty configurations, re-installed eclipse and jre, disabled locking, ...) the lock occured on css files. the problem has not occured on linux or mac development machines. just to let you know, that you are not alone with this problem :) felix Inge Solvoll schrieb: Hi! I'm having problems with my development environment. First of all: I have set the useFileMappedBuffer=false in /etc/webdefault.xml My problem is that Tapestry 5 Javascript files located in WEB-INF/classes and subfolders are locked by Jetty. This prevents eclipse from deleting WEB-INF/classes to do a rebuild after I make a change in a java file. The end result is that most class files are deleted and not rebuilt, so I have to stop jetty, do a manual rebuild, and then start Jetty again. This if, of course, a disaster for me... Does anyone here have a clue on how to prevent Jetty from locking the resource files in WEB-INF/classes?
Re: Jetty lock on JS-files in classpath breaks eclipse autobuild
I had this same problem - but it was solved with the useFileMappedBuffer=false solution. One difference was that I didn't change /etc/webdefault.xml - I actually copied webdefault.xml into my project and updated my pom file: plugin groupIdorg.mortbay.jetty/groupId artifactIdmaven-jetty-plugin/artifactId configuration contextPath/bingo/contextPath scanIntervalSeconds3/scanIntervalSeconds webDefaultXmlsrc/main/config/jetty/webdefault.xml/webDefaultXml connectors connector implementation=org.mortbay.jetty.nio.SelectChannelConnector port9090/port maxIdleTime6/maxIdleTime /connector /connectors /configuration /plugin If it isn't clear, I use jetty:run ala maven from within my Eclipse environment. Obviously, every project ends up with a copy of webdefault.xml, but otherwise it turned out to be a straightfoward fix. -Luther On Wed, Oct 28, 2009 at 11:02 AM, Felix Gonschorek fe...@ggmedia.netwrote: Hi Inge, one of our developers had the same issues (eclipse, jetty, maven) on windows XP - we tried several configurations (including the disabled jetty lock) without success. the problem disappeared after a fresh install of windows xp; we could not get rid of the problem with in any other way (tried several jetty configurations, re-installed eclipse and jre, disabled locking, ...) the lock occured on css files. the problem has not occured on linux or mac development machines. just to let you know, that you are not alone with this problem :) felix Inge Solvoll schrieb: Hi! I'm having problems with my development environment. First of all: I have set the useFileMappedBuffer=false in /etc/webdefault.xml My problem is that Tapestry 5 Javascript files located in WEB-INF/classes and subfolders are locked by Jetty. This prevents eclipse from deleting WEB-INF/classes to do a rebuild after I make a change in a java file. The end result is that most class files are deleted and not rebuilt, so I have to stop jetty, do a manual rebuild, and then start Jetty again. This if, of course, a disaster for me... Does anyone here have a clue on how to prevent Jetty from locking the resource files in WEB-INF/classes?
Re: tapestry 5.1.0.5 and AJAX project/example?
Em Wed, 28 Oct 2009 12:11:38 -0200, Argo Vilberg wilps...@gmail.com escreveu: select -countries -ajax trigger after oncahnge new selected citys for taht countries. There are some examples here: http://lombok.demon.co.uk/tapestry5Demo/ (look for dynamic select) In Ars Machina Project, the Brasil project has another example of it (when you change a state from a select, it fills another one with the corresponding cities). Look for the CidadesDoEstado mixin (it is added to the cities select). Source code here http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/brasil/trunk/ -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: OGNL expressions in Tapestry 5
On Wed, Oct 28, 2009 at 11:01 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Wed, 28 Oct 2009 11:49:39 -0200, ARD Marx Tobias tobias.marx...@daserste.de escreveu: Why are the following ognl expressions not supported anymore in the latest Tapestry5 version? 5.1.0.5? ${method.getSomething()} This exists in 5.0.18. Note that the method must be public. This assumes you have a method named getMethod(), that is, a property named method. This works in 5.1.0.5. ${method.getSomething(´some constant´)} Support for passing parameter values was added in 5.1. Previously you could only invoke zero-args methods. Thiago is right, however, that past a certain point, you will want to create a method in your Java class as this starts to severely break down the separation of concerns between the view and the controller, and leaves you increasingly open to refactoring errors. I don't know if the prop binding (the default one) supports this, by my approach to this situation would be to create a getter method for it (say, getSomethingX() and use ${somethingX} in the template. ${ognl:method.getSomething(´some constant´)} You should add the ChenilleKit Tapestry package to use OGNL: http://www.chenillekit.org/chenillekit-tapestry/index.html and how does this work now? Almost anything can be implemented using a getter method. As the logic is in a Java class, it's easier to write, debug and test. I don't use nor miss OGNL expressions in Tapestry 5. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Jetty lock on JS-files in classpath breaks eclipse autobuild
I've hit this problem too, on a client's project using RunJettyRun. The solution is to move classpath resources from src/main/java (or equivalent) to src/main/resources (or equivalent) and add src/main/resources as a class folder. Thiis keeps Eclipse from trying to copy the files (from src/main/java to classes) when they change and that seems to keep everyone happy. On Tue, Oct 6, 2009 at 11:40 PM, Inge Solvoll inge.tapes...@gmail.com wrote: The file synch approach worked nicely. But it would be nice to hear about other and possibly better solutions, as this is a hack that is a bit cumbersome to distribute among our developers... My environment: T5.1.0.5 Eclipse 3.4 Vista 64 bit Java 1.6u17 64 bit Jetty 6.1.12rc1 I have configured jetty to point to my project directory to launch the webapp through a mycontext.xml in jetty-home/contexts. My project structure is pretty much a war layout, with all java files and T5 resource files in CVS under project-root/src. We're planning migration from ant to Maven, but no luck getting the resources needed yet. Howard: In what way are classes folders added to the runtime path? I guess they are in eclipse, but is the webapp running on a standalone jetty aware of their existence? When I set WEB-INF/classes as build target for my src folder, all class files end up there, accessible in a standard webapp way. Are other classes folders added as jars in WEB-INF/lib? On Tue, Oct 6, 2009 at 7:18 PM, Howard Lewis Ship hls...@gmail.com wrote: One option here is to put your non-Java resources into a folder, src/main/resources, and mark that folder as a classes folder (not a source folder). classes folder are simply added to the runtime path with no copying. This is what I do. On Tue, Oct 6, 2009 at 7:59 AM, Peter Stavrinides p.stavrini...@albourne.com wrote: What is your exact environment / configuration? - Original Message - From: Inge Solvoll inge.tapes...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 6 October, 2009 10:57:30 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Jetty lock on JS-files in classpath breaks eclipse autobuild Hi! I'm having problems with my development environment. First of all: I have set the useFileMappedBuffer=false in /etc/webdefault.xml My problem is that Tapestry 5 Javascript files located in WEB-INF/classes and subfolders are locked by Jetty. This prevents eclipse from deleting WEB-INF/classes to do a rebuild after I make a change in a java file. The end result is that most class files are deleted and not rebuilt, so I have to stop jetty, do a manual rebuild, and then start Jetty again. This if, of course, a disaster for me... Does anyone here have a clue on how to prevent Jetty from locking the resource files in WEB-INF/classes? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5: Checkbox with values other than boolean
I wanted to be able to stick a value into the checkbox so that when I use it in a loop I didn't have to do the correlating between true and object when the form was posted. Ultimately I only want to reload the objects that were selected. The current core implementation of Checkbox only supports boolean values so I took it and modified it so you can provide the value, and also added a parameter to determine if it should be checked. This component strays from the norm a bit because it can't recreate the value from the values posted from the form so it always uses the value provided by the bound parameter. This makes it possible to change out the meaning of the checkbox between renderings of the form. The component should be backward compatible with the existing Checkbox (in my use cases it was). If you have a better solution I'd love to see it. Here is the code: /** * A Checkbox component is simply a lt;input type=checkboxgt;. */ public class Checkbox extends AbstractField { private static final String NULL_TOKEN = ::null::; /** * The value to be read or updated. If not bound, the Checkbox will attempt to edit a property of its container * whose name matches the component's id. */ @Parameter(required = true, autoconnect = true) private Object value; @Parameter(autoconnect = true) private boolean checked; /** * Value encoder for the value, usually determined automatically from the type of the property bound to the value * parameter. */ @Parameter(required = true) private ValueEncoderObject encoder; @Inject private Request request; @SuppressWarnings(unused) @Mixin private RenderDisabled renderDisabled; @Inject private ComponentResources resources; @Inject private ComponentDefaultProvider defaultProvider; @Environmental private ValidationTracker tracker; ValueEncoder defaultEncoder() { return defaultProvider.defaultValueEncoder(value, resources); } @BeginRender void begin(MarkupWriter writer) { final boolean isBoolean = value != null value instanceof Boolean; // Available only when there is an error in the form final String asSubmitted = tracker.getInput(this); boolean isChecked = false; if (asSubmitted != null) { // This is true when there is a form error. isChecked = isBoolean ? Boolean.parseBoolean(asSubmitted) : !asSubmitted.equals(NULL_TOKEN); } else if (resources.isBound(checked)) { isChecked = checked; } else if (isBoolean) { isChecked = (Boolean) value; } writer.element(input, type, checkbox, name, getControlName(), id, getClientId(), // For non-boolean values we always grab the value from the bound parameter because // we can't reconstitute it from a form post value, isBoolean ? null : encoder.toClient(value), checked, isChecked ? checked : null); resources.renderInformalParameters(writer); decorateInsideField(); } @AfterRender void after(MarkupWriter writer) { writer.end(); // input } @Override protected void processSubmission(String elementName) { // if the value wasn't submitted then it will be null final String postedValue = request.getParameter(elementName); value = encoder.toValue(postedValue); // Stick a null token in there so we know when there was an error in the form and can skip other checks. tracker.recordInput(this, postedValue == null ? NULL_TOKEN : postedValue); } } -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Jetty lock on JS-files in classpath breaks eclipse autobuild
I'm not using any Eclipse plugins: I just wrote a class (I call it Main) in the test sources folder and added Jetty 6.1.14 as a test dependency. My Main class has code in its main() method: Server server = new Server(); Connector connector = new SelectChannelConnector(); connector.setPort(80); server.setConnectors(new Connector[] { connector }); WebAppContext webapp = new WebAppContext(); webapp.setParentLoaderPriority(true); webapp.setContextPath(/); webapp.setResourceBase(src/main/webapp); webapp.setDefaultsDescriptor(webapp.getResourceBase() + /WEB-INF/webdefault.xml); server.setHandler(webapp); server.start(); server.join(); -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Good news about Tapestry 5 in Google App Engine
nice job 2009/10/28 Dmitry Gusev dmitry.gu...@gmail.com I've made a Pull request on github with fixes for java.lang.VerifyError. Here's the commit details: http://github.com/dmitrygusev/tapestry5/commit/35197745d13ffed1fb89d730dbc85f750bf50bb0 On Mon, Sep 14, 2009 at 07:14, Alex Kotchnev akoch...@gmail.com wrote: A follow up question to the committers on this : Is Jun's approach below something acceptable to do in the meantime ? I was trying to deploy a test 5.1 app to GAE and I ran into the same issue. As he indicated these methods had emtpy try-catch blocks, removing which is supposed to resolve the issue. THe part that worries me are the magical $ANTLR comments that I think can somehow be used by ANTLR. Any tips ? Cheers, Alex K On Fri, Sep 4, 2009 at 3:50 AM, Jun Tsai jun.t...@gmail.com wrote: I had manually fixed the problem.Remove some empty method body in PropertyExpressionLexer.java maked by antlr. // $ANTLR start INTEGER public final void mINTEGER() throws RecognitionException { } // $ANTLR end INTEGER // $ANTLR start DEREF public final void mDEREF() throws RecognitionException { } // $ANTLR end DEREF // $ANTLR start RANGEOP public final void mRANGEOP() throws RecognitionException { } // $ANTLR end RANGEOP // $ANTLR start DECIMAL public final void mDECIMAL() throws RecognitionException { } and repacked. It works fine. 2009/9/4 Jun Tsai jun.t...@gmail.com The ticket had been fixed.I had tested on GAE using 1.2.5 SDK. But when I write simple pagelink t:pagelink page=about about/t:pagelink ,some exception thrown. java.lang.VerifyError: (class: org/apache/tapestry5/internal/antlr/PropertyExpressionLexer, method: mRANGEOP signature: ()V) Stack size too large at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.parse(PropertyConduitSourceImpl.java:1229) at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1124) at org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1080) Who can give me an idea about the exception. thanks. 2009/9/4 Thiago H. de Paula Figueiredo thiag...@gmail.com --- Mensagem encaminhada --- De: codesite-nore...@google.com Assunto: Issue 1277 in googleappengine: Add javax.xml.stream to whitelist Data: Thu, 03 Sep 2009 19:34:42 -0300 Updates: Status: Fixed Labels: Version-1.2.5 Comment #12 on issue 1277 by sly...@google.com: Add javax.xml.stream to whitelist http://code.google.com/p/googleappengine/issues/detail?id=1277 This has been fixed in the 1.2.5 release. http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes Support for the Stax API, javax.xml.stream. You can now use both the JDK's Stax parser as well as third-party Stax libraries like Woodstox. Can anyone confirm that a vanilla Tapestry 5.1.0.5 works in GAE now? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- regards, Jun Tsai -- regards, Jun Tsai -- Dmitry Gusev AnjLab Team http://anjlab.com -- regards, Jun Tsai
Re: tapestry 5.1.0.5 and AJAX project/example?
On 28.10.2009 08:36, Inge Solvoll wrote: I would love to see a positive and helpful response to this request. His approach might annoy a few people here, but I encourage you to take this kind of thing seriously. I believe there are a lot of people feeling the way Argo feels about the framework, and he does hit a few good points on the way, about good examples and documentation. Before going with Tapestry I have read lot's of comments and powerpoints and blog discussions and web framework comparison talks and all of them had a single major drawback about Tapestry, no matter if version 3 or 4 or 5. It was supposedly very hard to learn, but once you would get into it there should be no limits. :) If one has previously worked with php and asp, then learning the whole java stack and the specifics of Tapestry will require at least a month of hard experimentation and reading. Some of you suggest mixins (while he may not know what a mixin is), some of you suggest 3rd party components (some of which have almost zero documentation on installation and usage). I think that the tapestry site really really needs a demo where one can see a page or two from a full-blown application with complicated user interaction and rich web interface and a complete up2date tutorial on how would one build that page. Jumpstart is great for learning the working of various components, but when one is a beginner he will need a full set of relevant tutorials and guides how to build something that is complicated. I have a similar misshap as Argo has these days, I have to code a semi complex interaction that mimics an OLAP database and drag-and-drop modules for reporting with pivot tables and I have to build it in under one week with ASP.NET and MySQL. And the last time i have tried a Microsoft development tool was when Visual Basic 1.0 was Beta and it came on three 5.25 installation floppy disks. So I think that I fully understand Argo-s worries, being in a similar position. I could send you a link to the latest Tapestry application that we are building which does have several complicated dynamic pages and ajax, but there is almost no documentation in English at this point and there is a huge database schema that sits behind the application whch makes it harder to delve into. It will open-source once we decide on the licencing model and finish the release requirements, so I wouldn't put it completely in public, but I can send the code of some of the more complicated web pages to anyone that is interested in learning, just send me an email. Once I have some spare time I promise that I will try to strip them apart from unnnecessary bulk and setup a showcase demo site. smime.p7s Description: S/MIME Cryptographic Signature