subview « JSP « JSF Q&A

1. id attribute of subview tag

I am learning jsf. I get class cast exception in java.lang.String when I use the following code:

<f:facet name="header">
  <f:subview id="header">
    <tiles:insert attribute="header" flush="false"/>
If I replace ...

2. onload script does not work in subview page in JSF

I have written two JSP pages: outerPage.jsp and innerPage.jsp.
The outerPage.jsp includes innerPage.jsp.
The innerPage.jsp has one textfield and one button. I need to set focus on textFiled in innerPage.jsp while the page loads.
I ...