Re: Re: tapestry prop / ognl?
use prip where you can for its speed and ognl where you can't. --sam On 12/15/06, Barry Books [EMAIL PROTECTED] wrote: I don't know about the norm but prop does not have all the functionality of ognl. It's probably faster at what it can do. So if you need speed or believe in optimizing early then you'll need both. Or You can use prop for everthing, but you'll need to write to write java methods to handle the cases prop cannot. Barry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using json response
I'm working on a component that expects a json response (.. frankly , i'm not sure anymore about this) Is a dojo widget that i'm trying to convert into tapestry. A valid response would be : ({title: a new title}) or even dojo.debug(server gave a new title); ({title: a new title}) The problem is that using the JSONWriter i get something like : {title : a new title} - the title is quoted and i think that is why i get an error saying SyntaxError: invalid label If i don't use JSON response , i use XML , which is not good either. Any suggestion of what i'm doing wrong ? Should i build a custom ResponseBuilder or Writer ? thanks! Alex
Re: using json response
Quoting/not quoting a response should have nothing to do with it being valid JSON. Nor should a response contain the surrounding ( content ). I'd be interested in knowing which dojo widget this is but if it's using dojo.io as the transport layer it should be adding in the ( for you. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: I'm working on a component that expects a json response (.. frankly , i'm not sure anymore about this) Is a dojo widget that i'm trying to convert into tapestry. A valid response would be : ({title: a new title}) or even dojo.debug(server gave a new title); ({title: a new title}) The problem is that using the JSONWriter i get something like : {title : a new title} - the title is quoted and i think that is why i get an error saying SyntaxError: invalid label If i don't use JSON response , i use XML , which is not good either. Any suggestion of what i'm doing wrong ? Should i build a custom ResponseBuilder or Writer ? thanks! Alex -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using json response
ok, then i might be doing something else wrong.. Is the tree widget. And now i'm at editing a node label phase. I edit , press enter , and the response received is {title : a new title} without other brackets. The render method is public void renderComponent(IJSONWriter writer, IRequestCycle cycle) { JSONObject json = writer.object(); json.put(title, a new title); } Alex On 12/16/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Quoting/not quoting a response should have nothing to do with it being valid JSON. Nor should a response contain the surrounding ( content ). I'd be interested in knowing which dojo widget this is but if it's using dojo.io as the transport layer it should be adding in the ( for you. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: I'm working on a component that expects a json response (.. frankly , i'm not sure anymore about this) Is a dojo widget that i'm trying to convert into tapestry. A valid response would be : ({title: a new title}) or even dojo.debug(server gave a new title); ({title: a new title}) The problem is that using the JSONWriter i get something like : {title : a new title} - the title is quoted and i think that is why i get an error saying SyntaxError: invalid label If i don't use JSON response , i use XML , which is not good either. Any suggestion of what i'm doing wrong ? Should i build a custom ResponseBuilder or Writer ? thanks! Alex -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using json response
Yes, that should be fine. It is a perfectly valid JSON response. There aren't too many ways to vary it. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: ok, then i might be doing something else wrong.. Is the tree widget. And now i'm at editing a node label phase. I edit , press enter , and the response received is {title : a new title} without other brackets. The render method is public void renderComponent(IJSONWriter writer, IRequestCycle cycle) { JSONObject json = writer.object(); json.put(title, a new title); } Alex On 12/16/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Quoting/not quoting a response should have nothing to do with it being valid JSON. Nor should a response contain the surrounding ( content ). I'd be interested in knowing which dojo widget this is but if it's using dojo.io as the transport layer it should be adding in the ( for you. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: I'm working on a component that expects a json response (.. frankly , i'm not sure anymore about this) Is a dojo widget that i'm trying to convert into tapestry. A valid response would be : ({title: a new title}) or even dojo.debug(server gave a new title); ({title: a new title}) The problem is that using the JSONWriter i get something like : {title : a new title} - the title is quoted and i think that is why i get an error saying SyntaxError: invalid label If i don't use JSON response , i use XML , which is not good either. Any suggestion of what i'm doing wrong ? Should i build a custom ResponseBuilder or Writer ? thanks! Alex -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropdownTimePicker, DropdownDatePicker, and time zones
Thanks for noticing. I didn't follow the exact pattern that you outlined but have made them rfc3339 compliant and things look much better now. Should be available at some point today. On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote: Hi everyone – I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling from svn trunk), but I had a problem with the Dojo-backed dropdown date and time pickers. Right now, they're passing the dates to the client-side components in a way that causes the client-side to do a timezone conversion. This throws off my app when the client is in a different timezone than the server. For my $0.02, the server should control all timezone issues – I want times rendered as text to be the same as the ones in my widgets! I'd like to recommend this change for the Tapestry trunk: Change how we pass the date in DropdownDatePicker and DropdownTimePicker to this code fragment: Object formatted = new JSONLiteral(new Date( + (value.getYear()+1900) + , + value.getMonth() + , + value.getDate() + , + value.getHours() + , + value.getMinutes() + , + value.getSeconds() + )); json.put(value, formatted); This works for both the date and time pickers. (Currently, the time picker doesn't work at all, probably due to a recent change in Dojo's formatting requirements.) Comments? Should I open a JIRA to this effect? --JM -- View this message in context: http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: using json response
Maybe the tree widget is expecting a json array vs object being returned...Ie [title,a new title]. You can do that easily by doing this instead: JSONArray arr = writer.array(); arr.put(title); arr.put(a new title); On 12/16/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Yes, that should be fine. It is a perfectly valid JSON response. There aren't too many ways to vary it. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: ok, then i might be doing something else wrong.. Is the tree widget. And now i'm at editing a node label phase. I edit , press enter , and the response received is {title : a new title} without other brackets. The render method is public void renderComponent(IJSONWriter writer, IRequestCycle cycle) { JSONObject json = writer.object(); json.put(title, a new title); } Alex On 12/16/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Quoting/not quoting a response should have nothing to do with it being valid JSON. Nor should a response contain the surrounding ( content ). I'd be interested in knowing which dojo widget this is but if it's using dojo.io as the transport layer it should be adding in the ( for you. On 12/16/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: I'm working on a component that expects a json response (.. frankly , i'm not sure anymore about this) Is a dojo widget that i'm trying to convert into tapestry. A valid response would be : ({title: a new title}) or even dojo.debug(server gave a new title); ({title: a new title}) The problem is that using the JSONWriter i get something like : {title : a new title} - the title is quoted and i think that is why i get an error saying SyntaxError: invalid label If i don't use JSON response , i use XML , which is not good either. Any suggestion of what i'm doing wrong ? Should i build a custom ResponseBuilder or Writer ? thanks! Alex -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Calendar component
Hi, I need to integrate calendar functionality into my app to display events. Does anybody know where can I get such a component. Thanks, Simon
Re: tapestry 5.0
So far, whenever I've added some interesting functionality. On 12/15/06, Massimo Lusetti [EMAIL PROTECTED] wrote: On 12/15/06, Howard Lewis Ship [EMAIL PROTECTED] wrote: What's going on is that Tapestry is in a snapshot stage, where we don't have official releases published to the central Maven repository, but do have -SNAPSHOT releases (a concept within Maven) published to a public repository at Apache. So if you don't want to build it all yourself, you need to point your local Maven at it. The idea with SNAPSHOT releases is that your local copy of Maven will no rely on the fake version number, SNAPSHOT, but will keep checking the snapshot repository for the latest version of the jar. Which is your policy on the frequency of deploys? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com