[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: Previous  1, 2, 3, 4, 5 Next 
Author Message
Hello,

I am using a Java Applet to read information from a card reader. So far the use cases I needed was:
I want to change the PIN on the card. The user is clicking a button and then I set the jscode of the htjscall object. This is working fine.

In this cases the communication starts always from the enterpise client framework.

Now I need to recognize if the user is removing the card from the card reader. For that the Java Applet is polling the card reader and if the card is removed the Java Applet would like to call a Java Script method or something else.

Is this possible?


Thanks,
Ralph

thanks a lot
Hello,

the button of my text is "Unlock Card" and so I have a line break in it. But only Firefox has this problem in IE there is no linebreak.

"white-space:nowrap" is added for labels to the default css style. It is possible to add it also for buttons?


Thanks,
Ralph
Hello,

I want to use a htlabel within the Enterprise Client editor with text="New&nbps;PIN" but the Editor crashed after saving. (the forum interpreted nbsp as space, thats why I was using nbps)

First I was confused that there is a line break when I have a label like 'New PIN'. Could it be a advantage to set as default 'white-space: nowrap;'?

java.lang.RuntimeException: org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.
at org.eclnt.client.elements.PageParserUpdate.applyXML(PageParserUpdate.java:182)
at org.eclnt.client.page.Page.processUpdateResponse(Page.java:732)
at org.eclnt.client.page.Page.access$2(Page.java:716)
at org.eclnt.client.page.Page$MyUpdateDataTransferListener.dataTransferEnded(Page.java:134)
at org.eclnt.client.comm.http.DataTransfer.transferXMLFinished(DataTransfer.java:495)
at org.eclnt.client.comm.http.DataTransfer.communicateToServerSynchronous(DataTransfer.java:13
at org.eclnt.client.page.Page.transferDataRun(Page.java:624)
at org.eclnt.client.page.Page$DataTransferRunner.run(Page.java:96)
at org.eclnt.client.page.Page.callServerRun(Page.java:606)
at org.eclnt.client.page.Page$CallServerRunner.run(Page.java:61)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at org.eclnt.client.page.BlockingEventQueue.dispatchEvent(BlockingEventQueue.java:82)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: The entity "nbsp" was referenced, but not declared.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclnt.client.elements.PageParserUpdate.applyXML(PageParserUpdate.java:175)
... 18 more
Hello Björn,

in the development tools I am using a t:htrow component and my componentbinding is '#{wp.SecurityQuestionBean.row}' (drag and drop from the bean browser)

I have break points in both methods but my program does not come to this points. Other breakpoints in the same bean working fine.

The code behind is

public HTROWComponent getRow() {
return m_row;
}

public void setRow(final HTROWComponent row) {
m_row.getChildren().clear();

HTLABELComponentTag label = new HTLABELComponentTag();
AssignID.assign(label);
label.setText(getQuestion());
label.setWidth("100");
m_row.getChildren().add(label.createBaseComponent());
}


The only error message I got is
22.08.2008 15:25:37 org.apache.jasper.compiler.TagLibraryInfoImpl createAttribute
WARNUNG: Unknown element (isinput) in attribute


Any idea?

Thanks,
ralph
Hello Björn,

we have several popups in our program and we use the save buttons to close the popups.

The save buttons has the hotkey ctrl+s. But we have also textfields in our popup and so it would be nice if we could save/close the popup also with the enter hotkey.

Is it possible to use two hotkeys for the same menuitem?


Thanks,
Ralph
Hello Björn,

I am trying to create a html page with the development tool. For that I use the radio button html and then I click the button create. But a jsp is created.

Do I have to do something else or is this the way to create html pages?


Thanks,
Ralph
Hello,

we are using three different ActiveX controls in our application and we have to know if this ActiveX contorls are installed on the system or not.

The first solution was to integrate 'mini ActiveXe' on the startpage to see if we get a response from the ActiveX. But this solution is slow and we could get in trouble if we have the same ActiveX initialized twice.

Another solution from our side could be to develop a fourth ActiveX which tests if the other three ActiveX exists.

But maybe it is a better solution if the Enterprise Client can test if a ActiveX exists without initializing the ActiveX.


Thanks,
Ralph
Hello Björn,

I checked the example of the new icon in the demo workplace and tried to adapt it to add it programmaticly.

This code works fine
BUTTONComponentTag bt = new BUTTONComponentTag();

bt.setActionListener("#{d.workplace.onExecuteButton}");
AssignID.assign(bt);
bt.setText(m_bean.replaceLiteral(command.getTextId()));
bt.setTooltip(m_bean.replaceLiteral(command.getTextId()));
bt.setImage("../" + command.getImage());
BaseComponent btn = bt.createBaseComponent();
res.put(btn, command);
r.getChildren().add(btn);

This code doesent work. (I cant see text and the actionListener isnt working too.)
ICONSEPTEXTComponentTag bt = new ICONSEPTEXTComponentTag();

bt.setActionListener("#{d.workplace.onExecuteButton}");
AssignID.assign(bt);
bt.setText(m_bean.replaceLiteral(command.getTextId()));
bt.setTooltip(m_bean.replaceLiteral(command.getTextId()));
bt.setImage("../" + command.getImage());
BaseComponent btn = bt.createBaseComponent();
res.put(btn, command);
r.getChildren().add(btn);


Any idea?


Thanks,
Ralph
Hello,
is it a bug or a feature that FIXGRIDListBinding.getItems().clear() does not deselect the current selection?

I have to use explicit the command FIXGRIDListBinding.deselectCurrentSelection() to deselect the item.


Thanks,
Ralph
Hello Björn,

this solution works fine if I add the line break automaticly.

Our problem is that we have several languages like english, russian or arabia so the translater would be overstrained to transalte a literal like ...
<html><div align=center>Berichte und Export</div></html>

We have also the problem that we cant wrap automaticly because we dont know where to add a line break. If we had only to transalte english and german we could say we wrap after 12 signs but 12 russian signs can be much longer.

Any idea how to handle this problem?


Thanks,

Ralph
Hello,

there is a popup with two buttons.
Save and Cancel.
Both buttons are closing the popup.
ModalPopup.close()

If I click the buttons shortly after each other I got the following error message.

java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.set(ArrayList.java:339)
at org.eclnt.jsfserver.defaultscreens.ModalPopup.close(ModalPopup.java:67)
at de.vps.icms.ui.cardtypeadmin.CardTypeAdminDesigner.onCancel(CardTypeAdminDesigner.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at org.eclnt.jsfserver.elements.MethodBindingDelegator.invoke(MethodBindingDelegator.java:55)
at org.eclnt.jsfserver.elements.BaseActionComponent.broadcast(BaseActionComponent.java:164)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
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:110)
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:12
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)

CardTypeAdminDesigner.java
104 public void onCancel(final ActionEvent event) {
105 m_command = "CloseLayout(" + layoutId + ")";
106 ModalPopup.close();
107 }

The problem seams to be that both actionListeners are called and each actionListener is trying to close the popup but i am not sure about it.

What is the solution for this problem. A workaround could be to disable e.g. the cancel button when the user clicks the save button. Another possibility is that the popup closes fast enough so the user has no chance to click the other button.

Thanks,
Ralph
-

Cheers

Ralph
Hello,

it would be nice if the actionListener of a hexImage would react on a doubleClick.

Then I want to use the button popup area as a menu. For that the area should close automaticly if I choose a link within the area. For that maybe I need the programmatic control on opening and closing the area.


Cheers,

Ralph
I found the error, it was my fault.

The Method look like that
SetFieldList(BIRTHDATE:Geburtsdatum,CARD_NUMBER:Ausweisnummer);

but "BIRTHDATE:Geburtsdatum,CARD_NUMBER:Ausweisnummer" has to be one parameter.

Use this method to create a parameter
String parameter = ValueManager.encodeMethod("SetFieldList", new String[] {"BIRTHDATE:Geburtsdatum,CARD_NUMBER:Ausweisnummer"});
 
Profile for kretzler -> Messages posted by kretzler [73] Go to Page: Previous  1, 2, 3, 4, 5 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team