Congrats! Looking forward to it.

On Tue, Sep 20, 2011 at 2:20 PM, Christian Huber <hub...@butterbrot.org>wrote:

> Well, after about two days I finally got it working ;-) I'll try to scratch
> together a blog post in the next days with the details :-)
>
>
> The Sanity Resort 
> <http://sanityresort.blogspot.**com/<http://sanityresort.blogspot.com/>
> >
>
> Am 19.09.2011 16:41, schrieb Dan Retzlaff:
>
>> I see now. Forget the behavior approach. :)
>>
>> How about keeping a List<String>  of footnotes in the page's metadata
>> (i.e.
>> getPage().setMetaData(**FOOTNOTES))? Create (1) a Label-like component
>> which,
>> in its onInitialize(), adds its contents to the list and saves the new
>> index
>> to be rendered as the footnote annotation, and (2) a FeedbackPanel-like
>> component which renders the footnote content as an ordered list.
>>
>> You may also be able to put the footnotes into the Session's feedback data
>> as Martin suggests, but I'm not sure how the footnote annotation and
>> footnote content would be differentiated.
>>
>> On Mon, Sep 19, 2011 at 1:15 AM, Christian Huber<hub...@butterbrot.org>**
>> wrote:
>>
>>  Hi Dan,
>>>
>>> thanks for your answer.
>>>
>>> To be a bit more clear about what I want, I would like (spoken
>>> simplified)
>>> to add a footenote to a label like "Some text<sup>1</sup>" and
>>> automatically have the footbnote text appear at the bottom of the
>>> corresponding page.
>>>
>>> Right now I have a Label subclass to do this (and a bit more) but am
>>> moving
>>> he code to a behavior and will also try to create an appropriate resolver
>>> to
>>> allow the usage of a wicket:footnote tag. But I thougth I'd ask if there
>>> isn't already something like it out there.
>>>
>>>
>>> Cheers, Chris
>>>
>>> The Sanity 
>>> Resort<http://sanityresort.**blogspot.<http://sanityresort.blogspot.>
>>> **com/<http://**sanityresort.blogspot.com/<http://sanityresort.blogspot.com/>
>>> >
>>>
>>> Am 18.09.2011 22:57, schrieb Dan Retzlaff:
>>>
>>>  Hi Christian,
>>>>
>>>> I don't understand the particular hierarchy placement you have in mind,
>>>> but
>>>> I'd guess that you could write a Behavior that does it. Behaviors get
>>>> callbacks for component tags, rendering events, etc.
>>>>
>>>> Dan
>>>>
>>>> On Sun, Sep 18, 2011 at 12:12 PM, Christian Huber<hub...@butterbrot.org
>>>> >*
>>>> *wrote:
>>>>
>>>>  Hi all,
>>>>
>>>>> I was wondering if there is something like a footnote
>>>>> component/behavior
>>>>> or
>>>>> similar. A mechanism that allows you to easily add a footnote to a
>>>>> label
>>>>> and
>>>>> the corresponding footnote text to one of it's parents in a generic
>>>>> way.
>>>>>
>>>>> I know I could just add a footnote to a label and another label
>>>>> containing
>>>>> the footnote text but that does not work in a generic way.
>>>>>
>>>>> Cheers,
>>>>> Chris
>>>>>
>>>>> --
>>>>> The Sanity Resort<http://sanityresort.****blogspot.<
>>>>> http://sanityresort.**blogspot <http://sanityresort.blogspot>.>
>>>>> **com/<http://**sanityresort.**blogspot.com/<http://sanityresort.blogspot.com/>
>>>>> <http://**sanityresort.blogspot.com/<http://sanityresort.blogspot.com/>
>>>>> >
>>>>>
>>>>

Reply via email to