Trying to get round the default render kit's use of tables
Apologies if this is a simple question - I'm solid with Java and HTML but I'm new to JSF.
The default render kit uses tables a lot, eg for the +<h:selectOne>+ tag. This is not something that I like - I want a radio button group to be rendered as a +<ul>+ list. It's way more versatile to style up with CSS and it's semantically stronger.
Achieving his appears to be harder than I first thought. The tag structure that the renderer outputs is cooked right into the middle of the source code (a seventh-generation class, I note - wow! Clearly, "extension bad, composition good" is falling on deaf ears somewhere), so overriding the renderer means duplicating all its business code for the sake of a couple of tags.
Then, unless I'm doing something wrong (which is eminently possible), it's not actually possible to swap out the renderer for the javax.faces.SelectOne component; I've added the relevant elements to faces-config.xml but the kit always uses its default renderer instead of mine.
So, that means I will have to create a custom component and tag as well as the renderer, right? And a new render kit?
I'm guessing I must be missing something - I can't believe it's so difficult to just render a list of buttons in a list instead of a table. I was kind of hoping to be able to supply a sort of template for such grouped items.
From looking around, I've not noticed any third party HTML render kits, either. Guess I'm not looking hard enough - does anyone have any pointers?
So - to my main question. Has anyone done this? Implemented a simple solution to having pages full of tables? Any details would be great, plus any pointers to stupid things I'm doing - I'm sure there are plenty :)
Thanks
Towards your specific issue with the radio buttons, use Tomahawk's t:selectOneRadio component with the "spread" layout along with the t:radio component. This will allow you to layout the radio buttons however you like.
In general, when faced with these types of "how can that be missing?" holes or annoyances in JSF I find the solution in Tomahawk.
Similar Messages
-
Trying to get into the App Store to update some apss. It asks for my password but the problem is that it is showing ghosted an Apple ID I don't use. Can't figure out how to fix it.
You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, if the App Store says you need to update "Twitter," the hacked app may be "Angry Birds" or something else entirely. Don't make any assumptions about which app you're looking for. To find it, you have to carry out a systematic search.
Triple-click anywhere in the line of text below on this page to select it:
kMDItemAppStoreHasReceipt=1
Copy the selected text to the Clipboard by pressing the key combination command-C.
In the Finder, press command-F to open a search window, or select
File ▹ Find
from the menu bar. In the search window, select
Search: This Mac
from the row of tokens below the toolbar. Below that is a popup menu initially showing Kind. From that menu, select Other...
A sheet will drop down. In that sheet, select Raw Query and click OK or press return.
Now there will be a text box to the right of popup menu. Click in that box and paste (command-V).
The search window will show all the App Store products you've installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
At least one of the items listed in the search window is not among your purchases in the App Store. Move each such item to the Trash. You may be prompted for your administrator password. Empty the Trash.
Log out and log back in. Test. -
I'm having some trouble transferring audio books to my iPhone. It usually takes 3 or 4 tries to get all the parts transferred. I didn't use to have this problem - all parts would transfer in one try.
carolinechx wrote:
i know the description may be a little bit too confusing
Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read. -
Hi, I've been playing Smurf's village for a year now and just last week, i tried to get into the app but it keeps rejecting and goes back to the main page. Is there any reason for this? I've been updating the app everytime and now it's not letting me in. Pls advise. Tq
Reset the device, restart the device, try downloading any other app.
All of these are basic steps that could have been found by a simple search of the forums as a resolution for the issue. -
Sorry, I am new to the type of problem-solution process and I do not know how to edit my first statement. My true statement is below:
My pdf freezes when I click on COMMENT. I am trying to get at the tools to edit a pdf. If I use the tools from the toolbar, there is no issue, but once I click COMMENT, the document freezes and I have to open Task Manager to crash it. This started in the last seven days (3.31.15).I answered your questions below, BUT while I was searching for properties, I found the REPAIR ACROBAT INSTALLATION feature, did the repair and (Voila!) the issue was resolved!
Thanks for making me search for information.
Karen
I am using Acrobat XI Pro, version 11.0.10.32.
I did not create the file I was working in during the freezes, so I tried a PDF that I created with Adobe and it also freezes when I click on COMMENT. I did discover that the COMMENTS plug-in is loaded. (see image
I have used COMMENT for years without this issue occurring. It started in the last 2 weeks.
I could not find Properties under the file menu, but found a security setting in Preferences under the Edit menu. It did not have a way to allow/disallow COMMENT. -
I have been offered cc 2014 for 29.99 and its says contact the support team to see if I qualify - trying to get to the support team option by telephone just seems to send me in a loop - getting pretty disgusted with all the rigmarole just to get a something
This is an open forum, not Adobe support... you need Adobe staff to help
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us"
-or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html -
Still trying to get to the NetStream Object
Hi, I am trying to get to the NetStream object so that I can listen to the NetStatusEvents. Unfortunately the code listed on:
http://forums.adobe.com/message/2725207
no longer works. Is there another way? Thanks.It can be frustrating, especially when the workflow is so different from what we are used to with video. The idea behind the structure is to let OSMF manage the stream and expose needed events on the MediaPlayer. It definitely is a different way of doing things, but most events you need can be gotten from there.
That being said, somethings require the NetStream object. You can extend the VideoElement, which is passed a NetLoader in its constructor. You can get the NetStream off the loader, though it is a good idea to check if it is there, since loader can be one of many classes that may not have the netStream property.:
if( elementLoader.hasOwnProperty( 'netStream' ) )
var netStream:NetStream = elementLoader[ 'netStream' ];
Of course, if you're using a MediaFactory, you may need to customize it to use your custom VideoElement.
Hope that helps. -
How can I get round the issue what sites I can look at in iceland
How do I get round the restrictions on what sites I can look at in Iceland?
http://www.craigslist.org/about/sites
-
Please can someone help me to get back the default colours on my mac book pro
Help can anyone out there please help me get back the default colour settings on my mac book pro!
Hi, thank you very much for your reply. I finally found out how to solve the problem. In System Preferences you go into Accesibilities and then you have to uncheck the box for Invert colour, somehow this got checked (no idea how!) anyway if checked all the colours go weird and photos & pics look like negatives. So I hope this will help other people too if they ever get this problem.
Best wishes -
When I download Microsoft word documents (if have word 2007), I have somehow changed the settings and it downloads them in wordpad, and the format is very bad and I can't read a lot of the document. How do I change the default setting back to using Microsoft Word 2007 to open these documents?
== This happened ==
Every time Firefox opened
== about a few weeks ago - I had tried to open some docuuments saved on a mac, my PC (which runs Windows 7), used word pad to open these, and this seems to have changed the default settings somehow.See this:
[http://support.mozilla.com/en-US/kb/Managing+file+types] -
How can i change the default application that Lion uses to open a document?
how can i change the default application that Lion uses to open a document?
Right-click on the document, select Get Info... In the lower half of the tall window that opens is a section labeled Open With (you may need to click on the disclosure triangle to see detail). Select from the pop-up list which app should open this document. If you want that to become the default condition, click on the Change All... button.
-
Some of the songs I have downloaded into i tunes won't play when I select it to do so. The error message I get is "The song can not be used because the original file can not be found. Would you like to locate it?" When I select yes I'm sent to a screen that has my i tunes library listed. When I select the song in question I'm asked if I would like to open the song. When I select this option I get nothing. The songs I have downloaded must be somewhere because they are listed in my i tunes library and on the screen I've been sent to. I can't the songs to play however. This is not true of all of my songs but it is true of quite a few of them. Actually, one song is too many. How do I get my music to play that seems to be locked up somewhere in the computer?
Presuming they're on your computer, right click on them and then follow the prompts to locate hte file on your computer.
-
I just opened my new ipad2-32GB. It is connected to my macbook pro and itunes is opened. But it is stuck on a screen for language choices. How do i get to the correct screen to begin using it?
yes, thanks. I needed to reset using the power button and home button and hold for longer than i thought. After some serious worry (I'm an electronic illiterate!) I do have everything working and synced with my laptop and phone.
I am glad to have discovered the "support community" site -
I am getting the message: Cannot Get Mail the "email address" is in use on another device. How do I fix this.
Hello groriguez,
The following article provides further information regarding the error you're experiencing.
iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
http://support.apple.com/kb/TS2621
Cheers,
Allen -
Have an ipad 2 and have bought the camera connection kit to use with my flip ultra. However when try to connect ot says there is not enough power to support accessory. Can anyone help please?
If you have ios 5.1.1 the output power is 100ma, on the iOS 5.0.1 the power output is 500ma! This may be the cause?
Maybe you are looking for
-
HI, I have an IMac with 4 G of Ram and am using Apeture 3.51. When trying to edit CS2 raw files I experience frequent crashes and freez ups of the whole computer. Any suggestions?
-
Macro calculation to change for one particular month of year.
Hi All, I have a query for change in macro. WE have a macro to calculate Target inventory which has same calculation for all through future months for 18 months. Now my user wants to change this all future months calculation would be same except for
-
Hi, I am getting a Dump error while logging in to the SAP GUI 7.10( After Giving user name and Password) in Windows vista( Business 32 Bit OS). Error log as follows, Could anyone pls give me solution. Information on where terminated
-
I pin a tab - or many tabs. Close Firefox, then open it the tabs are never saved. This was never the issue with the older versions of Firefox - been using it for years. I bought a new computer, loaded Firefox (19.0) and now I cannot "save" the tabs.
-
Arch Linux Packages RSS Feed [solved]
Hello all. Excuse me, but I have no idea in which forum I have to post this. Since yesterday, the Arch Linux Packages RSS Feed is giving me this error: XML Parsing Error: not well-formed Location: http://www.archlinux.org/rdf_feed.php Line Number 75,