YuenLian Wu

Ranch Hand
+ Follow
since Nov 16, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by YuenLian Wu

Hi All,

I have an Object Model Design question and would like to brainstorm with you guys.

Users can View/Add/Delete a list of Security Instrument(with unique key) from GUI. I would like to construct an Object Model so that it will perform a diff action between Retrieved List and Modified List of Instrument Objects once user hit the save button from GUI, and the Model should return how many records that I should delete/insert or Do Nothing. For example, the list might contain Google, CITI and Microsoft originally, and then the user modified the list so that CITI was removed and GE was added.
What's the best way to implement such Data Model ? Should I override the Comparable Object and Implement my diff logc in there ?

Please let me know you thoughts, thanks.


Cheers,


Transistor
So under what kind of circumstances should I should Comparable Object?
12 years ago
Hi All,

I have an Object Model Design question and would like to brainstorm with you guys.

Users can View/Add/Delete a list of Security Instrument(with unique key) from GUI. I would like to construct an Object Model so that it will perform a diff action between Retrieved List and Modified List of Instrument Objects once user hit the save button from GUI, and the Model should return how many records that I should delete/insert or Do Nothing. For example, the list might contain Google, CITI and Microsoft originally, and then the user modified the list so that CITI was removed and GE was added.
What's the best way to implement such Data Model ? Should I override the Comparable Object and Implement my diff logc in there ?

Please let me know you thoughts, thanks.


Cheers,


Transistor
12 years ago
Hi All,

I am not too familiar with DOM API. Currently I have the following XML File,






And My Java Code to parse it will be:






My Code seems not too efficient as it's kind of hard code.
My ideal wish will be getting values dynamically, please teach me how


Myriads of Thanks


Transistor

[ January 11, 2008: Message edited by: YuenLian Wu ]
[ January 11, 2008: Message edited by: YuenLian Wu ]
13 years ago
Hi All,

I am not too familiar with DOM API. Currently I have the following XML File,



And My Java Code to parse it will be:



My Code seems not too efficient as it's kind of hard code.
My ideal wish will be getting values dynamically, please teach me how


Myriads of Thanks


Transistor

[ January 11, 2008: Message edited by: YuenLian Wu ]

[ January 11, 2008: Message edited by: YuenLian Wu ]
[ January 11, 2008: Message edited by: YuenLian Wu ]
When I was trying to deploy an EJB project to WAS 6.0 server, the project was started without any exception message, but its listener ports were stopped automatically.

I got following logs:

[1/10/07 10:25:07:244 GMT+08:00] 0000000a ManagerAdmin I TRAS0017I: The startup trace state is *=info.
[1/10/07 10:25:09:073 GMT+08:00] 0000000a AdminInitiali A ADMN0015I: The administration service is initialized.
[1/10/07 10:25:10:519 GMT+08:00] 0000000a SystemOut O PLGC0057I: Plug-in configuration service is started successfully.
[1/10/07 10:25:10:596 GMT+08:00] 0000000a PMIImpl A PMON1001I: PMI is enabled
[1/10/07 10:25:11:893 GMT+08:00] 0000000a SibMessage I [:] CWSIU0000I: Release: WAS602.SIB Level: o0613.11
[1/10/07 10:25:11:918 GMT+08:00] 0000000a SecurityDM I SECJ0231I: The Security component's FFDC Diagnostic Module com.ibm.ws.security.c
ore.SecurityDM registered successfully: true.
[1/10/07 10:25:11:985 GMT+08:00] 0000000a AuditServiceI A SECJ6004I: Security Auditing is disabled.
:1652
[1/10/07 18:44:56:473 GMT+08:00] 0000000a WebContainer A SRVE0239I: Extension Factory [class com.ibm.ws.jsf.extprocessor.JSFExtensionFact
ory] was registered successfully.
[1/10/07 18:44:56:477 GMT+08:00] 0000000a WebContainer A SRVE0240I: Extension Factory [class com.ibm.ws.jsf.extprocessor.JSFExtensionFact
ory] has been associated with patterns [""].
[1/10/07 18:44:56:577 GMT+08:00] 0000000a ApplicationMg A WSVR0200I: Starting application: UTYAPP_App
[1/10/07 18:44:57:056 GMT+08:00] 0000000a EJBContainerI I WSVR0207I: Preparing to start EJB jar: UOETRYServiceEJB.jar
[1/10/07 18:44:57:094 GMT+08:00] 0000000a EJBContainerI I WSVR0037I: Starting EJB jar: UOETRYServiceEJB.jar
[1/10/07 18:44:57:725 GMT+08:00] 0000000a ConnectionFac I J2CA0107I: Component-managed authentication alias not specified for connection f
actory or datasource JMS$UTRY App Connection Factory.
[1/10/07 18:44:57:971 GMT+08:00] 0000000a MDBListenerIm I WMSG0043I: MDB Listener UTYAPP_UOEWEB_ListenerPort stopped for JMSDestination jm
s/utyapp_from_utyweb_req_01
[1/10/07 18:44:57:986 GMT+08:00] 0000000a MDBListenerIm I WMSG0058I: Listener Port UTYAPP_UOEWEB_ListenerPort will attempt to restart in 6
0 seconds
[1/10/07 18:44:58:009 GMT+08:00] 0000000a ApplicationMg E WSVR0101W: An error occurred starting, UTYAPP_App
[1/10/07 18:44:58:013 GMT+08:00] 0000000a ApplicationMg A WSVR0217I: Stopping application: UTYAPP_App
[1/10/07 18:44:58:022 GMT+08:00] 0000000a MDBListenerIm I WMSG0043I: MDB Listener UTYAPP_UOEWEB_ListenerPort stopped for JMSDestination jm
s/utyapp_from_utyweb_req_01
[1/10/07 18:44:58:053 GMT+08:00] 0000000a EJBContainerI I WSVR0041I: Stopping EJB jar: UOETRYServiceEJB.jar
[1/10/07 18:44:58:119 GMT+08:00] 0000000a MDBListenerIm I WMSG0043I: MDB Listener UTYAPP_UOEWEB_ListenerPort stopped for JMSDestination jm
s/utyapp_from_utyweb_req_01
[1/10/07 18:44:58:123 GMT+08:00] 0000000a MDBListenerIm I WMSG0043I: MDB Listener UTYAPP_UOEWEB_ListenerPort stopped for JMSDestination jm
s/utyapp_from_utyweb_req_01
[1/10/07 18:44:58:182 GMT+08:00] 0000000a ApplicationMg A WSVR0220I: Application stopped: UTYAPP_App
[1/10/07 18:44:58:347 GMT+08:00] 0000000a TCPChannel A TCPC0001I: TCP Channel TCP_2 is listening on host * (IPv6) port 16068.
[1/10/07 18:44:58:396 GMT+08:00] 0000000a WSChannelFram A CHFW0019I: The Transport Channel Service has started chain WCInbound.
[1/10/07 18:44:58:427 GMT+08:00] 0000000a WSChannelFram A CHFW0019I: The Transport Channel Service has started chain SOAPAcceptorChain1.
[1/10/07 18:44:58:466 GMT+08:00] 0000004c SchedulerServ I SCHD0077I: The Scheduler Service is starting the Schedulers.
[1/10/07 18:44:58:544 GMT+08:00] 0000000a RMIConnectorC A ADMC0026I: The RMI Connector is available at port 16063
[1/10/07 18:44:58:563 GMT+08:00] 0000004c SchedulerServ I SCHD0078I: The Scheduler Service has completed starting the Schedulers.
[1/10/07 18:44:58:644 GMT+08:00] 00000014 WorkSpaceMana A WKSP0500I Workspace configuration consistency check is false.
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O dumping EngineParameters
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O enabled=false
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O traceResponseEnabled=true
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O traceResponseLevel=104
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O fileResponseEnabled=false
[1/10/07 18:45:01:164 GMT+08:00] 00000014 SystemOut O fileResponseLevel=108
[1/10/07 18:45:01:165 GMT+08:00] 00000014 SystemOut O mBeanResponseEnabled=false
[1/10/07 18:45:01:165 GMT+08:00] 00000014 SystemOut O mBeanResponseLevel=108


Does anyone know what is the problem? Any possible thing will make this occured? Thanks!!!
14 years ago
Hi all,

I have a HTML table that has add and delete button to add or delete the rows dynamically. Normally, one of the combo box event will trigger another combo box to it. However, when multiple rows exerted, the combo box in the other rows will always trigger the combo box in the first row, not it's own row. I beleive it's my bug, however, I don't know how to fix it. My function is provided in the following:







Thanks for helping me

Transistor

[ December 17, 2006: Message edited by: YuenLian Wu ]
[ December 17, 2006: Message edited by: YuenLian Wu ]
Hi all,

I am currently developing a web application that has a form which can let the users to add or remove records. I used JSTL for loop to render it and it's an Array String once the form was submitted to the server. So each row has different fields, and all the rows shares the same field name. So my design is to have a Bean class that stores many String Array in a single class, just like the following


String[] FixingDate;
String[] Final_Fixing_Indicator;
....
.............



However, the back end side only can parse the Object Array, but not multiple object in a BeanC Class. So I have to convert the multiple Array into Collection of Bean classes, just like the following,


for ( int i = 0; i < callFormBean.getCallableDate().length; i++ ) {

CallableScheduleDetails callDetails = new CallableScheduleDetails();
callDetails.setCallableDate(callFormBean.getCallableDate());
callDetails.setCallNoticeDate(callFormBean.getCallNoticeDate());

callList.add(callDetails);
}




where I store the Array from the request object into a formBean variable called CallableDate

This looks stupid, but do you have any better solution than this? I am looking forward to get the best approach from you !!!

Myriads of Thanks

Transistor
14 years ago
Hi,

I have the following scriptlet and I wish to convert it to JSTL.



Where trancheDetailsViewBeanis the Bean class and it stores a object called profitSharingSchemeMap. profitSharingSchemeMap is a Map that contains a list of values.

TrancheDetailsDataBean is another Bean class and it stores a string Array called profit_sharing_scheme. I tried to write the following JSTL code, but it failed. Please advise !!!

14 years ago
JSP
Hi all,

I wrote the following jsp to display data from db.



Basically I have a Bean that stores bunches of array from other form, like String[] template_cust_seg. I want to display all the array by using JSTL. It's easy if it's just a object including many single elements. However, it's a single object wrapping many arrays, so I used the above way to handle the jsp. Please give me some good practice or suggestion to improve it, thanks

Transistor
[ December 06, 2006: Message edited by: YuenLian Wu ]
14 years ago
JSP
Hi all JS experts,

I am so weak in Javascript, and I wish I can learn something from you guys from the stupid questions I asked.

Q1. I use a cooL javascript function "insertRow" to insert a new row at the end in my table. However, my table is not consistent, which means each row can be dynamic, some of the fields in the first row can be disappeared or became another type of elements. So, when I inserted a new row to the table, it follows the previous row style(number of fields, types) to insert a new row to my table, which betrayed me. I wish each new row should be insert in a way that the first row looks like, no matter how one of the row behaves. Is there any tricky way to do so ? I am freaking out !!!

Q2. I have another table has add and delete button to add or delete the rows dynamically. Normally, one of the combo box event will trigger another combo box to it. However, when multiple rows exerted, the combo box in the other rows will always trigger the combo box in the first row, not it's own row. I beleive it's my bug, however, I don't know how to fix it. My function is provided in the following:





Thanks for helping me

Transistor
my form contains a lot of elements, and I wish I can do it at once, just like java, write once, run anywhere
Hi all,

I have a combo box contains data loaded from server side. I want to duplicate this combo Element, which means I want the same content stored in the combo box and display it right next to the original one. Is there any fast way to copy an element in javascript ?


cheers

Transistor
I can't simply use the hidden tag, since the server side won't that value belong to which row in my form. Also, hidden tag can't pass in an array form into server, so that all the rows in my form won't be recognize by the processing mechanism from the server

Transistor
Hi all,

I am having problem using jsp with javascript. Actually I have a text inside the HTML TAG, like <TD height="27">1</TD>, the "1" indicating the sequence number, and I want to pass it to server without using any textfield, combo box, etc. My form is kind of dynamic , which means the next row may be 2, or 4 since user can remove any row dynamicly. How can the server side retrieve this wonderful number ?

Please help

Transistor