[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: kretzler  XML
Profile for kretzler -> Messages posted by kretzler [73] Go to Page: 1, 2, 3, 4, 5 Next 
Author Message
When starting tomcat within the console I see this line ... 2009:03:04 10:39:57:009 | 10 | SEVERE | CaptainCasa Enterprise Client Version: 2_5_20090302_1

Is there something else I can check?

Ralph
Hello,

thanks for your fast response and help.

I installed the update and tested the application but there is a strange problem now.

I am getting a NumberFormatException if a try to save a page with some fields. It doesnt matter if there are special signs on this page or not.
Code:
 2009:03:03 10:42:40:538 | 12     | SEVERE   | 
 .......... Stacktrace Info ..........
 java.lang.NumberFormatException: For input string: "'LASTNAME'"
 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
 	at java.lang.Integer.parseInt(Integer.java:447)
 	at java.lang.Integer.valueOf(Integer.java:553)
 	at org.eclnt.jsfserver.util.StackedValueBinding.setValue(StackedValueBinding.java:208)
 	at org.eclnt.jsfserver.util.StackedValueBinding.setValue(StackedValueBinding.java:173)
 	at org.eclnt.jsfserver.elements.BaseComponent$ValueBindingExec.execute(BaseComponent.java:58)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:611)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
 	at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:81)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.eclnt.jsfserver.util.ThreadingFilter.doFilter(ThreadingFilter.java:173)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.eclnt.jsfserver.util.CompressionFilter.doFilter(CompressionFilter.java:33)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 	at java.lang.Thread.run(Thread.java:595)
 


Then I set a breakpoint at Integer.class Method valueOf(String s). The value of the argument is 'fields['LASTNAME']' and the argument itself 'LASTNAME' as above.

I am using a hashmap to fill the fields. The code worked fine before the update.
Code:
             bct = new HTFIELDComponentTag();
             bct.setText("#{wp." + m_contentReplacePrefix + ".genedit.fields['" + field.getDBFieldName() + "'].fieldValue}");
             bct.setMaxlength(field.getFieldLength());
             bct.setStyle("#{wp." + m_contentReplacePrefix + ".genedit.styles['" + field.getDBFieldName() + "']}");
             bct.setStyleClass(STYLE_ALL_FIELD);
 



Any ideas or do you need more information?


Thanks a lot,
Ralph
Hello,

I have problem with characters like ä, ö, ü, ... This characters are transformed into ä, ö, ü.

The same effect I saw in the enterprise client demo workplace. In the 'Field' area type for 'First Name' ä, ö, ü and click the button 'Check'.


Any ideas?

Thanks,
Ralph
Hello,

this is a kind of tricky. You have to click on 'Rich - straight.jsp ...' it is above the radio buttons then choose 'THIN straight'.


Ralph
ohh, thats right.

Works fine. thanks a lot.
Hello,

I am using the built in Resource Management to manage the mulit language resources and I would like to translate something like
'You need X correct answers.'

Is it possible to set X later?


Thanks,
Ralph
hmm, my JavaScript function is never called when darken is called first

function ccGetLogonString(pin) {
window.alert("aa");
var result = new Object();
document.SCardApplet.addParameter(pin);
var logonString = document.SCardApplet.callMethod('getLogonString');
result.callback = true;
result.returnvalue = logonString;
window.alert("bb");
return result;
}
sorry for that inaccurate description.

What I want to do is.
-block the screen, call ccDarken(true)
-read information from card, call readCard() (is a JavaScript call too)
-unblock screen in the callback method from the second JavaScript function readCard()

The problem is that the callback method from readCard() is never called when the darken function is called first. It has nothing to do if the screen is darken or not.


JSP:
Code:
 <t:htjscall id="g_17" actionListener="#{wp.VerifyUserBean.onJsCallBack}" jscode="#{wp.VerifyUserBean.jscode}" resulttext="#{wp.VerifyUserBean.jsResult}" />
 <t:htjscall id="g_18" jscode="#{wp.VerifyUserBean.jscodeDarken}" />
 


Bean:
Code:
     // user clicks on Button
     public void onVerifyUser(final ActionEvent event) {
         darken(true);  // javascript to darken the screen
         readCard();  // another javascript function
     }
 
 
     protected void darken(final boolean isDark) {
         m_jscodeDarken = "ccDarken(" + isDark + ")"; 
         PhaseManager.runAfterRenderResponsePhase(new Runnable() {
             public void run() {
                 m_jscodeDarken = null;
             }
         });
     }
     private String m_jscodeDarken;
     public String getJscodeDarken() { return m_jscodeDarken; }
 
 
 
     private void readCard() {
         m_jscode = "parent.ccGetLogonString('" + m_pin + "')";
         PhaseManager.runAfterRenderResponsePhase(new Runnable() {
             public void run() {
                 m_jscode = null;
             }
         });
     }
     private String m_jscode;
     public String getJscode() { return m_jscode; }
     private String m_jsResult;
     public String getJsResult() { return m_jsResult; }
     public void setJsResult(final String value) { m_jsResult = value; }
     public void onJsCallBack(final ActionEvent event) {
         // if javascript function darken is called first I never come into this callback method
     }
 
Hello,

I used the following code to darken the page and to dark the page works fine.

JSP:
<t:htjscall id="g_18" jscode="#{wp.VerifyUserBean.jscodeDarken}" />


Bean:
protected void darken(final boolean isDark) {
m_jscodeDarken = "ccDarken(" + isDark + ")";
PhaseManager.runAfterRenderResponsePhase(new Runnable() {
public void run() {
m_jscodeDarken = null;
}
});
}

private String m_jscodeDarken;
public String getJscodeDarken() { return m_jscodeDarken; }


The problem is that my screen and my program seems to be frozen. I do not get any answer from my jscall after darkening the screen manually.


Any ideas?

Thanks,
Ralph
Hello Björn,

I used this method but there is still a problem.

The user clicks on a grid item that e.g. selects something different. A popup comes up and asks if to save changes of the currenlty processed items.

The user presses "cancel" which means, he/she wants to stay with the current item.

The onCancel() Method call
gridList.deselectCurrentSelection();
gridList.selectItem(previousItem, false);

Now the user switches to another window, e.g. Firefox and switches back. Then the popup comes up again and asks if to save changes. This happens also in other cases, e.g. if I delete this item. But this happens not if I click first in e.g. a textfield.


Any ideas?
Hello Björn,

thanks a lot for your help. This method should solve our problem.


Ralph
Hello,

your proposal was our first solution but then we reload our detail pane.

e.g. the user changes a name in the detail pane. Then the user clicks another row in the FIXGRIDList, then we call
gridList.selectItem(previousItem);

Now the old item is called but the actual changes are lost.
Hello,

we use the mechanism to automatically detect value changes. If changes were detected a YESNOPopup is shown.

If the user clicks yes the changes are saved and the same item is displayed. If the user clicks cancel then nothing should happen. But that nothing should happen works not properly.

We use a FIXGRIDList. The user clicks on another row. The popup is shown and then the user clicks on cancel.

public class DelayedSelectionFIXGRIDListBinding<T extends AbstractDelayedSelectionFIXGRIDItem> extends FIXGRIDListBinding<T> {
  @Override
  public void selectItem(final IFIXGRIDItem item) {
    YESNOPopup popup = YESNOPopup.createInstance(
      new IYesNoCancelListener() {
        public void reactOnCancel() {
            ...
        }
  ...
}

What to do in the reactOnCancel() Method? At the moment we use m_lastSelected.setSelected(true);

The problem is that the last action is the mouseclick from the user on a row. If I switch to another window e.g. Firefox and then I switch back this mouslick is executed.

Any ideas?


Thanks,
Ralph
hmm, you are right.

The screen is blocked when other buttons are clicked. The FILEDOWNLOAD components have an asynchronously flag too.

In our application we use a fileuploadbutton but therefor I cannot find an asynchronously flag and it is possible to click the button twice.

The Captain Casa Demo Workplace also have an upload file button but I am not able to click this button twice.


Any ideas?

Thanks,
Ralph
Hello,

in our application we can click the upload button two, three times. So the 'File download' popup is also two, three times on the desktop.

The thin client blocks the screen if a link or a button is clicked. The outlook bar in the Rich Client blocks the screen also if an icon is clicked.

Is there a possibility to block the sreen in the rich client also if the upload button or other buttons are clicked?


Thanks,
Ralph
 
Profile for kretzler -> Messages posted by kretzler [73] Go to Page: 1, 2, 3, 4, 5 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team