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

2006-09-10 Thread Karthik N
Hi, I am using 4.0.2 It shows the id of the caller component for . So id is always got from the enclosing component even though name isn't. TextField.jwc has which means that the id parameter actually gets bound to the idParameter property, and not to the id property. That's why the ids com

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

2006-09-10 Thread Jesse Kuhnert
if you have a component that extends or implements IWidget tapestry will resolve the client side code using dojo.widget.byId...(It'll also parse your widget for you inline so your whole app isn't bogged down by needless parsing of the entire dom tree). Look at Autocompleter in the svn source for

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 dojo.event.connect(dojo.b

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 re

Re: Generate Unique Javascript IDs?

2006-09-10 Thread Josh Joy
Thanks Erik. Couple questions...what do the following mean and how are their values populated? 1. time$ 2. row 3. column Thanks, Josh Erik Johansson wrote: > Hi Josh, > > This is how I did it > > The tag: > class="scheduleClicked" > onclick="ognl:'javascript:switchClicked(' row ',' colum

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") ; Th

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
Hi Jesse ! Thank you for your quick reply ! But I already use 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 an event with @EventListener. There is jus

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

2006-09-10 Thread andyhot
Is this for Tap4.1 ? name is a reserved parameter for TextField... there's no way to set it yourself. However, it's supposed to take its value from the id, so i would expect it to work as you describe... What's the output when CustomComponent.html is Karthik N wrote: > Hi, > > I have a scen

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

"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 CustomComponent.jwc textfield snippet: Page configuration of CustomComponent: i find that the underlying TextField id hon

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 selecti

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,

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 t

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:

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: [

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: widgetId="tableWidget" headClass="fixedHeader" tbodyClass="scrollContent" enableMultipleSele

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 whic

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 4

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 compon

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 s

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 im

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: 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 b

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: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/test/org/apache/tapestry/services/TestData

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 see

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 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 particular co

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: 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 yahoo

Question: Can not get access to object fields (Null Pointer Exception)

2006-09-10 Thread m-woelm
Hi, I hope anybody could explain me why I get a Null Pointer Exception, if I want to get access to field of an object. My method is similar to the eshop-project of the book “Enjoying web dev with Tapestry”. I tried to change the Listener-method onLogin as follows: public void onLogin(IR

Re: Generate Unique Javascript IDs?

2006-09-10 Thread Erik Johansson
Hi Josh, This is how I did it The tag: class="scheduleClicked" onclick="ognl:'javascript:switchClicked('+row+','+column+');return false;'"> The javascript function switchClicked(_row, _column){ if(document.getElementById('time$'+_row+'$'+_column).className == 'scheduleClicked'){ do

@EventListener and dojo topics

2006-09-10 Thread Ben Sommerville
Hi, Can an @EventListener be used to subscribe to an event publised via a dojo topic? (dojo topics are described at http://dojotoolkit.org/docs/dojo_event_system.html#using-topics-for-truly-an onymous-communication). cheers, -- Ben Sommerville