webtier@glassfish.java.net

Re: Empty id attribute is not allowed

From: John Yeary <johnyeary_at_gmail.com>
Date: Wed, 6 Jul 2011 21:07:16 -0400

This is not a bug. It is normal. If you want to dynamically create
components and render them. Please take a look at my blog entry on it. Also
note, that you can assign ids dynamically this way.

http://javaevangelist.blogspot.com/2010/11/dynamic-jsf-20-page.html

On Wed, Jul 6, 2011 at 1:54 PM, <forums_at_java.net> wrote:

>
> I'm assigning id value dynamically to a inputText tag.
>
> I'm sure that dynamic value is not null.
>
> JSF throw this error: “Empty id attribute is not allowed”
>
> It's a bug?
>
>
>
> I'm using Glassfish 3.0.1 with Mojarra 2.0.2 (FCS b10) and this is part of
> my
> code:
>
>
>
> <h:inputText id="#{properyValue.**modelProperty.name<http://properyValue.modelProperty.name>
> }"
> label="#{properyValue.**modelProperty.label}" value="#{
> properyValue.valueDecimal }"
> required="#{properyValue.**modelProperty.required}" > </h:inputText>
>
> --
>
> [Message sent by forum member 'angelcervera']
>
> View Post: http://forums.java.net/node/**819422<http://forums.java.net/node/819422>
>
>
>


-- 
John Yeary
--
http://javaevangelist.blogspot.com
http://www.johnyeary.com
*_at_jyeary*
"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt