|
| Problem in overriding a netui:form's detault action |
 |
Wed, 11 Oct 2006 19:51:47 -070 |
Hi, I'm quite new to this forum I hope you can help me on this one... So here
goes...
I have a <netui:form> that has two submit buttons. The first one serves as
a "Search" button while the other prints a report via Crystal Reports.
Of course it's required to provide an action attribute in the <netui:form>
tag (which will be the default action for the submit buttons right?), and to
override that action I also provided a separate action for the
<netui:button> so that it will proceed to the Crystal report printing
instead of the search function.
However, I've implemented it already but when I'm testing it the form proceeds
to the Search function regardless of the button that I pressed! It wouldn't
matter actually if the Search button served as a *search* button, but the
Crystal reports button isn't working!
I've noticed something else. When I try to view the HTML source code
<netui:buttons> with overridden action attributes become
<input type="submit" name="actionOverride:printPassbook"
value="printCrystal">
statements in HTML. BUT in my problematic button's case it's just plain
<input type="submit" value="printCrystal">
By the way, my platform is BEA WebLogic 8.1.4 (build 2004.1130.043508) running
on MS Windows 2000 SP4.
I'm not sure, I might have overlooked something (as this shouldn't really be a
big issue, I've created dozens of forms before with more than one submit button
and nothing problematic arose), so I would really appreciate if someone can
comment on this (if anybody has encountered this too).
|
| Post Reply
|
|
|
|
|
|
|
|
|
|