|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.view.AbstractFacesBean org.apache.shale.usecases.remoting.Business
public class Business
Remotely executable business logic methods that complete the entire response.
$Id: Business.java 476661 2006-11-18 23:44:11Z craigmcc $
Constructor Summary | |
---|---|
Business()
|
Method Summary | |
---|---|
void |
cityAndStateForZip()
Generate an XML response from an array of JSF SelectItems. |
void |
listCategories()
Return the set of reported categories. |
void |
listLocales()
Return the set of reported locales. |
protected void |
selectItems(javax.faces.context.FacesContext context,
javax.faces.model.SelectItem[] items)
Render an XML document containing the specified selection items as the response to this request. |
protected javax.faces.model.SelectItem[] |
supportedCategories(javax.faces.context.FacesContext context)
Return the set of legal supported categories. |
protected javax.faces.model.SelectItem[] |
supportedLocales(javax.faces.context.FacesContext context)
Return the set of legal supported locales. |
Methods inherited from class org.apache.shale.view.AbstractFacesBean |
---|
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Business()
Method Detail |
---|
public void cityAndStateForZip() throws IOException
Generate an XML response from an array of JSF SelectItems. Those
items represent a city/state pair that matches a zip code. The
zip code is stored in the zip request parameter. That
parameter was put in request scope by an Ajax call--see zipCode.jsp
for more details. When the XML response is complete, the
protected
method selectItems
invokes
responseComplete()
on the Faces context, which ends
the response.
IOException
public void listCategories() throws IOException
Return the set of reported categories.
IOException
public void listLocales() throws IOException
Return the set of reported locales.
IOException
protected void selectItems(javax.faces.context.FacesContext context, javax.faces.model.SelectItem[] items) throws IOException
Render an XML document containing the specified selection items as the response to this request.
context
- FacesContext
for the current requestitems
- Selection items to be rendered
IOException
protected javax.faces.model.SelectItem[] supportedCategories(javax.faces.context.FacesContext context)
Return the set of legal supported categories.
context
- FacesContext
for the current requestprotected javax.faces.model.SelectItem[] supportedLocales(javax.faces.context.FacesContext context)
Return the set of legal supported locales.
context
- FacesContext
for the current request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |