Answers

Question and Answer:

  Home  Java Server Faces

⟩ Tell me JSF supports AJAX?

Ajax support can be added to the following panel components.

<hx:panelActionbar>

<hx:panelBox>

<hx:panelDialog>

<hx:panelFormBox>

<h:panelGrid>

<h:panelGroup>

<hx:panelLayout>

<hx:panelMenu>

<hx:panelSection>

To add Ajax support to a JSF page:

1. Drag a panel component from the palette onto the JSP.

2. Drag additional components (for example an input component) from the palette onto the panel component.

3. In the properties view, select the panel component tag. Select the Ajax tab.

4. On the Ajax tab, select the Allow Ajax updates checkbox.

5. Select the type of Ajax request that you want to use:

o Refresh - A GET request for the same page.

o Submit - A POST request for the same page.

o External - A GET request for a different page.

6. Configure the request parameters.

o hx:ajaxRefreshRequest

o hx:ajaxExternalRequest

Note: If the component, the value of which needs to be used as a parameter is contained by a data table, you must manually add $$AJAXROW$$component client id> to the parameter set. Where <component client id> is a client ID of the component whose value you want to send as the parameter.

 144 views

More Questions for you: