aspose file tools*
The moose likes JSF and the fly likes Positioning buttons in JSF pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Positioning buttons in JSF pages" Watch "Positioning buttons in JSF pages" New topic
Author

Positioning buttons in JSF pages

Christopher Sharp
Ranch Hand

Joined: Dec 12, 2007
Posts: 151
Hello,

I am having a lot of trouble positioning buttons in the correct locations in JSF pages. I have a number of pages containing various input controls, and want to position buttons in them. The first example is on the home page where I need to position the button labeled "?" in the upper right corner of the fieldset containing a table of inputs fields that the user enters. I have a number of PrimeFaces components, and in this example I am using <p:fieldset>

Below is the code, but the only way I can position the button in the container using an inline style is to use negative values. which does not make sense. I tried specifying a postion relative to the right, such as 0px, but the button is shown on the left. What on earth is happening? I am using Firefox.

The color, appearance and style of the text on the buttons are specified in an external file with the following code:

This works correctly, but I want the individual buttons to be at various positions using inline styles. Each button invokes some JavaScript to open a popup, and that all works correctly.

If someone can kindly give me some advice, I would be most grateful.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Positioning buttons in JSF pages
 
Similar Threads
image rendering issue with h:commandButton
commandButton not invoking action first time form submitted with multiple tabs in p:tabView
Issue with Changing the h:selectoneRadio button
h:dataTable new rows
Can't get Ajax to work