[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Autocomplete field not working on embedded mode  XML
Forum Index -> Development
Author Message
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Hi, i'm using autocomplete component in several forms, and it works so much fine using on normal mode.

I need to get an embedded mode of the application, and got it working fine (i followed CC documentation on this issue). The only problem is that all fields of type autocomplete, doesn't work at all (it seems that getProposals(...) method of my class extended from DefaultAutoComplete2Provider is not even called...).

Can someone help me understanding what may be happening?

Also, on embedded mode, where can i find logs file? Maybe i can find some answer there (some error being thrown, etc...).

Thanks in advance!

Regards,

--
Carlos Vieira
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,
we'll check...
Thanks + regards,
Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

we sent you an updated eclnt.jar - could you please use this in the embedded mode and check again?

Thanks! Björn

Björn Müller, CaptainCasa GmbH
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Hi Bjorn, Thanks for fast response!

Unfortunately, it still does not work with the new eclnt.jar. Can you check?

Also, can you check this other issue on embedded mode... when using:

Code:
 FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
 


I get these errors:

Code:
 Error occurred within the client processing.
 
 Please view the stack trace below and the client log for more information.
 
 
 java.lang.RuntimeException: org.xml.sax.SAXParseException: End of entity not allowed; an end tag is missing.
 	at org.eclnt.client.elements.PageParserUpdate.applyXML(PageParserUpdate.java:183)
 	at org.eclnt.client.page.Page.processUpdateResponse(Page.java:1194)
 	at org.eclnt.client.page.Page.access$2(Page.java:1169)
 	at org.eclnt.client.page.Page$MyUpdateDataTransferListener.dataTransferEnded(Page.java:158)
 	at org.eclnt.client.comm.http.DataTransfer.transferXMLFinished(DataTransfer.java:1006)
 	at org.eclnt.client.comm.http.DataTransfer.communicateToServerSynchronous(DataTransfer.java:226)
 	at org.eclnt.client.page.Page.transferDataRun(Page.java:1040)
 	at org.eclnt.client.page.Page$DataTransferRunner.run(Page.java:118)
 	at org.eclnt.client.page.Page.callServerRun(Page.java:1010)
 	at org.eclnt.client.page.Page$CallServerRunner.run(Page.java:78)
 	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 	at java.awt.EventQueue.access$000(Unknown Source)
 	at java.awt.EventQueue$1.run(Unknown Source)
 	at java.awt.EventQueue$1.run(Unknown Source)
 	at java.security.AccessController.doPrivileged(Native Method)
 	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 	at java.awt.EventQueue.dispatchEvent(Unknown Source)
 	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: End of entity not allowed; an end tag is missing.
 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
 	at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
 	at org.apache.crimson.parser.Parser2.content(Parser2.java:1837)
 	at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
 	at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
 	at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
 	at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
 	at javax.xml.parsers.SAXParser.parse(Unknown Source)
 	at org.eclnt.client.elements.PageParserUpdate.applyXML(PageParserUpdate.java:176)
 	... 23 more
 


Thank You!

Regards,

--
Carlos Vieira
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi

...we can reproduce...

We did send a second file to you via mail (it's too big to be uploaded within the forum...)

Thanks + Regards!
Björn

Björn Müller, CaptainCasa GmbH
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Hi Bjorn, autocomplete field is working great now Thanks! May i assume that it will be part of the next release?

Regarding the other issue i mentioned, should i do the invalidateSession in some other way that works on both normal and embedded mode, or it may be a bug also?

Regards,

--
Carlos Vieira
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

yes, this will be part of next update.

...oh yes, the second issue ;-)
In principal it should work as well, please give me some (not too much...) time to resolve.

Regards, Björn


Björn Müller, CaptainCasa GmbH
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Hi Bjorn, i'm not trying to rush you on this fix but can you lead me to some workaround, if possible, of course, until is fixed?

It is the 2nd issue mentioned on this thread... the 1st issue i already saw that it was included on latest release (20120116).

Thanks again!

Regards,

--
Carlos Vieira
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

oh, thanks for your patient reminder!
We checked and found a way to also do this in embedded environment. Will be part of next update...

Regards, Björn

Björn Müller, CaptainCasa GmbH
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Thanks Bjorn!

Regards,

--
Carlos Vieira
cvieira

Power User

Joined: 08/07/2010 21:46:40
Messages: 59
Offline

Hi Bjorn, the following code:

Code:
 FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
 


... is working perfectly now on CC embedded mode, since last update.

Thanks!

--
Carlos Vieira
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team