struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thim Anneessens (JIRA)" <>
Subject [jira] [Created] (WW-3990) Null id is not possible on component
Date Mon, 04 Mar 2013 10:49:15 GMT
Thim Anneessens created WW-3990:

             Summary: Null id is not possible on component
                 Key: WW-3990
             Project: Struts 2
          Issue Type: Bug
    Affects Versions:
            Reporter: Thim Anneessens

When inserting a component in a JSP action result (using <s:component template=...), the
component has always at least an empty String as id. 

It is impossible to have null as value for id. Even when specifying explicitly null as being
the value for id. 

This is the case when using s:param or the id attribute of s:component.

After discussing the issue with Lukasz Lenart, he pointed out that the cause of this issue
is that the UIBean.escape(String) method is always called on the id and that it returns an
empty String when a null String is passed to it.

This issue should be fixed or documented. Current documentation for id says it has no default

There is a poc project. It was shared on the mailing list under the title
"Re: Inconsistency in Struts2 s:component parameters handling"

Feel free to ask more questions.

Best regards,

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message