Re: How can I call the servicedef/service.xml in the freemarker?

2014-03-31 Thread Rong Nguyen
hi Gavinju, Your service may be called by mapping form's action to the URI in controller.xml file(request-map), and then you declare it. for example: your form with action is 'createPartyRelationship' request-map uri=createPartyRelationship security https=true auth=true/ event

Re: How can I call the servicedef/service.xml in the freemarker?

2014-03-31 Thread Rong Nguyen
If you mean call service from Java code, the following code is one way: DispatchContext dctx = Method_or_parameter; LocalDispatcher lcDispatcher = dctx.getDispatcher(); Map inputMap = Your_init_method; resultMap = lcDispatcher.runSync(Your_target_service, inputMap); - Rong Nguyen Olbius

Re: How can I call the servicedef/service.xml in the freemarker?

2014-03-31 Thread gavinju
Thank you for your help. My case is, For example, in PartyMenus.xml: menu-item align-style=party07 name=security title=${uiLabelMap.CommonSecurity} condition if-service-permission service-name=partyBasePermissionCheck main-action=VIEW/ /condition link

Re: How can I call the servicedef/service.xml in the freemarker?

2014-03-31 Thread Rong Nguyen
You can create one screen and then include this screen in your ftl: screen name=test section condition if-service-permission service-name=partyBasePermissionCheck main-action=VIEW/ /condition widgets link target=/control/FindSecurityGroup text=${uiLabelMap.CommonSecurity}/link /widgets /section