Shailesh Paranjpe

Greenhorn
+ Follow
since Jul 29, 2009
Merit badge: grant badges
For More
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 Shailesh Paranjpe



.... I solved it myself.. the answer regarding my ajax request was found in here..

http://www.jboss.org/community/wiki/CommonAjaxRequestsProblems#ajaxRequestNotFired

I will now try and add Seam listeners and go further.. this is exciting and the forums have been a great way to learn

--
Regards
--
Shailesh

14 years ago
JSF
Hi
Am new to JSF. I would like to understand why a simple example I have created does not work when I use facelets. A sample I got off the net uses jsp and works well.
I want to use richfaces a4j:support on inputText. When I run the app, in onblur, it does not seem to trigger an ajax request to the servlet. So I figure it has to do with my web.xml settings and/or faces-config.xml. I have attached both the files here...

I would like to further extend this example to work with Seam..

Any tips in this regard is appreciated. I am using eclipse 3.4.2 and server config etc for tomcat has been created.

As far as I can tell, I see not errors/exceptions

Regards
--
Shailesh



14 years ago
JSF

Hi
I have the above code and want to achieve functionality wherein

1. the amount that is entered in the field will get converted to a double when the focus is lost on the field.
the use case calls for allowing mnemonics m/M for million etc. So 10M will get converted to 10000000 and so on.

2. I want to reuse this behaviour across multiple applications and would like to package it as such.

I have read different blogs pertaining to this. In some ways, I can solve this by having an actionHandler in testBean that will convert. However, that approach will not work. For example, when reused, the value will not point to testBean.amount but some beanX.price. The converter routine has to be the one that does this.

Can anyone share some ideas/experience that may help me in finding a solution to this problem?

Regards
--
Shailesh

PS> Seam w/Richfaces is the environment I am working in.
14 years ago
JSF

Shailesh Paranjpe wrote:I would like to enable inputText to accept only doubles.

Use cases: Input 1t (or T) (and similar treatment for m/M as a million multiplier) and the control should display it as 1000 (with locale based formatting) Input 1000 and the control should display 1000 with locale based formatting

I created custom converters and in getAsObject attempted to convert from the string to the appropriate double amount. ( I never get into the converter code because there is no POST action yet- I think).

I want the "conversion" to happen when the user tabs out of the field. What are the possible approaches to this problem? I would like to do this on the serverside as I want to follow a similar approach for some other controls I would need where the formatting depends on some other information being passed from the client.

In addition, I would like to indicate an invalid entry for the control as well.

Regards
-- Shailesh



I forgot to add. I would like to package the control as a reusable component.
I googled and saw something akin to this in icefaces, partialSubmit. I am using Richfaces however

Regards
--Shailesh
14 years ago
JSF
I would like to enable inputText to accept only doubles.

Use cases: Input 1t (or T) (and similar treatment for m/M as a million multiplier) and the control should display it as 1000 (with locale based formatting) Input 1000 and the control should display 1000 with locale based formatting

I created custom converters and in getAsObject attempted to convert from the string to the appropriate double amount. ( I never get into the converter code because there is no POST action yet- I think).

I want the "conversion" to happen when the user tabs out of the field. What are the possible approaches to this problem? I would like to do this on the serverside as I want to follow a similar approach for some other controls I would need where the formatting depends on some other information being passed from the client.

In addition, I would like to indicate an invalid entry for the control as well.

Regards
-- Shailesh
14 years ago
JSF