For what it's worth, I ended up going to a differnet route with this.I do not think you are able to change that paramters, the method called is actually getRequestParamterMap() in SlingHttpServletRequest. Attempting to wrap this and @Override that method were futile.Instead, I just throw a servlet e...
A app that I'm working on requires a couple of additional fields be added to a user's profile:./profile/approvers (used to programmatically construct an approver group for use in workflows)./profile/contactReassign, ./profile/authorReassign -- used to change news articles listing the user as the aut...
Model interfaces are extendable, but you have to access the data members with methods like getPropertyName(), however, as all of the data members wont directly to data members, I'm just going to go ahead and store the page as a data member on the Article object itself.
I have an Article model that is more or less a com.day.cq.wcm.api.Page with a number of specific properties: @Model(adaptables=Resource.class) public class Article { @Inject public String author; @Inject public String[] contacts; @Inject public Date dispDate; //... }This works fine by itself, but I'...
I have urls like this: "/content/uc/news/search-results.html?submitted=submitted&topics=topics:collegeBound" that are displaying as non-existant by the link checker. The search-results page does exist, and linking to that alone does just fine. I'd prefer not to have to disable to the linkchecker for...
Hi all. In certain templates, I'm running into a case where I'm going to have to access the same information for several users multiple times. Given an ID, I'm wondering if there is a best practice for accessing their information (namely: email, name, phone number, and a couple other data points). I...
For reference for people looking at this in the future, here's what I did:Add the class "coral-Select-Multiple" to any of the select boxes where multiple=trueIn the javascript fillAdditionalFields() function, here's my nested handler() function, populating with the data[] array is the most important...
I have 4 fields I'm adding to the userEditor. To get started I followed this tutorial. http://experience-aem.blogspot.com/2015/09/aem-61-touch-ui-add-new-fields-to-user-editor-and-save-to-profile.htmlThat works well for text inputs, but two of my fields are <select> components, one of which is multi...
This worked when I swapped the resourcerevolver to resolverFactory.getAdministrativeResourceResolver(null); (as opposed to using getServiceResourceResolver).I know that getAdministrativeResourceResolver() is deprecated, but I'll use it for now--are there details on how these differ? Is it as simple ...