Help on ArrayList of Objects

2212 byte By virkofa at 2007-11-27 1:48:50
Hello everyone, I am doing a project for university and I抦 having troubles with a method. I try to explain what it is?br>I have two classes, one is a book class and the other is a catalogue which uses an ArrayList. Each book has a String description and a borrower number. I have to do a method ...

Urgent-Plz Help

410 byte By samanila at 2007-11-27 1:50:13
Hello Every one, I'm having problem with tables that I'm not able to Add data from One table to another in a jsf page while the same coding is working fine for another page in the same poject****************************************************************************************Some one plz ...

Find out which navigation case

339 byte By Eke_nya at 2007-11-27 1:52:17
Hi folks,Assume that there are two pages; Page A and Page B. Page A has two buttons and both buttons cause the navigation handler to direct Page B depending on the case. Button 1 returns "case1" and Button 2 returns "case2". How can I find depending on what navigation case cause Page B to be ...

Deployment Server Will not Start

644 byte By rfencla at 2007-11-27 1:56:25
I don't know what happened. I was working through the tutorials and had just finished populating the database. When I tried to run the example again I get the error The Sun Java Application Server 8.2 could not start. Possible reasons include: Port Conflicts, Incorrect Server Configuration, ...

sql server and tomcat

1151 byte By gio_moria at 2007-11-27 1:58:18
my webapp reads data from a sql server 2000 db, everithing works fine, but if I try to export in tomcat it doesn't workI've set with tomcat administration datasource information, downloaded a jdbc driver from msn and copyed jars into webapp lib directory and commo lib directory , but doesn't ...

Using Java Persistence API with JSC/VWP

327 byte By Sabira at 2007-11-27 2:01:47
In Java BluePrints for Java EE 5, Sun is promoting Java Persistence API (JPA) for object persistence. However, in all the tutorials and documentation on JSC / Visual Web Pack, they are using direct JDBC without JPA. SUN, please update the tutorials and documentation to reflect your own new ...

Sun Creator Table

9236 byte By HoBaa at 2007-11-27 2:08:31
i neeed some help in the following Problem :-how can i bind data to Sun Creator table here is the problem:-i have table with 2 columns "PID" "PName" and i have 2 ArrayList pid & pname how can i put in each cell in PID column just only one value from the pid ArrayList then in the 2nd cell ...

administration console

532 byte By bemmya at 2007-11-27 2:10:39
I can open the administration console. The problem is when I want to open the link "Web applications". I receveid this message:A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught. The message from the exception: "Unable to get View for ViewDescriptor ...

Converting between two different data providers

304 byte By RonLa at 2007-11-27 2:10:46
Does anyone know how to put data from one type of data provider (ObjectListDataProvider) into another, say (TableDataProvider)? I guess my issue is that I do not understand the structure of these data providers that well. I have read some articles, but an example would help me ...

Could not compile (generics are not supported)

689 byte By Jacona at 2007-11-27 2:13:30
I've got 3 platforms in Platform Manager:JDK 1.6.0 (default)Hotspot 1.5.xHotspot 1.4.xi tried to compile a "ProgressBarSample.java" of the online-tutorial, but the studio returns me error in line:class Task extends SwingWorker<Void, Void> {@Overrideand on the out says:generics are not ...

Where does JSC store user/password for connecting to a database

467 byte By PDeva1a at 2007-11-27 2:20:28
When writing my webapp in JSC i test it on a local mysql database, but when i want to deploy to a production server, it has a different database name, user name and password.How do i modify this in the war file that java studio creator generates. I can see no file that contains any reference to ...

Change URL of web service client in code

254 byte By cmainooa at 2007-11-27 2:21:57
Hi,How do I change the URL of a web service client in code.i.e. I want to read the location of the web service from the deployment descriptor to easily switch between test and live versions.How do I do it?ThanksK

Specify aggregation generated type?

573 byte By ambrosia08a at 2007-11-27 2:22:15
Hello forum -Due to a lack of documentation on UML to code mapping (see this bug http://www.netbeans.org/issues/show_bug.cgi?id=79555), I am having to learn by trial and error. I would like to model an aggregation that is translated into a HashMap. Now, I see that I can change the UML ...

DATE field problem in JSF code

1085 byte By jsfNewbiea at 2007-11-27 2:22:44
Hi,I am a newbie on JSF and working with a JSF application development. I have a problem with a data type: DATE. Here is what had happened; I tried to write a new record to a table, in my "write" paragraphs I have the following codes:.....tabelOneDataProvider.setValue("joindate", rowKey, ...

Performing Inserts, Updates, and Deletes tutorial on Oracle database

529 byte By Rradhikaa at 2007-11-27 2:23:16
Noticed quite a few threads on this. Tried the tutorial on oracle database. The workaround was simple. To exclude the table namefirstPersonId = ...

Build question

984 byte By bwootena at 2007-11-27 2:30:01
Using NetBeans 5.5:Let's say I have created an Enterprise Application with an EJB called MyEJB.I have also created a Web Application that is a client or consumer of MyEJB. While editing the Web Application I can right click inside my java file and select Enterprise Resources->call ...

Proprietary Software

203 byte By kylema at 2007-11-27 2:33:27
I am not a legal guru. If I create software using the Sun Java Studio Enterprise am I able to sell the software? Also is there is any requirements like providing source code, license requirements?

How to move up & down in datatable?

3342 byte By nsqsmilea at 2007-11-27 2:35:07
Hi,AllI want to move focus by direction key in datatable,now,left & right be ok,up or down be not,code as folloing:<ui:table augmentTitle="false" binding="#{inputData.table1}" id="table1"style="left: 195px; top: 155px; position: absolute; width: 805px" ...

visibility problem with the path. Sun Java Studio Enterprise UML

430 byte By retelaba at 2007-11-27 2:36:50
HelloI have a little problem with Sun Java Studio Enterprise 8.1. I am doing a UML diagrams but If I make a Use case in some level diagram and after I use the Use case in a different level. It will be represented with the use case name plus its "path", for example.."From UML project". I don't ...

Problem refreshing the Tree Component icons

1079 byte By gustavodelgadoa at 2007-11-27 2:40:07
Hello, I'm using the Tree, adding the nodes dinamically, following the example: http://www.netbeans.org/kb/55/vwp-databasetree.html This Tree shows the access permissions from the users, and show a red icon on the itens without permissions and a green icon on the itens with permissions.In the ...

how pass listbox value in SessionBean1 for query parameter

861 byte By mfa786a at 2007-11-27 2:41:38
hi mastersir i use your given sample with my 10g table i fasing porblem in SessionBean1 for query parametersir how i pass value in query for where class this is my SessionBean1 query SELECT ALL MUHAMMAD.VOUDETAIL.VNO, MUHAMMAD.VOUDETAIL.ACCID, MUHAMMAD.VOUDETAIL.NARRATION, ...

How can change numeric value to date format? example value 1070131(CYYMMDD)

195 byte By yukelma at 2007-11-27 2:42:32
in the datatable can i change numeric value to date format . in database date value is like 1070131 (CYYMMDD). I want to see 31/01/07(DD/MM/YY) or 31 Jan 07 . Is it possible?Thanks,

The previous URL is displayed when i click on a link, button...

364 byte By p_georgea at 2007-11-27 2:44:25
I am using netbeans 5.5.Let's say i have a webiste.../page1.jspWhen i click on a button in page1.jsp to go to page page2.jsp. It correctly goes to page2.jsp but the url still shows .../page1.jsp. So when i reload the page, it goes back to page 1.I use "Page Navigation" to go from one page to ...

Problem Pre-populating selected part of AddRemove List

2561 byte By CraigRPetersa at 2007-11-27 2:47:26
I'm building a "CRUD"-type app. My "create" screen works fine, and includes an AddRemove List component.My "update" screen needs to pre-populate the ARL, both the items to select from and the already selected items previously saved.I've tried this 2 ways:1) Pre-populating the list pointed to ...

dropdown and datatable

127 byte By enskaa at 2007-11-27 2:48:05
Hi,I'm using dropdown and standard datatable to show data. How I put parameter to query?Thanks in advance

MapListDataProvider... not finished?

361 byte By Ty_a at 2007-11-27 2:51:22
Hey, I need something like a MapListDataProvider... however, if I look at the source code (com.sun.data.provider.impl.MapListDataProvider) I see a class declaration and a bunch of unfinished code that has been commented out. So, my question is... is there a completed MapListDataProvider, or am ...

Align GridPanel in the center of the page

370 byte By Sabira at 2007-11-27 2:53:43
I have "played" with many properties of the GridPanal style but can't figure out how to align i so that it shows up in the center of the page -- just like HTML tables have align="center" property. I don't want to hard code pixels or absolute/relative position using %, but I just want ...

What rough with this code (getSessionBean1().getVoudetailRowSet().setObject

545 byte By mfa786a at 2007-11-27 2:56:35
hi master sir i use listbox this name is personIdDD and link with master tableand for detail i use table i use this code String dsName = (String) personIdDD.getValue();getSessionBean1().getVoudetailRowSet().setObject(1,dsName);but secount line give me errorthis line give me ...

Table navigation problem from page fragment

730 byte By Derek50a at 2007-11-27 2:57:19
I have a page fragment I use in all my web pages, this contains a number of buttons I use for navigation between the pages. I have a page with a table in it, I need to enable the table navigation buttons to navigate between data in the table. If I define a navigation rule in the navigation xml ...

what can cause the error in com.sun.faces.renderkit.html_basic.HtmlResponse

2172 byte By chunyia at 2007-11-27 2:57:58
Hi,I am running into an error with my jsp built using Sun Studio Creator. When I first deployed the war file, and then access the page, it rendered fine. I can also go back and forth to the same page and it worked fine. Once I logged out, and then logged back in, whenever I tried to go to this ...

Add ? Table column (field) based on computed value

627 byte By SummerWinea at 2007-11-27 3:00:16
I am using the Databound Component tutorial against a modified travel schemaHow can I provide a table column for an on-the-fly computed value.I added a current cost and previous cost to a table and compute the difference. I want the difference to be displayed in the second to the end column of ...

neutered theme doesn't work

185 byte By gio_moria at 2007-11-27 3:03:54
Trying to use buttons without themes I downloaded and installed neutered theme injsc update 2 but doesn't work... any idea? http://blogs.sun.com/gjmurphy/category/Negotium

how textbox value pass in sessionbeen query as parameter

508 byte By mfa786a at 2007-11-27 3:04:46
hi mastersir i have big problem how i get selected data as per user input from textbox, listbox or variable how i pass that value in sessionbeen query that use in where class such as select * from abc where id = textboxvalueand how i desgin the user logn form user give userid and password and ...

sunstudio code can run on tomacat ?

441 byte By pedapudi_narasimhamurthya at 2007-11-27 3:05:27
Actually am developing web application that uses Hibernate Spring and jsf technologies and tomcat server, for the UI designing am using SunStudio here i have a doubt 1.after designing the UI part in SunStudio that code can run on tomcat server ? this is my main doubt and also 2.how can i ...

New to Java need GUI Class

313 byte By Danieljackmorleya at 2007-11-27 3:08:02
I need to generate a gui interface to a webpage.This gui will send and retrive information from a file. This gui will have a graphical interface. Is sun java studio creator the best approach and roughly what I need to do to get started on this. I plan on accessing the gui from a class file on a ...

Designer Hangs

415 byte By chamea at 2007-11-27 3:08:47
I have an appliccation which compiles and builds correctly. I am able to run it without any problem. However if i Click the Design tab of class to open designer, it shows Loading on the pane and just locks up. Nothing happens thereafter, i have to shut down the Sun Studio and restart it. I ...

deprecated date problem...

1130 byte By jakeochsa at 2007-11-27 3:08:57
** cross posted on SDN JSC Forum and Netbeans J2EE Nabble forum ** I'm trying to automatically create a 7 row table that's bound to a database with the first column of type DATE (MySQL.) The dates are static text fields that I populate with the dates of a given week and are saved to the ...

Unable to update java source in Creator

526 byte By Walley75a at 2007-11-27 3:09:30
I am getting the following error:C:\Selenium\java\com\thoughtworks\selenium\ClientDriverPISuite.java:51: generics are not supported in -source 1.4(try -source 1.5 to enable generics)I have tried all of the solutions found in this forum that I could find. I have changed all of the files that I ...

how to start java portal server 7.x?

278 byte By env4a at 2007-11-27 3:10:35
I'm trying to check and learn the java system portal server, I didn't make any segnificant move yet, I just can't start it, I'm working on netBeans 5.5.1 beta with sun java system portal server 7.x but the "start" popup entry is disabled !Any ideas?10x.

need to improve Java Studio Creator performance

414 byte By Tazcy06a at 2007-11-27 3:11:11
Can anyone has a suggestion on how to improve the performance of Java Studio Creator? JSC works fine when you have a less than 50 java files but when your building a large project JSC IDE works slow in terms of loading the whole project, modify the page in design layout, drag and drop a ...

Specify relative path to file in web-application

485 byte By BrotherFlamea at 2007-11-27 3:12:39
Following code works fine:try {FileInputStream inp = new FileInputStream("C:\\MPolls\\dbconnection.properties");props.load(inp);inp.close();DriverName = props.getProperty("jdbc.drivers");DBURL = props.getProperty("jdbc.url");} catch (FileNotFoundException ex) {ex.printStackTrace(out);}Is it ...

Need to "turn off" (disable) scientific notation

218 byte By farmboya at 2007-11-27 3:14:16
How can I prevent real (floating point - whatever) numbers from displaying (within a table) in scientific notation. Appears to be for numbers > 9999999.. The number 27000000 is displayed as 2.7E7Thanks

Problem Related to Formatting...

853 byte By muhammadAbrara at 2007-11-27 3:15:30
I m new in Java studio creator.I Have problem problem in Formattings controls on pages.1.Group Panel does not work if i place control in panel it could not be repostioned.2.i have placed data table on page and after that i have placed any other control when table grows with papulated data the ...

Project works when tested but RowConflicts when deployed

831 byte By Cybulskia at 2007-11-27 3:15:41
I have a project page with some pretty simple code to open a table and update it. The fields are all open for update and virtual forms configured to participate in a save action. The save works and commits the changes to the database (oracle) when using the creator studio to build/run the ...

Exception: Inconsistent Storage

334 byte By chamea at 2007-11-27 3:16:08
When I am starting the project I am coming across the following exception.org.netbeans.javacore] INFORMATIONAL *********** Exception occurred ************ at 1:24 PM on May 3, 2007java.lang.RuntimeException: Inconsistent storage. (mdrList.size == 0, infos.size == 44) any clues will be ...

ArrayIndexOutOfBoundsException

2678 byte By chamea at 2007-11-27 3:16:11
I get this exception when restarting ide. i deleted the previous userdir and restarted ide, upon restart ide creates a new userdir and comes across the ArrayIndexOutofBoundsException.java.lang.ArrayIndexOutOfBoundsException: 512at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:906)at ...

Dataprovider cursor position

423 byte By Mountainera at 2007-11-27 3:17:01
I tried to update a row based on the cursor position, but I got confused.String rkid = "" + 5;RowKey rowkey = new RowKey(rkid);info("rowkey: " + rowkey.getRowId()); 5abcDataProvider.setCursorRow(rowkey);RowKey rk = abcDataProvider.getCursorRow();info("rk: " + rk.getRowId());0I am just ...

Deployment error JAX-WS 2.1 & NetBeans 5.5

3779 byte By mb_agfaa at 2007-11-27 3:20:43
I am using NetBeans 5.5 with the webserver pack to use the JSF technology.When I am putting the JAX-WS 2.1 jars in the war, Ik get the following deployment error:WEB0100: Loading web module [__JWSappclients:sys.war] in virtual server [server] at [/__JWSappclients]Exception occured in J2EEC ...

How to use print functionality in Java Studio Creator

447 byte By vijay_foruma at 2007-11-27 3:21:03
Hi,I am working on one JSF project using Java Studio Creator.I have requirement where I have one table and print button.By clicking the print button, I want the contents of table to be printed.I have configured all the required properties of this button but still by clicking this print button, ...

Accept-charset?

79 byte By matthias@enpasosa at 2007-11-27 3:21:31
Is there a possibility to set accept-charset in html form using ui:form?