Hi,
I'm developing a Richfaces portlet, and I've stumbled across some (not many!!) examples to use as a starting point. I've seen several mixes on how to put the <f:view> <a4j:portlet> and the rest of the code in a file.
This is the way I'm doing it today, does anyone see any advantages/disadvantages?
<f:view contentType="text/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jstl/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich"> <a4j:portlet> <html> <body> <h:form id="frm_richFaces"> <rich:tabPanel id="testPanel_id" switchType="client"> <rich:tab title="test1" id="test1_id" name="test1" label="test1"> <h:outputLabel value="test1" for="test1_input_id" /> <h:inputText id="test1_input_id" value="test1" /> </rich:tab> <rich:tab label="test2"> <h:outputLabel value="test2" for="test2_input_id"/> <h:inputText id="test2_input_id" value="test2" /> </rich:tab> </rich:tabPanel> </h:form> </body> </html> </a4j:portlet> </f:view>
<f:view> or <a4j:portlet> or <html>?