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 an event with @EventListener. There is just no request happening when clicking and selecting table-rows (using firebug to do the 'debugging').

Other events are working fine ... but this one is driving me nuts ...

For today I will give up on this :(

Tomorrow I will try to bind an event to a js-funtion with dojo.event.connect manually to narrow this down.

In the meantime: if anyone has an idea ... please let me know. :-)

Bye
Gary

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:

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" tbodyClass="scrollContent" enableMultipleSelect="false" enableAlternateRows="true" rowAlternateClass="alternateRow" cellpadding="0" cellspacing="0" border="0">

   ...

   </table>

Inside my component I have the following annotation:

@EventListener(events="onSelect", elements="addressTable")

So now I am trying to get an event to Tapestry when a row is clicked (firing 'onSelect' inside the SortableTable-Widget) - or even better - when a row is double clicked, passing a parameter (getValue) to the listener ....

I think I have tested every combination of html-code/eventlistener etc. (like doing <table jwcid="[EMAIL PROTECTED]" element="table" id="...., changing elements="addressTable" to targets="addressTable" etc.).

I trying to do so the whole evening - without effort :(

So is it possible to connect a plain dojo-widget to Tapestry this way ? Or am I totally wrong ?

Would by great to get some response  :)

Thank you in advance !

Bye,
Gary




---------------------------------------------------------------------
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]

Reply via email to