Hi all,
I've been working on my GSOC project (prototyping currently). I want to ask
you something.

With HTML5, form elements does not have to be children of a form. Of course,
that is the preferred way, but you can set the "form" attribute of the
<input> and that <input> will be posted when the owner form is submitted.[0]
This also applies to submit buttons, in a similar way. You can define "form"
attribute of the submit button, and it will submit the defined form -not
necessarily its parent- when it is clicked.[1]

So, I wonder if this can be applied in JSF side. AFAIK currently, a
commandButton needs to be under a <h:form>.
This is also about serverside component tree, and maybe state saving.

I couldn't set up much in my head.

What do you think? How can we use this new features? How to model them?

Thanks,
Ali

[0]
http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#attr-fae-form
[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#submit-button-state<http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#submit-button-state>

-- 
My Blog: http://blog.aliok.com.tr
Twitter: http://twitter.com/aliok_tr

Reply via email to