Re: AW: [Newbee] <input type="image" ...> to switch

Alexander Bischof <[email protected]>
Newsgroups gmane.comp.java.strutscx.user
Organization FHG IVI
Message-ID <[email protected]>
Hi Bernhard,

>Even if it's a bit off topic: Of course you can use any HTML element within
>XSL Stylesheets (hence StrutsCX). There is an image button element for
>forms: 
>
><input type="image" src="send.gif"> 
>
>It has the same function than the submit button. Just a hint: Consider to
>use CSS to format your submit button grafically, too. Check out online
>publications for details.
>  
>

Your point. I already know that this kind of HTML-element exists.

The problem is that i've written a StrutsCX-application where in almost 
every dialog is one <input type="text"...> and three <input 
type="submit"...> (backward, abort, forward) in the same form. If i put 
something in the textfield and press enter the first of the three submit 
buttons executes and i go backwards through the dialogs. I've tried to 
fix this behavior, which means that by pressing enter the third button 
executes, but i wasn't successful. So i want to avoid the enter feature 
and convert all submit buttons to image buttons.

In the abstract no problem but i've only one big BaseAction#exceute 
where i've decided which dialog is the next. But i think with this 
conversion it is a problem, because no request is send to the 
StrutsCX-Servlet or may i be wrong?

Thanks
Alex Bischof


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.