I am new to adf. I am developing a module in an existing application. The modules are similar and there are not big differences. When setting up the .jsff file, I can't set up "Bindings" in any way. There are "Bindings" in the screenshot - this is copied from another module to my new module, since it is similar. Please advise what needs to be done to set them up. Screenshots attached.
P.S. Screenshots are temporarily unavailable. Error on the server
The answer to this question was given in the question at https://community.oracle.com/tech/developers/discussion/4504741/how-to-set-up-bindings#latest
In summary, it turned out that the pageDef file that holds the bindings was not created. The easiest way to create one is to drag something from a datacontrol onto the page and drop it there. This will create the pageDef file needed.
Related
I am trying to use atom with git to work on a coding project with some class mates, for this particular project we are supposed to practice making different classes. I just pulled the most recent version of the project from git and I now see that they were successfully able to create new classes/tab-things but have it still within the main file. How do I do something like this in atom? I can't ask them because they use a different ide.
In the picture you can see different classes in drop-downs but its still within "project2" - how do I do this for another class and have it in a new drop down and upload it to git?
image of what i'm looking at
From the screen shot, those dropdowns appear to simply be diffs from the git log. So if you want your changes to appear in a similar fashion, you'll need to create the classes (or additional files) and commit/push them.
I am quite new to AEM. I am sharing a git repository with another colleague and both of us can pull and push commits. If I change the html for a component, we both will have the code.
My question is: Let's say I created
a page and included copy for it and a couple of images and components. Is there a way for me to export the page I built on my local AEM instance for my colleague to have it or should they build this page as I did step by step? I need to save time.
Thanks in advance
You can use Package Manager for content transfer between instances: https://docs.adobe.com/content/help/en/experience-manager-65/administering/contentmanagement/package-manager.html
You can create a package of your page and the required images and share with others. Packages can be easily created in the crxde. Packages or package manager can be used for multiple purposes like moving content from lower environment to higher, taking a backup of your content and many things.
The Package Manager is likely the solution here. Take into account that for a few pages and assets it is very handy, but it is recommended to create proper filters and exclude assets renditions to reduce the package final size as the site (or testing content) grows.
First, go to this URL "http://localhost:4502/crx/packmgr/index.jsp"
click on Create Package Button in the topbar and enter details and click ok.step1
Now, click on Edit and the filter->Add Filter now click on the search icon and select your page from the project and click ok and then save.step2
now click on Build and now you can download. and you can import this into another project.step3
for more detils go to = https://experienceleague.adobe.com/docs/experience-manager-65/administering/contentmanagement/package-manager.html?lang=en
I am currently using a library for "Notify My Android". The library is using an outdated URL so i tried to change it. I attached the source file and now I can edit the code. Before attaching the source file it just said "compiled code". But when i save it it does not seem to save the changes. It is still using the old URL. Also the change I made is underlined in blue. I hope somebody knows how to make the .jar to accept my changes.
Thanks in advance
it's highly discouraged to modify jars you depend on simply because if you ever want to upgrade versions you'd need to modify the new jar you are looking for.
In those situations you have these options:
if it is an open source project, contribute to the project and correct the URL
try and set the property from your code (this may not be possible in certain situations)
try and extend the class you're trying to use and set the URL on the property you need (like the previous one, it may not be possible to do this)
this should be your last resource: create your own project (from the original jar), make the changes you require, package it up and add it to you app.
I am hosting a Wordpress site and would like to use it to publish an open source project. I'd like one of the main menu items to link to the javadoc for the project. For those, unfamiliar with Java, javadoc is a programmatically generated directory hierarchy with many (too many to convert manually) HTML files. The root level contains the index.html file that you start with and all the references are relative to that directory. How can I hook in this structure to the WP site? Converting each page by hand to a WP page is not an acceptable solution because there are too many of them and they change regularly.
The following worked for me:
Within my WordPress folder I created a folder javadoc - right next to wp-admin and the like - and dumped all the created JavaDoc-html in there. Going to http://my-blog/javadoc nicely displays the docs.
I'm a novice in this area, so this might be inadvisable from a best practice or security point of view. I'm actually very interested in an opinion on that!
I have been coding for about a month and I have found ways to adapt around ever problem but one. The problem as you can probably see by the title is how to make a way to make game saves. I am currently creating a very simple game that has about 5 classes of my code and maybe 2 of Java Swing GUI.
I know how I would like to go about the saving process but I have no idea how to do it in my code. How I would like to go about doing this is by making the code print a Number or Integer to a file to represent a Level. For example if you completed level 1 the number in the file would be 1. I have tried some templates for this but none of them work.
I understand how to write to a file but my problem is reading it from a jar or even creating a file then reading it from a place on the computer. I need to know how to find a file URL for different computers because some use Docs and Settings and other Users. Please could someone help.
Since the jar is read only, it can only contain the 'default settings'. See this answer for the general strategy to deal with such a embedded-resource.
Speaking of which (embedded resources) see the info. page for more details on how to access them.
Here is an example of storing and reading a Properties file from the 'current directory'.
As mentioned by #MadProgrammer though, it is safest to put the settings file into a (sub-directory) of user.home, as seen in this answer.
But a properties file is just one option. You might also serialize an object, or write the file in a custom format that your app. knows how to read, for the first two off the top of my head.
Besides 'serialize (in some form) in a File', there is also the Preferences API, or for desktop applications launched using Java Web Start, the PersistenceService. Here is a demo. of the service.
I need to know how to find a file url for different computers because
some use Docs and Settings and other Users
The System property user.home points to the user's home directory
File userHome = new File(System.getProperty("user.home"));