Monday 30 December 2013

Show exact length of Secret data or Password in JSF Page in ADF

I have seen many posts about finding the solution of displaying exact length of password data in jsf page.
many people try to use af:inputText with secret=true; but fail and think that this is a bug from oracle.
I don't think this is bug this could be policy to increase security of data.

But If  there is a requirement from client to show exact length of secret data what to do know.
I have prepared a simple solution for this.

  • create a view object or bean with property named password and type String.
  • add this view object in data control.
  • create a jsf page.
  • add html component input secret like <h:inputSecret id="is1" value="" redisplay="true" immediate="true"/>
  • bind value of input secret with view object property by going into page bindings or create a bean and bind with this bean like <h:inputSecret id="is1" value="#{bean.password}" redisplay="true" immediate="true"/>
  • redisplay property should be set to true.
  • deploy and test 

Friday 6 December 2013

How to increase JVM Memory Size for JDeveloper 11g

Open the file D:\fmw1115\Middleware\jdeveloper\ide\bin\ide.conf

and change the lines

AddVMOption -Xmx1024M
AddVMOption -Xms128M

Also open the file D:\fmw1115\Middleware\jdeveloper\jdev\bin\jdev.conf

and change the line

AddVMOption -XX:MaxPermSize=256M