again just a short one:
I've done a login page in JSF which contains an inputText for the username
and a inputSecret for the password. Size is set to 20 for both.
FF manages ... |
I need to direct the input focus to a specific inputtext component upon loading the page (to allow entering a value using a barcode scanner).
In plain HTML I would add a ... |
I've an h:dataTable to display my item information (in my case a customer support request) and for each row I'd like to put an h:inputText and h:commandButton to add a comment ... |
I use:
<h:inputText id="costsPerPallet" value="#{globalReportSelectionForm.palletCost}" size="5">
<f:convertNumber pattern="0.00"/>
</h:inputText>
palletCost is a Double;
When entering a value of "1.00" and submit it is fine.
When I enter "1" and submit I get the error:
java.lang.ClassCastException: ...
|
I have a list of questions and I can display them ok using a ui:repeat, but after clicking the Edit button the rerendered inputText is given the wrong question.id. For some ... |
I want to set focus on inputText field in JSF on page load. How can I implement this?
|
Imagine a text box, bound to a ManagedBean:
<h:inputText id="name" value="#{mb.name}"/>
I would like to default the field to a value.
I know I can set the value in the ManagedBean at construction time, ... |
|
I my application I want to add more dynamically for ex: my application asks to input city and provides one but is the user wants to add more cities, ... |
How I should change following example that after changes values in inputText not disappears after commandButton was submitted? I'm understanding why it happens, but I don't know how to fix it.
<h:form>
...
|
I am getting double input value through h:inputText component.
<h:inputText value="#{bean.testValue}" />
And the bean is
class Bean{
private Double testValue;
public Double getTestValue() {
...
|
I have a datatable with rows containing some input text fields that are required. Each row also has a check box called delete. I want to have the required = true ... |
I have a simple form with an inputText and 2 commandButtons. The inputText displays the backing bean's value fine, but when I change the value for the first time, the ... |
I have a problem with <h:outputLabel> component. I have the following code:
<h:outputLabel styleClass="desc" value="" for="component_id" />
<h:inputText styleClass="text medium" id="component_id"
...
|
In jSF2.0 How can I make an h:inputText appear only after a specific button is clicked? I want the h:inputText be hidden, and only appear after I click a button
|
I'm trying to apply CSS to my <h:inputText> but without success so far :
<h:form id="contactform">
<h:panelGrid columns="3">
<h:outputLabel for="name">Name</h:outputLabel>
...
|
I have an inputText on my JSF page and a JavaScript calendar popup is attached to it.
Conditionally I'm setting the inputText disabled property to true and false.
When I set disabled = ... |
I have an input text field (h:inputText) for user to enter date and a image link next to it (t:graphic) which is a popup calendar.
I am able to disable the ... |
I have a <h:inputText> which accepts a long value like this
<h:inputText value="#{ServiceTable.ID}" />
The property is declared like this
public class ServiceTable {
private long ID;
// ...
|
|
|
Hi Rajeev, JSF has nothing to do with it. You will have to write some logic for it. You can just pass a parameter names "success=true" to the jsp after submitting the form. And in your jsp just do like this <% if(request.getParameter("success")!=null { %> <% } else { %> <%}%> i ... |
|
|
Hi, I have a selection list and detail inputText elements which should be populated according to the selection. But unfortunately I cannot manage to populate an inputText field upon selection. The backing bean is working fine, because if I change from inputText to outputText it works. What am I doing wrong? Are inputText fields not rerenderable? Following are some code extracts: ... |
|
|
|
Since JSF 1.2_05 an optimization in the HTML renderer regarding to the standard HTML attributes was introduced where the responsible renderer was moved from the IMPL to the API. If the right version of the API isn't present, then the those HTML attributes (all on* attributes and a few more) won't be rendered. Thus, it look like that your classpath is ... |
|
|
|
|
Hi every body , I have created 3 radiobuttons and 3 inputText fields in a panel grid , they are divided in two separate columns .All text fields are initially disabled.When user click one radio button (say radio1) the corresponding text field (say inputText1) will get enabled .Again if radio2 is clicked then inputText2 will become enabled. My problem is I ... |
|
|
|
Hi Everybody ! I am loosing the focus of the Text box when i tabbed out from one text box to another. I had a code like this, In the above code, while i am tabbing out from first filed to second field, i am ... |
|
Thanks for your reply Srini. well, i have a requirement where user enter value in inputText and when looses focus from it it should call a method(server side call) where i inluded code to gerente list of records from xml file based on input entered entered by the user in inputText field. yes as i have limited knowledge in JSF, please ... |
Hello, I am using a to capture a userid, and the default text in the window is UserID So what I was trying to do is use the onclick="myjavascriptfunction();" to call a function to clear the default text. I have not gotten to the point where i can test out the code to do this. because I cannot ... |
|
|
|
|
|
Hi, even I faced the same problem with inputtext disabled property. to overcome this problem I duplicated the variables in the jspx file -- one which is visible are disabled and to have mapping with the backingbean same variable duplicated but hidden in the code, so even the inputtext is disabled the hidden variable will have mapping with the backingbean. I ... |
|
|
|
Hi All, I am writing following lines of code to render the input text in my xhtml file : Here label is coming but text box is not getting rendered on screen. When i am removing binding attribute text ... |
|
|
|
|
|
|
Hi everybody, I have an inputText where the user must insert an hour in the format HH:mm (so with the hours within 00 and 23, not AM-PM). I've tried two ways to check what the user enters: 1) Using convertDateTime: It works for the checks on the ... |
|