Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Arun Sudharsanam

Greenhorn
+ Follow
since May 29, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arun Sudharsanam

I have to disable the textbox when a particular value is selected in a dropdown. I tried this using a valuechangelistener and binding the component. It works fine. But when I click continue button again all columns become disabled.
The code is like this:
13 years ago
JSF
Consider this part of code:

<h:inputText value="#{quote.amount}" required="true"><f:validateDoubleRange minimum="#{bean.min}" maximum="#{bean.min}" ></f:validateDoubleRange></h:inputText>


You have coded minimum and maximum with same bean variables.
Dont know whether its a typo error or its how you have implemented.
13 years ago
JSF
use escape="true" attribute in outputText like this:
<h:outputText value="<b>Guest</b>" escape="true"/>
13 years ago
JSF
Prasad,

You can try with
<tr:goLink destination="http://www.javaranch.com"
targetFrame="_blank"/>
13 years ago
JSF
Why do you want to call a method from an outputText.
If you want to assign the return value of the method to the outputText you can just do it as:
<ice:outputText value="#{bean.name}"/>

and code in the bean as follows:

String Name;

//Getters and setters for the Variable
13 years ago
JSF
try <tr:breadcrumbs> from Apache Trinidad library
13 years ago
JSF
Hi All,

I have an issue when submitting the form using commandbutton.

When the control is within a textbox and I click the command button the form does not gets submitted. But when I press tab and then click the button it gets submitted.

Can anyone provide a solution to overcome this problem.

I am using JSF 1.2 with Trinidad faces.
13 years ago
JSF
I have a jsf page with inputText which calls valuechangelistener to perform some server-side validations. I have also set autosubmit="true" to submit the page on value change. The problem is when I press tab continuously for 3 to 4 times I am getting a javascript error below the page saying that

Unexpected call to method or property access.

But I am not using any javascript method in my page.

Any help is appreciated.
13 years ago
JSF
Hi all,

I have a screen in which certain products are displayed.
If I select some products and navigate to the next page, the selected options will be displayed. If I want to add some more products I can click the add button and come to the previous page. In this Scenario the previously selected options should be preselected and disabled.

As these options are dynamic values I want to know how to disable a particular row in a datatable..
I am using <tr:table> in my application.

Any help would be appreciated..
13 years ago
JSF
I dont know whether there are any tags in corejsf. But in Trinidad there is a way to do it.

Use <tr:selectBooleanRadio group="myGroup" value=#{Bean.value}/>

You can use this selectBooleanRadio anywhere in this page provided if you give the 'group' name similar everywhere it will work as you expect.
13 years ago
JSF
No. The button is displayed always. Not rendered based on any condition.
This doesnot occur on all the pages.
13 years ago
JSF
I had tested in debug mode also. But The action is getting called only when I click the button for the second time
13 years ago
JSF
I had tested in debug mode also. But The action is getting called only when I click the button for the second time
13 years ago
JSF
I have created a jsf application using Apache trinidad tags. The problem is that sometimes I am not able to submit the form by clicking once. Only when I click the submit button twice it gets submitted. I am using IE 6.0.

Any Idea regarding this??
13 years ago
JSF
I am using trinidad tags in my application. In textboxes where I am using partialtriggers and calling the valuechange event I am facing a strange issue. If I press ` and press tab the textbox disappears and some html code is displayed there.

The code which I use is like this:

<tr:inputText value ="#{bean.somevalue}" valuechangeListener="#{bean.someMethod}" autosubmit="true" id="someId" partialTriggers="anotherId"/>
<tr:inputText value="#{bean.anothervalue}" id="anotherId"/>

This happens only when I press ` symbol. For other keys its working fine. Can anyone help on this?
[ June 23, 2008: Message edited by: Arun Sudharsanam ]
13 years ago
JSF