«

»

Eyl
09

Bind Kullanımı

ComboBox gibi bileşenleri kullanırken bind kullanımı büyük kolaylıklar sağlaya bilir. bileşenlerin bind niteliği nesne ya da dizi kabul eder. bind eğer nesneler ile kullanılacaksa nesnelerin __toString metodunu ovride etmesi gerekir.

Örnek Bind

<faces>
<@import prefix="f" taglib="phpf.ui.combobox"/>
<f:combobox name="combo"  bind="array(1,2,3,Bora,Huseyin)"/>
</f:combobox>
</faces>
<faces>
<@import prefix="f" taglib="phpf.ui.combobox"/>
<f:combobox name="combo"  bind="$this.users"/>
</f:combobox>
</faces>

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Bir Cevap Yazın

E-Posta adresiniz yayınlanmayacaktır.


*

Bu HTML etiket ve tanımlayıcılarını kullanabilirsiniz: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>