Pages

Wednesday, March 28, 2012

Visible/Unvisible property For UI Components

Well, While when i'm Roaming around the Otn forums,

I have been noticed that,

New bie's keep posting on this specific topic Visible property On/Off for UI Components.

Say as e.g.: if user try to give the salary as negative. Save button Visible should be get's off.

Step1 :At initial stage save button should be enabled


Step2: If user try to edit the salary as negative. so save button goes off.

Step3: Here Code snippet goes.


Enable/disable the buttons based on conditions

Well, i previously blogged about Visible/Unvisible property For UI

But here I'm to represent Enable/Disable button,
Concept and code snippet is same some what like previous post. 

I got a requirement like, A button(update) should be disable at initial stage.
Based on condition should get enabled.

If you are using the commit button once record created never allow you to update.
If you remove this EL Expression (#{!bindings.Commit.enabled}) you can update the records as always.

But my customer expect something like update button. 
To update the existing records. 

Consider this as a scenario for Toggling enable/disable button.


Step1: At initial stage existing records cannot save and update.



Step2:  when the user try to edit the employee id means update button get's enabled.


Step3:  Here Code Snippet shows, Approach1 and Approach2 both of them performs the same. 

Tuesday, March 27, 2012

About Occurences of TimeZone Not found


I h've been Noticed in Jdeveloper11gR1

In WebBrowser Oracle Icons keep on rotating. when you check Intergrated - wls throw some error:
Caused By: java.sql.SqlDataException: ora-01882: timezone region not found.

   
To avoid that:
Just Give hit to Model Layer do like as mentioned in Snap. Do as well for View layer Also


Note: Dont Forget to Restart the Jdev.

After re-start your project ignores that such kind of errors.

Object Naming on Business Components


In Application Development Framework 11g in Release1,

By default framework provides Naming Standards On Base Classes  and its Class Naming
Other than this,

By Focusing developer, Framework provide some standard for Object Naming
giving suffix for those objects.

Framework says it's some kind of rule.the developer Should follow and also,

To identify Object easily .