hemamalini nithyanandam

Ranch Hand
+ Follow
since Oct 24, 2011
hemamalini likes ...
Eclipse IDE MySQL Database Chrome
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hemamalini nithyanandam

Eg, say a number string "3452678916381914". Actually it has to be replaced. But the above regex not replacing that. For numbers like $1234, 45.567 - those numbers shouldn't be replaced. But number 45.567 is getting replaced as 45.#
7 years ago
I want to replace numbers in a string if it is more than 3 digits (Phone numbers should be replaced) and it should not replace the number if it is followed by $ and if the number has decimal points. I used the below expression.

"\d{3,}+(?!\$/\.)"

ssues I face are , it is replacing numbers that are more than ten digits as i want to replace some numbers which are some ID's with more than 10 digits. Also if a number has more than 3 digits after the decimal , those numbers are also getting replaced. I dont want a number to be replaced if it has decimal points. can some body help?
7 years ago
I want to implement typeahead using angularjs in spring mvc application. I implemented by executing the SQL query each time when we type using like in query. Due to performance , instead of querying the database every time, I have created a singleton bean which has a list of string. How to query that list when we use type ahead in angular Js.I want to query from the collection and return when we type
8 years ago
I have Restlet Server Application deployed in prod server. So it uses https. When I try to access the service using RestClient (Mozila firefox plugin) i am able to get the response . But when i try to use Restlet client application I am getting 1001 communication error. how can I resolve it..
9 years ago
Thank you very much my code worked after removing F:convert
9 years ago
JSF
I have an bean vacationRequestBean with startdate and enddate of date field. I used jquery date picker in my index.xhtml for those fields.
format is MM-dd-yyyy for date picker

<script>
$(function() {
$("#datepicker").datepicker();
});
</script>

and in xhtml

<h:inputText id="date" class="datepicker" value="#{vacationRequestBean.startdate }" >
<f:convertDateTime pattern="MM-dd-yyyy" type="date />
</h:inputText>

<h:inputText id="date" class="datepicker" value="#{vacationRequestBean.enddate }" >
<f:convertDateTime pattern="MM-dd-yyyy" type="date />
</h:inputText>


i am getting error as "<f:convertDateTime > Parent not an instance of ValueHolder"
how to store the value selected using jquery date picker to bean on submitting the form.
9 years ago
JSF
I have a managed bean for a form. I map the fields filled in the form with managed bean properties. when I submit the form and click new form , values from the previous form submitted gets displayed in the input fields. I used the scope of the from bean to session. what should be its scope so that values should be destroyed after I submit the form .For every new form ,new bean has to be initialized. On submit I navigate to another bean with session scope.
9 years ago
JSF
I am learning Restlet framework. I downloaded a code where it runs in jetty server. It uses maven. I am able to hit the application when I run jetty server. I copied the war to my tomcat webapp. Application properly deployed in Tomcat. But I am not able to hit the application, I have removed the plugin in pom.xml but still not able to hit. Please find my pom.xml

9 years ago
I have a string like "|ABCSG|test123.txt|ABCSG|XYZ.JPG". i need to separate the filenames using a unique delimiter and want to display the filenames alon in front end. For the above string if i use


i am getting output as
te
t123.txt
XYZ.JP

it considers S & G also as tokens. i couldnt understand why it considers S,G also to separate. i want the full pattern |ABCSG| to split..
9 years ago
is there any sample web application with activiti workflow configured. i have a web application where a form requries two levels of approval . How to configure activiti in Java application.I understood the bpmn . But it would be great if i get any sample
9 years ago
in test() method i used return false also. i want to know why result of test is not returned to the component though the test() method returns false. What should i include in that javascript function
10 years ago
JSF
In a form i used <h:commandButton> i called a Javascript function. Though the function returns false , form is submitted and action method is called.

i used like this

<h:commandButton onclick="test();" action="{#bean.menthod}">

test- javascript method returns boolean value false.

Above doesnt work. Below mentioned code alone worked. I want to know why

<h:commandButton onclick="if(test) return true;else return false" action="{#bean.menthod}">
10 years ago
JSF
i have a field that varies from 10 to 3000 VARCHAR in DB. A field called IDTEXT in a database that can be even a single word or up to a max of 3000. I want to display that in a form. Based on its size i want to very the size of the <h:inputTextarea>. How can i do it..will i be able to set row property from bean?
10 years ago
JSF
I need to display name from database using type ahead feature in my web application. I used Dojo filtering select to display names . those names have to be displayed in multiple jsp page. I have a Java class named getClientNames() that gets the list of names from the database . based on a condition list of names will vary. So i will pass a parameter to that java class ,based on the parameter it executes the query.

eg,
public class X{
public List<String> getNames(String param){
if param.equals("x"){
//query 1
}
else{
//query 2
}
return clisntList;
}

i have a Singleton class to call getNames method.

public class ClassicSingleton {
private static ClassicSingleton instance = null;
List<String> clientList;
protected ClassicSingleton() {
// Exists only to defeat instantiation.
}
public static ClassicSingleton getInstance() {
if(instance == null) {
instance = new ClassicSingleton();
}
return instance;
}

public List<String> getName(){
X obj=new obj();
this.clientList=obj.getNames(param);
return this.clientList;
}
}

i need to pass a parameter to this singleton method getName to get proper result. How can i achieve it..
10 years ago