Skip to content

FIX: Show each place in its own row in the geo-location web examples - #312

Draft
jwrosewell wants to merge 2 commits into
mainfrom
fix/web-examples-dd-main
Draft

jwrosewell wants to merge 2 commits into
mainfrom
fix/web-examples-dd-main

Conversation

@jwrosewell

@jwrosewell jwrosewell commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

The MVC example's example.jsp and the page the servlet example writes put each location value in a element, which HTML does not have, and their scripts made one for each value of the device's location. Inside the

, after each
, the value belongs in a
. Browsers showed the values anyway, as unknown elements, but without the meaning a description list gives them. Both examples now use
, in the markup and in the script that lists the device's location.

FIX: Show each place in its own row in the geo-location web examples

The MVC and servlet examples showed the county in the Country row and the country in the County row, and their scripts filled County from data.location.country. When the location came back empty, the scripts called fieldValue.push, which does not exist, so the list never appeared. Each row now shows its own value, the script reads data.location.county, and fieldValues.push is used throughout. "sever-side" is now "server-side".

rc fixed the same lines in #303, which also changed how the controller passes the values. main keeps its own controller, so only these lines are brought across.

This publishes no package. It changes only geo-location.web.examples.mvc and geo-location.web.examples.servlet, which ci/packages.json marks Publish false.

The MVC example's example.jsp and the page the servlet example writes put each location value in a <dv> element, which HTML does not have, and their scripts made one for each value of the device's location. Inside the <dl>, after each <dt>, the value belongs in a <dd>. Browsers showed the values anyway, as unknown elements, but without the meaning a description list gives them. Both examples now use <dd>, in the markup and in the script that lists the device's location.
The MVC and servlet examples showed the county in the Country row and the country in the County row, and their scripts filled County from data.location.country. When the location came back empty, the scripts called fieldValue.push, which does not exist, so the list never appeared. Each row now shows its own value, the script reads data.location.county, and fieldValues.push is used throughout. "sever-side" is now "server-side".

rc fixed the same lines in #303, which also changed how the controller passes the values. main keeps its own controller, so only these lines are brought across.
@jwrosewell jwrosewell changed the title FIX: Mark the geo-location examples' values with dd, not dv FIX: Correct the geo-location web examples on main Dec 6, 2026
@jwrosewell jwrosewell changed the title FIX: Correct the geo-location web examples on main FIX: Show each place in its own row in the geo-location web examples Dec 6, 2026
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