You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Srikanth Madarapu <sr...@senior-systems.com> on 2005/06/24 21:47:39 UTC

upgrading from 1.0.6 to the latest version of my faces.

Hi

  I am in the process of upgrading my "MyFaces" from 1.0.6 to the latest version. I have downloaded the nightly build (6/21). I have compiled my code ran the app server. When I try to access one of the JSF pages I got the following error... 


05/06/24 15:36:54 java.lang.IllegalArgumentException: Subsequent characters of component identifier must be a letter, a digit, an underscore ('_'), or a dash ('-')! But component identifier contains " "
05/06/24 15:36:54 	at javax.faces.component.UIComponentBase.isIdValid(UIComponentBase.java:726)
05/06/24 15:36:54 	at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:153)
05/06/24 15:36:54 	at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:449)
...
...

What is causing this error ?

TIA
-Srikanth Madarapu


Re: upgrading from 1.0.6 to the latest version of my faces.

Posted by Bruno Aranda <br...@gmail.com>.
Srikanth, you have components with spaces in its id attribute, and
according to section 3.1.1 of the spec this is not allowed. The spec
says that a component id must follow this rules:

- They must start with a letter (as defined by the Character.isLetter()
method) or underscore ('_').
- Subsequent characters may be letters, digits, dashes ('-'), and
underscores ('_').

So SPACES are not allowed ;-)

Regards,

Bruno

the id of a component must follow this rules:
2005/6/24, Srikanth Madarapu <sr...@senior-systems.com>:
> Hi
> 
>   I am in the process of upgrading my "MyFaces" from 1.0.6 to the latest version. I have downloaded the nightly build (6/21). I have compiled my code ran the app server. When I try to access one of the JSF pages I got the following error...
> 
> 05/06/24 15:36:54 java.lang.IllegalArgumentException: Subsequent characters of component identifier must be a letter, a digit, an underscore ('_'), or a dash ('-')! But component identifier contains " "
> 05/06/24 15:36:54       at javax.faces.component.UIComponentBase.isIdValid(UIComponentBase.java:726)
> 05/06/24 15:36:54       at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:153)
> 05/06/24 15:36:54       at javax.faces.webapp.UIComponentTag.createComponentInstance(UIComponentTag.java:449)
> ...
> ...
> 
> What is causing this error ?
> 
> TIA
> -Srikanth Madarapu
> 
>