Thursday, July 3, 2008

af:form vs h:form

Here's another difference I notice about the af:form vs h:form. With the h:form it seems components in a form get id's like 'formid:componentid' when you do view source. However, with an af:form your component id is just 'componentid'. I am not 100% sure about this, but I think this is the case.

3 comments:

Anonymous said...

You write very well.

Anonymous said...

Have you noticed any differences when putting javascript on your page?

I'm not sure this is the cause but after adding a reference to a js file in adf:head my page doesn't display (at times) unless I clcik on it. These particular pages have h:form instead of af:form. It doens' make sense that the js is doing this though. Nothing is being called from the file until a button is clicked.

Anonymous said...

My problem was caused by not using afh:script.