You can use <pre> in javadocs, and still you'd need to escape html
entities ( ">" to "&gt;", & etc )

Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com



On Wed, Jul 13, 2011 at 8:55 AM, Igor Vaynberg <igor.vaynb...@gmail.com> wrote:
> sweet, too bad  @literal does not preserve linebreaks. what we really
> need is a CDATA like javadoc tag.
>
> -igor
>
> On Wed, Jul 13, 2011 at 4:12 AM, Erik van Oosten <e.vanoos...@grons.nl> wrote:
>> Amazing stuff!
>>
>> You can write straight html in javadoc with the {@literal} syntax. E.g.:
>>
>> *<p>
>> * Given markup like this:
>> *
>> *<code>{@literal
>> *<label wicket:for="name"><span
>> class="label-text">Name</span>:</label><input wicket:id="name" type="text"/>
>> * }</code>
>> *
>> * If the {@code name} component has its label set to 'First Name' the
>> resulting output will be:
>> *<code>{@literal
>> *<label for="name5"><span class="label-text">First
>> Name</span>:</label><input name="name" type="text" id="name5"/>
>> * }</code>
>>
>> Regards,
>>    Erik.
>>
>>
>> Op 13-07-11 01:50, Igor Vaynberg wrote:
>>>
>>> based on some feedback i changed the class name of the inner span from
>>> "text" to "label-text" to reduce chance of css collisions
>>>
>>> -igor
>>>
>>> On Fri, Jul 8, 2011 at 9:22 PM, Igor Vaynberg<igor.vaynb...@gmail.com>
>>>  wrote:
>>>>
>>>> just implemented the wicket:for attribute. check out the javadoc here:
>>>>
>>>>
>>>> http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/form/AutoLabelResolver.java?view=markup&pathrev=1144589
>>>>
>>>> 1.4.x only for now, still needs to be forward-ported to trunk.
>>>>
>>>> feedback?
>>>>
>>>> -igor
>>>
>>
>> --
>> Erik van Oosten
>> http://www.day-to-day-stuff.blogspot.com/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to