I am not trying to click on the panel splitter collaplse / expand button with javascript / jquery, no benefit.
Here is an example of splitters:
As you can see, when you click the small button with the arrow, then the collapse of the field if I get the element and If you try to click, nothing happens.
$ ("dmoTpl: innerVerticalSplitter :: i"). Onclick ()
If I load jquery script and triggers click, nothing happens. I'm a little confused how this works all and why script clicks are ignored. Any ideas?
I do not use JQuery, but here's an example that Vanilla uses Javascript < Code> & lt; Af: clientListener / & gt; tag
& lt ;? XML version = '1.0' encoding = 'UTF-8'? & Gt; & Lt; Jsp: root xmlns: jsp = "http://java.sun.com/JSP/Page" version = "2.1" xmlns: af = "http://xmlns.oracle.com/adf/faces/rich" xmlns: F = "http://java.sun.com/jsf/core"> & Lt; Af: resource type = "javascript" & gt; Function ToggleSplitator (EVT) {comp = evt.getSource (). FindComponent ('ps1'); If (comp) {comp.setProperty ("collapsed",! Comp.getProperty ("collapsed")); } And {warnings ('not found'); }} & Lt; / Af: Resources & gt; & Lt; Af: panelStretchLayout id = "psl1" & gt; & Lt; F: aspect names = "center" & gt; & Lt; Af: panelSplitter id = "ps1" & gt; & Lt; F: aspect names = "first" & gt; & Lt; Af: outputText value = "first" id = "ot1" /> & Lt; / Ch: Aspect & gt; & Lt; F: aspect names = "second" & gt; & Lt; Af: panelFormLayout id = "pfl1" & gt; & Lt; F: Aspect Name = "Footer" /> & Lt; Af: command button text = "toggle" id = "cb1" instant = "true" & gt; & Lt; Af: clientListener method = "toggleplitter" type = "click" /> & Lt; / Air Force: CommandButton & gt; & Lt; Af: outputText value = "second" id = "ot2" /> & Lt; / AF: panelFormLayout & gt; & Lt; / Ch: Aspect & gt; & Lt; / AF: panelSplitter & gt; & Lt ;! - id = "af_one_column_stretched" - & gt; & Lt; / Ch: Aspect & gt; & Lt; / AF: panelStretchLayout & gt; & Lt; / Jsp: root & gt;
It is expanded before clicking:
and after a click it collapses:
Comments
Post a Comment