Quick things I learned about JDeveloper 11g this week.

IDE related

  • Speed up JDeveloper! Performance Optimization Tips

https://blogs.oracle.com/angelo/entry/improving_the_performance_of_jdeveloper

http://bexhuff.com/2012/09/jdeveloper-memory-and-performance

  • Beware, setting the look and feel to windows mess up the wizards for contextual events. After setting up a CE, upon defining a subscriber, notice the lookup for the event does not work along with panel size issues with the CE subscriber “wizard”. I am using windows XP Pro.

 

Common problems and solution:

1. Problem:  I kept getting NPE in my pojo contextual event handler when I try to access the UI Shell tabcontext.

Solution:

http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html

“To access TabContext methods from within a task flow, define a parameter for TabContext in the task flow. The UI Shell template passes in TabContext.”

2. Problem: Upon running an app with BTF if the btf does not render in a region and within the log console, you see a line that says

“<ViewXmlImpl> <parsePageParameters> ADFc: Failed to parse element ‘input-page-parameter’.”

Solution: Check the btf xml source and make sure you delete any empty input-page-parameter. I see this happen when I try to create a parameter on the btf but then delete it. it dosnt seem the source file is synched with the update.

input-page-parameter id=”__3″>

<from-value></from-value>

<to-value></to-value>

</input-page-parameter>

Contextual Events

  • Contextual Events can only be consumed by a parent subscriber.

For example

Page  (event cannot be consumed here)
-Btf (event can be consumed here)
–Btf (event fired from here)

There must be a way to broadcast to a ancestor page, I have not yet found a solution.

  •  Programatic contextual events

http://one-size-doesnt-fit-all.blogspot.com/2010/08/jdev-11g-programmatic-contextual-events.html

BTFs

  • Navigate to BTF programmatically

https://blogs.oracle.com/jdevotnharvest/entry/how-to_navigate_in_bounded_task_flows

  • Programmatically passing parameters into a BTF. Long story short. In R2, you can just call the addTab() method that takes a parameters map.

http://soadev.blogspot.com/2009/12/oracle-ui-shell-passing-parameters-to.html

http://naive-amseth.blogspot.com/2010/08/passing-parameter-to-bounded-taskflows.html

Bugs?

Upon undeloying an app within embedded wls, I get the following error

“Removal of application policy failed”

https://forums.oracle.com/forums/thread.jspa?messageID=10539089&tstart=0

 

When running an application with with a button that fires a contextual Event, I notice the following console printout from embedded wls.

“Failed to build StructureDefinition”

Found this answer

https://forums.oracle.com/forums/thread.jspa?threadID=2300968

 

 

 

Advertisements

About wesfang

www.linkedin.com/in/wesfang/ https://twitter.com/wesleyfang
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s