Forums Register Login

How to control style of UI?

+Pie Number of slices to send: Send
Hi,

I am new to JSF and I am curious how to control the UI so that the web pages will look exactly as the end customer wants it to be?
Stylesheets?

also, if someone can point me in direction of any websites/discussion with more info on this, I would be very grateful.
(i couldnt find anything when googling)
+Pie Number of slices to send: Send
JSF components all get rendered as HTML. And all components have a styleClass attribute that you can use to apply a style from a stylesheet or you can use the style attribute to apply an inline style. In short, yes, stylesheets.
+Pie Number of slices to send: Send
In fact, some JSF components - like the Apache Faces popup calendar - basically won't work properly unless you've provided a good set of style definitions.

Add to that the fact that good JSF design doesn't include raw HTML and you almost have no other option than stylesheets.
[ January 15, 2007: Message edited by: Tim Holloway ]
+Pie Number of slices to send: Send
thanks for the replies, some more question:

is it possible to generate a basic stylesheet somehow?
(since i guess that different implementations could generate different html code)

or do I have to do the hard work of looking at the generated html and figure out which elements that are used?

or should i use the style attribute in all tags in the .jsp file?

questions, questions, questions
+Pie Number of slices to send: Send
I dont really understand your question. As Gregg said , almost all JSF component has a style and styleclass attribute, you can use style attribute to asign a static style and styleclass to the class defined in the css file. Hope it explains !

Thanks,
[ January 18, 2007: Message edited by: Gregg Bolinger ]
+Pie Number of slices to send: Send
Also, the styleClass attribute of all the components can take a dynamic value. For example, you can give
styleClass="#{yourBackingBean.currentCustomerStyle}".
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1009 times.
Similar Threads
Back ground image of an activity
navigation between different web applications
Multi-pane User Interface
UI Class
Does the book cover how to create UI components?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 15, 2024 22:05:25.