Hi,I am writing Unit Test Cases for Sling Models, I have a function that
gets Configurations from ConfigurationAdmin.listConfiguration() method.
I'm using Junit 5 and Aem Mock for testing. How can I mock
"listConfiguration()" method since currently an exception is thrown
"java.lang.UnsupportedOperationException";I tried by using spy and
return mocked object whenever this function is called but still I get
the same error.
I have a requirement where I have to submit data of every sub-form in
the back-end, that's why I was calling it a submit button. Anyway, is
there a way I can do it without binding it to XML schema?Although, I
have written a logic to pull data from every panel by using its
somExpression and pulling value from guideObject. It working fine. I
just want to confirm that can I achieve the same by any feature provided
by AEM itself?
Assume a long form which is subdivided into sub-forms, when each
sub-form is filled user clicks on the submit button and moves to next
sub-form. In my case, each sub-form is AF Fragment which I dropped in
form having wizard layout. Can I extract Data without binding AF
fragments to an XML schema?
Hi, My requirement is that I have AEM Form with wizard layout and I have
dropped multiple AF fragments in that form with each panel having a
submit button. Now on each click, I want to get that particular AF
fragment data and submit it to back-end but currently unsuccessful. I
tried using guideBridge.getDataXML() but it seems to give me data for
every panel currently in the form. I am assuming getDataXML
implementation is like something this; returns data based on the values
saved in DOM rather ...