Re: Wicket generates invalid HTML/CSS with ListView

2007-08-22 Thread Igor Vaynberg
already fixed in beta3

-igor


On 8/22/07, Edvin Syse <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I use Wicket 1.3-beta2. When I construct a ListView and
> setOutputMarkupId(true) on the listItem itself, the constructed id in
> the HTML-code is only a number. This breaks the CSS 2 standard, that
> says that the id cannot contain only numbers.
>
> Is there a way to prepend the id with a string, for example the
> wicket:id of the component? (That seems to be standard for most other
> elements when I setOutputMarkupId(true) on them).
>
> Example to reproduce:
>
> ListView lw = new ListView("lw", someList) {
> protected void populateItem(final ListItem item) {
> item.setOutputMarkupId(true);
>
> // Add other elements
> }
> }
>
> The HTML:
>
> 
>  .. Other elements here ..
> 
>
> The rendered output:
>
> 
>  .. Other elements here ..
> 
>
> -- Edvin Syse
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Wicket generates invalid HTML/CSS with ListView

2007-08-22 Thread Edvin Syse

Hi,

I use Wicket 1.3-beta2. When I construct a ListView and 
setOutputMarkupId(true) on the listItem itself, the constructed id in 
the HTML-code is only a number. This breaks the CSS 2 standard, that 
says that the id cannot contain only numbers.


Is there a way to prepend the id with a string, for example the 
wicket:id of the component? (That seems to be standard for most other 
elements when I setOutputMarkupId(true) on them).


Example to reproduce:

ListView lw = new ListView("lw", someList) {
protected void populateItem(final ListItem item) {
item.setOutputMarkupId(true);

// Add other elements
}
}

The HTML:


 .. Other elements here ..


The rendered output:


 .. Other elements here ..


-- Edvin Syse


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]