I created the table using workbench, I can't see anything that denotes that the value should be automatically created, what should I be looking for? With regards to specifying the current time the...
Type: Posts; User: tarkal
I created the table using workbench, I can't see anything that denotes that the value should be automatically created, what should I be looking for? With regards to specifying the current time the...
I have a TIMESTAMP Columns in my MySQL database. This is the relevant section of the entity class:
@Basic(optional = false)
@NotNull
@Column(name = "created_date")...
Ok first off thanks to Mikko for leading me to the answer. I just wanted to post an answer that might be directly helpful to anybody else that might be in the position I was in. Also this is based on...
Just in case I have confused you regarding the database tables here is the EER:
1196
I have a pretty standard scenario whereby I have a table of Users with user_id as the PK and a table of Roles with role_id as the PK. The two tables are related via a many to many relationship (ie....
After 3 hours I have finally found the answer... If you have ever read "the hitchhiker's guide to the galaxy" you'll know what I mean when I say that the answer is on par with "THE ANSWER". In...
Brace yourself, its pretty hard core...
<h:commandButton value="admintest" action="admintest" />
<h:commandButton value="admin" action="admin" />
I have been experimenting with other...
This is my problem:
This works:
<navigation-case>
<from-outcome>admintest</from-outcome>
<to-view-id>/pages/dashboard.xhtml</to-view-id>
...
Yes sorry...
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"...
BTW this is my web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"...
Can somebody tell me if there is a requirement for JSF pages to be in a directory called "pages"? I have created an application and when all the pages are either in the root or in a file called...
Just to clarify I was trying to extract string from my resource bundle and insert it into the managed bean directly. The solution that I came up with is probably not the most elegant and any...
For anybody else interested the problem was from the web.xml faces config. This is what it should have looked like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app...
Im having a real problem configuring JSF facelets to work with Spring Security. At the moment my custom login page just seems to resolve back to itself and doesn't actually perform any authentication...
I've got a ValidationMessages.properties file that I need to reference a value from a managed bean.
This is the mb:
public class ButtonBean implements Serializable {
public void...
Amazing I found it thanks.
Yer I have opted for Netbeans. I know the Eclipse guys will scorn but I really quite like it. Netbeans does have a load of tutorials packaged with it but to my knowlegde it doesn't have anything like...
I've just finnished reading the 'JavaEE 6 Tutorial Guide' and going through the Netbean IDE e-commerce tutorial to get to grips with the basics of JavaEE 6. Before I start building some sample...
Sorry I have just read back the original post, it was late!!! I tried debuging the code or about 4 hours last night with no success other than working out that I could only write a maximum of 54...
Has anybody else ever had a problem like this? I've searched high and low but can't find an answer...
Interestingly I have noticed that its the number of characters that seems to be causing the truncation. The command only seems to be able to handle 27 characters. Is this a parameter that is set...
Yes they are all set to:
Type: VARCHAR
Collation: utf8_general
and I set the to a length of 60.
I tried changing one to INT and then using Integer.parseInt(fields[4]) but that didn't seem to...
I am trying to pull a .csv file from the web that contains some stock data. I am then trying to write this data to a MySql database. Half of the data is being input into the preparedStatement, but I...
Thanks Norm, So it is effectively being used as an 'escape'.
I'm really sorry, this question is really basic and I expect its already been answered but when I try searching for anything to do with 'return;' I invariably get thousands of results.
Obviousley...