Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
On 13/04/2012, at 11:02 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 13 Apr 2012 09:46:04 -0300, Chris Mylonas wrote: > >> 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

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Thiago H. de Paula Figueiredo
On Fri, 13 Apr 2012 09:46:04 -0300, Chris Mylonas wrote: 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). It seems to me that you haven't u

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
bugger. i think it's null anyway...which is probably what you were both leading me to. i had another field in the event method named context anywaywhich was the URL of the event in the form of an Object[] i'm still back at square one - will review what i have done. thanks On 13/04/2012,

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
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 (whi

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Thiago H. de Paula Figueiredo
On Fri, 13 Apr 2012 08:50:26 -0300, Taha Hafeez Siddiqi 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 a

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
Nope. Tried both context and t:context HTML came out: http://tapestry.apache.org/schema/tapestry_5_3.xsd";> The prop expansion worked ok for html before (below) Still get [Ljava.lang.Object@34255245 on the event both ways. I see that using your suggestion is what happens in the Hi-Lo game, wh

Re: Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Taha Hafeez Siddiqi
Hi Try t:context='currentExtension.number' instead of t:context='${currentExtension.number}' regards Taha On Apr 13, 2012, at 5:13 PM, Chris Mylonas wrote: > Hi List, > > I tried giving a custom component a context (just a String) but when I go to > use it on an event, I get the output t

Give Custom Component a "context" that is not Ljava.lang.Object;@828642

2012-04-13 Thread Chris Mylonas
Hi List, I tried giving a custom component a context (just a String) but when I go to use it on an event, I get the output to be [Ljava.lang.Object;@783b110a instead of "1234" which is what is set during rendering. The output html looks a little strange compared to the component's tml - like I