Help with JSC + Hibernate.

279 byte By glauber.vicaria at 2007-11-26 20:06:26
Hi...I need to know about a tutorial of studio creator + hibernate.The pdf who exists in Sun website, uses an example (TravelPOJO) to show this integration, but I need a tutorial more easy.Sorry for my poor english... I'm brazilian....Thanx...

Displaying Flag in a table corresponding to a DB value ?!

3266 byte By sotota at 2007-11-26 20:07:06
Hi forum,It's somehow a complicated problem !!I don't know to start from whereI want to get a field value from each record in a table DataProviderand according to each value I want to perform an action on the tableIn more details I want to display a flag image instead of the value itself ...

My nightmare ...Statement parameter 1 not set.

4706 byte By _3AM_KMETa at 2007-11-26 20:10:23
Yes i know that one of the parameters of the rowset is not set.My page contains more than 10 rowsets and prowiders. And i don't know how to find which is the rowset.... just know that it's "one of them" ...04:31:53,984 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw ...

how to give hyperlink for sql server fields in jsp

645 byte By a1ba at 2007-11-26 20:11:10
Hi all,I am pulling some datas from the database and displaying on a report. One of the fields in that report is the DATA. How can I give Hyperlink to that data value and then when I click on that DATA one of the form to be triggered.(for example if the data value is "red" it should link ...

Java Performance Tweak for XP

406 byte By loweca at 2007-11-26 20:12:25
Try the suggested registry tweak. It was part of the recent JDK7 weekly, but the comment says that any version of Java will benefit from it: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6499242As with any reg tweak, only try it if you're comfortable with modifying the registry and backup ...

CachedRowSetXImpl.populate() error

1079 byte By Nullpointera at 2007-11-26 20:13:38
I try to populate cached rowset from non-sql result set, in my case from SAP resource adapter. Object returning from this resource adapter is basically sql result set, which does not support all operations, in which case the adapter's rowset raises java.lang.UnsupportedOperationException. When ...

Web hosting service for Sun Application Server

120 byte By lucky_a at 2007-11-26 20:14:31
Can anyone tell me if there is any webhostingf service that uses Sun Applications Server...pls pls pls....

How to send form?

705 byte By DenisTa at 2007-11-26 20:14:59
When I put only button in page:<ui:form binding="#{Page1.form1}" id="form1"><ui:button action="#{Page1.okButton_action}" binding="#{Page1.okButton}" id="okButton" text="#{nl.OKButton}"/></ui:form>It works. But if I add any input controls:<ui:form binding="#{Page1.form1}" ...

Confirm or Alert message box in Java event handler ?!

361 byte By sotota at 2007-11-26 20:16:00
Hello forum,Is it possible to display an "Alert" or "Confirm Message Box " with an event handler method in the Java code, and perform an action according to the "Confirm Message Box" OK or CancelI know that it's possible in JavaScript, but I need this action after checking data in a ...

How to export war files without including the library files

429 byte By marcnikkoa at 2007-11-26 20:17:03
Hi,I have several portlets that share the same jar files. In my tomcat, I'd like to load those jar files from shared/lib when tomcat starts up. Currently, to accomplish this, I export the war file from jsc, deploy to tomcat, then manually delete the jar files from WEB-INF/lib.Is there a way I ...

New User Needs help

833 byte By PatHaasa at 2007-11-26 20:17:41
Hi all and sorry if this seems like a very stupid question but I really can't figure this out easily on my own, which may show my lack of intelligence to the world. I'm very new with using the sun java studio creator and cannot figure out how to use the web browser to test the pages i'm ...

rotate images which are retrieved from a database table

509 byte By p_georgea at 2007-11-26 20:18:06
Hi,I am developing an Automobile database where some of the vehicles are marked as "On The Specials"What i want to do is to retrieve just this cars on the SPECIALS and display a picture of them in rotation.Lets say 10 cars are on the specials, display the picture of the first for 30 seconds, ...

How to deploy a java application -- might be silly but just help me out

352 byte By zeus_herculesa at 2007-11-26 20:22:10
Hi I抳e developed a java application in eclipse. How do I deploy it so that it can be used by others without the help of eclipse? I can run it in eclipse but how do I deliver it to my customers and how can they use it without the help of eclipse or using java runtime commands. Please give me ...

problem with cache information in sun stdio creator

897 byte By shannua at 2007-11-26 20:22:29
Hi,i am using sun stdio creator and i designed a page <script>function forward(){ alert("forward"); history.go(+1);} function back(){alert("back");history.go(-1); } </script> <sun stdio code ><ui:button name="farword"onclick=" forward(); " /><ui:button ...

Session bean in sub package problem/bug

2390 byte By unclechopchopa at 2007-11-26 20:24:56
Hi,There seems to be a big issue with having multiple session beans in different packages, particularly with database access.I have created a 2nd session bean named AdminSessionBean in a sub package of my main package. I also created a page in this same sub package and dropped a table component ...

ERROR SENDING EMAIL: mailhost ?!

2488 byte By sotota at 2007-11-26 20:30:16
Hi all,I've a problem sending mail using this code in Sending Email tutorialpublic String fwd_SPOC_action() {String from = "*******@yahoo.com"; // from addressString to = "******@myComponey.com"; // to addressString mailserver = "*****.**.***.myComponey.com";String fullName = ...

CSS from JSC vs. Portal CSS conflict

569 byte By Martin777a at 2007-11-26 20:30:53
I think I've already read about this issue, but I can't find where, if it is discussed anywhere else, please let me know.I have a serious problem. I am using JSC to create a JSF portlet. It is plugged in somebody else's Sun Portal Server 7. The CSS from JSC overriders some defined CSS ...

Going to the last page of a table when adding a new object

751 byte By Trooper80a at 2007-11-26 20:34:38
I added a Table(com.sun.rave.web.ui.component.Table) on my page and a button outside of that table to add new object rows. My problem is that I want the table to move to the last page when I add a new object. Instead the default bahaviour is showing the first page. Even if the newly added row ...

Value is set to old one after init()

952 byte By mglowackia at 2007-11-26 20:36:54
HiI've written about this problem already, but still I didn't find solution. The problem is that my components on the pages somehow are saving values that are assigned to them for the first time. So, when I am first time at page A and set hidden field value to 3, then go to B, and then once ...

Error in VWP binding data

24191 byte By NewLitusa at 2007-11-26 20:38:10
Hi, I have this errors with all components that I bind to my DataBase (table,dropdown,etc).I'm working with mysql but with the traveldb also fails.:Sjava.lang.RuntimeException: java.sql.SQLExceptionat com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDa ...

Exception in thread

742 byte By aneetsome1a at 2007-11-26 20:38:18
Hi;I'm new to this forum. I'm having trouble installing JDK US DST Timezone update tool-1.0.1 that is required for the Mcafee epolicy orchestrator 3.6.0. When I run the command this is what i get....C:Program Files\Common Files\McAFeeJava\bin>Java -jar tzupdater.jar -uException in thread ...

Neutered theme available

369 byte By gjmurphya at 2007-11-26 20:38:52
I have put together a bare-bones, "neutered" theme for Creator web projects. This can be useful if you can't style components individually because the theme styles get in the way, or if you are writing a portlet app and are experiencing conflicts with portal-wide ...

How to select row

252 byte By Grzegorz.Kluczeka at 2007-11-26 20:39:18
Hi, I have table component bound to dataprovider. One of the table columns contains radiobutton component. How can I select row programatically and set corresponding radiobutton? Thanks in advancebest regards Grzegorz

get generated name of tableColumn ?

300 byte By nightingale2k1a at 2007-11-26 20:41:54
Hi , How to get the ID or Name of rendered tabelColumn in JSC 2 ? If we use browser view source then you could see that the name is like"form1:tabSet1:tab2:tblDetail:tableRowGroup1:0:DTDetailColumn" this name i would like to grab for javascript thing ... ...

ICEFaces spoiled my theme

9383 byte By Trooper80a at 2007-11-26 20:44:48
I downloaded ICEFaces Netbeans modules and I installed them on my Netbeans 5.5.I enabled ICEFaces on my project and I ran it. On the first page I noticed that some Javascript and Stylesheet link elements of the Rave components are missing from the page in the browser.I suppose that the Theme ...

Next major version of VWP in May 2007?

126 byte By MISS_DUKEa at 2007-11-26 20:45:22
Netbeans 6.0 beta is to be released on May 2007. Will there be a new version of VWP with it?Thank you very much.

java studio enterprise licensing

513 byte By mkeresztesa at 2007-11-26 20:46:51
Hello,Anybody know in which condition sun java studio enterprise can be used to develop open source applications?I post this question because I asked the sun licensing center (email to license@sun.com) but it seems than nobody know the answer to this question. The response from the center is: ...

How to guarantee that my code will be executed just before rendering?

991 byte By Martin777a at 2007-11-26 20:48:29
The easy answer is, put the code at the end of the prerender() method. But what about a correct answer? :)I am developing a JSR-168 JSF portlet in JSC. I have four fragments included in a page. Every fragments does something, that can result in a message or messages when fetching data. The page ...

Getting the calendar value in JavaScript

1233 byte By marcnikkoa at 2007-11-26 20:49:12
Hi,I have a jsp page which has a calendar component. The snippet of code is shown below:<ui:calendar binding="#{ReportParameter.calendar1}" id="calendar1"/>When I click a hyper link I need my javascript to access the value in the calendar component. I can access the calendar compenent in ...

Why doesn't button push work?

749 byte By burferda at 2007-11-26 20:49:35
I have a form with an h:command Button.I set the action to the default value for this button of "okBtn_action()"When I push the button, 'okBtn_action()' appears that it is notcalled. When I place a break point in the function, it does not breakin the debugger.If I check the 'immediate' ...

How do I get the date string from a ui:calendar component?

101 byte By burferda at 2007-11-26 20:49:37
How can I get the date string?Do I need to get a Date object and extract it from there?

Bind data visually?

645 byte By Jandera at 2007-11-26 20:52:46
Hi all!I抦 using Sun Java System Application Server Edition 9 with Netbeans 5.5 and VWP, and I have the following problem:I抦 trying to create a simple table feeded from a MySQL query. I don't have any problem in the design view, I just pick a control (like a table,dropdown) and drop it to the ...

Change settings location for Studio Creator and NetBeans

351 byte By wallingpa at 2007-11-26 20:53:02
Hi,Please can anyone tell me if there is a way to change the settings/install location in Studio Creator and NetBeans?This is not the project location.As a default settings etc end up under :-C:\Documents and Settings\user_name\.Creator\2_1\*I have looked in Tools etc but am not able to find ...

"A java.lang.NullPointerException has occurred"

418 byte By renwei19a at 2007-11-26 20:55:32
Hi, Can anyone help with me in the following error:"A java.lang,NullPointerException exception has occurred." This error is encountered when I wanted to fill in the URL of a hyperlink. However, whenever I click on the properties of URL to state the linkage, I was prompt with the above-mentioned ...

Is there anyway to get a Page Fragment to work like this?...

5869 byte By starwood4a at 2007-11-26 20:56:00
I am trying to use a page fragment to contain an h:messages like that described in this article: http://wiki.apache.org/myfaces/Displaying_Errors/Infos/Warnings_in_JSF_PagesI can get the h:messages to display correctly but the value ofgetFacesContext().getMaximumSeverity()is always null. I ...

SUN JAVA STUDIO & GWT & AJAX

1286 byte By g.m.abdulsalama at 2007-11-26 21:03:20
guys,am basically Microsoft .Net Developer with 5 years of experience. I was impressed with the new release of Sun Java Studio by Sun and Google Web Toolkit by Google. I want to develop a commercial Global Web Application. Before i make my decision to buy Dev Support Package for Sun Studio ...

Tree component in a portlet

530 byte By Martin777a at 2007-11-26 21:05:46
If I understand it correctly, I should be able to use the getSelected() method to get the ID of a node in a portlet, when I set the Immediate property of the Tree to TRUE. But it doesn't work! Should it work? If not, is there any way, how to achieve correct behaviour of the getSelected() ...

Dynamically created components in a gridpanel and rendering

688 byte By Martin777a at 2007-11-26 21:06:29
Problem: I have a gridpanel in a PORTLET that I fill with components dynamically. I do it in the init() method. After submitting the page, the components are created from scratch in the init() (I write their values in the log and everything is OK). Then the page should be rerendered. But it is ...

Positioning Objects on the Page.

456 byte By Jimmy200012a at 2007-11-26 21:07:10
Hi, Expert:How can I position two objects on the page relatively? Say, I have two data tables, or one data table and after the table, some other object (button?, etc). B/c I don't know how many rows will return from the database, if I placed two tables too close, the first table will overlay ...

Nesting table rowgroups

478 byte By Jimmy200012a at 2007-11-26 21:07:11
Hi, Is there a way to nest tablerowgroups in a table? I saw a tutorial has two table row groups but there display one after other. Say, I have a person list, l'd like to group the person based on the last name, and the table will look like this:Last name First NameAddresssome other stuffgrp ...

i can how insert a animation from creator

73 byte By scraftera at 2007-11-26 21:07:46
my intention is insert menus or dinamic's bannersthans you

Netbeans WVP/Tomcat, "faces-config", must match DOCTYPE root "null"

1073 byte By mummga at 2007-11-26 21:07:58
With Netbeans 5.5 I suddenly (worked yesterday) get an error whenstarting Tomcat 5.5.17: --org.apache.commons.digester.Digester - Parse Error at line 9 column 116: Document root element "faces-config", must match DOCTYPE root "null".org.xml.sax.SAXParseException: Document root element ...

v8.1 -- how to modify the colour/font, resize, disable attribs of all class

365 byte By bduttaa at 2007-11-26 21:08:26
Hi,I tried to follow the instruction in the Help section, i.e. by selecting multiple items while keeping CTRL or SHIFT pressed, and then do it by right clicking etc.I am able to do all these changes for individual classes, but that's a pain. I'd like to have a way to do it for all classes in ...

problem calling enity bean from session bean

2081 byte By poshjosha at 2007-11-26 21:09:17
Created enterprise app with web and ejb modules. Created a CMP Entity Bean with local interface. Created session bean with a remote interface, then used the process: enterprise resources> call enterprisebeans to generate lookup code for the entity bean. Tried using the session bean from the ...

How to deploy to Apache web server

313 byte By 1209Hadriana at 2007-11-26 21:11:05
I have an Apache2 web server and Studio Creator on the same server.I have developed and run Web Applications within S.C. but can't figure out how to deploy the application in a way that I can invoke them from a browser pointed at my Apache Server. FYI. Just learning Studio Creator and ...

v8.1 -- Sequence diagram ghost still haunts, and other observations

2448 byte By bduttaa at 2007-11-26 21:15:05
Hi,1) Sequence Diagram:I've been reading some posts in the past 2 days on the abilities, capabilities and issues with JSE8, and the "Skewed Sequence-Diag" issue etc, and it was written that v8.1 fixes it. I believe that the fixes overlooked some conditions, because yesterday, I encountered the ...

problem with button_action

500 byte By leon82a at 2007-11-26 21:16:17
Hi.I have found some problem with button_action in my jsf. I'm usin a table, filling it with data from database by ObjectArrayDataProvider. For each row of data, I added button, which will allow to remove data from databse. Table is filled in properly (this is done in prerender() ), but button ...

Page Navigation Safari not working

2136 byte By cmainooa at 2007-11-26 21:17:06
Hi,I am using page navigation but this is not working on Safari. Version 1.0 and 2.0.4 have been tested on OSX 10.2 and 10.4.7. I am left with a page with nothing visible that I assume is meant to submit the form.The source of the page follows.Anyone know how to fix this?<body ...

Table with dynamic field-types

249 byte By Willi2793a at 2007-11-26 21:20:24
Hello,I have a table with a datetime field. And according to this field other fields are either input and output (Textfield) or only output (Static Text). Is there any possibility to realise this?Thanks and regards,Thomas

How to disable button immediately after pressing

500 byte By anikhindia at 2007-11-26 21:24:03
HiIn my save button there is a code for insertion of data in database.In my application when i press save button first time the IE progress bar shows progress but if suppose the user presses the button againthen the data wil get saved twice.Now if i put a code in button action method to disable ...