werpu commented on PR #435:
URL: https://github.com/apache/myfaces/pull/435#issuecomment-1360961968

   Sorry for jumping in so late, I have not had that on my radar...
   
   Determine the naming container id, I do that with the prefix passed via the 
identifier.
   
   The JSDOC spec says:
   
   <img width="856" alt="image" 
src="https://user-images.githubusercontent.com/530547/208847654-9dbd8218-9f6b-49cc-ba86-bfb2735a37d1.png";>
   
   Thats basically what we implement in our javascripts.
   
   So in order to prefix whatever we have.. we just use the same name as the 
id...
   
   On the other hand.. in the submit request the viewstate is always passed 
down only as javax.faces.ViewState as per spec
   
   as per JSDoc:
   <img width="898" alt="image" 
src="https://user-images.githubusercontent.com/530547/208847258-6559cfce-462d-43b9-8e0f-a0161f9c6ecd.png";>
   
   So it makes zero difference whether we have the viewrootid in the name or 
not (names are unique only per form, and we only have one viewstate element per 
form, identifiers must be unique per page), but it would break the spec passing 
the viewroot id in the viewstate!
   
   I would not prefix the name frankly spoken and if you need it what is the 
use case for it? If there is a use case we have to challenge the spec on this 
aspect, because it clearly wants a non prefixed name on this.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to