|
Servoy 3.5.x Public API | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ISessionBean
Interface to interact with a client from within a JSP page
ISessionBean servoy_hc = (ISessionBean)session.getAttribute("servoy");
if (servoy_hc == null)
{
//args are solution name,username,password
servoy_hc = HeadlessClientFactory.createSessionBean(request,"headless_client_demo");
session.setAttribute("servoy",servoy_hc);
}
//servoy_hc is now usable...
Sample contextName values:
HeadlessClientFactory| Method Summary | |
|---|---|
Object |
executeMethod(String visibleFormName,
String methodName,
Object[] arguments)
Execute a form or global method. |
Object |
getDataProviderValue(String contextName,
String dataprovider)
Get a dataprovider value. |
String |
getI18NMessage(String key,
Object[] args)
Get a message for a key and optional arguments |
IDataSet |
getValueListItems(String contextName,
String valuelistName)
Get valuelist items as dataset. |
void |
saveData()
Save all the data set via the setData methods. |
Object |
setDataProviderValue(String contextName,
String dataprovider,
Object value)
Set a dataprovider value. |
int |
setDataProviderValues(String contextName,
javax.servlet.http.HttpServletRequest request_data)
Set all request parameters as dataprovider values, if the names match. |
void |
setLocale(Locale l)
Override the default used browser locale |
boolean |
setMainForm(String formName)
Sets a form as main form. |
| Methods inherited from interface javax.servlet.http.HttpSessionBindingListener |
|---|
valueBound, valueUnbound |
| Method Detail |
|---|
Object executeMethod(String visibleFormName,
String methodName,
Object[] arguments)
throws Exception
visibleFormName - the name of the form (must be visible)methodName - the name of the method to callarguments - to pass to the method
Exception
Object getDataProviderValue(String contextName,
String dataprovider)
contextName - the context for this requestdataprovider - the dataprovider name as seen in Servoy
String getI18NMessage(String key,
Object[] args)
key - args -
IDataSet getValueListItems(String contextName,
String valuelistName)
contextName - the context for this requestvaluelistName - the name from the valuelist
void saveData()
Object setDataProviderValue(String contextName,
String dataprovider,
Object value)
contextName - the context for this requestdataprovider - the dataprovider name as seen in Servoyvalue - to set
int setDataProviderValues(String contextName,
javax.servlet.http.HttpServletRequest request_data)
contextName - the context for this requestrequest_data - the page request objectvoid setLocale(Locale l)
l - boolean setMainForm(String formName)
formName - the name of the form to set as main form
|
Copyright © 2009 Servoy B.V. | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||