JSF + CeWolf + Java Studio Creator 2 (How to integrate)
New to JSF, JSP and Studio Creator
Problem is how to do graphics in JSF using Studio Creator.
The best solution I can find is to incorporate CeWolf or it's base, JFreeChart
into JSF. I've seen some posts on this, but none under the context of
Studio Creator and none describing the process to a level that a newbie
like me understands.
Anyone know of a reference that describes the process in detail?
Thanks in advance
i used cewolf worked ok but i found it a bit slow to render charts. Also not really a jsf specific chart application.
i found another JSF charting tag based on JFree Chart
www.jenia.org
(under their charting section)
much better for a jsf application than cewolf
Similar Messages
-
How to do internationalization with Sun Java Studio Creator?
Hi everybody,
the Sun Java Studio Creator seems to be a great peace of software ;-) Currently I'm trying to design some forms for a hello-world-test-project. My question now is: how can I realize internationalization with property-bundles? I already managed it to create my own bundles, I set up a few locales (de, en, fr) and put in some "SayHello" Variables. But how can I associate my locale-variables in the .propertie-files with the value- or text-attributes of the UI-Components using the form designer?well... it's not working!
I created some locale-properties. Put a
<f:loadBundle basename="mypackage.mainlocales" var="messages"/>directly under the "<f:view>"-Tag as it is descriped in the manual.
But when I write something like
<ui:label binding="#{sites$main$mainmenu.label1}" id="label1" style="position: absolute; left: 312px; top: 168px" text="#{messages.test}"/>The designer crashes with an error-message:
javax.faces.el.PropertyNotFoundException: Error testing property 'test' in bean of type null
at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
at com.sun.rave.web.ui.faces.UIComponentPropertyResolver.getType(UIComponentPropertyResolver.java:298)
at com.sun.rave.web.ui.faces.DataProviderPropertyResolver.getType(DataProviderPropertyResolver.java:264)
at com.sun.jsfcl.data.ResultSetPropertyResolver.getType(ResultSetPropertyResolver.java:141)
at com.sun.rave.jsfsupp.container.DesignTimePropertyResolver.getType(DesignTimePropertyResolver.java:169)
at com.sun.faces.el.impl.ArraySuffix.getType(ArraySuffix.java:240)
at com.sun.faces.el.impl.ComplexValue.getType(ComplexValue.java:208)
at com.sun.faces.el.ValueBindingImpl.getType(ValueBindingImpl.java:350)
at com.sun.rave.web.ui.renderer.ValueHolderDesignTimeRenderer.encodeBegin(ValueHolderDesignTimeRenderer.java:59)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)Nevertheless - when I deploy my application, the locales are processed correctly.
What am I doing wrong? -
How to change the source level in java Studio creator
Hi,
I am using Sun Java Studio Creator 2 Update 1 IDE, in this IDE how to change the source level to 1.5 for an existing project.
Thanks in advance,
Rajesh.Hi!
Unfortunately Sun Java Studio Creator 2 Update 1 doesn't support 1.5 source level. But You can try to download NetBeans IDE (from http://www.netbeans.org) and there with Visual Web project You will find the same functionality as for Creator. And 1.5 source level is supported by NetBeans.
Thanks,
Roman. -
How To Increase heap size in Java Studio Creator 2
Hi,
I'd like to know how I can increase the heap size in Java Studio Creator 2.
I already tried editing creator.conf, but it doesn't seem to work...
Can anybody help me?
thanks.In the servers window of creator, right-click 'Deployment Server' and choose 'View Admin Console'. A new web page comes up with the web interface to the Sun Application Server 8. Type your username and password that you configured during installation. I think default username is admin and default password either admin or adminadmin. After you're in, click 'Application Server' link in the left window, then click 'JVM Settings' tab, then click 'JVM Options' tab. Add new JVM option -Xms512m to start the server with 512MB. Find the -Xmx option and edit it to something larger, provided you have enough memory on your system.
-
How to use print functionality in Java Studio Creator
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, I am not able to see the print window.
Please help me in that, Its urgent.
Thanks in advance.
VijayHi,
i think the best thing for you to do is to use javascript. go to jsp page of the form and find the button, as part of its attribute type onClick="window.print()" -
JSF conflict with Sun Java Studio Creator
I was trying to use JSF but when i was installing Sun Java Studio everything went ok but there was a step saying "Deploying Web Services" that tool a lot of time about 10 minutes. So i cancelled it and the Sun Java Studio Creator was working well then when i was running the small application it didnt do anything. I think something wrong with the application server. I uninstalled Sun Java Studio Creator and installed it again.
This time no problems in installation. Then when i was creating a new JSF application when i press finish an error(1) appears and the finish button is dimmed so i have to press cancel and another error occurs(2), but the project gives an error message(3)
I have been trying to solve this problem but i dont know what to do.Please check / post the Creator log file ( Tools -> Java Studio Creator Log File)
Check / post the server log file as well, which will give more info.
To view the Sun Java System Application Server log file:
In the Servers window, right-click the Deployment Server node and choose View Server Log.
In any text editor, open the log file in the following location: install-directory\SunAppServer8\domains\creator\logs\server.log -
How to call Web Services with Sun Java Studio Creator?
Can someone from Sun please explain how to use the sample Web Services USWeather and GoogleSearch in Sun Java Studio Creator (no Portlet Application)?
I read the Web Service Tutorial Accessing Web Services (http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/webservices.html) and this blog entry: http://blogs.sun.com/roller/page/winston?entry=code_google_search_in_no .
But the proposed solutions do not work with the services USWeather and GoogleSearch.
Thank you.Thank you for your answer, dongmei.
It seems that the MethodResultTableDataProvider does not return the response of the web service as a value field if the WSDL contains only one result element.
E.g. from WSDL of the USWeather Web Service which returns theGetWeatherReportResult string:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
<s:element name="GetWeatherReport">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ZipCode" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetWeatherReportResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetWeatherReportResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="string" nillable="true" type="s:string" />
</s:schema>If I drag the web service method on the page and I should be able to select the response value in the Bind to Data dialog box. But there is no value field. Value fields only occur if the web service returns more than one value.
The question is how can I get the response GetWeatherReportResult from the service. -
How do expire a page in Java Studio Creator
Hi There,
How do expire a page in Java Studio Creator ?
When pressing Back button, I would like to show "Warning: Page has Expired" on the browser.
Thanks.Could you modify the JSP page to include the following
lines and try
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV=Expires CONTENT="now">
<%
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
%> -
How to add components in java studio creator (htmLib)
Hi,
I'd like to add htmLib.jar into the palette of Java Studio Creator or at least into my project. Does anyone know of a tutorial or know how to do this? In particular, I need help in adding htmLib into my project: http://jsftutorials.net/htmLib/
Thanks,
MarcTo add jar files :
From the main menu, Tools > Library Manager.
In the Library Manager dialog box, click New Library.
In the New Library dialog box, enter the library name.
Choose the library type and click OK.
Click Add JAR File/Folder to browse for and add JAR files to the library reference.
Click OK.
In the Projects window, right-click the Libraries node and choose Add Library.
In the Add Library dialog box, select the library reference.
Click Add Library. -
How to create frames ...! in sun java studio creator
Hello Every One,
How to create a frame set in java studio creator ...!
I prefer to run my entire applicaion on a window which comes out as a frame set, rather open in a browser. How to do that ...! if some one knows it help me out.
Basically this is what i am trying to do.
in my web page or frame i have an list box on the left
based on the values selected in the list the information is displayed on the right which has bunch of text boxes.
through me an idea how to do this using Sun Java Studio Creator.
Thanks
SenthilAs of 1.0 Creator doesn't support creating HTML frames via the designer. However, it may be possible to edit the JSP source to include one by hand.
Have you tried Page Fragments?
- WInston -
How to avoid Java Studio Creator 2 to use the regional settings?
How to avoid Java Studio Creator 2 to use the regional settings to select the language that will be used to display the IDE in a certain language?
My country settings are set to Belgium (French) but I want to have my IDE running in English.
What should I change in the defautl properties of JSC2 to avoid this behaviour?
Please, don't tell me to change my regional settings, it is not a valid answer :-)
Best regards,
Abdelkrim BOUJRAFjust modify creator.conf in directory etc/
add: -J-Duser.language=en
in the netbeans_default_options line:
like this:
netbeans_default_options="-J-Duser.language=en -J-Xms96m -J-Xmx384m -J-XX:PermSize=32m -J-XX:MaxPermSize=128m -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-Xverify:none -J-Dnetbeans.javacore.background_scanning=true -J-Dsunappsrvint.home=\"C:\Program Files\Sun\Creator2\SunAppServer8\"" -
How to Install Java Studio Creator
Hello:
I have a question regardin on how can I optimize the resources that my enterprise already have. I.e I can put an X86 Server (i mean really a server) to be an application server, however i can do It with the Java Studio Enterprise, but not on the Java Studio Creator, the question is the following.
Can I put an application server to the wole development departemen (the only have got The Java Studio Creator) so their Pc run smoother and need no RAM upgrade (actually most of the have got 256 Mb).
I Mean Put only to the PC the IDE an point the application server to another Server
Thanks a lotHi,
Sun Java Studio Creator comes bundled with all the various components.It does not have an option for choosing the components to install .
An RFE has been filed on your behalf for choosing the required components only at the time of installation.
Thanks,
Creator Team. -
Differences between Java Studio Creator and any other JSF IDE
Hi Guys,
I found that JSF code created when we use Studio Creator is Rave
while as if we use Bea Workshop Studio/Any Other Eclipse IDE for JSF is MyFaces ( whatever it may be).
What are the differences between these two? which one is better ?
I get confused why there are two different framework of JSF?
And I dont think there is any other IDE who supports Rave other than Java Studio Creator?
Thx.Apologies for the late reply, but currently what exists generally for MyFaces integration with Creator is on this blog:
http://wiki.java.net/bin/view/Javatools/CustomComponentLibraries
You might also want to post the same question on the nbusers alias on netbeans.org, referencing Visual Web Pack
Regards,
-Brad Mayer -
Hi,
I have to maintain a webapp created with Java Studio Creator. Several pages import the following taglib : "xmlns:ui="http://www.sun.com/web/ui" and beans use classes from com.sun.rave.web.ui.* packages.
Where can I find APIs about those components and classes?
Regards.
PS : my IDE is Eclipse....Check the Woodstock project at dev.java.net. I think that it is the same.
-
JSF using Sun Java Studio Creator 2
hi every body:
i developed an application using Sun Java Studio Creator 2 , now by default the url patterns the creator generates is like this:
...../faces/page1.jsp
now i want the ,, i need to change the extension of the page , so i want to replace it from .jsp to .abc for example , and i want to remove the /faces prefix for each page....
that's all
thanks in advanceModify URL-PATTERN for your Faces Servlet from /faces/* to *.abc in web.xml
change
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>to
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.abc</url-pattern>
</servlet-mapping>hope that might help :)
REGARDS,
RaHuL
Maybe you are looking for
-
How can i display the presentation variable in my reports
Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data. I use to Select the Values From my prompt, and it shows
-
How to activate script debugging in Adobe Livecycle designer
Friends, I would like to know how to activate script debugging in the Adobe Livecycle designer. I need to debug the scripts written in the script editor. Thanks and Regards.
-
How to send SMS from a servlet to a mobile phone
How to send SMS from a servlet to a mobile phone what are the things i have to do....... very urgent..
-
Help please - Bad crashing, freezing, lines and pale patches and more
I wonder if anyone can help me. I am not very technobod and there are progressively awful problems on my Mac until it is now so slow. I need to fix it before it dies altogether, or I throw it out of the window..... Problems:- Thin black lines randoml
-
CS5 for 10.6.8? uninstall CS4 first or just install CS5?
is CS5 compatible with mac OS 10.6.8? AND do I have to uninstall CS4 first or just install CS5 with CS4 already on computer?