[
https://issues.apache.org/jira/browse/WW-5082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17156543#comment-17156543
]
Lia_Eur commented on WW-5082:
-----------------------------
We have tried that but it did not work because of the differences of the escape
method in UIBean.class :
{code:java}
protected String escape(String name) {
// escape any possible values that can make the ID painful to work with in
JavaScript
if (name != null) {
return name.replaceAll("[\\/\\.\\[\\]]", "_");
} else {
return null;
}
}
{code}
I will try it one more. Should i somehow override the changed methods inside my
code or do you think that by adding id the problem will be solved? Thank you
very much.
> struts2 update from 2.1.6 to 2.3.37
> -----------------------------------
>
> Key: WW-5082
> URL: https://issues.apache.org/jira/browse/WW-5082
> Project: Struts 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.3.37
> Environment: java 8
> Reporter: Lia_Eur
> Priority: Major
> Fix For: 2.6
>
> Attachments: incomingFolderView.jsp
>
>
> We have upgraded our application from struts2 2.1.6 to *struts2 2.3.37* and
> we face the following problem. Τhe generated HTML pages do not include ids
> for some elements as they did before. That happens because in the new version
> of struts2 there were made changes in the classes *UIBean.class* (methods
> changed: escape() and populateComponentHtmlId() ) and
> *ServletUrlRenderer.class* (method changed: renderFormUrl () ). As a result
> these ids are not produced any more. We need the ids in our application
> because the application must work also with shortcuts and this is possible
> only if there are ids for the elements in order to be possible the selection
> of an element through its id. Could you suggest us a possible solution for
> this problem?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)