My Oracle Support Banner

MatchMediaBehavior Tag With PropertyName="visible" And MatchedPropertyValue="false" Does Not Work Correctly (Doc ID 2349643.1)

Last updated on FEBRUARY 07, 2019

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


MatchMediaBehavior tag with propertyName="visible" and matchedPropertyValue="false" on a panel group layout does not work.  Need to explicitly refresh the page with F5 after changing the resolution to make it work.  This issue reproduces on all the browsers like IE, Chrome and Firefox.

However with propertyName="visible" and matchedPropertyValue="true" it works as expected.

Note:  A workaround is to use JavaScript to refresh / resize the page.

Step by step instructions to duplicate the issue

1) Download and extract

2) Then, import MatchMediaSR application to JDeveloper

3) Extract ViewController and run untitled.jsf.

Observe the below problematic behavior:

When the browser is in maximizes state, it will display the message :

" This is visible in greater than 600 px size "

2) Now reduce the browser size to less than 600 pixes size. You will see the message :

"This is visible in greater than 600 px size " " This is visible in less than 600 px "

BUT if we reduce the browser size to less than 600px, it has to show only one message:

" " " This is visible in less than 600 px ".

But the expected behaviour is seen only after pressing the F5 button (refresh page).

 A similar test can be done for maximized browser state as well.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.