• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsf decorate

 
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am able to get the data using the following tags but am not able to align the name value properly. Is there any style tag that I can use to have customized/fixed spacing between name and value.Thank you.

sample1.jpg
[Thumbnail for sample1.jpg]
Name Value pair in table not aligned properly
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not that familiar with the Seam tagset, but as long as the name and value can each have a style class attached to them, there are all sorts of options. Set up the style classes with fixed widths, add margins/padding, stuff like that.

JSF doesn't concern itself with fine-grained formatting. It figures CSS is good enough for that. JSF is more about the big stuff, like organizing data into tables and such.
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried doing the following (adding style width attribute), but it dint work either. I cannot add style attribut in tag ui:define
If you can be more specific that would be great, as I am new to the technology and just started working on a project.



Thank you,
-Himalay
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it! Thanks.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Himalay Majumdar wrote:Got it! Thanks.



can you please also state how you did it???

I know its an ollldddd thread but still.

Style and Width doesnt have any effect on s:decorate

and if i put it on the input text area it doesnt register them.
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I happened to be in this old thread by doing a google search of my name. To answer you question I looked back into my app code, but thats changed now.

I remember doing it using a css container just outside h:form or may be as an element of the h:form, where I declared the s:decorate, or ui:define tags.

hope it helps a little.

-Himalay

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic