<div id="userPermissionsEditor">
	<wo:if condition = "$context.isInForm" negate = "$true">
		<p style = "color:red;">This component needs to be inside a WOForm.</p>
	</wo:if>
	<wo:AjaxUpdateContainer id = "$userProfileEditorID">
		<wo:AjaxObserveField updateContainerID = "$userProfileEditorID" action = "$autosave">
			<span class = "profileLabel"><wo:localized value = "UserPermissionEditor.ProfileLabel"/></span>
			<wo:popUpButton class = "profileListPopUp" list = "$profiles" item = "$profile" displayString = "$profile.localizedName" selection = "$userProfile.profile" noSelectionString = "$selectProfileString"/>
		</wo:AjaxObserveField>
		<wo:UserPermProfileEditor userProfile = "$userProfile" autoSave = "$^autoSave"/>
	</wo:AjaxUpdateContainer>
</div>
<div id="userPermissionsEditor">
	<wo:if condition = "$context.isInForm" negate = "$true">
		<p style = "color:red;">This component needs to be inside a WOForm.</p>
	</wo:if>
	<wo:AjaxUpdateContainer id = "$userProfileEditorID" action = "$refresh">
		<wo:AjaxObserveField updateContainerID = "$userProfileEditorID" action = "$autosave">
			<span class = "profileLabel"><wo:localized value = "UserPermissionEditor.ProfileLabel"/></span>
			<wo:popUpButton class = "profileListPopUp" list = "$profiles" item = "$profile" displayString = "$profile.localizedName" selection = "$userProfile.profile" noSelectionString = "$selectProfileString"/>
		</wo:AjaxObserveField>
		<wo:UserPermProfileEditor userProfile = "$userProfile" autoSave = "$^autoSave"/>
	</wo:AjaxUpdateContainer>
</div>
Add AjaxModalDialog update if permission editor is inside a modal and a profile is changed.
Add AjaxModalDialog update if permission editor is inside a modal and a profile is changed.
