Wednesday, January 27, 2016

ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException)



When I was deploying my JEE application to EAR file from JDeveloper, got the below error.

ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.VetoableDeployException)



To solve this issue, I have done below steps.
  • Go to application properties (not project properties)


  • Go to deployment


  • Select the deployment profile and click on Edit
  • Go to “Application Assembly”
  • Select the check boxes which you want to include in the EAR file from the available “Java EE Modules” (in my case, nothing was selected. So I selected my model and view modules.)


  • Click Ok

Sunday, January 17, 2016

Create Dynamic Barcode Reader by Using ADF

This article is about using barcode reader inside ADF, and create dynamic read and send data to managed bean, and then can store in database or make any operations on it without any action.

- implementation steps
  • Create a fusion web application and a page in viewController and it;s name is barcodePage                
      
  • Page required components
    • <af:document> 
    • <af:form>
    • <af:panelBox>
    • <table>
    • <af:iterator>
    • <af:panelGroupLayout> inside iterator
    • <af:inputText>
    • <af:commandLink>

 
  • Create managedbean in viewController 






  • Main operation that will performed
    • Constructor Implementation
    • Dynamic Focus on latest inputtext every time the page load in it.
      • Inside managedbean 
        • declare an object of Document and create setter & getter to it =>                        private RichDocument doc;
        • in the end of the method of valueChangeListener write adfFacesContext.addPartialTarget(doc);
    • Value change listener to listen any change happen on the value of inputtext.


    • Auto-submit operation to send data with out any action from user. 
    • Delete operation if user want to delete specific value .