Skip to content

VF component IDs with colons#9

Open
bolaurent wants to merge 2 commits into
SalesforceFoundation:masterfrom
bolaurent:master
Open

VF component IDs with colons#9
bolaurent wants to merge 2 commits into
SalesforceFoundation:masterfrom
bolaurent:master

Conversation

@bolaurent
Copy link
Copy Markdown

Some VF components (e.g. apex:inputHidden) cannot be assigned dynamic
IDs. We have to reference them like:

destinationForSelectedId="{!$Component.ProductId}"

As a result, the component ID contains multiple colons, e.g.:

j$('[id$=thePage:theForm:thePageBlock:lineItemsTable:0:ProductId]')

I’ve added code to escape these colons, which confuse jQuery.

Some VF components (e.g. <apex:inputHidden>) cannot be assigned dynamic
IDs. We have to reference them like:

destinationForSelectedId="{!$Component.ProductId}"

As a result, the component ID contains multiple colons, e.g.:

j$('[id$=thePage:theForm:thePageBlock:lineItemsTable:0:ProductId]')

I’ve added code to escape these colons, which confuse jQuery.
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.

1 participant