Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-21 Thread phamvubinh
It works, but I still got a problem. If I store a large character object (about 1 A4 page data), this object will be set by null so I can not see it in my web application. I don't know why? When I check my database, the data_length of the CLOB property is only 4000. Please help me... Thanks.

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-21 Thread phamvubinh
Have you ever tried this before? I followed your advice but I got a mistake. [INFO] [ERROR] FATAL ERROR [INFO]

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-20 Thread phamvubinh
No, I didn't modify my database. Here is I model class: === /** * @return the moTa */ @Lob @Basic(fetch = FetchType.LAZY) @Column(name = "MO_TA") public String getMoTa() { return moTa; } /** * @param m

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-20 Thread phamvubinh
I'm using appfuse with JSF framework and I don't have the applicationContext-hibernate.xml file in my web application. Can you tell me where else I can set this. Allan Ang wrote: > > Can you go to applicationContext-hibernate.xml and set the > hibernate.jdbc.batch_size to '0' > > ".. > > 0 >

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread phamvubinh
this.cachedXml = cachedXml; > } > > Note that I'm using FetchType.LAZY because quering large items like this > using Hibernate will really slow down the system and eat away at memory > otherwise. > > I hope it helps, > Jason > > >

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread phamvubinh
When I get the model from my database, how can I parse the property which has CLOB datatype into String datatype in Java. Allan Ang wrote: > > well you could set the property in your model object as String and set the > datatype in Oracle as CLOB. That will work. > > > -- View this messag

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread phamvubinh
I tried your advice before. I set the property as String and the hibernate generated this property as nvarchar into database. Then I modify this property into CLOB datatype but the data_length of this property just is 4000. I don't how to persist my data over 4000 characters. Allan Ang wrote: >

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread phamvubinh
There are many clob type in java: - java.sql.Clob. - oracle.sql.Clob. - com.mysql.jdbc.Clob. - org.hibernate.type.ClobType. Which one can I use. I have tried some types of Clob, but the data_length in database just is 4000. It's not enough for my data. Allan Ang wrote: > > CLOB > --

[appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-18 Thread phamvubinh
Hi all, I'm using Appfuse with JSF framework. Now I want to insert a long string (about 10.000 characters) into Oracle database. Can you tell me, which datatype do I can use to persist that string. Thanks, Binh Pham. -- View this message in context: http://www.nabble.com/How-to-insert-a-large-

Re: [appfuse-user] Problem with date time...!!

2007-11-06 Thread phamvubinh
I used tag of Tomahawk library to enter date. Is it a reason?? mraible wrote: > > If you Shift+Refresh your browser, does it have the correct value? > Maybe the page is cached. If that doesn't work, does restarting your > server fix the problem? > > Matt > > O

Re: [appfuse-user] Problem with date time...!!

2007-11-02 Thread phamvubinh
efresh your browser, does it have the correct value? > Maybe the page is cached. If that doesn't work, does restarting your > server fix the problem? > > Matt > > On 11/2/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> Hi matt, >> >> I che

Re: [appfuse-user] Problem with date time...!!

2007-11-02 Thread phamvubinh
Hi matt, I checked my database and the value is correct. Just the datatable in objects.html displays an in correct value. mraible wrote: > > I would try debugging your application and seeing if the value you > expect is going into the database. > > Matt > > On 11/2/0

[appfuse-user] Problem with date time...!!

2007-11-02 Thread phamvubinh
Hi all, I'm using Appfuse with JSF framework. I have a problem with date time. When I enter date in objectForm.html page, ex. 09-09-2007, but in objects.html page(in datatable), the date is 08-09-2007. When I go to objectForm.html again, it's 09-09-2007. I don't know why..?? Any suggestion for m

[appfuse-user] Menu disappear in IE 6 ...!!

2007-10-30 Thread phamvubinh
I'm using appfuse with JSF framework. In IE 6, when I enter a long string, so the table is too large, it break the layout (horizontal) and the menu disappear. Everything seems ok with FireFox, IE 7 but not with IE 6. Any suggestion for me?? Thanks in advanced, Binh Pham. -- View this message

[appfuse-user] how to prevent user from accessing link directly as user role by enter link address??

2007-10-05 Thread phamvubinh
Hi all, I have some private .xhtml pages. And I don't want they can be accessed directly as user role by enter link address. Just admin can access them only. Any suggestion for me? Thanks in advance. Binh Pham -- View this message in context: http://www.nabble.com/how-to-prevent-user-from-acc

[appfuse-user] How to add popup calendar in Appfuse (JSF framework)

2007-10-01 Thread phamvubinh
Hi all, Now I want to add a popup calendar to my project for end-user enter day, month, year by clicking on popup calendar. Can you help me?? Thanks, Binh Pham. -- View this message in context: http://www.nabble.com/How-to-add-popup-calendar-in-Appfuse-%28JSF-framework%29-tf4552727s2369.html#

Re: [appfuse-user] Ask about the validator of Sun's RI.

2007-10-01 Thread phamvubinh
5AA59A815B6512DAB107A3B2B652D7A3EC97BF2.aspx > > Matt > > On 10/1/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> I'm using JSF appfuse with Sun's RI. I want to validate some fields >> (email, >> number, ...). Can you tell

[appfuse-user] Ask about the validator of Sun's RI.

2007-10-01 Thread phamvubinh
Hi all, I'm using JSF appfuse with Sun's RI. I want to validate some fields (email, number, ...). Can you tell me how to use validator of Sun's RI. Thanks in avanced. Binh Pham -- View this message in context: http://www.nabble.com/Ask-about-the-validator-of-Sun%27s-RI.-tf4547320s2369.html#a

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-24 Thread phamvubinh
to follow JavaBeans conventions, you shouldn't have an > underscore in your method names. > > Matt > > On 9/24/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> The identified property is "id_phuong", so the getter method is >> getId_phuong(). but

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-24 Thread phamvubinh
erscore in your method names. > > Matt > > On 9/24/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> The identified property is "id_phuong", so the getter method is >> getId_phuong(). but the xhtml has "id"... >> Maybe that's a bug. >

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-23 Thread phamvubinh
ml should have idPhuong. If it doesn't, > that's a bug. You'll need to enter it in JIRA if you want to see it > fixed in the next release. > > Thanks, > > Matt > > On 9/23/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> I don't know. Th

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-23 Thread phamvubinh
your @Id. > > Matt > > On 9/23/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> I found out the solution. Because of ID name of my pojo is different from >> the >> ID name which generated by appfuse. >> >> >> phamvubinh wrote: >> >

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-23 Thread phamvubinh
I found out the solution. Because of ID name of my pojo is different from the ID name which generated by appfuse. phamvubinh wrote: > > If I use 2.0-rc1 version, I can edit my record via browser. But I can not > do that with 2.0 final version. > If I have just only one ID link i

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-23 Thread phamvubinh
t out the highlightTableRows() JavaScript function at the > bottom of your page - it could be causing the id not to get sent. > > Matt > > On 9/21/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> Im using JSF basic archetype. Now I have a pr

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-22 Thread phamvubinh
oblem...? Thanks Binh Pham phamvubinh wrote: > > Thanks, Matt. It's ok now :) > > > > mraible wrote: >> >> Do you have more than one link in the row in your table? If so, you >> might comment out the highlightTableRows() JavaScript function at the &g

Re: [appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-21 Thread phamvubinh
Thanks, Matt. It's ok now :) mraible wrote: > > Do you have more than one link in the row in your table? If so, you > might comment out the highlightTableRows() JavaScript function at the > bottom of your page - it could be causing the id not to get sent. > > Matt >

[appfuse-user] Can not edit record via browser (JSF basic archetype)

2007-09-21 Thread phamvubinh
Hi all, Im using JSF basic archetype. Now I have a problem: I can not edit records. When I click on a link of a record Person, the page personForm.xhtml is display, but all the textfields are empty. And if I enterd some new infor, then saved, appfuse made a new record, not edit the old one. I tri

Re: [appfuse-user] Have problem with autowire

2007-09-20 Thread phamvubinh
I found out the reason but can not solve it. :(( I make a fool of myself with JPA annotation in my pojos java files. I don't know how to use JPA annotation to define the relationships between my pojos... phamvubinh wrote: > > Thanks Matt, that problem was fixed. But I got anoth

Re: [appfuse-user] Have problem with autowire

2007-09-20 Thread phamvubinh
I found out the reason but can not solve it. :(( I make a fool of myself with JPA annotation in my pojos java files. I don't know how to use JPA annotation to define the relationships between my pojos... phamvubinh wrote: > > Hi all, > > I'm using Appfuse with JSF

Re: [appfuse-user] Have problem with autowire

2007-09-20 Thread phamvubinh
reMode(AUTOWIRE_BY_NAME); > return super.getConfigLocations(); > } > > Matt > > On 9/19/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> I'm using Appfuse with JSF framework and I got an error (below). I think >> I >>

[appfuse-user] Have problem with autowire

2007-09-19 Thread phamvubinh
Hi all, I'm using Appfuse with JSF framework and I got an error (below). I think I should config some think about autowire, autowire-candidate, ... in my applicationContext.xml file to figure it out but I don't know how. Can you give me some advices? =

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
r being hand coded. > Either way this code contains errors that need fixing. The stuff that is > breaking is not in AppFuse itself - it is part of the code that has been > added - so climb on in, you won't be affecting the structure of AppFuse. > > Mike > > On 9/19/07, pham

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
ong object. > 2) In action class com.giavaviet.app.webapp.action.PhuongList you are > trying > to sort a list of Phuong using the column 'id_phuong'. Phuong objects have > no such attribute. > 3) Your database sample data does not contain a Quan object with id -2. > > Mike. > > On 9/

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
Any suggestion for me. Thanks very much Binh Pham Mike Horwitz wrote: > > Cascading of delete is not supported in the JPA spec, so you will need to > use the @OnDelete Hibernate extension to do it: http://tinyurl.com/22n4wv > > Mike &g

Re: [appfuse-user] Appfuse Database Error Message Handling

2007-09-19 Thread phamvubinh
nd return "error" (or something > like that) when an exception is thrown. Then in faces-config.xml, map > error to a page that displays the error. > > Matt > > On 9/18/07, phamvubinh <[EMAIL PROTECTED]> wrote: >> >> So, do you have any suggestion for

Re: [appfuse-user] Appfuse Database Error Message Handling

2007-09-18 Thread phamvubinh
So, do you have any suggestion for me. I spent one day but can not solve it. Thanks, Binh Pham mraible wrote: > > Unfortunately, JSF doesn't have a concept of global exceptions - at > least not one that I know of. > > Matt > > On 9/18/07, phamvubinh <[EMAIL PRO

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-18 Thread phamvubinh
I have the same error. Any suggestion for this mistake? Donleyp, have you found the solution? Thanks Binh Pham donleyp wrote: > > I am getting the following error when I try to delete a user: > "java.sql.SQLException: ORA-02292: integrity constraint > (FTAP_DEMO.FK1D0C220DF503D155) violated -

Re: [appfuse-user] Appfuse Database Error Message Handling

2007-09-18 Thread phamvubinh
Hi, I'm using JSF framwork and got the same error. Can you tell me the way to config my app. Thanks in advance. Binh Pham Matt Raible-3 wrote: > > You should be able to use the "global-exceptions" concept in Struts to > configure your app to render a particular JSP when this exception > happ

Re: [appfuse-user] Error executing database operation: CLEAN_INSERT

2007-09-05 Thread phamvubinh
Hi David, I have the same problem as yours. What error did you find in your sample-data.xml file? My project can be built correctly with MySQL database but not Oracle database , so I don't think the sample-data.xml has a problem... Binh Pham Djohannot wrote: > > I found the origin of the pro