Re: [core] UIComponentBase.getId() can return null

2010-02-10 Thread Blake Sullivan
We need to fol,low up with the JSF spec because: 1) The RI does not implement the behavior you would expect from the JavaDoc because calling getClientId() on a component with a null id causes the id of the component to be set as a side-effect. The expected result would be that the id of the

[core] UIComponentBase.getId() can return null

2010-02-09 Thread Matthias Wessendorf
Hi, Blake committed an interesting patch to Trinidad: http://bit.ly/dtghOs I see that MyFaces can actually return NULL on getId(), however the MyFaces implementation goes ahead and creates the ID if getClientId(facesCtx) is called AND! the getId() returns null. So, why not directly ensuring

Re: [core] UIComponentBase.getId() can return null

2010-02-09 Thread Jakob Korherr
Hi, So the difference between getId() and getClientId() is that the last one generates the Id if necessary, am I right? From my point of view getId() is the getter for the id property which can be set with setId(). However, there is no method setClientId(). So I think the sence is that getId()