Harry Kyoshiro

Greenhorn
+ Follow
since Sep 15, 2004
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Harry Kyoshiro

Hi,


This is maybe dummy question, but i don't have idea how i can do this.

Basicly we can view data from database table easly using ADFand EJB-TopLink.

For example (using HR schema, employee and department table) we can drag employee datacontrol into ADF readonly table.

But what about if i want to view department name in one table ?

In short, my problem is similiar like join employee and department table and show the result using ADF table.


--
Best Regards

YM : callme_harry
Blog : http://harry-christian.blogspot.com
James,


Frank Nimphius from OTN has gave me solution. He said create method in session facace that takes 2 or more argument, and then write the code to persist using UnitOfWork.

Thanks
Hi,


So far in tutorial or article i learned only cover persist to one table only.
It's easy with ADF Data Control to make a form from Data Control and persist into database if only 1 table.

But what about if in my form require to save more than 2 table.

For example i have a single page JSF form contain 3 section : company, contact person, and complaint. And 1 button to save/persist.

When user click save button, it will save into 3 table : company, contact person with company id as FK, complaint as company id and contact person id as FK.

FYI : I'm using JDev 10.1.3 and EJB/TopLink as Business Service.

Thanks in advance.
I have a problem with ADF faces table and popup.

Here is what i want :
I want an empty table with 5 column and row like this

| firstname | lastname | email | address | action |
---------------------------------------------------
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |


If the button clicked it will show popup with list of consumer. When i
click one of consumer the data automaticly show in my table above.


Now my problem is :
1. I cannot add static empty table with af:table
2. How the best technique to addressing my problem above ? Give me some example please.
I have a problem with ADF faces table and popup.

Here is what i want :
I want an empty table with 5 column and row like this

| firstname | lastname | email | address | action |
---------------------------------------------------
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |
|___________|__________|_______|_________| button |


If the button clicked it will show popup with list of consumer. When i
click one of consumer the data automaticly show in my table above.


Now my problem is :
1. I cannot add static empty table with af:table
2. How the best technique to addressing my problem above ? Give me some example please.
16 years ago
@above

Thank for your reply. I think this is the only solution.
Hi,


I have a question with TopLink.

Here is my story step by step,
1. I have existing database so i just used "Create Java Objects from Table Wizard" in wizard i do the following
-. I created top link map named tlMap1 using my connection
-. I select 3 table : employee, department, bank and click finish
-. TopLink and POJO generated

2. I edit TopLink to add query findEmployeeById, findDepartmentById, findBankById

3. I generate session beans

4. I create data control from session beans

5. So far its okay, but than i realize in my database i FORGOT to define FOREIGN KEY relation between department and employee table.

Thats my story and my question is how can we fix that problem with minimal effort since i already had pojo (see step 1), custom query in toplink map (see step 2), session beans (see step 3) and data control (step 4).

FYI : I using JDev 10.1.3.3
Hay,..


I'm now build web application.
I'm confused with this case :

I have 2 form, 1st form contain 1 field name and 1
button next. i filled name with my name harry and i
click next. it will save INTO MEMORY, NOT DATABASE.
Now it continue to 2nd form. 2nd form will show
"welcome harry" & contain dropdown button contain list
of book & 2 button finish and add to basket. when i
select book from dropdown button and i click add to
basket, it will return the same form but below the
form appear the book i've selected etc. But remember
IT NOT SAVE INTO DATABASE. When i click finish NOW ITS
SAVE TO DATABASE.


My question is how we can save into memory ?
i used tomcat 4.1.29 as container and velocity as
presentation layer and jdk1.5.0

Thanks before
20 years ago
Hay...


I'm using package com.opensymphony to upload file.
Its work to upload file, but i wonder how i can delete file ?

Ex : i have a simple form
Name : Harry
browse file to upload : test.txt

delete


Name : John
browse file to upload : sample.doc

delete



So.. if i delete Harry, i want delete just Harry's file, not john file.
i put the upload file in C:/temp/upload

i've tried to write code like this
String dirUpload = "C:/temp:upload";
File file = new File(getServletContext.getRealPath(dirUpload));
file.delete();


For your information, i'm using webwork 2.0, jakarta-tomcat4.1.29

Somebody help me please
Thanks
20 years ago
Dear,,..


I'm want to upload file into local directory system ex C:/upload
but i don't know how ?

Anyone help me please...
for reference I'm using webwork, velocity as interface & jakarta-tomcat 4.1.29


Thanks before...
20 years ago