Why do you want to use s:button if u can do all u want by
without changing your code, also with conversation support.
what happens if you put a return false after your location.href?
Why don't I just use the button tag? Um, I guess because I wanted the button to be styled like the other buttons and I didn't know how to do it otherwise. However, I really cannot get anything else to work so I guess I'm going to have to figure out how to style it to look like the others.
I added return false after my location.href and still it did not work. The button tag also did not work with it.
I just realized I forgot to include in my original posting the code I tried. I must have deleted it accidentally.
Here it is FWIW:
<button onclick="location.href='http://smc.ba.ssa.gov'" type="button" >SMC</button> <s:button value="SMC" onclick="location.href='http://smc.ba.ssa.gov'" /> <s:link value="SMC" onclick="location.href='http://smc.ba.ssa.gov'" />
I realized I needed conditional rendering so here is what I finally decided on:
I still need to figure out how to style the button to look like a richfaces component.