• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why "h:form" takes so much space

 
deepak reads
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
 
Patricio Hervas
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
kewl It worked thanks Patricio.

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