Hi Roy, Thanks for the reply.
On 29 Oct 2007 at 7:20, RoyPorter wrote: > I had a similar issue, although with 2.0M5 > > You should have something similar to this in your struts.xml > > <constant name="struts.ui.theme" value="xhtml"/> Yes, I do, though mine is set to "css_xhtml" and that was the root of my confusion. According to my reading, that theme should default to a "side-by- side" layout (ie labels to the left of fields by default). But it didn't. > If it still isn't working, you may need to do as I did and copy the template > directory out of the struts jar, and have it under you webapp directory. > > At the time I put this down to Appfuse's templates overwriting the Struts > templates, and not having the full functionality as required, I don't know > if this is a true statement or not ;-) I thought you were onto something for a minute there. I think you're right about some Appfuse templates overwriting the Struts templates - if you look into a deployed AppFuse app, there are certainly several templates there in the templates directory. I just went to one of my deployed apps and tried deleting the templates directory (hence presumably allowing the struts templates to take over). This changed the layout a bit, but still didn't give me the side-by-side layout that I sought. I've actually solved the problem, basically by: 1. Tweaking the stylesheet to sort out the "simple" controls. 2. Tweaking the templates for the "compound" controls (eg combobox, optiontransferselect etc.), primarily to allow me to pass in a css class to apply to the containing "<li>" element so I could control that with css. If I get some spare time and there's some interest, I'll have a go at doing a tutorial page for the AppFuse website. > mraible wrote: > > > > You may be able to modify the forms.css to do this. If that doesn't > > work - use Struts' simple theme and you'll have full control of the > > HTML produced. > > > > Matt > > > > > > On 10/26/07, Rob Hills <[EMAIL PROTECTED]> wrote: > >> Hi All, > >> > >> I'm using AppFuse 2.0 and Struts and I'm wondering how to get my labels > >> and fields side-by-side rather than labels on top of fields as is the > >> default in > >> AppFuse. > >> > >> I assume there's a single change I can make somewhere, but I've not been > >> able to work out what that is. > >> > >> According to the Struts Documentation, using the "xhtml" or "css_xhtml" > >> theme should produce fields side-by-side, but I note that the struts.xml > >> file > >> that comes with AppFuse specifieds css_xhtml. > >> > >> I've hunted through the css, but haven't found anything that looks to me > >> like > >> it forces labels above fields (or vice versa) but then css isn't my > >> strong > >> point. > >> > >> I'd appreciate any tips. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
