Pages

Saturday, June 16, 2012

Checking Application Module Dirtiness


 While Building An Application , Developer should consider the end-user actions. 

Say As Example :

If the End-user enter some data without saving the data skip or closing page means Prompt the end user to Save The Data's which you have entered. It's quite Natural,

But in This Application Development Framework ,Component itself can able to handled as such this things.
<af:checkUncommittedDataBehavior/> this is the Component which i means.However sometimes it will not meets our requirements

From My Experience, if you are using UncommittedDataBehavior tag in your jspx page means Prompt an Alert when you are closing the Browser tab without Commiting the data's

In Many of Times Business Requirement May be Like this While Switching tab, navigating pages/regions,
have to prompt the end user to Commit Data's

I would like to come up with HR-Employee table to do my Requirement

Step1: you can see there is no data's on Action Comment



Step 2: if i entered some data's.if i hit the button named check am dirty are not? yes if some changes found out on Application Module means will prompt a message, with an option
if i go with yes means noticed changes will commit into database



Step 3: now you can see the commit data's



  Step4: if i go with no means noticed changes get rollbacked.




Step 5: You cant see the changes, Since It's Rollbacked


 


Step 6: Now am going to hit the Same Button  for checking any dirtiness in Application Module. Nothing have been Noticed.


Download here

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 .