EchoPoint - KeystrokeTextField functionality in RegexTextField - SYNC_ON_CHANGE

Hi, I'm working in a project that makes extensive use of RegexTextField. Also, I'm using the SYNC_ON_CHANGE capability (http://echo.nextapp.com/site/node/6012) on text fields. I'm trying to do the same with RegexTextField with no luck, I think it's not implemented because of the existance of KeystrokeTextField that implies there's no sync_on_change on echopoint text components. This is the line I'm using:

regexTextField.set(TextComponentPeer.PROPERTY_SYNC_MODE, TextComponentPeer.SYNC_ON_CHANGE);

What I need is one of this:
- SYNC_ON_CHANGE support for RegexTextField (best option for me)
- Add KeystrokeTextField-like functionality to RegexTextField
- Add Regex functiontionality to KeystrokeTextField

Any idea? I need this ASAP, so I don't mind dirty hacks :p

Thanks in advance.
Aníbal

Anyone from echopoint here?

Anyone from echopoint here? Is my question inappropriate or my english unclear?
regards

rakesh's picture

Yes, but have been too busy

Yes, but have been too busy with other work to look into it.

Thank you! sorry for the

Thank you! sorry for the inconvenience. By the way, I have modified the AutoLookupTextField that spider is working on. It stores a key value and a search value, so it acts more like an AutoLookupSelectField. The code is a little messy right now but we can talk about it if you are interested.
Cheers
Anibal

rakesh's picture

Can you create as

Can you create as AutoLookupSelectField and then commit to the project?

Working on it. I'm trying to

Working on it. I'm trying to contact "spider", because he hasn't commited his code to the repo. Still no answer.

rakesh's picture

I may have the code he sent

I may have the code he sent me. I had asked him to commit code, but never got a response back. I will commit it if I find it.

I have requested read/write

I have requested read/write access to the repository at https://echopoint.dev.java.net/ , user: anibalrivero
Cheers

Done.

Done. This is my first contribution to an OS project, let me know if something is not right
C U
Anibal

rakesh's picture

Great! Can you also add a

Great! Can you also add a unit test for the component so other users will have a fairly good idea about how to set up and use the component?

Rakesh

Sure

No problem, I'll do it at weekend, I'm having a busy week
Cheers

Aníbal

I've added a simple test for

I've added a simple test for AutolookupSelectField, using KeystrokTextFieldTest as a template.

I've seen

it now. Thanks for making this project. It's a good help..continue this..

-------------------------------------------------------------------------------------------------------
custom papers|essay

rakesh's picture

Finally took a brief look

Finally took a brief look into this. It may be easier to add regex features to keystroke tf than the existing regex tf. I will explore further and keep you updated.

Any news on this? I can take

Any news on this? I can take a look at this if you point me in the right direction. What have you seen?
Thanks

Solved (I think)

Hi, I was able to modify the RegexTextField so it behaves as I want to (SYNC_ON_CHANGE or SYNC_ON_ACTION). I will do further tests and if everything is OK, I'll submit the code to echopoint svn

rakesh's picture

Great. I was going to just

Great. I was going to just make KeystrokeTextField extend RegexTextField (with a default // regex), but if you have updated the main component, it is best.