Search:

Type: Posts; User: tarkal

Page 1 of 3 1 2 3

Search: Search took 0.93 seconds.

  1. Replies
    2
    Views
    1,599

    Re: JPA TIMESTAMP (MySQL)

    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...
  2. Replies
    2
    Views
    1,599

    JPA TIMESTAMP (MySQL)

    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")...
  3. Replies
    2
    Views
    1,259

    Re: JPA many to many

    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...
  4. Replies
    2
    Views
    1,259

    Re: JPA many to many

    Just in case I have confused you regarding the database tables here is the EER:

    1196
  5. Replies
    2
    Views
    1,259

    JPA many to many

    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....
  6. Replies
    9
    Views
    712

    Re: JSF directory structur

    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...
  7. Replies
    9
    Views
    712

    Re: JSF directory structur

    Brace yourself, its pretty hard core...



    <h:commandButton value="admintest" action="admintest" />
    <h:commandButton value="admin" action="admin" />


    I have been experimenting with other...
  8. Replies
    9
    Views
    712

    Re: JSF directory structur

    This is my problem:

    This works:


    <navigation-case>
    <from-outcome>admintest</from-outcome>
    <to-view-id>/pages/dashboard.xhtml</to-view-id>
    ...
  9. Replies
    9
    Views
    712

    Re: JSF directory structur

    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"...
  10. Replies
    9
    Views
    712

    Re: JSF directory structur

    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"...
  11. Replies
    9
    Views
    712

    JSF directory structur

    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...
  12. Re: Referencing values from ValidationMessages.properties

    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...
  13. Re: Secure JSF Facelets application with Spring Security

    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...
  14. Secure JSF Facelets application with Spring Security

    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...
  15. Referencing values from ValidationMessages.properties

    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...
  16. Re: Tutorial for web application with user accounts

    Amazing I found it thanks.
  17. Re: Tutorial for web application with user accounts

    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...
  18. Tutorial for web application with user accounts

    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...
  19. Replies
    6
    Views
    414

    Re: MySQL Syntax Error

    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...
  20. Replies
    6
    Views
    414

    Re: MySQL Syntax Error

    Has anybody else ever had a problem like this? I've searched high and low but can't find an answer...
  21. Replies
    6
    Views
    414

    Re: MySQL Syntax Error

    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...
  22. Replies
    6
    Views
    414

    Re: MySQL Syntax Error

    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...
  23. Replies
    6
    Views
    414

    MySQL Syntax Error

    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...
  24. Thread: return;

    by tarkal
    Replies
    3
    Views
    333

    Re: return;

    Thanks Norm, So it is effectively being used as an 'escape'.
  25. Thread: return;

    by tarkal
    Replies
    3
    Views
    333

    return;

    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...
Results 1 to 25 of 63
Page 1 of 3 1 2 3