René's URL Explorer Experiment


Title: Weirdness when setting multiple-choice input options dynamically · Issue #470 · scijava/scijava-common · GitHub

Open Graph Title: Weirdness when setting multiple-choice input options dynamically · Issue #470 · scijava/scijava-common

X Title: Weirdness when setting multiple-choice input options dynamically · Issue #470 · scijava/scijava-common

Description: From a Zulip topic by @emilmelnikov: In the following example, target should be a dropdown list populated with values derived from other inputs when they change, but target renders as a normal text field. public class SampleCommand exten...

Open Graph Description: From a Zulip topic by @emilmelnikov: In the following example, target should be a dropdown list populated with values derived from other inputs when they change, but target renders as a normal text...

X Description: From a Zulip topic by @emilmelnikov: In the following example, target should be a dropdown list populated with values derived from other inputs when they change, but target renders as a normal text...

Opengraph URL: https://github.com/scijava/scijava-common/issues/470

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Weirdness when setting multiple-choice input options dynamically","articleBody":"From [a Zulip topic](https://imagesc.zulipchat.com/#narrow/stream/327236-ImageJ/topic/ChoiceWidget.20with.20listBox.20style.20doesn't.20work.20with.20setChoices) by @emilmelnikov:\r\n\r\n\u003cblockquote\u003e\r\n\r\nIn the following example, target should be a dropdown list populated with values derived from other inputs when they change, but target renders as a normal text field.\r\n\r\n```java\r\npublic class SampleCommand extends DynamicCommand {\r\n    @Parameter(label = \"Input\", callback = \"inputChanged\")\r\n    String input;\r\n\r\n    @Parameter(label = \"Target\", style = \"listBox\")\r\n    String target;\r\n\r\n    void inputChanged() {\r\n        MutableModuleItem\u003cString\u003e item = getInfo().getMutableInput(\"target\", String.class);\r\n        item.setChoices(Arrays.asList(\"one\", \"two\", \"three\"));\r\n    }\r\n}\r\n```\r\n\r\nIt works when choices = {\" \"} is passed to `@Parameter` with `listBox`. Note the single space: passing an empty string results in `NullPointerException`.\r\n\r\n\u003c/blockquote\u003e\r\n","author":{"url":"https://github.com/ctrueden","@type":"Person","name":"ctrueden"},"datePublished":"2023-09-11T19:23:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/470/scijava-common/issues/470"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d022d997-e413-572c-b476-7af2c08dc116
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE9C8:343C8C:41D81:567E4:6969C61A
html-safe-nonce2338692cb10c4e17e9021753cdab7edce7f7853e6ccaa8204435051e42c40383
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUM4OjM0M0M4Qzo0MUQ4MTo1NjdFNDo2OTY5QzYxQSIsInZpc2l0b3JfaWQiOiI4ODY3MTU5MDc3NTY5NTQ1NzU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac16aa6534cbe58a6cdb318a530dae86d8335aa5415d5183e4d0a296b7e3e93ba2
hovercard-subject-tagissue:1891125433
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-common/470/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d9095fb4a3cff626744fd66c16868d66afa6218903ce0ce6dad8dcf3ee3c84fd/scijava/scijava-common/issues/470
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d9095fb4a3cff626744fd66c16868d66afa6218903ce0ce6dad8dcf3ee3c84fd/scijava/scijava-common/issues/470
og:image:altFrom a Zulip topic by @emilmelnikov: In the following example, target should be a dropdown list populated with values derived from other inputs when they change, but target renders as a normal text...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamectrueden
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
go-importgithub.com/scijava/scijava-common git https://github.com/scijava/scijava-common.git
octolytics-dimension-user_id1262770
octolytics-dimension-user_loginscijava
octolytics-dimension-repository_id3594497
octolytics-dimension-repository_nwoscijava/scijava-common
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3594497
octolytics-dimension-repository_network_root_nwoscijava/scijava-common
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/scijava/scijava-common/issues/470#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-common%2Fissues%2F470
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscijava%2Fscijava-common%2Fissues%2F470
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scijava%2Fscijava-common
Reloadhttps://github.com/scijava/scijava-common/issues/470
Reloadhttps://github.com/scijava/scijava-common/issues/470
Reloadhttps://github.com/scijava/scijava-common/issues/470
scijava https://github.com/scijava
scijava-commonhttps://github.com/scijava/scijava-common
Notifications https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Fork 53 https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Star 90 https://github.com/login?return_to=%2Fscijava%2Fscijava-common
Code https://github.com/scijava/scijava-common
Issues 169 https://github.com/scijava/scijava-common/issues
Pull requests 16 https://github.com/scijava/scijava-common/pulls
Actions https://github.com/scijava/scijava-common/actions
Projects 0 https://github.com/scijava/scijava-common/projects
Wiki https://github.com/scijava/scijava-common/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/scijava/scijava-common/security
Please reload this pagehttps://github.com/scijava/scijava-common/issues/470
Insights https://github.com/scijava/scijava-common/pulse
Code https://github.com/scijava/scijava-common
Issues https://github.com/scijava/scijava-common/issues
Pull requests https://github.com/scijava/scijava-common/pulls
Actions https://github.com/scijava/scijava-common/actions
Projects https://github.com/scijava/scijava-common/projects
Wiki https://github.com/scijava/scijava-common/wiki
Security https://github.com/scijava/scijava-common/security
Insights https://github.com/scijava/scijava-common/pulse
New issuehttps://github.com/login?return_to=https://github.com/scijava/scijava-common/issues/470
New issuehttps://github.com/login?return_to=https://github.com/scijava/scijava-common/issues/470
Weirdness when setting multiple-choice input options dynamicallyhttps://github.com/scijava/scijava-common/issues/470#top
https://github.com/ctrueden
https://github.com/ctrueden
ctruedenhttps://github.com/ctrueden
on Sep 11, 2023https://github.com/scijava/scijava-common/issues/470#issue-1891125433
a Zulip topichttps://imagesc.zulipchat.com/#narrow/stream/327236-ImageJ/topic/ChoiceWidget.20with.20listBox.20style.20doesn't.20work.20with.20setChoices
@emilmelnikovhttps://github.com/emilmelnikov
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.