[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: abender  XML
Profile for abender -> Messages posted by abender [34] Go to Page: Previous  1, 2, 3 Next 
Author Message
Hi Björn,

a doubleclick on a grid row triggers the onRowSelect event. But sometimes (less than 10% in my case) the browser marks the word you clicked and onRowSelect is not triggered.
Is there a way to prevent this?

Regards
Axel
Thanks for the quick answer.

regards
Axel
Hi Björn,

just got the same question from my customer about missing popup menu to copy text content into the clipboard.

Configuration with CLIENTCONFIG works fine to copy text of the component.

But the automatic cut/copy/paste popup menu on text fields does not show as in Swing Client. Instead the popup menu shows all buttons with hotkeys on the current page.


Regards
Axel
Hi Björn,

sounds good. Thanks.

Regards
Axel
We are still in the process moving from Swing to RISC client.

We have a combobox with items that are not alphabeticaly sorted.

In Swing if you type a letter the first item that begins with this letter will be highlighted. If you type the same letter again the next item that begins with this letter will be highlighted.

In RISC only the first key press highlights the item. If you press the same key again nothing happens. The first item stays highlighted.

Is this difference in behavior intentionally so or can it be corrected?
Hi Björn,

there are still problems.

Drag&Drop hangs less often than before. But it still does. Moving slowly sometimes helps a little bit.
Probably the method checkMatch() still takes to long as it calls parent.checkMatch() until no parent is found. In Java Console I often see 20 calls or more of this function before match/no match is detected (see DnD.log).

Emails are now recognized as dropable by components which should only accept files.
I think this can only be solved if a component that implements a drop target for a specific DataFlavor can somehow register this DataFlavor. PageElement.checkMatch() should only check DataFlavor[0] for the default DataFlavor ("-file-") and all registered DataFlavors.
But this might be a feature request.


Regards
Axel

PS: Did I mention that I hate implementing Drag&Drop


Edit: Couldn't attach file to this post.
Hi Björn,

there may be a timing issue. The mouse pointer "hangs" when dragging an email from Microsoft Outlook into the CapatinCasa Window. But if the Java Console is open before dragging begins it works just fine. This problem is not always reproducible on Windows 8. It didn't happen on Windows 7.

You recently added a boolean 'quickCheckOnly' parameter to the method PageElement.checkMatch() and the method comment states that 'there is a stability problem if the statement "Object dfo = t.getTransferData(df);" was called too often when dragging files'. A call to the statement is only avoided if 'df.toString().contains("-file-")' with 'DataFlavor df = t.getTransferDataFlavors()[0]'.

With an email from Outlook 't.getTransferDataFlavors()[0]' does not contain "-file-". It contains the following String "java.awt.datatransfer.DataFlavor[mimetype=application/x-java-serialized-object;representationclass=java.lang.String]". But t.getTransferDataFlavors()[1] contains "java.awt.datatransfer.DataFlavor[mimetype=application/x-java-file-list;representationclass=java.util.List]".

A complete list of all DataFlavors of an Outlook email is attached.


If this is the reason for our problem, the statement "Object dfo = t.getTransferData(df);" may cause problems whenever an object that does not contain "-file-" in 't.getTransferDataFlavors()[0]' is dragged over a CaptaiCasa Window. Even if there is no DragReceiver for this type of object.

Regards
Axel
ok, thanks
Hi,

thx for the fast fix. But we use CC in an applet so we will wait for the next update.

Regards, Axel
We want to show the reload button and the roundtrip times but not the clientconfig dialog. With footerline=false all three elements are not shown. We can show the reload button via SYSTEMICON component. But what about the roundtrip times?
Is there a way to show the roundtrip times without enabling clientconfig?
thanks for your help.

Regards,
Axel
Hi Björn,

the problem is caused by the new version of jstl.jar. The previous version contains no TLDs at all. The new version contains 15 TLDs and 8 of those TLDs cause a connection to the internet.

WEB-INF\lib\jstl.jar!/META-INF/c-1_0-rt.tld
WEB-INF\lib\jstl.jar!/META-INF/c-1_0.tld
WEB-INF\lib\jstl.jar!/META-INF/fmt-1_0-rt.tld
WEB-INF\lib\jstl.jar!/META-INF/fmt-1_0.tld
WEB-INF\lib\jstl.jar!/META-INF/sql-1_0-rt.tld
WEB-INF\lib\jstl.jar!/META-INF/sql-1_0.tld
WEB-INF\lib\jstl.jar!/META-INF/x-1_0-rt.tld
WEB-INF\lib\jstl.jar!/META-INF/x-1_0.tld


Those 8 TLDs contain the the following DOCTYPE header which seems to be the reason.

<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
Hi,

we just updated to the current release 20130711. While deploying our application on WebLogic Server we get the following Warning.

Code:
####<11.07.2013 13.36 Uhr CEST> <Warning> <HTTP> <WSWLC051> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1373542567697> <BEA-101196> <[elektrang]: Error while parsing the Tag Library Descriptor at "C:\bea103\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\ElektrA_NG_EAR\k3vw8a\war\WEB-INF\lib\jstl.jar!/META-INF/c-1_0-rt.tld".
 com.ctc.wstx.exc.WstxIOException: Tried all: '1' addresses, but could not connect over HTTP to server: 'java.sun.com', port: '80'
 


This happens with a couple of TLDs and slows the deployment process to more than 10 minutes.

On our local development systems we can prevent this by defining a http-proxy for the WebLogic server. But production systems are not allowed to connect to the internet.

Is there any way to prevent TLD validation? Why didn't this happen in older releases?

regards
Axel
Hi Björn,

I think it's solved.

The three calls to ThreadingFilter correspond to 3 different http calls.
- The first request is a http GET of the index.jsp which contains the applet tag.
- The next request is a http HEAD of the jsp containing the outermost CC window. This causes the additional initialization of the page.
- The last request is a http POST of the same jsp.

Our solution is to configure security in web.xml so that only GET and POST requests require authentication. Previously there was no constraint for http methods.


...
<security-constraint>
<web-resource-collection>
<web-resource-name>Collection1</web-resource-name>
<url-pattern>/elektra</url-pattern>
<url-pattern>*.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>

</web-resource-collection>
...
 


This solution seems to work without any side effects.

Regards, Axel

PS:
I'm not sure if CC could ensure that HEAD requests don't return any content.

Hi Björn,

there are no additional filters in the web.xml. We only added basic authentication. It's not only on WebLogic but the same happens on a JBoss server with authentication.

I debugged the application and this is what happens:
- Open browser and type URL
- Authentication window appears, type in credentials
- ThreadingFilter is called
Session: 9KJFR1SWjC!204645371!1366626934402/null
nothing happens, sessions seems to be destroyed
- Splash screen is displayed
- ThreadingFilter is called
Session: ydgVR1SXnf!204645371!1366626967525/null
page is initialized
- ThreadingFilter is called
Session: pysZR1ScXw!204645371!1366627036592/0
page is initialized

The session output is from log_eclntjsfserver.txt.
The only difference I see between the last two calls to ThreadingFilter is the last part of the session. It changes from null to 0. This part is from ((HttpServletRequest)request).getParameter("cc_subpageId").

The last session is used in all subsequent calls. The other session is destroyed after the configured timeout.

Regards, Axel
 
Profile for abender -> Messages posted by abender [34] Go to Page: Previous  1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team