never never never ... thanks for the tip.  String is fine for me - it's not the 
most efficient way, but I've got a bit of a problem finding out where my 
dragged (and known) component got dropped.

I need to convert from Ljava.lang.Object@234141 to "string representation" or 
what value it is (which happens to be a string) I set during render (so the 
HTML that is output is good enough for me).


Doing it the never never never way - I can (I think safely) get the string 
value, then look it up in my list when the event is triggered (dropped in this 
case).
The dragged object has a parameter that is received, but the droppedOn 
component can only be retrieved with the @OnEvent annotation - which is good 
for a single page full of components -

I have two custom components - 1.  uses draggable, the other uses droppable.  I 
need to know what gets dropped onto what.

It would be like having two grids with one grid full of draggable rows and the 
other grid with droppable rows.
If I can get the string value of the droppable row, I know which object it is 
(my objects have unique string values so I'm safe in that respect).



On 13/04/2012, at 10:33 PM, Thiago H. de Paula Figueiredo wrote:

> On Fri, 13 Apr 2012 08:50:26 -0300, Taha Hafeez Siddiqi 
> <tawus.tapes...@gmail.com> wrote:
> 
>> Hi
> 
> Hi!
> 
>> Try
>> 
>> t:context='currentExtension.number' instead of 
>> t:context='${currentExtension.number}'
> 
> Never never never ever use expansions when passing parameter values. :) 
> Expansions always coerce the value to String and are meant to be used to 
> output values to HTML, never to component parameters.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> ---------------------------------------------------------------------
> 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

Reply via email to