• 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

Why "h:form" takes so much space

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a application header which has to be shown in all the pages.It has a image in the left and on the right side we have the links "Home", "Logoff" and "Help".So on these links we are using <h:commandLink> as we need to redirect the user to his home page and clear error messages if any.

But the <h:commandLink> does not work without <h:form> and if we put <h:form>, then the height of the header increases considerably which is not acceptable.
We tried the <hx:commandLinkEx>(no <h:form> needed) which forwards to the jsp.But we need to call action for clearing the messages.

Do you have any suggestion for eliminating the space taken by <h:form> ?

Any suggestion is welcome !.


Thanks,
Deepak
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can change the css properties "padding" and "margin" to "0" of the form so that it uses no space.

use a css page or a style tag which contains somthing like

form {
margin: 0px;
padding: 0px;
}

hope that helps
 
deepak reads
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
kewl It worked thanks Patricio.

Deepak Augusty
reply
    Bookmark Topic Watch Topic
  • New Topic