Faraz Ali

Ranch Hand
+ Follow
since May 15, 2008
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Faraz Ali

Hi All,

I am using EJB 3.0 entities as my command beans and there are entities which have one-to-one & one-to-many relationships with other beans. In this case, how to create jsp forms, how to write controllers and is there any need of property editors?

Thanks,
14 years ago
I tried this xsd also, and tried everything, but not working at all. the last thing i can do is to install a new eclipse+new java+new jboss+new prj everything new.



Can you tell which version of spring & webflow you are using?

what do you mean by "parser is attempting to validate against your linked schema locations". how to disable this feature.


Thanks,
14 years ago
Hi,

I am getting the exception below while running a spring web flow program.




I am not using DOCTYPE, as removing it also reduce the exceptions.

This is beans tag:


and this is my flow tag:



I am stuck here. I tried many things but nothing working. I am using Spring framework 3.0.0 and Spring WebFLow 2.0.8.


Thank you very much.
14 years ago
Thanks,

yes its working properly now.
14 years ago

Hi All,

I am looking for a simple & straightforward example of the spring webflow.

I searched on the google, and found many good articles. Some of them are very complex to start with (shopping cart one) and few of them referring to older version. Spring itself posted a good artcile but that one is based upon annotation and using tiles.

I am new to web flow and just want to try a simple example first. If any of you guys have any code or articles please post here.


Thanks,
14 years ago
Hi All,

I am now able to save the form with string, date and enum values. There is one problem while saving enums, instead of the actual enum value, its saving the index value of enums. I also tried creating a custom property editor for enum, but its storing 0, 1, 2 etc, not storing the real string values which i want to save.

See my code below:










So above is all the code i am having. No matter i use enum property editor or not, it always inserts index values instead of text.


Thanks,
14 years ago
Hi All,

I am trying to create a form which will add the user record in the database. When i click the submit button, it looks like that form is not submitted. In the debug mode, its not going inside onSubmit. I am not seeing any exception.

On the form level, there is an input field "status", and on the bean side i have an enum Status. So how to map this? How to do mapping for this kind of thing. I suspect form save problem is because of this.

So i have two questions here:
1. how to map a form field to bean's enum.
2. any reason onSubmit is not called?

Can you guys give me an example how to write custom property editor for enum, how to register with binder and how to specify this form field value should map to bean's enum.


Thank you very much.
14 years ago
Hi Ranchers,

I am unable to deploy my beans on jboss. The database i am using is SQL server 2008. Driver file is sqljdbc.jar, driver class is com.microsoft.sqlserver.jdbc.SQLServerDriver, the url is jdbc:microsoft:sqlserver://myMachine/mytestdb. The persistence.xml file is below:



Where to put the driver jar file. And below is the exception i am getting:



Please help to fix above issues.


Thanks,



Hi Ranchers,

Whizlab is offering discounted vouchers for the exams. I want to buy SCBCD one. So is this ok to buy from there. Anyone else bought voucher from whizlabs prevously?


Thanks,

Thank you Klaus!
Thank you Christophe!

Based upon your suggestions, i am planning to follow this way:
1. Go through the "EJB 3 in action"
2. Enthuware mock exam, (refer to specs if required)
3. MZ notes

One more thing i want to ask. Whizlab is selling discount vouchers, is anybody buying those discounted vouchers, means is this OK to purchase discounted vouchers from whizlabs?

Thanks,
Hi Ranchers,

I am planning to write SCBCD exam next month. Reading the forum, it came to know me that "EJB 3 in action" is a good book to study SCBCD. What about enthuware exam simulator, will it help me to clear the exam? And what is the complexity level of the exam?

I do not want to go through with the specs, so is this OK to read ejb3 in action, MZ notes and enthuware simulator?

Thank you,
Many Thanks,

One more question, whats the best strategy to index multiple tables?

Hi All,

I am writtng an application in lucene, in which i am retreiving records from db and indexing it. When i search the index, its gives me Lucene's objects in result, but i want it to return collection which contain my own objects, so that it is easy to use.

Say, i indexed the whole book table from db into lucene indexes. Now i am searching the index by author name, i want it to return a collection which contains all Book objects with the desired author.

Thank you,
Hi All,

I am very new to hibernate persistence. I want to switch my web application persistence layer, which is implemented in EJB 3.0 to hibernate.

Can you guys suggest me which version is most suitable?

Thank you,