Vertical Radio Buttons - xpages

So what is the best method to get vertical radio buttons to display in situations with limited screen space. I started with the standard xp:radioGroup, but I can't control the format to be vertical.
I have tried the multicolumnradiobutton on OpenNTF, but I was having problems getting an eventHandler to fire to force a partial refresh (tried using onclick). Would love to see a sample of that since that would solve the issue of formatting.
What I am seeing at this point is if you use a radiobutton group you are stuck with a horizontal layout of buttons. I haven't looked Dojo Radio Button to see if it was the answer.
Basically best option for vertical list of radio buttons that will allow partialRefresh of document.

You get vertical radio buttons with xp:radioGroup when you set layout="pageDirection":
<xp:radioGroup
id="radioGroup1"
value="..."
layout="pageDirection">
...
</xp:radioGroup>

You can use a radio button (not a group) and tie them together with the name. Then you can format them any way you want. This is useful when using Bootstrap since the radio button group puts everything in a table.

Related

Adding button to layout and it will not show up

I'm adding a button to a linear layout and it does not show up. Main XML after adding button last button:
Preview button does not show:
I use AIDE as well, it isn't quite reliable. Nor is its Design preview. So, basically, if your codes are correct just build the app and see what happens.
There are no place for the third button.
Reduce string length in android:text of all buttons and check that button appears, or make linearlayout orientation vertical and check.
You must learn about "weight" attribute...

Expanding button to autosuggestbox in UWP

I am trying to configure a button within my UWP app to expand in to an AutoSuggestBox on click. This behavior is mentioned in this post:
https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/search#Implementation
I tried utilizing a flyout on the button click, but it doesn't give me the desired effect. Is there an existing control that can do this or will I need to roll my own XAML of an existing control?
The behavior you see in the blogpost can be easily achieved by having an autosuggestbox hidden behind the button, then after on button click fading out the button and resizing the autosuggestbox to the desired width.
There's no way to "expand" a control into a different one, but you can make it look like that happens :)

How to display dotted line around radio button or check box control withTrinidad jsf table tag

Currently in our web application, Trinidad JSF tr:table tag is used to display information in the table format. Upon using the attribute rowSelection=single, radio button displayed automatically for each row in a table and name/text next to this control is not visible to the user.
When user navigates with tab key to select the radio button control or user clicks on the same with mouse button, focus with dotted line is not displayed on the control.
What are the different approaches to display dotted line (provided by IE browser) around the radio button / check box control created by Irinidad JSF table tag?
End user requires this accessibility feature.
Right now, we are using,
myfaces-api-1.1.4.jar, myfaces-impl-1.1.4.jar,
trinidad-api-1.0.7.jar,trinidad-impl-1.0.7.jar,
Browser IE 8.0
Find your CSS file, look for any lines that have
outline: none;
And remove them.
This will fix most, if not all of your missing focus indicator problems. There might be scenarios where you have a hidden overflow that is causing the outline to not show up on some browsers. You would have to find those and fix them by adding appropriate focus styles.

Different behavor of a tooptip for different mouse events in richfaces is possible?

Is there any way to make a tooptip behave differently deppending on if a mouse is over the element or it is clicked?
I need to have the same element working as a tooltip if the mouse is over and to open a popup panel if the mouse is clicked.
I could do it easily if using separated elements, but i need to use the same.

How do I get action buttons with custom layouts to be styled like standard action buttons in Android 3.0+

I'm having a bit of trouble with custom action buttons in the honeycomb+ action bar. I'm adding a menu item that uses a custom layout (using the android:actionLayout attribute). The reason for the custom layout is that I want a button that has two lines of text that can be updated dynamically.
However, I still want this action button to operate like the other standard buttons. By this I mean that the background fades in when the button is selected, and fades out again if it is unselected, all in the style of the platform (the colour seems to differ between different platforms/devices - I've seen both grey and blue versions)
I've tried using the action button style for the custom layout:
style="#android:style/Widget.ActionButton"
and I've tried setting the background for the custom layout to:
android:background="?android:attr/actionBarItemBackground"
but to no avail, and I'm kind of trying things fairly randomly as I can't find any documentation on how to do this (or if indeed it is even possible).
I know I can approximate this behaviour myself by setting the background, but it would be nice if I could just set the item to behave like a normal action button in terms of how it appears when the user interacts with it.
Anyone have any ideas?
Thanks in advance!
Ah, sorry to answer my own question but I have just stumbled upon a way to do this. I was halfway there - you need your custom layout's style to inherit from ActionButton:
#android:style/Widget.ActionButton
but then you also need to make the layout clickable:
android:clickable="true"
for it to work. Using both of these makes the custom action buttons look just like the regular ones when you press them.
Hopefully that'll help someone trying to do this!

Resources