Fintan Conway

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

Recent posts by Fintan Conway

Hi,

Just wondering if I could replace all my Javascript for AJAX with HTMX?

Does HTMX have other applications besides replacing AJAX javascript code?

Thanks,

Fintan
1 year ago
Hi,

How can a code geek with no artistic flair be made a Creative Programmer? (Thinking of myself here   )

Thanks,

Fintan
2 years ago
One thing I do is look for youtube videos demoing the functionality that I am looking for.

It is not ideal but has helped me reject some libraries/tools that I would have downloaded and experimented with, just to find that they did not do the job.  Mainly I find that the video helps me filter out stuff that does not do what I want.  However, if the video shows that the software has/does what I need then I have a mini-tutorial to get me started!

Downside - not every library has a video on youtube.
Code Review - Praise in coderanch, Criticise in private
OpenJPA command line enhancer

gives the following error:

It seems to find my class name from persistence.xml.

I have tried running the command from the directory where the java file resides (hence the dot in the classpath) and from the package root, but it refuses to find my class

What am I missing here?

Many thanks,

Fintan
Hi,

I have tried using ordinary Tomcat server with JSF 2.3 (I am using Eclipse).  Unfortunately, I am having as much problems getting JSF to work on Eclipse with Tomcat.  I have tried to get CDI working in Eclipse but to avall.  I have tried the options set out in this link Installing CDI in Tomcat, but cannot get CDI working.

If I stick to using TomEE and openJPA I am getting the following exception:

javax.el.ELException: <openjpa-3.1.2-r66d2a72 fatal user error> org.apache.openjpa.persistence.ArgumentException: No metadata was found for type "class com.waycontech.jsf.add.persistence.Student$$OwbNormalScopeProxy0". The class does not appear in the list of persistent types: [com.waycontech.jsf.add.persistence.Student].



It seems there is an inner class added to my Entity class which openJPA tries to persist instead of the class itself???

If I try to use Tomcat, I am having a problem using JSF.
If I try to use TomEE, I am having a problem with openJPA.

Any help would be appreciated,

Fintan
4 years ago
Hello,

I have a simple JSF 2.3 application and I am trying to use JPA to persist my data to the database.

I am using TomEE 8.0.6.

I am not using Spring.  I am not using EJB.

Unfortunately, I am getting a "Transaction required" exception when I try to persist data to the database



My configuration files
/src/META-INF/persistence.xml


/WebContent/WEB-INF/resources.xml


My Java files




My JSF page
/WebContent/addStudentForm.xhtml


When I call studentController.addStudent(student) the error gets thrown on the line entityManager.persist(student);

I know the DB connection is working because the following page calls studentController.loadStudents() and displays a list of the students.

/WebContent/addStudentList.xhtml


Any ideas on how to get the transactions working?

Many thanks
Hi,

I am a jQuery newbie, and am trying the example for popup from the site JQuery demo popup.

Here is my complete code :


but the popup text appears on the page, and nothing happens when I click on the link.

Am I missing a css file or a javascript file? Is there something even more basic that I am missing?

I am not even sure that I need the jquery-ui.css file.

Thanks for your help,

Fintan

Stefan Evans wrote:
Ok... fine...: go look at include directive vs include tag


Thanks for this.

Where does the RequestDispatcher fit into this scenario?

Can it be replaced by <@ include "header.jsp">? or by <jsp:include "header.jsp" />?

Or is it a different beast altogether?

Thanks again,

Fintan
14 years ago
JSP
Hi,

Simple question (hopefully). Is there a difference between using the include directive and RequestDispatcher.include().

E.g.

vs


Thanks
14 years ago
JSP

Christophe Verré wrote:This is not a JSP problem that you have here, but an Eclipse problem. Make sure your web application is configured to use your class files. I'm moving your thread to the Eclipse forum.



Hi,

How do I do the above?

Many thanks
I have been to https://jstl.dev.java.net/ to try and download the JSTL library. It redirects to http://java.net/projects/jstl/ which does not allow me to download the JSTL library.

Is there anywhere that I can download the JSTL library. Oracle site seems to be one big circle jerk when looking to download.

Many thanks
14 years ago
JSP

John de Michele wrote:Fintan:

Have you googled 'JMF javadoc'? I found information right away.

John.


Hi John,

I have tried this. Unfortunately there is no information on how to programmatically play an MP3 file, using either JMF or the MP3 plugin. I could find no javadocs for the mp3 plugin.

Could you post links to where you found sample code / javadocs for coding to play MP3 files please?

Many thanks,

Fintan
15 years ago

Wouter Oet wrote:Have you tried the JMF MP3 plugin?


Hi Wouter,

I have downloaded this and installed it. However I cannot find any documentation on how to use it within my code. Do you have any links/suggestions on how to code using this mp3plugin.jar?

Many thanks
15 years ago