RE: images in html buttons
Wayne, You can use standard HTML to render your button, but you lose the advantages of automatic context path maintenance. Is there a specific reason you don't want to use buttons? Tai -Original Message- From: Wayne A Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 12:38 PM To: struts user (E-mail) Subject: images in html buttons Within the body of a standard HTML tag, I can place HTML, such as the tag and this will get rendered as the button image. With struts tag, this doesn't work and I get the raw text rendered as the button text. Is there a way around this other than going to image maps which don't work the same way as buttons do? Wayne Christian Sr. Staff Software Engineer Genesys Telecommunications Labs 2100 Gateway Centre Blvd. Suite 300 Morrisville, NC 27560 ? Office: (919) 466-6151 Fax:(919) 466-6157 ? EMail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images in html buttons
Oops I left that part out! Yes: .addButton { background-image:url(../images/add.gif); background-position:center; background-repeat:no-repeat; background-color:lt grey } Although Matt has a point... if there is no reason to use a struts tag, then don't. My workaround was done way back when I first started with Struts, (mere MONTHS ago!) so it's probably not the best way, although it does work. -- Wendy Smoak -Original Message- From: Wayne A Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:48 AM To: Struts Users Mailing List Subject: RE: images in html buttons Wendy, So you use the style sheets as a way to attach the image to the button?
RE: images in html buttons
Just use an HTML button. There's nothing in struts that prevents you from hand-coding HTML. The tag just renders and - just view-source and substitute the required values accordingly. I do this all the time. Matt > -Original Message- > From: Wayne A Christian [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2003 10:38 AM > To: struts user (E-mail) > Subject: images in html buttons > > > Within the body of a standard HTML tag, I can place > HTML, such as the tag and this will get rendered > as the button image. With struts tag, this > doesn't work and I get the raw text rendered as the button text. > Is there a way around this other than going to image maps > which don't work the same way as buttons do? > > Wayne Christian > Sr. Staff Software Engineer > Genesys Telecommunications Labs > 2100 Gateway Centre Blvd. Suite 300 > Morrisville, NC 27560 > ? Office: (919) 466-6151 > Fax:(919) 466-6157 > ? EMail: mailto:[EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images in html buttons
Wendy, So you use the style sheets as a way to attach the image to the button? Wayne Christian Sr. Staff Software Engineer Genesys Telecommunications Labs 2100 Gateway Centre Blvd. Suite 300 Morrisville, NC 27560 ? Office: (919) 466-6151 Fax:(919) 466-6157 ? EMail: mailto:[EMAIL PROTECTED] -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 12:45 PM To: 'Struts Users Mailing List' Subject: RE: images in html buttons Wayne wrote: > Within the body of a standard HTML tag, I can place HTML, > such as the tag and this will get rendered > as the button image. With struts tag, this doesn't work > and I get the raw text rendered as the button text. > Is there a way around this other than going to image maps which don't > work the same way as buttons do? Not sure if works the same as but I have the same problem with submit buttons. My workaround involves JavaScript: function setUserAction(target) {document.forms[0].userAction.value=target;} Setting the 'value' to several spaces (otherwise Netscape buttons are squished) means you can't tell which button was clicked, so the javascript sets that userAction property, and that's the one that the LookupDispatchAction uses to decide what to do next. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images in html buttons
Wayne wrote: > Within the body of a standard HTML tag, I can place HTML, > such as the tag and this will get rendered > as the button image. With struts tag, this doesn't work > and I get the raw text rendered as the button text. > Is there a way around this other than going to image maps which don't > work the same way as buttons do? Not sure if works the same as but I have the same problem with submit buttons. My workaround involves JavaScript: function setUserAction(target) {document.forms[0].userAction.value=target;} Setting the 'value' to several spaces (otherwise Netscape buttons are squished) means you can't tell which button was clicked, so the javascript sets that userAction property, and that's the one that the LookupDispatchAction uses to decide what to do next. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
images in html buttons
Within the body of a standard HTML tag, I can place HTML, such as the tag and this will get rendered as the button image. With struts tag, this doesn't work and I get the raw text rendered as the button text. Is there a way around this other than going to image maps which don't work the same way as buttons do? Wayne Christian Sr. Staff Software Engineer Genesys Telecommunications Labs 2100 Gateway Centre Blvd. Suite 300 Morrisville, NC 27560 ? Office: (919) 466-6151 Fax:(919) 466-6157 ? EMail: mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]