UI element ID generation logic in BSP and JSP

Source: Internet
Author: User
CRM WebClient UI

WebClient UI renders the DOM elements of these c#_w# format IDs in which line of ABAP code is generated?

Refer to my blog webclient UI element ID generation logic

Hybris

Since it is a JSP, it is the same as a BSP based on server-side rendering. Hybris app developers don't have to reinvent the wheel and use Ycommerce tags directly on JSP pages:

The Ycommerce tag is implemented as follows. It is also clear from the comments that this JSP tag is implemented, in order to ensure that the ID is unique, in the same way as the CRM WebClient UI: The internal maintenance of a counter, after each generation of elements plus 1.

The code for the counter plus one:

Equivalent to the 16th line of code in the WebClient UI:

JSP can not be directly executed by the browser, but compiled into. class, the final browser output of the native HTML code generated in these. Class:

To get more original Jerry's technical articles, please follow the public number "Wang Zixi" or scan the QR code below:

UI element ID generation logic in BSP and JSP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.