Seam DataModelSelection Null problem!
Hi
If you want to use DataModel with DataModelSelection together and getting null object, You should try to change scope to Session in your action class and every thing will be OK.
@Scope(Session)
public class ….
..@DataModel
private List<Object> objects..
@DataModelSelection
private Object object
..
..
bye
RichFaces | Live Demo
Hi
In this post I want to show you one of the best UI components package for JSF. The reason that I like this package is RAD(Rapid Application Development), when you want to deploy your project as fast as you can and you have no time for creating and designing UI components (such as DataGrid,DataTable,AJAX Support,…) This package will help you .
Demo of Components :
Developer Documents :
bye
JBoss Seam Debug Page.
Hi
If you are working on project that it use seam framework, This page can help you for better understanding of your project.
Step 1 :
You should put the Jboss-seam-debug.jar library in your WEB-INF/lib directory.
Step 2:
in Component.xml file you should write this code :
<core:init debug=“true”/>
Step 3:
When your application deployed,Open your browser and enter this url:
http://localhost:8080/<your application>/debug.seam
[screen shot]
Bye
I was in Thailand.
Hi
Sorry for those days that I was not here and sending no post on my blog. I had a terrible journey to Thailand , This country is perfect for someone who wants to have a sex with drink and drug every day!
God thanks I’m back.
bye
Run Seam projects in eclipse on Tomcat
Hi
I found one of the best solution for creating and running seam projects in eclipse on Tomcat so quickly :
http://techieexchange.wordpress.com/2007/11/11/rad-seam-development-with-eclipse-and-tomcat-step-by-step-tutorial-screencast/
bye
Seam injection in threads.
Hi
In seam, when you want to inject some components such as EntityManager,POJOs,or … to threads, Probably you will see all your objects is NULL.
The reason of this scenario is SeamApplicationContext missing in your threads, OK what is the solution?
You should use Lifecycle.begin() and Lifecycle.end() methods before and after your codes :
….
…….
Lifecycle.begin()
EntityManager em = (EntityManager)Component.getInstance(“em”,true);
Lifecycle.End()
……
…
So when you write your codes between these two methods, You will be in the SeamApplicationContext and you will not see any exceptions for EntityManager too like :
EntityManager is closed
no Transaction is in progress
….
..
bye.
@In attribute requires non-null value: sampleAction.sample
Hi
If you are new to Seam framework and you get this stupid exception,You should read Seam annotation reference as well. OK this is my code :
[Sample class] …
…
@Name(“sample”)
public Class Sample ..
..
..
and next class is :
@Name(“sampleAction”)
public Class SampleAction …
….
..
@In
private Sample samplepublic void someMethod(){
System.out.println(“I love Seam ….”);
}…
….
And probably you get this exception :
javax.faces.FacesException: #{sampleAction.sample}: org.jboss.seam.
RequiredException: @In attribute requires non-null value: sampleAction.sample
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
javax.faces.component.UICommand.broadcast(UICommand.java:387)
org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
OK, You should modify @In annotation :
@In(create=true)
enjoy it …
bye
Google Chrome OS or Google life?
Hi
I think, you saw google news about its new product of this company. Yes It is google chrome OS.
Me and everyone use google tools in these days too much and Definitely, we are so happy.
OK, I want to look at these thing at a glance:
Google [search engine]
Gmail
Chrome Browser
Documents
Youtube
Translator
Analyzer
Maps
Google Earth
or ….
And Finally Google Chrome OS
I think the google has mainly role in our life and it is a big warning to all of us, because now the google instead you decides for your life. Be carefull.
probably in next years, Google creates your Google Vote or Google Jail or Google Life or Google …
So now we enjoy the Google Chrome OS.
bye
YARFRAW. RSS tools
Hi
If you want to work with some rss or rdf or atom protocol, You can use YARFRAW library. This library help you so easily to use rss in your works.
This is the snapshot of architecture :
bye
Ubuntu 9.10 screen flickering
OK.
I have a laptop with nVidia graphic card(driver 185) in Ubuntu 9.10. the Big problem that I saw is after several minute my screen starts flickering.
The only solution that I found is this :
run Terminal and type this code:
sudo su [and enter your password]
and type this code :
dpkg-reconfigure nvidia-185-kernel-source
bye
run Terminal and type this code:
sudo su [and enter your password]
