Hi Experts,
I created a view component with a simple command button in it, the button is visible in the view. I have defined a view handler for it and defined the same in ui-repository but nothing is happening on clicking on the button though it should call the action method.
ui-repository.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<UIRepository xmlns="http://www.sap.com/wec/wcf/viewcomposition/ui-repository" xmlns:wec="com.sap.wec.core.config" module="myaccounts">
<navigationRules name="navigation-rules">
<description></description>
<source>/cust/myaccounts/ui/navigation/navigation-rules.xml</source>
</navigationRules>
<PageReference moduleInterface="com.sap.main"
moduleInterfacePage="basePage" name="refBasePage" />
<Page defaultLayout="2columnSidebar" name="zdlsPage" extends="refBasePage" ownLayoutUsed="true">
<Layout name="2columnSidebar"/>
<Area defaultInclude="zdlsInc" name="zcontentDls"/>
</Page>
<Layout name="2columnSidebar" moduleInterfaceLayout="2columnSidebar" moduleInterface="com.sap.wcf.Layouts" />
<UIInclude name="zdlsInc"/>
<NavigationTarget name="zdls"
targetComposition="Page:zdlsPage"/>
<viewComponent name="zdlsView" componentHandlerClassName="com.cust.wec.app.main.module.handler.ZApptViewHandlerImpl"/>
</UIRepository>
zdlsView.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:myaccounts="http://java.sun.com/jsf/composite/cust/myaccounts/components"
xmlns:wcf="http://java.sun.com/jsf/composite/wec"
xmlns:wec="http://java.sap.com/wec/wcf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<cc:interface componentType="sap.wec.ViewComponent"/>
<cc:implementation>
<wec:commandButton id="zbutton" type="submit" onclick="com.sap.wec.uiapi.ignoreNextWait();" value="Test" size="500" action="#{cc.vch.createAppmnt}" />
</cc:implementation>
</html>
createAppmnt is the method that I have defined in viewhandler. Now if i change the cc.vch.createAppmnt to cc.vch.text when text is not even maintained as a method in viewhandler, I dont get any error on clicking on the button.
Need your help guys.
Regards