Re: tapestry @Script, JSON[P], dojo.io.ScriptSrcTransport, dojo xd, etc feedback please

2006-09-10 Thread Jesse Kuhnert
You can definitely build a xdomain version of dojo, but I don't think it will provide as much utility for your needs as much as a simpler approach. I've done similar things, but used a little proxy service in the backend to perform the task. For example, looking up geographic data using the

Re: @EventListener and dojo topics

2006-09-10 Thread Jesse Kuhnert
Not currently. Topics also normally are associated with sending objects when things happen, so I'm not sure a good solution would be had to make this generic enough...Ie the objects could be anything..Dom nodes, arbitrary json structures, etc... Maybe if I knew more about the problem topics are

Re: @EventListener question

2006-09-10 Thread Jesse Kuhnert
Also, just as an FYI a lot of the examples I've been seeing lately include what appears to be a lot of redundant div enclosures around content you want to update. I've worked very hard to make sure the component id logic is universally correct, so you should be able to just reference a

Re: Generate Unique Javascript IDs?

2006-09-10 Thread Jesse Kuhnert
It's hard to say without knowing what it is you are doing.. I usually use @Script templates for most of my js logic as it allows me to write javascript within a javascript friendly template for interacting with components and doing other nice things like loops/ifs/etc... The below statements

Re: How do you unit test Hivemodule configurations?

2006-09-10 Thread Jesse Kuhnert
I think the best examples are probably those that tapestry uses itself. Here is one example of loading a hivemodule config and testing services that was added by James Carman:

Re: How to link from item list to item detail

2006-09-10 Thread Malin Ljungh
Thank you Dave for an excellent answer. Clear as crystal. As the coward I am I will implement the check instead of the hash. Peace in return, Malin On 9/6/06, David Harkness [EMAIL PROTECTED] wrote: Malin Ljungh wrote: This means I will have to check on the details page that the item to be

translator for Insert?

2006-09-10 Thread Malin Ljungh
I've been using a DateTranslator for a TextField to format a date, and it has worked fine. Now I'm trying to to the same with an Insert, but my translator is just ignored. Doesn't the Insert component support translator? Where can I find documention about the translator property? Malin

Re: translator for Insert?

2006-09-10 Thread Shing Hing Man
I think translator is only applicable to a form component if it implements the interface org.apache.tapestry.form.TranslatedField. Please check out the java doc on TranslatedField. http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html The Java class of the Insert component does not

tapestry-dojo component

2006-09-10 Thread Alexandru Dragomir
Hi! I took some dojo code, from their tests (hope nobody will be upset ) , and i made a tapestry component out of it. Is an animation and the good part is that is working. Well the component is of no real use.. just a sample of how it can be done. But i'm not sure that this is the way it

Re: tapestry-dojo component

2006-09-10 Thread Alexandru Dragomir
Forgot to say : is for tapestry 4.1 Alex On 9/10/06, Alexandru Dragomir [EMAIL PROTECTED] wrote: Hi! I took some dojo code, from their tests (hope nobody will be upset ) , and i made a tapestry component out of it. Is an animation and the good part is that is working. Well the

email service in 4.1, depreciation of IMonitor

2006-09-10 Thread livelock
Hi, In http://www.nabble.com/tapestry-email-service-tf1659362.html#a4507486 tapestry email servcie we had a pluggeable email service. IMonitor has been removed in 4.1 which is being used by this email service, how do I fix this email service now? Is there another service out there working with

Re: email service in 4.1, depreciation of IMonitor

2006-09-10 Thread Jesse Kuhnert
Hard to say.What are you trying to do that IMonitor used to provide? On 9/10/06, livelock [EMAIL PROTECTED] wrote: Hi, In http://www.nabble.com/tapestry-email-service-tf1659362.html#a4507486 tapestry email servcie we had a pluggeable email service. IMonitor has been removed in 4.1 which

Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Gerald Schöffel
Hi there ! I am trying to connect a dojo SortableTable via the @EventListener annotation to Tapestry (4.1.1, latest build from svn). In my component html file I have something like this: table id=addressTable dojoType=SortableTable widgetId=tableWidget headClass=fixedHeader

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Gerald Schöffel
Sorry for this one :-) Should be: '... with much effort but no success ... ' :-) I trying to do so the whole evening - without effort :( Bye, Gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Jesse Kuhnert
The table won't be parsed into a dojo widget by default. (Tapestry turns this off..) You can probably add a single line of js to parse it out though: dojo.widget.createWidget(dojo.byId(addressTable)); On 9/10/06, Gerald Schöffel [EMAIL PROTECTED] wrote: Sorry for this one :-) Should be:

Upload component browse button

2006-09-10 Thread Peter Dawn
guys, the upload component, displays a browse button, through which the user is only able to select a single (one) file at any one time. i want the user to select the source folder and i will pull all files within that folder with a certain extension instead of selecting each file manually. is

Re: Upload component browse button

2006-09-10 Thread Martin Strand
Since your code has no access whatsoever to the client's filesystem, I doubt this is possible. You'd probably need to write a Java applet or something, but I'm not sure what restrictions apply to them. Martin On Mon, 11 Sep 2006 03:07:40 +0200, Peter Dawn [EMAIL PROTECTED] wrote: guys,

Re: Upload component browse button

2006-09-10 Thread andyhot
Peter Dawn wrote: guys, the upload component, displays a browse button, through which the user is only able to select a single (one) file at any one time. i want the user to select the source folder and i will pull all files within that folder with a certain extension instead of selecting

Force a nested TextField to render container's name prefix?

2006-09-10 Thread Karthik N
Hi, I have a scenario in which a custom component wraps a TextField component. CustomComponent.html input jwcid=textField/input CustomComponent.jwc textfield snippet: component id=textField type=TextField inherit-informal-parameters=yes binding name=id value=id/ binding

Re: Upload component browse button

2006-09-10 Thread Peter Dawn
thanks guys. yes i couldnt find anything in tapestry documentation either so i figured that tapestry would be independent of this. anyways lets see if i can find a way around this. thanks again. - To unsubscribe, e-mail: [EMAIL

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Gerald Schöffel
Hi Jesse ! Thank you for your quick reply ! But I already use binding name=parseWidgets value=ognl:true / in my shell component. So the widget is created and functional (clicking on a header sorts the table and so on). The only 'issue' I have is binding the call to onSelect to

Re: What's the more convenient way to add logging to a tapestry app?

2006-09-10 Thread Peter Dawn
i use log4J. try using that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Gerald Schöffel
Ok, me again ... could not give up on this ... So I cleaned up my code and learned how to use the @Script-tag ...cool thing :-) When connecting manually, the following code will work: dojo.event.connect(dojo.widget.byId(tableWidget), onSelect, window, addressDisplay_selectAlert) ; This

RE: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Ben Sommerville
Gary, If you change @EventListener(events=onSelect, elements=addressTable) to @EventListener(events=onSelect, targets=addressTable) then Tapestry will render the event script using dojo.widget.ByID (elements hooks to html elements, targets hooks to components/widgets) Hope that helps regards,

Re: Is it possible to connect a dojo SortableTable to Tapestry 4.1.1 ?

2006-09-10 Thread Gerald Schöffel
Hi Ben, thank you for your reply ! I tried it right away ... Would be too cool if this will work ... but for me it does not :( When using targets=..: tapestry is looking for a component like in [EMAIL PROTECTED] ... but internally Tapestry is again connecting via