Simple drag&drop with handler doesn't work in Edge?
Hi all!
I made this very simple example of Drag&Drop in Edge: http://www.terredainventare.it/simpledrag/simpledrag.html using Jquery Ui http://docs.jquery.com/UI/Draggable.
I try to use the JQueryUi "handle" property that makes you drag an object restricting drag click on only one element but it doesn't work.
Here's the code I've put in Edge onCompositionReady:
sym.$("drag").draggable({ handle:"handler" });
Of course my two Div-elements are called "drag" and "handler". Now the drag works only on the "wrong" element and not on the "handle".....
Here's the Adobe Edge files: http://www.terredainventare.it/simpledrag/web.zip
Many thanks in advance for your help!
Davide
So, on stage i add a rectangle named "drag" and i try this code:
yepnope({
nope:[
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js',
'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css'
complete: init
function init() {
//$("#Stage_drag").draggable();
//$(sym.lookupSelector("drag")).draggable();
sym.$("drag").draggable();
3 lines work: $("#Stage_drag").draggable() or $(sym.lookupSelector("drag")).draggable() or sym.$("drag").draggable()
And css file is not required.
Well, your dowload link is not perfect but i download your folder. See you later.
There is a tutorial: a movie tutorial (adobe tv). Mix it baby! Extending Edge Animate 02:57
They use: yepnope (both, callback)
yepnope({
both: ['jquery-ui.min.js',
'jquery-ui.css'
callback: function(){sym.$("drag").draggable()}
I will send you your files tomorrow (private message).
Similar Messages
-
The onDeactivate event handler doesn't work in InDesign CC. Why?
Hi guys.
I’m working on a script in Javascript for InDesign CC.
The big problem is that the onDeactivate event handler doesn’t work.
Here’s an example that works in InDesign CSx but not in InDesign CC:
#target indesign
var w = new Window ("dialog", "Test onDeactivate");
var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
et_1.onDeactivate = et_2.onDeactivate = function(){
st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
var b_ok = w.add("button", undefined, "OK");
w.show();
The script shows a dialog window with 2 edit text fields: when a field loses the focus (clicking on the other one), the «CONSOLE» shows the text of the old field.
Adobe, please, fix this issue as soon as possible.
Thanks.
GiorgioIt's a bug, and it has been reported. Please report it yourself, the more reports the better. It's no good asking Adobe in this forum to fix something.
Peter -
RE: Drag & Drop with ListView
By the way, has anyone tried to drag & drop a node from a listview to a
treeview? I can drag a node from the listview. But when I drop it into
the treeview, how can I find out which node of the treeview that I drop
into? Any help will be greatly appreciated.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x233
Fax 201.261.1399
E-mail : [email protected]
Ulrich:
Try to change the state of the DVNodeText of the list view to FS_DRAG.
For example,
<MyListView.DVNodeText>.state = FS_DRAG. This may solve your problem.
Hope this helps.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x245
Fax 201.261.1399
E-mail : [email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Thursday, October 02, 1997 2:07 PM
To: 'forte users'
Subject: Drag & Drop with ListView
Hi all,
I am currently implementing a drag and drop between a listview and a
treeview in Forte 3E.
The TreeView has an IsDraggable attribute that allows me to drag treeview
items while also highlighting the selected node. Unfortunately this isn't
the case with the ListView control. If I put the ListView in a draggable
state I can't see which node was selected.
Can anyone supply a solution to draggiing from a ListView while also
highlighting the node being dragged?
Ulrich Lalk
[email protected]Ulrich:
Try to change the state of the DVNodeText of the list view to FS_DRAG.
For example,
<MyListView.DVNodeText>.state = FS_DRAG. This may solve your problem.
Hope this helps.
Tien Wang
Indus Consultancy Services
http://www.indcon.com
Phone 201.261.3100 x245
Fax 201.261.1399
E-mail : [email protected]
-----Original Message-----
From: owner-forte-users [SMTP:[email protected]]
Sent: Thursday, October 02, 1997 2:07 PM
To: 'forte users'
Subject: Drag & Drop with ListView
Hi all,
I am currently implementing a drag and drop between a listview and a
treeview in Forte 3E.
The TreeView has an IsDraggable attribute that allows me to drag treeview
items while also highlighting the selected node. Unfortunately this isn't
the case with the ListView control. If I put the ListView in a draggable
state I can't see which node was selected.
Can anyone supply a solution to draggiing from a ListView while also
highlighting the node being dragged?
Ulrich Lalk
[email protected] -
Cropping pictures with Viewer doesn't work.
Cropping pictures with Viewer doesn't work.
Selecting < or ~ 12 pictures. (picture size are Snapshots with iphone resolution) ->Viewers opens and display them. -> Russian roullette between cmd+k or the little crop button. No indication which one will process a crop or which not. -> Both result in picture selection disappear with no crop.
Selecting > 12 pictures. (picture size are Snapshots with iphone resolution) -> Viewer opens and display them. I crop them one by one with same Russian roulllette behavior between cmd+k or the little crop button. -> Closing Viewer. -> Pictures remain like they've been before. Not cropped.I just tried what you described (although I can't really fathom why you would describe it as Russian roulette (with a variable number of L's). Unless you've been drinking a lot, which is what people are usually doing when they are playing Russian roulette. Your post was hard enough to decipher without that.
Anyway, my cropping was saved each time. I think there's something wrong with your Preview.app. Have you changed anything about the autosave functions of OSX?
I would try:
Boot into your recovery partition (restart, hold down ⌘R until you see the Apple logo), and use Disk Utility to repair your hard drive. Repair permissions too while you're there. OS X: About OS X Recovery
if that doesn't help, then I'd reinstall Mavericks over your current installation. -
Submit form doesn't work in edge Inspect
I have a contact form in my web and when i submit a form that doesn't work in edge inspect. Edge Inspect after a short time program stops working unfortunately. Form is not submitting and email also is not send. I have a form and i use AJAX to send form data with email to client.
To be clear, where are you clicking the send button, in Chrome or on your Galaxy 2? And the application on the phone locks up? For example, you can't click the button in the upper right and see the menu?
Thanks
Thanks
Thanks
Thanks
Ok
Give this a try... open the page up in Chrome and wait for it to show up on your phone. Without clicking the send button, press the button in the upper right corner of the Edge Inspect client on your phone and choose the "Open in Browser" option. That will open a new window in the native browser on your device. When your page shows up there, click the "Send" button and tell us whether it works or not and describe what happens.
Also, can you zip up the necessary code to repro this problem and send it to me at mrausch (at) adobe (dot) com ?
Thanks,
Mark -
Within music Library can anyone please explain why after I select the option to sort 'Album by Artist' a number of tracks are being treated as separate albums? How can I fix this? I have tried to manually correct by 'drag and drop' individual tracks but that doesn't work. My music library includes a number of repeat album artwork images simply because not all tracks are being listed under the one album making my library more difficult to use than it should. Any advise would be appreciated.
See Grouping tracks into albums.
tt2 -
Dragging to other applications doesn't work any longer
I used iPhoto before and back then I could easily drag pictures to Photoshop to edit them, to a LibreOffice document to embedd it or to a website within Chrome to for example attach it to an existing thread on Facebook.
With Photos, non of these works any longer. I could only drag it to the Pages app, which looks like Apple broke drap&drop in Photos. I do _not_ want to export or save pictures first somewhere in between to attach them as a normal file. I want drag&drop as before.Alley_Cat wrote:
Could the system be doing an actual modified export of some kind rather than a simple copy of the file?
Grrrr!!!!
I don't believe it - it has actually exported it modifying the original 1080p video and downconverting it to 720p.
The fact that you cannot easily view original images/movie files in their actual location via Finder makes such comparisons difficult but I know this was 1080p video.
Within photos:
File dragged to user's home folder:
Note change of file extension and resolution! -
Qosmio x870 - Drag & drop with alt-tab not possible using touchpad
Hello everyone,
I have a problem with my Qosmio x870 and Synaptics touchpad drivers on Win7 64bit.
They will not allow me to drag and drop between applications.
As soon as I press Alt-Tab while dragging a file to switch to another application, dragging instantly stops.
I'm using official & latest (15.3.41.7) Toshiba touchpad drivers from here http://goo.gl/pKHAI
I tried installing generic Synaptics drivers and they don't have such a problem.
With them, everything works fine with drag and drop,
however, their implementation of two finger scrolling is really buggy and more than half the time it doesn't work so I can't use those.
Does anyone know if this bug will be fixed and when?
Any help? Thanks!Hi,
I don't have "Advanced" tab in Mouse settings in control panel. Is there something i need to install in adition to Toshiba Synaptics drivers?
I also tried changing every available setting in Synaptics drivers settings, but no change :(
About Synaptics generic driver: Yes, I chose that one, but as I said, it's really buggy with two finger scroll, so I reverted back to Toshiba ones. -
Drag & Drop with Fdev6iR2 on Linux / Adding object to an object group
Hi all
I experienced a very annoying bug in Forms Developer 6i Release II for Linux when I tried to add a Object to an Object group.
The drag & drop simply doesn't work and there seems to be no way to work around this.
Has anybody an idea whether there's another way to add an object to an objectgroup or what could cause this error?
I'm using KDE 1.1.2-48 on XFree86 4.0.1-1 with Motif WM 1.2.4-3glibc installed, maybe this helps one of you...
Thanks very much...
Nikdrag object using center mouse button.I think
it will work.don't set caps lock on.
--viji -
Repository event handler doesn't work when inserting an xml-doc via ftp
Hi,
I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
Everything works fine if I type the following code in SQL Plus:
Declare
v_return BOOLEAN;
Begin
v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
What's the reason for this strange behavior and how can I solve it?
For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
Thank you very much for your help!!!
Repository Event Handler code extract:_
create or replace
PACKAGE BODY schemalocation AS
PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
var XMLType;
l_return BOOLEAN;
l_xmldoc dbms_xmldom.DOMDocument;
l_docelem dbms_xmldom.DOMElement;
l_attr dbms_xmldom.DOMAttr;
c1 clob;
node dbms_xmldom.DOMNode;
txid varchar2(100);
dDoc DBMS_XMLDOM.DOMDocument;
nlNodeList DBMS_XMLDOM.DOMNodeList;
BEGIN
XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
dbms_lob.createTemporary(c1,TRUE);
var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
l_xmldoc := dbms_xmldom.newDOMDocument(var);
l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
------ add schemaLocation attribute
l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
------- get the value of the TxId-tag
dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
END;Marco,
Here's an example of the problem :
create or replace package handle_events
as
procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
end;
create or replace package body handle_events
is
procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
is
XDBResourceObj dbms_xdbresource.XDBResource;
doc XMLType;
res boolean;
begin
XDBResourceObj := dbms_xevent.getResource(p_event);
doc := dbms_xdbresource.getContentXML(XDBResourceObj);
select insertchildxml(
doc
, '/root'
, '@xsi:schemaLocation'
, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
, 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
into doc
from dual;
res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
end;
end;
declare
res boolean;
begin
res := dbms_xdb.CreateFolder('/public');
res := dbms_xdb.CreateFolder('/public/tmp');
res := dbms_xdb.CreateFolder('/public/xml');
end;
declare
res boolean;
resconfig xmltype;
my_schema varchar2(30) := 'DEV';
resconfig_path varchar2(300) := '/public/ResConfig.xml';
resource_path varchar2(300) := '/public/tmp';
begin
resconfig := xmltype(
'<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
<event-listeners set-invoker="true">
<listener>
<description>My event handler</description>
<schema>'||my_schema||'</schema>
<source>HANDLE_EVENTS</source>
<language>PL/SQL</language>
<events>
<Pre-Create/>
</events>
<pre-condition>
<existsNode>
<XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
<namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
</existsNode>
</pre-condition>
</listener>
</event-listeners>
<defaultChildConfig>
<configuration>
<path>'||resconfig_path||'</path>
</configuration>
</defaultChildConfig>
</ResConfig>'
res := dbms_xdb.CreateResource(resconfig_path, resconfig);
dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
end;
/Giving the following input XML file :
<?xml version="1.0" encoding="utf-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
SQL> declare
2 res boolean;
3 begin
4 res := dbms_xdb.CreateResource('/public/tmp/test.xml',
5 xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
6 end;
7 /
PL/SQL procedure successfully completed.
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
RESULT
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
"/>With the same document loaded via FTP, we get :
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00283: document encoding is UTF-16-based but default input encoding is not
Error at line 1
no rows selectedand the content looks like :
< ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " u t f - 8 " ? >
< r o o t x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
select insertchildxml(
xmltype(doc.getclobval())
, '/root'
, '@xsi:schemaLocation'
, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
, 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
into doc
from dual;
...We then get the expected result after FTP transfer :
SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
as clob indent size = 2) result
2 from dual
3 ;
RESULT
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
"/>The workaround also works for the DOM version presented above.
Any ideas? -
Drag & Drop of a file not working in Ubuntu & other linux
Hi All,
I am working on a project,in which it has the requirement of dragging the files
from a JList present inside a JFrame to the desktop.
First I tried to get a solution using dnd API but could not. Then i googled and i got an application which is
working perfectly in both Windows and MAC Operating systems, after I made few minor changes to suit my requirements.
Below is the URL of that application:
http://stackoverflow.com/questions/1204580/swing-application-drag-drop-to-the-desktop-folder
The problem is the same application when I executed on Ubuntu, its not working at all. I tried all available options but could not trace out the exact reason.
Can anybody help me to overcome this issue?
Thanks in advanceHi,
With the information you provided and through some information found on google i coded an application. This application is able to do the drag and drop of an item from the Desktop to Java application on Linux Platform, but i am unble to do the viceversa by this application.
I am including the application and the URL of the information i got.
[URL Of Information Found|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4899516]
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.dnd.DropTarget;
import java.awt.dnd.DropTargetDragEvent;
import java.awt.dnd.DropTargetDropEvent;
import java.awt.dnd.DropTargetEvent;
import java.awt.dnd.DropTargetListener;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.SwingUtilities;
import javax.swing.TransferHandler;
import javax.swing.WindowConstants;
public class DnDFrame extends JFrame implements DropTargetListener {
private DefaultListModel listModel = new DefaultListModel();
private DropTarget dropTarget;
private JLabel jLabel1;
private JScrollPane jScrollPane1;
private JList list;
List<File> files;
/** Creates new form DnDFrame */
public DnDFrame() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
initComponents();
dropTarget = new DropTarget(list, this);
list.setModel(listModel);
list.setDragEnabled(true);
list.setTransferHandler(new FileTransferHandler());
@SuppressWarnings("unchecked")
private void initComponents() {
GridBagConstraints gridBagConstraints;
jLabel1 = new JLabel();
jScrollPane1 = new JScrollPane();
list = new JList();
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
getContentPane().setLayout(new GridBagLayout());
jLabel1.setText("Files:");
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridwidth = GridBagConstraints.REMAINDER;
gridBagConstraints.anchor = GridBagConstraints.WEST;
getContentPane().add(jLabel1, gridBagConstraints);
jScrollPane1.setViewportView(list);
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridwidth = GridBagConstraints.REMAINDER;
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
getContentPane().add(jScrollPane1, gridBagConstraints);
pack();
public void dragEnter(DropTargetDragEvent arg0) {
public void dragOver(DropTargetDragEvent arg0) {
public void dropActionChanged(DropTargetDragEvent arg0) {
public void dragExit(DropTargetEvent arg0) {
public void drop(DropTargetDropEvent evt) {
System.out.println(evt);
int action = evt.getDropAction();
evt.acceptDrop(action);
try {
Transferable data = evt.getTransferable();
DataFlavor uriListFlavor = null;
try {
uriListFlavor = new DataFlavor("text/uri-list;class=java.lang.String");
} catch (ClassNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
System.out.println("data.isDataFlavorSupported(DataFlavor.javaFileListFlavor: " +
data.isDataFlavorSupported(DataFlavor.javaFileListFlavor) );
if (data.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
files = (List<File>) data.getTransferData(DataFlavor.javaFileListFlavor);
for (File file : files) {
listModel.addElement(file);
}else if (data.isDataFlavorSupported(uriListFlavor)) {
String data1 = (String)data.getTransferData(uriListFlavor);
files = (List<File>) textURIListToFileList(data1);
for (File file : files) {
listModel.addElement(file);
System.out.println(textURIListToFileList(data1));
} catch (UnsupportedFlavorException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
evt.dropComplete(true);
private static java.util.List textURIListToFileList(String data) {
java.util.List list = new java.util.ArrayList(1);
for (java.util.StringTokenizer st = new java.util.StringTokenizer(data,"\r\n");
st.hasMoreTokens();) {
String s = st.nextToken();
if (s.startsWith("#")) {
continue;
try {
java.net.URI uri = new java.net.URI(s);
java.io.File file = new java.io.File(uri);
list.add(file);
} catch (java.net.URISyntaxException e) {
} catch (IllegalArgumentException e) {
return list;
private class FileTransferHandler extends TransferHandler {
@Override
protected Transferable createTransferable(JComponent c) {
JList list = (JList) c;
List<File> files = new ArrayList<File>();
for (Object obj: list.getSelectedValues()) {
files.add((File)obj);
return new FileTransferable(files);
@Override
public int getSourceActions(JComponent c) {
return COPY;
static {
try {
uriListFlavor = new
DataFlavor("text/uri-list;class=java.lang.String");
} catch (ClassNotFoundException e) {
e.printStackTrace();
private class FileTransferable implements Transferable {
private List<File> files;
public FileTransferable(List<File> files) {
this.files = files;
public DataFlavor[] getTransferDataFlavors() {
return new DataFlavor[]{DataFlavor.javaFileListFlavor,uriListFlavor};
public boolean isDataFlavorSupported(DataFlavor flavor) {
if(flavor.equals(DataFlavor.javaFileListFlavor) || flavor.equals(uriListFlavor))
return true;
else
return false;
public Object getTransferData(DataFlavor flavor) throws
UnsupportedFlavorException, java.io.IOException {
if (isDataFlavorSupported(flavor) && flavor.equals(DataFlavor.javaFileListFlavor)) {
return files;
}else if (isDataFlavorSupported(flavor) && flavor.equals(uriListFlavor)) {
java.io.File file = new java.io.File("file.txt");
String data = file.toURI() + "\r\n";
return data;
}else {
throw new UnsupportedFlavorException(flavor);
private static DataFlavor uriListFlavor;
static {
try {
uriListFlavor = new
DataFlavor("text/uri-list;class=java.lang.String");
} catch (ClassNotFoundException e) {
e.printStackTrace();
public static void dumpProperty(String name) {
System.out.println(name + " \t" + System.getProperty(name) );
public static void main(String[] args) {
String[] props = {
"java.version",
"java.vm.version",
"java.vendor",
"os.name",
"os.version"};
for (String prop : props) {
dumpProperty(prop);
Runnable r = new Runnable() {
public void run() {
DnDFrame f = new DnDFrame();
f.setVisible(true);
SwingUtilities.invokeLater(r);
}Please Suggest me in this. -
JAX-WS Handler doesn't work.
Hi,
I try to put my handler to handler chain (on client side) this way:
// MyService class is generated from WSDL file by Apache-CXF wsdl2java tool.
// Of course MyService extends javax.xml.ws.Service
MyService myService = mew MyService()
myService.setHandlerResolver(new HandlerResolver() {
public List<Handler> getHandlerChain(PortInfo arg0) {
System.out.println(arg0);
List c = new ArrayList();
// MyHandler class prints some text to System.out in handleXXX() methods, it implements javax.xml.ws.handler.Handler
c.add(new MyHandler());
return c;
It is a snippet of StatelessBean - it is client of external services.
When I next try to invoke some service - myService.getPort().run() - the handler is not "notified".
Why it doesn't work???
I tried another way:
((BindingProvider) myService.getPort()).getBinding().getHandlerChain().add(new MyHandler())
It doesn't work too!
And surprise:)
I wrote that code:
((BindingProvider) myService.getPort()).getBinding().getHandlerChain().add(new MyHandler())
System.out.println(
((BindingProvider) myService.getPort()).getBinding().getHandlerChain().size()
What's the result of print?
0 (zero)
Could someone tell me why?
Thx,
Peter.I am having a similiar problem with Vista x32. The preview handler is able to display the pdf, but the fields that were filled in prior to the email are not showing any values, but when you open the pdf with reader the values are there. Below is a more detail account of what is happening. I have contacted the third party dll as well, but thought someone here might have an idea too.
I have a client that is using the a thrid party PDF dll (Syncfusion) to generate and email PDFs reports. There seems to be an issue with the PDFs that are generated and using the built-in PDF Preview Handler for Vista. The scenario is ...
1. User receives an email into Outlook that contains a generated PDF (see image ''01-Opening-Email.jpg'')
2. User clicks on the attachment in Outlook and the preview handler starts up (see image ''02-Loading-Previewer.jpg'')
3. The PDF displayed in the preview handler does not have any of the fields filled out (see image ''03-Report-Loaded-In-Viewer.jpg'')
4. User then right clicks on the PDF (in outlook) and selects to open the PDF with Adobe Acrobat Version 9.0 and the report is displayed with all the fields filled out (see image ''04-Report-Opened-With-Adobe.jpg'')
All of these images are included in the attachment that I have uploaded with this incident. As well, in the RAR file is the PDF that was sent by the system using the PDF dll from Syncfusion. Please let me know if you need any more information from me. -
Linked column with # sign doesn't work in report results
I have a 2 page query situation, whereas in the 1st page I have a wildcard query to find a product number.
This product number is set-up as link to run a report which opens in another page.
(Type is a STRING.)
Everything works fine unless the product number starts with the # sign.
I can run a report using this in a non-linked page, but it doesn't work in the linked page...?
Simple queries
Page 1
select
from
Products
WHERE (((upper(TOP_ITEM) like upper(:P1_SEARCH)||'%')))
and :P1_SEARCH is not null
(Link on Top Item - :P2_Search)
Page 2
select
from
Products
where Top_Item = :P2_Search
(This works fine if I enter the #[Product] into the text field)
Link doesn't work...?You need to escape the "#" character in the product no and generate the link's HTML code in report #1 directly within the SQL query.
select ..
,'<a href="f?p=REPLACE(product_number,'#',''%23)
,'<a href="f?p=' || :APP_ID || ':200:' || :APP_SESSION || '::NO::P200_PRODUCT_NUMBER:' || REPLACE(product_number,'#','%23') || '"> Link</a>' product_number_link
FROM ..
{code}
<i> 200 is report #2's page
P200_PRODUCT_NUMBER is report #2's page item which is set on redirecting to that page.
Product_number is the column name of column with '#' characters
Change display type of product_number_link column to "standard report type"</i> -
I use a language site that needs the drag and drop gesture to match words with their meaning. When I try this on ipad's safari, it scrolls the page instead. Is there a way to turn off the scrolling so Safari responds to the drag and drop gesture?
First, you aren't speaking to Apple here. This is strictly a user-user forum set up to provide technical support. If you want to make the request to Apple then do it via the iPad Feedback Form — http://www.apple.com/feedback/ipad.html
First, though, you may stop and wonder about how Drag & Drop is already working in iOS in any number of apps, which, by the way, does include Safari. It may not work on some particular site that you're interested in, but certainly does in others. -
XML Error Handling doesn't work as expected
Hi there,
we are doing some syncronization szenarios between CRM 5.0 and a legacy system via XI.
One szenario is an asynchronous XML syncronisation. As there are database locks the messages are errornous and turn to system failure - restartable (red flag). To be seen in SXMB_MONI.
Regarding to weblog /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically I configuered the CRM middleware with IS_Retry and also scheduled a job for report RSXMB_RESTART_MESSAGES.
That worked fine until yesterday our synchronous XML szenario dumped and produced errornous messages type system failure - not restartable (red dot). Since then the IS_Restart doesn't work anymore.
I've no idea how to handle theese messages. It seems they are preventing IS_Retry from working. If there are red flagged messages I can process them manually or with report RSXMB_RESTART_MESSAGES. But they are not automatically re-processed via IS_Retry.
I also checked the queues and they look fine in smq2. There are no stucked queues.
Does anyone have any idea what is going wrong and how I can fix this issue? I could schedule the report to work more than once a day as it is at the moment (night job), but IS_Retry option would be the better szenario.
Thanks a lot in advance.
kind regards
MichaelHello Suraj,
the error log in SXI_MONITOR tells me that the sender/receiver realtion couldn't be found, due to XI had a downtime.
On Audit log from Message Monitoring on adapter engine I don't have permission, as I am working only on the CRM.
But i was able to deal with the errornous XML. The deletion job in sxmb_adm (rsmb_delete_messages) with the parameter PERSIST_DURATION_ERROR with Subparameter SYNC Value 1 has removed them from the system.
According to forum deletion of unprocessed xml messages
But I still don't know why IS_Retry doesn't work anymore.
Kind regards
Michael
Maybe you are looking for
-
Problem in using LOV's (List of values)
I have created a few messageLovInput items on my OAF page. I have created a table based on a VO in the inline Lov region corresponding to each of the Lov items. When I enter data manually in messageLovInput and then click the torch button besides it,
-
i hv 2 buttons one for upload and another for download through webutil i hv written this code but it is not inserting record into the table, thr r no records in the table, it is empty, when i try to upload .txt file it is showing me an error "missing
-
EA6500 AC1750 - choppy streaming video
I have an excellent internet connection - 100Mbps dn and I put a new EA6500 router on it and got all my devices connecting and speedtests showing 40 - 60Mbps on 2.4 band, higher on 5ghz, couple different computers and operating systems throughout my
-
PSE 8.0 issue with Mac 10.10.2 - Please help
PSE 8.0 was provided when I purchased a Canon CanoScan9000F. Software was uploaded to mac OS10.6.8 via disc provided. I have now purchased a new mac running OS10.10.2 when I try to openthe software I get error message 150.30. I cannot reinstal via di
-
Hi, I've just installed V40.0.03 and now i cannot see my contacts bar. Can anyone help.