Hello all,
I have a component with 2 JSP pages. i.e. inside one container.
<pages>
<filter clientenv="webbrowser">
<start>/custom/jsp/test/test_start.jsp</start>
<detail>/custom/jsp/test/test_detail.jsp</add>
</filter>
</pages>
<class>com.test.MyTestClass</class>
In my "test_start.jsp" I have buttons for some operations, which works fine.
I have a link which directs the user to my "test_detail.jsp" page, where I have some additional buttons for other operations, which doesn't work.
When I click on a link, that lands me to detail JSP page, I use this.
<dmf:link datafield="r_object_id" onclick="onClickLink">
<dmf:argument name="r_object_id" datafield="r_object_id"/>
</dmf:link>
And this is my onclickLink method, which works just fine.
public void onClickLink (Link theLink, ArgumentList arg) throws DfException {
DfLogger.debug(this,new java.util.Date() + " - DEBUG: Entered onClickLink()..." , null,null);
this.setComponentPage("detail");
// do some other stuff...
}
Once in my test_detail.jsp page, I click on a button, say Cancel to return back to my previous page, in here, I don't even get to my onCancel() method.
here's the button in my test_detail.jsp
<dmf:button onclick='onCancel' nlsid='MSG_CANCEL' runatclient='true' />
And here's the method onCancel(). I don't even see my debug statement. So, I know it doesn't even enter this method.
public void onCancel(Control button, ArgumentList arg) {
DfLogger.debug(this,new java.util.Date() + " - DEBUG: Entered onCancel()..." , null,null);
this.setComponentPage("start");
}
What am I missing? Can someone please give me a hint?
thanks.