0

Mask field

asked 2011-04-28 14:55:41 +0800

tehackio gravatar image tehackio
21 2

What is the more simple way to mask the label phone?

<row forEach="${list.all}" context="each">
<label value="${each.name}" />
<label value="${each.phone}" />
</row>

This is not possible. Any suggestions?
<label MASK="999-9999-9999" value="${each.phone}" />

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2011-04-28 15:08:20 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2011-04-28 15:08:57 +0800

Have a look on the form effects.

best
Stephan

link publish delete flag offensive edit

answered 2011-04-28 15:31:02 +0800

tehackio gravatar image tehackio
21 2

I've already seen this. Can I do it with component label?

link publish delete flag offensive edit

answered 2011-04-29 02:33:10 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

you can use a converter


<label value="@{person.birthdate, converter='de.forst....converter.DateConverter'}"
best
Stephan

link publish delete flag offensive edit

answered 2011-04-29 07:52:48 +0800

tehackio gravatar image tehackio
21 2

updated 2011-04-29 11:08:17 +0800

Great!!! But It resolved an other problem. Can I do it with component label in forEach? <label value="${each.phone, converter='xxxxx'}" />

link publish delete flag offensive edit

answered 2011-07-09 14:12:13 +0800

pmq gravatar image pmq
27

Hi.
I have the same question. Why it is not possible to use converter with ${each.x}. Is there any other way how to format listed data? I'm using Spring webflow and data are usually transferred with viewScope.
Like this:
<evaluate expression="daoService.getMyList(pageData)" result="viewScope.service_myList" />

link publish delete flag offensive edit

answered 2011-07-13 22:15:48 +0800

matthewgo gravatar image matthewgo
375

Hi
Converter is default used in databinder ,
more detail refer here

link publish delete flag offensive edit

answered 2011-07-13 22:53:10 +0800

matthewgo gravatar image matthewgo
375

updated 2011-07-13 23:08:21 +0800

@pmq
I found the feature about messageformat, you can refer to the doc here: http://books.zkoss.org/wiki/ZUML_Reference/EL_Expressions/Core_Methods/l2

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-04-28 14:55:41 +0800

Seen: 1,267 times

Last updated: Jul 13 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More