See

http://java.sun.com/javaee/javaserverfaces/1.2/docs/api/javax/faces/component/UIComponent.html#setId(java.lang.String)


...
First character must be a letter or an underscore ('_').
...

also the ":" for the NamingContainer can cause CSS issues.

-Matthias

On 7/12/06, Paul Spencer <[EMAIL PROTECTED]> wrote:
Running the MyFaces example sample1 [1] through the W3C Markup Validator
  [2] with the doc type set to HTML 4.01, among other error is saw the
one below.

   Error  Line 86 column 634: value of attribute "ID" invalid: "_" cannot
   start a name.

   ...Jsp31'].submit();}return false;" id="_idJsp31:jump_home">
   Go Home</a><input ty

   It is possible that you violated the naming convention for this
   attribute. For example, id and name attributes must begin with a
   letter, not a digit.

I have seen some other posting related to "id" generation since 1.1.1
and though this might be relevant to the discussion.

Is the HTML generated by MyFaces intended to conform to an HTML
Standard, i.e. "4.01 Traditional"?

[1] http://example.irian.at/example-simple-20060712/sample1.jsf
[2] http://validator.w3.org/


Paul Spencer



--
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to