Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OFBIZ-4035 change the id Attribute for input fields in the model macro form renderer from String to FlexibleStringExpander #22

Closed

Conversation

danwatford
Copy link
Contributor

Functionality to render a DOM element's id attribute using a FlexibleStringExpander expression already existed in Ofbiz via ModelFormField#getCurrentContainerId.

This PR includes changes in widget-form.xsd to document that the id-name attribute can use ${} notation. It also adds a small unit test to ensure that getCurrentContainerId is processing id-name as a FlexibleStringExpander expression.

… can use ${} notation. Also document the default value if id-name is not set.
…rId() method rather than getIdName(). This allows use of ids generated from FlexibleStringExpander expressions.
@sonarcloud
Copy link

sonarcloud bot commented Feb 22, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mbrohl
Copy link
Contributor

mbrohl commented Feb 23, 2020

Hi Dan, it would be better to single out the documentation commit because this could be applied directly (as "Documented: ..."). The 2nd commit is already in PR 23 so could be removed (will need further review/decision).

@mbrohl
Copy link
Contributor

mbrohl commented Feb 23, 2020

Please also use the commit message template (see issue comment).

@danwatford
Copy link
Contributor Author

Closing this PR as will create a new PR focused on the documentation commit per @mbrohl suggestion.

@danwatford danwatford closed this Feb 23, 2020
@danwatford danwatford deleted the ofbiz-4035-flexible-input-id branch March 25, 2020 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants