Hi Nick,
Thanks, it works!, I tried to avoid asking question first so I have been
reading outputraw doc for a long time, but can't understand it, here is:
Name Type Flags Default Default Prefix Description
value String Required prop The value to to render. If
unbound, and a
property of the container matches the component's id, then that property
will be the source of the value.
Here is how I undertand it:
Value : parameter name, use it to specify a data source
String : the data source should be a string, but the currentTime is a date
in my sample, still acceptable, why?
Prop: the data source should have a prefix which defaults to 'prob'
and also the description, how to interpret it? help me understand it so that
I can understand the rest of the doc, thanks.
A.C.
Nick Westgate wrote:
>
> Attributes default to the prop binding, so there's no need to use
> expansions:
> <t:outputraw value = "currentTime}" />
>
> See the current "loop problem" thread.
>
> Cheers,
> Nick.
>
>
> Angelo Chen wrote:
>> Hi Erik,
>>
>> To make things easier, i use this:
>>
>> public Date getCurrentTime()
>> {
>> return new Date();
>> }
>>
>> then in my html file I use:
>>
>> <t:outputraw value = "${CurrentTime}" />
>>
>> when the page is displayed second time, the time does not change, you
>> have
>> to restart the program to have the time updated, my impression is,
>> outputraw
>> will update the template and remain static until re-start, if that's the
>> case, my question is, how to display html formated data?
>>
>>
>> Erik Vullings-2 wrote:
>>> Hi Angelo,
>>>
>>> And how did you define currentuser? Any annotations?
>>>
>>> Cheers, Erik
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/T5%3A-outputRaw-tf4449911.html#a12728683
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]