Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Regular Expression / Mask

781721Dec 16 2010 — edited Dec 17 2010
Hi there

As input I have

A data string:
"1AZJ56U7"
And a mask string: (It does not really matter how this looks -> This is just an example of what I'd like to have as a mask string)
"-..-.-.."
The output should be a masked string:
"-AZ-5-U7"
What would be the best way to do this?

Thanks in advance,
Peter
This post has been answered by fsitja on Dec 16 2010
Jump to Answer

Comments

843844
Hi Timmya ,
I think your problem is that the jsf value change event is handled before update-model phase so the previous selected values are re-setted after the ccMe method. If so take a look to this old topic: valueChangeListener

Do you really need a server call to copy a value from an input text to another?
843844
It was cut and paste. I actually use value="#{emailBean.ccMe}" instead of value Change listener.
I saw the value has changed in the emailBean but the server call is called first (a4j: support) before it sets the value of emailBean.ccMe.
How can I avoid that? I want to set the value of ccMe first before the a4j call to check if the checkbox is selected.
I don't need a server call to copy value.
Thanks!
843844
You can write a simlpy client side javascript function to copy the value of an input text to the other one, than call the function attaching a javascript event (onchange, onclick) to the checkbox. You don't need a4j:support or valueChangeEvent to accomplish the task.
843844
Thank you!
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 14 2011
Added on Dec 16 2010
14 comments
9,091 views