Zainab Haf

Greenhorn
+ Follow
since Sep 17, 2012
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zainab Haf

Hi,
I am facing a problem in p:tabView with dynamic="true" which i am stuck in for days.
i have three tabs each having separate form and p:fileUpload with command button for submitting the form and uploaded file
The problem is my first form or tab works fine..but the other two are not working or firing command button action at all instead it refreshes the page. They are invoked only when second time form filled and button pressed.
and to add one thing more the fileUploadListener even works fine in all these tabs but the command button wont work or fire action method the first time for other two tabs:

Is there something wrong with this primefaces tag(i m using latest version of primefaces 3.5 also) or i am mistaking or missing something?? any kind of guidance will be helpful.

Here is the page code which is included in another main page:



8 years ago
JSF
i am facing a problem of using p:fileDownload with page having h:head. I dont know that h:head is linked or affects this p:download tag or not but after checking every single thing in the page i came to know that if i remove the h:head tag from the page the code



works fine with downloading (also let me add that it also works fine with only head)but if i add h:head, the download button just loads on same page and doesnt shows the download popup window. I cant work without h:head as i need the css on my page without it everything on page is jumbled up and goes messy..please see the complete page code below and help me identify what i am doing wrong here or what is causing this strange problem.
How can i use autocomplete functionality with only JSF component h:inputText when i dont want to use rich ,primefaces or icefaces autocomplete tags?
with user entry i use valuechangeListener to get query entered and list set from db. the list is of SelectItem so that i can use f:selectItems as dropdown of autocomplete

Can anyone guide how can i get autocomplete functionality especialy showing dropdown using h:InputText or JSF component only??
9 years ago
JSF
Thankyou Tim Holloway for guidance.It was really helpful.
9 years ago
JSF
So what do you suggest its better to use JSF only or application with JSF and spring integration when your form data is linked to database queries and procedures (i.e having dao and service layer)?
Thanks
9 years ago
JSF
Hi
Can anyone help me out that what are the main benefits and problems of using spring with JSF 2 over using standalone JSF 2 applications since JSF and spring itself are separate complete frameworks. How the use of their integration is useful?
9 years ago
JSF
I am sending long datatype value from java to bigint parameter of stored procedure of sqlserver. I am using spring for datasource/jdbctemplate.

In Console:

INFO: checking value of long: 1231231234560

Here is the error i get after printing serviceNo:


I do get fine results if i change datatype of serviceNo to integer but it will be restricting since i want search on basis on bigger values also which will exceed the integer limit.

Kindly hep me in here as i am unable to understand why am i getting this error of varchar


9 years ago
JSF
Thanks that really made me understand the problem why it would not set the the value in cityID if using SlecetItem list because of incomplete entered value(Label) is not having any item value(Integer) in the list.

but i have done the same thing another way by giving a list of City class objects to this autocomplete tag instead of list of selectItems (following this tutorial icefaces Showcase)but that also didnt work as page page gets blurred out whenever i enter some character or says "internel server error" despite i m getting the correct list in getter of list<Citiy> i am using in tag. Atleast it should show the list in autocomplete even if i dont store anything in backing bean.



in bean Class added this property:



9 years ago
JSF
Hi i am new here , kindly help in the follow issue i am facing for days.

I want to get the Value of selectItem (ItemValue which is an Integer and the Item Label is String) in my backing bean using autocompleteentry tag of icefaces 3.1.0

but i get error:

here is the code:



Bean is :



the cities has itemvalue as a number and itemLabel as String stored in it. I do get autocomplete fine and shows list of matches if i store value in some String property of backing bean but if storing in integer property of bean, gives this error as soon i write something in autocomplete.

INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=frmmaster:j_idt205:txtcity[severity=(ERROR 2), summary=(frmmaster:j_idt205:txtcity: 'a' must be a number consisting of one or more digits.), detail=(frmmaster:j_idt205:txtcity: 'a' must be a number between -2147483648 and 2147483647 Example: 9346)]


Thanks
9 years ago
JSF