[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 
Auto Completion with ComboField  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi,

I realized a combofield with auto-completion like described in the demo workplace!
I have following problem, I want that the user enters a String, the result list opens, then the user should have the possibilty to enter a second string.
In the example in the demo workplace the attribute selectallwhenfocussed is set to true, so when the user enters a second string, the existing string gets clear, because its all marked.
When changing to selectallwhenfocussed to false, the cursor is placed not at the end of the entered string.
To I have a possibility to do that?

regards
Markus
[Thumb - woodcat_search.png]
 Filename woodcat_search.png [Disk] Download
 Description
 Filesize 4 Kbytes
 Downloaded:  384 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

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

Hi,
yes - you are right, and this is not 100% nice.
We updated + now the cursor is kept (regardless if SELECTALLWHENFOCUSSED is set to true or to false).
Thanks + regards!
Björn

PS: "Gemeine Birke" ...seems to be an interesting application!

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

thanks for your quick response!

...yes there are a lot of nice names trees could have
[WWW]
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi,

I have enhanced a combofield with autocompletion a now there is a strange behaviour:

1. Set focus in the field
2. Type a few letters
--> Popup pops up and cursor is not kept, it turns to the beginning
3. Erase letters
4. Type some letters again
--> Popup pops up and now cursor is kept

So only the first time (after setting the focus) the cursor is not kept (undesired), in continuation with further trials the cursor is always kept (good).

I cannot reproduce this behaviour in the demo workplace (option "field value help"). I am using now the very last version of CaptainCasa released today.

Can you give me a hint to trace this problem? I can send separately the relevant source if it helps.

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

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

Hi,

could you please send the exact usage of the COMBOFIELD? ...just the part of the page with "<t:combofield ... .../>"...

Thanks!
Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn

Here is it.

Code:
<t:combofield id="g_50" actionListener="#{d.CaseUI.onMeasureInput}" flush="true" flushtimer="1000" keepfocus="true" maxlength="100" selectallwhenfocussed="true" text="#{d.CaseUI.claim.measures}" userhint="Maximal 100 Zeichen" width="50%" />


Regards, Daniel
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team