Hi all,
I have a newbie question in JSF, and particular in Richfaces.
I need my JSF application to have two pages showing the same tree, meaning that:
The two trees should be showing the same data
If I change something in one of the trees (i.e. open/close/add a node) the second tree should be automatically updated.
Is this possible...
I have a simple class Role:
@Entity
@Table (name = "ROLE")
public class Role implements Serializable {
@Id
@GeneratedValue
private Integer id;
@Column
private String roleName;
public Role () { }
public Role (String roleName) {
this.roleName = roleName;
}
public void setId (Integer id) {
...
I know that there are many different architectures exist. In this question I consider 3-tiers architecture (presentation-services (busyness logic)-data access layer (DAOs). And I want to concentrate on how presentation tier works with services tier.
The problem I met is standard. I have stateless services layer, and I think it should be...
I am having some trouble getting Spring and Tomcat up and running and recognized by eclipse. I have looked around on google with no luck. Specifically, I am having trouble having eclipse recognize tomcat (I am running linux, and when I browse to the relevant jar file in the runtime environments configuration, eclipse wont allow me to s...
We currently have a Stateful bean that is injected into a Servlet. The problem is that sometimes we get a Caused by: javax.ejb.ConcurrentAccessException: SessionBean is executing another request. [session-key: 7d90c02200a81f-752fe1cd-1] when executing a method on the stateful bean.
public class NewServlet extends HttpServlet {
@EJ...
I'm trying to learn Struts, Spring and Hibernate, I was just wondering if anyone knows any good sources or some examples that makes use of all the technologies (like a small web application).
Thanks.
...
I have an application in which I need to validate that the request to the present page has come from a particular page. I need to display the page from which the request is supposed to come if the request has not come from that page.
What could be the possible approaches?
I was thinking of a encrypted value which could be present in both...
In blogs i have read that JSF 2.0 is inlcuding Facelets. So i only included JSF-api.jar and JSF-impl.jar to my Java build path.
But if i try to use Facelet tags, they don't work. Do i need to configure Facelets anywhere or must i include any further libraries?
THX.
...
How is that instance pooling with EJBs can improve performance? Wouldn't you be able to accomplish the same performance just with threads like a java servlet?
Or perhaps instance pooling with EJBs happens for another reason?
...
I want users to be able to log into my website with OpenID, but I don't know which library to use. I know which ones are out there, but I would like to know which one would be best. I'm running JOnAS, but no web framework (no Spring, Struts, GWT, etc.). (Please don't chastise me for not using a web framework. I have my reasons.) For...
I google for OPML parser. i got informa.jar but it not working for me.
My requirement is to check the given OPML link is Recently modified date. So i want to parse the xml content to compare the last modified date field with current date.
i wrote KXML opml parser for mobile application(J2ME). but i want any open source jar or source ...
My goal is to make web applications!
I finished reading the Books "Headfirst - Java" and "Headfirst - Servlets and JSP".
Because this topic (web applications) is so big and complicated, I would like to ask what I should learn next. I feel overstrained when I read catchwords like Java EE, EJB, JSF, JPA, Glassfish ... but I won't give up...
Hello,
I have a rich:dataTable and a rich:dataScroller. When I click on the datascroller, my dataTable does not refresh automatically to show the correct page. If, however, I press the refresh button the dataTable shows the correct page.
What am I doing wrong?
Here is my code:
<rich:dataTable id="applicantsTable"
binding="#{applicant...
Java EE 6 offers (at least) two Dependency Injection mechanisms: DI annoations from Java EE 5 like @EJB, @PersistenceContext, @Resource ... and the new JSR 330. Can I replace the "old" DI annotations with the more general JSR 330 annotations?
Are there any benefits or drawbacks of the one or other approach? Which one would you use and w...
Which implementations of the Servlet 3.0 specification are available (or at least in beta) besides GlassFish?
...
How can I tell Maven 2 to load the Servlet 3.0 API?
I tried:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.0</version>
<scope>provided</scope>
</dependency>
I use http://repository.jboss.com/maven2/ but what repository would be correct?
Addendum:
It works with a depend...
I am having a EJB 3.0 Session Bean which implements the Local interface, and I have a pure POJO also.
How can I inject a Session Bean into the POJO rather than manual JNDI look up in to POJO through spring(using @Resource and SpringBeanAutowiringInterceptor)?.
Is there any way to do that?
...
Hi, I want to learn Java EE but I don't know where to start. Someone told me that it is better to start with APIs. Please help.
...
I would like to set the context-root of the web application part of my enterprise application (bundled as an EAR). I added an "application.xml" file which looks like this:
<application>
<module>
<web>
<web-uri>SearchResulter-war.war</web-uri>
<context-root>/searcharoo</context-root>
</web>
...
Hi all,
I am adding some more depth to the application by supporting multiple methods for notification. Currently, if there is an exception on the site or an event occurs on the site, an email will be sent out to those users, but I want that to be more generic. I want the users to be able to prioritize their notification methods. If ...