Render RichFaces Popup Panel untuk Submit Form

Sempat panik saat entah kenapa RF tidak dapat submit data melalui popup panel. Padahal elemennya sudah dibungkus di dalam tag form. Setelah inspect element di browser, nah melihat penampakan aneh. Tag popup panel tidak ada di antara tag form, atau dengan kata lain render htmlnya diluar form. Walahualam, aneh-aneh aja nih yang mendesain cara render HTML di RF.

Akhirnya setelah googling dapat pencerahan, so saya catat di sini.

<rich:popupPanel domElementAttachment="parent" id="popup" modal="true" resizeable="false" onmaskclick="#{rich:component('popup')}.hide()" height="250" width="500">
.....
</rich:popupPanel>

Butuh set domElementAttachment ke parent supaya element popup melekat ke form! Voila!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.