horri khaled

Ranch Hand
+ Follow
since Mar 24, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by horri khaled

I think the problem come not from @Named annotation but from the bean.xml file added to WEB-INF to support JSF 2, just remove this file.
14 years ago
Hi,

I have an error when deploying a web application using spring 3 and jsf 2, the error appear when I change @ManagedBean by @Named, for more information I have a bean like this :



User.java


the stack error :


note that I use JBOSS 6 M3



thanks in advance
14 years ago
Hi
I am face a configuration problem to integrate Spring with JSF using jpa and hibernate and deployed in a JBOSS 6 M3 as AS, I have some doubt about the best approach that can be used with this taste.

1- Which is best using a jta or non-jta?
2- separate datasource configuration in -ds.xml or configure it in applicationContext.xml?

I do this configuration following some tutorials but an error still appears when the application deployed:

web.xml:


persistenc.xml:


applicationContext.xml


the server stack:


any help is appreciated

Regards
14 years ago
Hi,
I want to integrate JSF 2 with Spring 3, I find in several books and web sites some tips to do that, I follow instructions step by step and the war is deployed successfully where the welcome page
is displayed, but when I click on the button to execute an action I get this error:


My Configuration looks like :
web.xml:



faces-config.xml located in WEB-INF/jsf:

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

<managed-bean>
<managed-bean-name>userBean</managed-bean-name>
<managed-bean-class>com.integradis.UserBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>userService</property-name>
<value>#{userService}</value>
</managed-property>

</managed-bean>

<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
</application>
<!--
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>

<application>
<variable-resolver>
org.springframework.web.jsf.DelegatingVariableResolver
</variable-resolver>
</application>
-->
</faces-config>



web-application-config.xml located in WEB-INF/spring:


I use Jboss 6 as a runtime server

Any Help is appreciated

Regards
Horri
14 years ago
JSF
Good News, It can be an interesting book.
I just start a project implementing spring and hibernate, I hope to get a copy of this book to help me to understand the combination spring/hibernate
14 years ago
Hello Begri,
You can find some explanation here

regards
15 years ago
Some progress
Now I can display the progress bar and the background work go fine, but the progress bar not updated


16 years ago
Hi everyOne

My problem is like below:
I have a modal dialog box extends form JDialog, When the user fill field and clic on OK button I want
1- add a progress bar to indicate file uploading
2- add field to DB
I add this code to the Ok button but nothing happen


thanks in advance and any help is appreciated

Regards
Khaled
16 years ago
Hi guys,

I have a problem when a want to register in sun database that is available in
Here
the assistance refuse to accept any information.
please help because I want the logo

thanks in advance.
16 years ago
Thinks for you all Ranchers.

What about you Dean? you passed the exam or not yet?

Regards Khaled
16 years ago
Hi!
I passed my SCJP exam with 76% score today .Thanks to Kathy Sierra and Bert Bates.Thanks to all JavaRanchers.Thanks to everyone who helped me. And good luck to future SCJP condidates.
16 years ago
Thinks sachin;

Now it seen be clear
Again thinks for your time and patience
Dear sachin

I still confused
Now let me see you other situation that show you that this code is not only a simple overriding problem.

1- remove r from the thread constructor

the output still be "Thread"
2- remove the run method

and the output is "Runnable"
3- Now remove the parameter and the run

the output is nothing

so if that is simply a problem of overriding I think that the 2 and 3 must be the same which is not.
Correct me if I am wrong.