0

ZK Listbox setNonselectableTags

asked 2015-04-13 14:22:56 +0800

javiut gravatar image javiut flag of Venezuela, Bolivarian Republic of
90 1 5

updated 2015-04-14 17:07:16 +0800

If this code correct.

<listbox nonselectableTags='??'>
   <listitem><listcell><button/></listcell></listitem>
   <listitem><listcell><button/></listcell></listitem>
</listbox>

If possible if i want to be able to select it with a button but not with another button? what can i accomplish this..

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-04-14 02:16:39 +0800

echarish gravatar image echarish flag of Japan
1809 7
http://jp.linkedin.com/in...

Hello

This is not correct first mistake is listbox can not have listcell as child and you will get org.zkoss.zk.ui.UiException: Unsupported child for Listbox: Listcell null as exception,

you can't put ?? in nonselectableTags the tag names should be html tags or space if you want to include all tags.

<listbox nonselectableTags="">
<listitem><listcell><textbox/></listcell></listitem>
<listitem><listcell><button label="button"/></listcell></listitem>
<listitem><listcell><h:input xmlns:h="native"/></listcell></listitem>
<listitem><listcell><datebox/></listcell></listitem>

</listbox>

A sample fiddle is here

http://zkfiddle.org/sample/2qgtm92/1-listbox-nonselectableTags-sample

for more details about nonSelectableTags refer to. http://books.zkoss.org/wiki/ZKComponentReference/Data/Listbox#Nonselectable_Tags

Harish.

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2015-04-13 14:22:56 +0800

Seen: 20 times

Last updated: Apr 14 '15

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