This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsf decorate

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Got it! Thanks.
 
Syed Mahdi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
  • 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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!