I have one data table (ice:datatable) in which i set one list of object.i have one search criteria on particular field.now i want to set focus on row in which searched ... |
I have a complex ICEFaces XHTML page that renders certain components conditionally, based on flags set as the user enters data on the page. What I'd like to do is direct ... |
|
|
|
|
|
|
|
|
UPDATE: I found out how to get the IDs of the errored components in a phase listener. After that I do the following in the phase listener: JavascriptContext.addJavascriptCall( fc, "document.getElementById( '" + clientId + "' ).focus();" ); When the error occurs, I can see the focus go to the input text component with the error, then strangely, the focus jumps to ... |
|
You can use the input element property tabIndex to let the browser know which field should be selected on a tab or shft-tab. You can also use a component binding and requestFocus() after a particular actionListener or valueChange event takes place. This will allow you to set focus on any input component on the page. |
|
Hello, I am writing a login page composed of: - an HtmlInputText for entering user name; - an HtmlInputSecret for entering the password; - an HtmlCommandButton for try to login. When the page appears, I would like to have the focus on the HtmlInputText. Then, when the user press the return key I would like to have the focus to the ... |
glen_jai wrote: Hi lightguard, Thanks for your help. The main problem though is getting a reference to the originating element from within the validator method. Any idea on how I can do that? Cheers, Glen You can use request focus from the backing bean, but I think from within a validator method it might be a bit trickier. I find ... |
i have an inputText that is used to filter results in a table. this is done in the inputText's valueChangeListener method. the problem is that whenever the filter causes the contents of the table to change, the inputText loses focus. i've tried calling requestFocus() on the inputText and adding this.focus() to it's on* handlers. no effect. any ideas? thanks. |
|
|
|
Hi, Even I have the same problem where the focus is being lost in the ice:selectOneMenu component. This situation is specific to IE and occurs when the partial submit from some other component occurs and the ice:selectOneMenu is the next component which will recieve the focus. Any help will be greatly appreciated. Thanks, Dhanesh Malviya. |
|
Hi, I have a question related to cursor / focus on next field after the validation message. In a scenario when a validation happens a message is displayed, once the data is fixed and it passes thru the validation the cursor doesn't go to next field, its lost somewhere and then we need to use mouse to focus on next field. ... |
Hi all Gurus Consider code below: Once validated and shows show the error message, I would like to clear the input and move the focus back to the Input Text, any idea how I should achieve it? I have try to bind the inputText to a manageBean ... |
I have an "int" field that looks like this: ice:inputText styleClass="inputText" value="#{row.amount}" partialSubmit="true" style="width: 75px;" required="true"> If the user types nonnumeric characters into this field, I'd like to keep focus in the bad field instead of letting him advance to the next field. How do I force focus to stay in the bad field? Thanks, Eli |
Hi, I am experiencing the following problem: I have a commandLink that when clicked enables a text area, however my problem is that I am unable to set the focus of the text area. Here is a sample of my code: |
Hi!.. are there any way to set the focus to the first, or any component inside when the user select the tab ?... I tried by setFocus(true) method, in the tabChangeListener, but does not work... It like that just grab the focus the first focusable componente in the first tab, not in the others... thank you very much! |
|
Hello, I followed the tutorial on ICEfaces Focus Management API. The tutorial shows how to set the focus on a inputText field when the user select a value in a radio buttons group (actienEvent) in my case I want to set the focus when the foms loads. I tried to put the requestFocus() in the constructor of my backing bean but ... |
|
Hi, Here am facing a problem, The focus remains same on the selected page index even after the paginated table is set for sorting, it doesn't return back to the first page index. for example if we select the 2 page index and then if we sort the table by a ice:selectOneMenu item the page is not getting changed to 1, ... |
|
|
|
After some further testing, seems I get this type of problem outside of PanelStack. If I click a button on one .xhtml page, do some processing in my backing bean method, then return a navigation to a new .xhtml page to show the results, then I get the same error: [/code][window] Failed to set focus on [frmMain:updateButton] cannot find element with ... |
|
|
|
|
Hello, I am not getting to attribute the focus to the inputText contained in the panelPopup when opening it. The focus continues underneath in the previous inputText of the panelPopup. I am using the requestFocus (), however it is not working. What should make? I thank the help at once. Emmanuel Ruiz Lopes |
Hi, I am using a data table with a row selector, one of the column has a text box. Whenever the mouse is clicked in the text box for entering text, the row selector selection listener is called and focus moves out of the text box. I do not want to call selection listener when text box is clicked and want ... |
|
|
|
|
|
|
|
Ok, I ran across a post (of course I can't find it now) which mentioned something like that when using the JSF navigation to go to a page, that any javascript you added for that page will not work. Bottom line, what I am trying to do is when I navigate to a page, I want focus to be on a ... |
|
|
I don't know how I must use the focus api to put the focus onto an inputtext field after a fresh page load. The page has a menu and several input fields. Currently the focus seems to be on the menu (invisible). If I use the tab key then the focus is on the input text field. How can I focus ... |
|
|
|
|
|
|
|
|
|
Hello, Firstly, I ask forgiveness because my level of English is not very good but I will try to explain what is my problem. I have a dataTable whose rows are invoice lines and each column has an inputText (columns: Description | Amount | Price | Total). When the user want to create a new invoice, the table has only one ... |
|
|
Hello, Could be two things: 1. Since ICEfaces 1.7.0 the error messages associated with any components that are in an invalid state are maintained / displayed even if you partial-submit another component. Prior to 1.7.0, the only the error messages for the current component would be displayed. So make sure you're running 1.7.0 or 1.7.1. 2. Also, the Address demo uses ... |
|
Hi ! In our application we have a few panelPopUp with input fields. The form surrounding the panelPopup have partialSubmit set to true. The problem when using Internet Explorer is that when we tab to a next field, there's a partial submit that occurs (from the onBlur event of previous field) when the partial submit completes the loss of focus prevent ... |
public class TestFocus { String value1, value2; public String getValue1() { return value1; } public void setValue1(String value1) { this.value1 = value1; } public String getValue2() { return value2; } public void setValue2(String value2) { this.value2 = value2; } public boolean isValid() { return value1 != null && value2 != null && value1.length() > 0 && value2.length() > 0; } } ... |
|
Im trying to move the focus from one inputText to another when the first one reach the maxlength. Any time a key is pressed i got a javascript function that checks if the maxlenght is reached in order to set the focus to the next inputText. Everything works fine until i try to set the focus to the second field using ... |
|
|