Skip to main content

Posts

Showing posts from November, 2011

ADF Mobile

I am starting to play around with ADFs mobile stuff and forgot how to create the project. (Custom project then select the ADF Mobile Browser project feature). I have worked with trinidad before so the dev is not so tricky and drag and drop works so good times. Note to self follow this link if you forget: http://www.oracle.com/technetwork/developer-tools/jdev/ccset52-all-094777.html Also I am using the droid emulator that comes with the SDK for testing will get an iPhone one at a later stage.

ADF refactoring hassles

Did a bit of refactoring and came accross a bit of a problem. One of the directories all the VO's displayed as blank with no details (jdev popup errors everywhere) ... problems. Solution Stop Jdev. Edit the Model.jpx file and add the directory missing manually to the file like such:    <Containee       Name="lov"       PackageName="za.co.company.adf.test.model.lov"       ObjectType="JboPackage">       <DesignTime>          <Attr Name="_VO" Value="true"/>       </DesignTime>    </Containee> Start Jdev

ADF: Auto Suggest - solutions

I had implemented autosuggest on an input text field and it was all working so I moved it into our template to make it available application wide. The component stopped working (bind problem first then it would not return the value I needed into the text box). Here are the fixes. The component is quick go button functionality with a suggest lookup to any menu link. Bind problems solution: I needed to lookup the template binding using the current bind did not have my VO:  BindingContext bctx = BindingContext.getCurrent();   DCBindingContainer bindings =        bctx.findBindingContainer(       "package_formTemplatePageDef"); Not returning the value solution: I had a uppercase conveter on my input text field - this was messing with my return value on the autosuggest. I removed it and it worked like magic. The working code (note the query is limited to 5 rows in the VO with a bind variable linked to rownum): J...

SVN: Subversion apache configuration smackdown

All I wanted out of life was to authenticate off Active Directory, have everyone with a valid user be able to read my svn repo and have a build user defined in a file for my Continuos integration (Non active directory user) and have a couple of AD users have read/write permissions sounds simple but maybe not so much. This is my config file (in /etc/httpd/conf.d): <AuthnProviderAlias ldap adf-ldap-alias> #ldap config make sure the DN config is correct and the server is right   AuthLDAPURL "ldap://adserver.co.za:3268/OU=User Accounts,DC=company,DC=co,DC=za?sAMAccountName?sub?(objectClass=*)" NONE   AuthLDAPBindDN "svnuser@company.co.za"   AuthLDAPBindPassword supersecret </AuthnProviderAlias> <AuthnProviderAlias file adf-file-alias> #setup this file using  htpasswd   AuthUserFile /etc/subversion/adf-auth-file </AuthnProviderAlias> <Location /adfrepo>   DAV svn   AuthType Basic   AuthName "ADF Subversi...

SVN project creation - for my use only

My way add a project (already created) using a tortoise: Repo browser add the folders to svn. Checkout newly created folder tolocal disk where project is. On explorer do a check for modifications add to your hearts content (remeber to uncheck unwanted dirs and add to ignore list). Check in.

ADF : Row fetch limit application wide

JDeveloper 11.1.2.1 Found a nifty little setting in the adf-config.xml file Row Fetch Limit. This applies to all vo's in the application. Click on the Application resources menu tab and select the adf-config file under ADF META-INF. Click on the Business Components tab Ner the bottom there is a Row Fetch Limit checkbox. Why would I use this: This setting can be used for performance reasons to set a resultset limit across the entire application. This can prevent large meaningless user searches with million row results etc.

LOV problem in a multi line edit list

JDeveloper 11.1.2.1 We where having problems with our LOV lookups in a multi table edit list. Where scolling down on the lov with a substantial number of records the LOV list would just reflect Fetching Records... indefinitely. For now I have bound the multi list LOV to another lov model I had on the page with the same LOV in and it works but I will put some more time in finding another solution to this at some time because I am going on holiday next week - awesome. Example Had the following LOV on the page <af:inputListOfValues id="ilov1" popupTitle="Search and Select: #{bindings.EmployeeId.hints.label}"   value="#{bindings.EmployeeId.inputValue}"   label="#{bindings.EmployeeId.hints.label}"   model="#{bindings.EmployeeId.listOfValuesModel}"   required="#{bindings.EmployeeId.hints.mandatory}"   columns="#{bindings.EmployeeId.hints.displayWidth}"   shortDesc="#{bindings.EmployeeId.hints.tool...

ADF: Revert only changes to one View Object (mini rollback)

JDeveloper 11.1.2.1 I really struggled to get this working so hopefully this helps someone out: I needed to just rollback the changes on a single vo backed popup and not the parent object so this is what I did. (not the pk for this view was rowid based and normal methods to do this just refused to work) Also I failed to mention it is a multi line editable table. NOTE: Performance was not an issue here. Phase 1) Parent VO Impl   We have a parent object for all our View Objects so I implemented this method there.  public void clearAllCache() {   //dont ask   ViewRowSetImpl drsi = super.getDefaultRowSetInternal();   while(drsi.hasNext()) {     Row item = drsi.next();   }   Iterator iter = super.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());   while(iter.hasNext()) {     EntityImpl entityItem = (EntityImpl) iter.next();     if(entityItem.getEntityState() == Ent...

Upgrade Jdeveloper jdk

It took me to long to look where you set this in the tools so this is what I did: Stop Jdeveloper. Did a search for my current JDK. Changed the following files and replaced my old jdk location with my new one:   [jdev install location]\Middleware\jdeveloper\jdev\bin\jdev.conf   [WEBLOGIC install location]\DefaultDomain\bin\setDomainEnv.cmd (Usually defaults to your user directory) Optional files to change: (if you are going to remove the old jdk and you want these to work)   [jdev install location]\Middleware\jdeveloper\.product.properties   [jdev install location]\Middleware\wlserver_10.3\.product.propertie   [jdev install location]\Middleware\wlserver_10.3\common\bin\commEnv.cmd   [jdev install location]\Middleware\utils\uninstall\uninstall.cmd   [jdev install location]\Middleware\utils\quickstart\quickstart.cmd   [jdev install location]\Middleware\utils\bsu\bsu.cmd