New JSF Presentation
Hi,
I gave a presentation recently on JavaServer Faces. It may be of use to someone. By no means am I an authority on JSF. Please don't hesitate to send comments/correction: [email protected]
Oh yeah. The URL would help :)
http://cafe.cs.umd.edu:8668/space/JavaServer+Faces
Similar Messages
-
Error after installing the new JSF release
I've got a problem to install the new JSF release. I downloaded the Web Services Developer Pack 1.3 from the homepage and installed it. Then, i downloaded the actual release of the JSF 1.0 as a zip file. I removed the existing jsf directory in the original WSDP and extracted the zip file into the home directory of the WSDP. Then I renamed the directory from jsf-1.0 to jsf and started the tomcat again.
But then I get the following errors and tomcat isn't working at all:
Mar 19, 2004 1:43:52 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Mar 19, 2004 1:43:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3297 ms
Mar 19, 2004 1:43:52 PM org.apache.catalina.core.StandardService start
INFO: Starting service Java Web Services Developer Pack
Mar 19, 2004 1:43:52 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Java Web Services Developer Pack/1.3
Mar 19, 2004 1:43:52 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Mar 19, 2004 1:43:53 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jwsdp-catalog.xml
Mar 19, 2004 1:43:54 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:43:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:43:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:43:54 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/jwsdp-catalog,host=localhost
Mar 19, 2004 1:43:54 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jstl-examples.xml
Mar 19, 2004 1:44:03 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jsf-cardemo.xml
Mar 19, 2004 1:44:14 PM com.sun.faces.config.rules.NavigationRuleRule end
WARNING: [NavigationRuleRule]{faces-config/navigation-rule} Merge(/confirmChoices.jsp)
Mar 19, 2004 1:44:16 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jsf-nonjsp.xml
Mar 19, 2004 1:44:27 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jsf-components.xml
Mar 19, 2004 1:44:40 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\jsf-guessNumber.xml
Mar 19, 2004 1:44:52 PM com.sun.faces.config.ConfigureListener verifyObjects
INFO: Application object verification completed successfully
Mar 19, 2004 1:44:52 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\admin.xml
Mar 19, 2004 1:44:53 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:44:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:44:53 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:44:53 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/admin,host=localhost
Mar 19, 2004 1:44:53 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:H:\jwsdp-1.3\conf\Catalina\localhost\manager.xml
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path from URL file:H:\jwsdp-1.3\webapps\ROOT
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:44:54 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:H:\jwsdp-1.3\webapps\jsp-examples
Mar 19, 2004 1:44:55 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:44:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:44:55 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:44:55 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:H:\jwsdp-1.3\webapps\servlets-examples
Mar 19, 2004 1:44:56 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Mar 19, 2004 1:44:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 19, 2004 1:44:56 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Mar 19, 2004 1:44:56 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Mar 19, 2004 1:44:56 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 63891 ms
So what's wrong with my installation.
kind regards, IngoYour server may be in an unstable state if you did not remove all of the old cached files.
I recommend you clear out your <JWSDP_HOME>/work directory and remove all the <JWSDP_HOME>/conf/Catalina/localhost/jsf* files and restart your server.
Thanks,
Justyna -
Creation of new JSF has stopped working correctly
Hi guys,
I'm rather new to JDeveloper, but i have successfully completed 7 or so tutorials without a problem. But recently i have found a problem which i can't seem to get rid of.
I create a new Application; lets say a WebCenter Application.
I right Click the view controller and select "New > JSF > JSF JSP"
Just hit next a few times and finish, so i have a untitled1.jspx on there with all components enabled. and then drag and drop a PanelPage onto the JSPX page.
Instead of getting the template up, I get a page with
-<>ROOT
<>OUTPUT | Page Directive
This happens with and ADF component.
If i repeat the same process with other, older projects i can do this and get the correct template still.. So it's obviously something i have done to the way new projects are created.
Any ideas what i need to reconfigure?
Many thanks,Thanks a lot for your responses: Showing the log of the visual editor has been a lot of help. I've got the following response:
Error exercising tag : afh:head
java.lang.NullPointerException
at oracle.adfinternal.view.faces.renderkit.AdfRenderingContext.getTranslatedString(AdfRenderingContext.java:70)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.GlobalVariablesScriptlet.outputScriptletContent(GlobalVariablesScriptlet.java:49)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptletImpl(Scriptlet.java:111)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptlet(Scriptlet.java:52)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlUtils.addLib(XhtmlUtils.java:166)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputDependency(Scriptlet.java:144)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.AliasedScriptlet.outputScriptletImpl(AliasedScriptlet.java:112)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.jsLibs.Scriptlet.outputScriptlet(Scriptlet.java:52)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlUtils.addLib(XhtmlUtils.java:166)
Error exercising tag : afh:body
java.lang.NullPointerException
at oracle.adfinternal.view.faces.renderkit.core.CoreAdfRenderingContext.getStyleClass(CoreAdfRenderingContext.java:211)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.XhtmlRenderer.renderStyleClass(XhtmlRenderer.java:338)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer._renderLibraryDownloadElement(PanelPartialRootRenderer.java:480)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderPPRSupport(PanelPartialRootRenderer.java:340)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderPPRSupport(BodyRenderer.java:81)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:141)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
I'll look into these errors as best i can... Shame it's not as simple as a class not found exception. Has anyone got any pointers as where would be best to look? -
How to check 2 tables(Table A and Table B) and figure out new columns present in Table A and add these new columns to Table b.
DDL-
Create table A
( A INT,
B INT,C VARCHAR(2)
Create table B
A INT,
B INT
Any advice on the best approach or method to achieve this.
I understand that I need to check the schema of the columns and then do a match between 2 tables and find new columns and then alter my target table
MudassarCan you try this..
CREATE TABLE A ( A INT, B INT, C VARCHAR(2) )
CREATE TABLE B ( A INT, B INT )
Declare @ColumnVar nvarchar(128),@DatatypeVar nvarchar(128)
SELECT @ColumnVar=x.COLUMN_NAME, @DatatypeVar=x.DATA_TYPE
FROM INFORMATION_SCHEMA.COLUMNS AS x
WHERE TABLE_NAME = 'A'
AND NOT EXISTS ( SELECT *
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'B'
AND COLUMN_NAME = x.COLUMN_NAME )
Declare @SQL VarChar(1000)
SELECT @SQL = 'ALTER TABLE B ADD ' + @ColumnVar + ' '+ @DatatypeVar
Exec (@SQL)
select * from B
Please Mark This As Answer if it helps to solve the issue
http://stackoverflow.com/questions/2614101/alter-table-my-table-add-column-int -
My new birthday present of an i-phone 4s, can not be synced with the navigation of my 2011 Honda CRV. Can anyone give us hints on what to do, as the Honda dealership can not enable the phone to work with hands free. Help, this is very frustrating as the old cheap phone,worked perfect. Apple did not make this a user friendly product for cars.
Start by reading the User's Guide which will provide details for how to pair the device with other bluetooth devices. This may also require reading the Owner's Manual for the vehicle to find out how to put it into pairing mode.
-
Customizing column sorting in new jsf table
The new JSF table in the creator 2 is great. I like it. It includes so many out of the box features. It is the reason we use the creator for our current project.
But I cannot figure out how to customize the column sorting.
Why do I need column sorting?
I need to sort a column that can include ad IP address or a host name. Our customer can either use a host name or an IP address to address a device in the network, both in the same column.
Now sorting an IP address is already difficult. It is actually a sort over a 4 byte number. Sorting over host names is normal alphabetic string sorting.
How to sort over both in the same column?
This cannot be done using standard sorting. I need to use a validator or something similar to customize the sorting of this column.
Can anybody help me with a hint if:
1- Customizing sorting over a column is possible. (I really would like to keep all other sorting features (icons, multi column support...)).
2- A hint or code sample, how to do this.
If this is not possible, I urge the creator team to think of implementing this soon. Otherwise one killer feature of the creator 2 will lose a lot of its teeth.Thx mayagiri for your reply!
But including the src-code for the dataprovider package into a test project, and debugging in the creator-ide has done the thing!
Here our solution:
Class ToCompare is the object type which address field displayed in a page, simply containing a table with 2 adress colums, that can be sorted either according to our ip/hostname-comparison or according to String.compare().
* ToCompare.java
* Created on 10. Februar 2006, 10:41
* This class is a basic model object,
* with a field - String address - according
* to which it shall be sortable.
package comparator;
* @author mock
public class ToCompare {
* holds the IP or Host address
private String address=null;
* Instance of a Comparator class that
* provides our sorting algorithm
private RcHostComparator hostComparator=null;
/** Creates a new instance of ToCompare */
public ToCompare() {
this("defaultHost");
* when creating a new ToCompare instance,
* the hostComparator is created for it
* @ param aAddress - IP or Hostname
public ToCompare(String aAddress) {
address=aAddress;
hostComparator=new RcHostComparator(address);
public String getAddress() {
return address;
public RcHostComparator getHostComparator() {
return hostComparator;
}Here the code of the Class RcHostComparator, it is created with the address field of the ToCompare object that it holds. It first checks if the address field is an IP or not, and then chooses the comparison algorithm according to its own field state and the field state of the object to compare to:
* RcHostComparator.java
* Created on 10. Februar 2006, 10:43
* This class is used to provide a method for
* comparing objects that have an address field,
* containing either IP adresses or hostnames.
package comparator;
import java.text.CollationKey;
import java.text.Collator;
import java.util.Comparator;
import java.util.Locale;
* @author mock
public class RcHostComparator implements Comparator
* holds the IP or Host address
private String address=null;
* Is the address an IP
private boolean isIPAddress=false;
* if (!isIPAddress) this is created out of the address
* to provide a performant way of comparing it with another
* CollationKey, in order to sort Strings localized
* @ see java.text.Collator
* @ see java.text.CollationKey
private CollationKey hostnameCollationKey=null;
* if (isIPAddress) this array holds
* the 4 byte of the Ip address to compare
private int[] intValues=null;
* minimum for IP bytes/ints
private static final int minIntValue=0;
* maximum for IP bytes/ints
private static final int maxIntValue=255;
* Creates a new instance of IpComparator
* @ param aAddress - holds the IP or Host address
public RcHostComparator(String aAddress) {
address=aAddress;
* check if address is an IP
isIPAddress=checkIP();
* if Hostname -> instantiate localized CollationKeys
if(!isIPAddress){
Collator _localeCollator=Collator.getInstance(Locale.getDefault());
hostnameCollationKey=_localeCollator.getCollationKey(address);
}else{}
* Here the comparison of the address fields is done.
* There a 4 cases:
* -1 both Hostnames
* -2 aObject1 IP, aObject2 Hostname
* -3 aObject1 Hostname, aObject2 IP
* -4 both IPs
* @ param aObject1, aObject2 - Comparator objects
public int compare(Object aObject1, Object aObject2)
int _result= 0;
if(aObject1 instanceof RcHostComparator && aObject2 instanceof RcHostComparator )
RcHostComparator _ipComparator1=(RcHostComparator)aObject1;
RcHostComparator _ipComparator2=(RcHostComparator)aObject2;
* Compare algorithms, according to address types
if(!_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
* If both addresses are Strings use collationKey.compareTo(Object o)
_result=_ipComparator1.getHostnameCollationKey().compareTo(_ipComparator2.getHostnameCollationKey());
}else{
* IPs are smaller than Strings -> aObject1 < aObject2
if(_ipComparator1.isIPAddress()&&!_ipComparator2.isIPAddress()){
_result=-1;
}else{
* IPs are smaller than Strings -> aObject1 > aObject2
if(!_ipComparator1.isIPAddress()){
_result=1;
}else{
int _intIndex=0;
int[] _int1=_ipComparator1.getIntValues();
int[] _int2=_ipComparator2.getIntValues();
* compare IP adresses per bytes
while(_result==0 && _intIndex<4){
if(_int1[_intIndex]>_int2[_intIndex]){
_result=1;
}else if(_int1[_intIndex]<_int2[_intIndex]){
_result=-1;
}else{}
_intIndex++;
}else{}
return _result;
* checks if the address field holds an IP or a hostname
* if (_isIP) fill intValues[] with IP bytes
* if (!isIP) create hostnameCollationKey
private boolean checkIP(){
boolean _isIP=false;
String[] _getInts=null;
* basic check for IP address pattern
* 4 digits also allowed, cause leading
* 0 stands for octet number ->
* 0172=122 ->
* 0172.0172.0172.0172 = 122.122.122.122
boolean _firstcheck=address.matches("[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}");
if(_firstcheck){
_getInts=address.split("\\.");
intValues=new int[4];
for (int _count=0; _count<4; _count++){
try{
int _toIntValue;
if(_getInts[_count].startsWith("0")){
// if leading 0 parse as octet -> radix=8
_toIntValue=Integer.parseInt(_getInts[_count], 8);
}else{
// parse as is -> radix=10 -> (optional)
_toIntValue=Integer.parseInt(_getInts[_count]);
if(_toIntValue<minIntValue||_toIntValue>maxIntValue){
// out of unsigned byte range -> no IP
return _isIP;
}else{
// inside byte range -> could be part of an IP
intValues[_count]=_toIntValue;
}catch(NumberFormatException e){
// not parseable -> no IP
return _isIP;
// all 4 bytes/ints are parseable and in unsigned byte range -> this is an IP
_isIP=true;
}else{}
return _isIP;
public boolean isIPAddress() {
return isIPAddress;
public int[] getIntValues() {
return intValues;
public CollationKey getHostnameCollationKey() {
return hostnameCollationKey;
public String getAddress()
return address;
}The page bean holds an array of ToCompare objects. It is the model for a new table component, hold by an ObjectArrayDataProvider. Here a code excerpt:
public class Page1 extends AbstractPageBean
private ToCompare[] toCompare= new ToCompare[]{
new ToCompare("1.1.1.1"),
new ToCompare("2.1.1.1"),
new ToCompare("9.1.1.1"),
new ToCompare("11.1.1.1"),
new ToCompare("0172.0172.0172.0172"),
new ToCompare("123.1.1.1"),
new ToCompare("a"),
new ToCompare("o"),
new ToCompare("u"),
new ToCompare("z"),
new ToCompare("�"),
new ToCompare("�"),
new ToCompare("�")
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced
private void _init() throws Exception
objectArrayDataProvider1.setArray(toCompare);
private TableRowGroup tableRowGroup1 = new TableRowGroup();
private ObjectArrayDataProvider objectArrayDataProvider1 = new ObjectArrayDataProvider();
}The relevant .jsp section for the two column table looks like:
<ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{Page1.objectArrayDataProvider1}" sourceVar="currentRow">
<ui:tableColumn binding="#{Page1.tableColumn1}" headerText="SortIP" id="tableColumn1" sort="#{currentRow.value['hostComparator']}">
<ui:staticText binding="#{Page1.staticText1}" id="staticText1" text="#{currentRow.value['address']}"/>
</ui:tableColumn>
<ui:tableColumn binding="#{Page1.tableColumn2}" headerText="SortString" id="tableColumn2" sort="address">
<ui:staticText binding="#{Page1.staticText2}" id="staticText2" text="#{currentRow.value['address']}"/>
</ui:tableColumn>
</ui:tableRowGroup>Sorting localized with Locale="DE_de" according to ip/hostcompare sorts:
SortIP
1.1.1.1
2.1.1.1
9.1.1.1
11.1.1.1
0172.0172.0172.0172
123.1.1.1
a
�
o
�
u
�
zWhereas normal sort over String address whitout localization sorts:
SortString
0172.0172.0172.0172
1.1.1.1
11.1.1.1
123.1.1.1
2.1.1.1
9.1.1.1
a
o
u
z
�
�
�Not that short, but I hope it will help - if anyone has the need for another than the default sorting algorithms
Best regards,
Hate E. Lee -
Can't open new keynote presentation
I just created a new keynote presentation and have the most recent updates on keynote. But I receive a notice that I "need a newer version of keynote to open this document."
What's the problem?You have two versions of Keynote; the previous version 5 (which lives in Applications > iWork 09) and the new version 6 which lives in Applications.
You get the "you need a newer version to open" message when a file created in 6 is being opened by 5.
if you right click a version 5 file and select Get Info, in the Open with section select Keynote 5,
then click change all.
Perform a similar exercise on a version 6 file but select open with Keynote 6. -
New features present in oracle 11gr2.
Hi all,
I would like to know the new features present in oracle 11gR2. Any pointers would be helpful.
Example: list aggregate features is not there in 11gR1... etc.
Thanks and Regards
Nagaraja Akkivalli.SQL New Features:
Performance improvements
1.Alter table to add columns with default value.
2.Invisible Indexes
3.Redefinition improvements
4.SQL Result cache
New Language features
1.New data types: SIMPLE_INTEGER, SIMPLE_FLOAT, SIMPLE_DOUBLE
2.Regular Expressions:regexp_count
3.Read Only Table
4.Virtual Columns
5.Partitioning:Interval Partitioning,System Partitioning,Reference Partitioning,Virtual Column-Based Partitioning
6.IGNORE_ROW_ON_DUPKEY_INDEX hint
7.Analytic functions – NTH_VALUE ,LISTAGG
8.SecureFiles
9.Pivot query
PL/SQL New Features:
1.Real Native Compilation
2.DML triggers are faster
3.Compound triggers
4.Fine grained dependency Intra unit inlining
5.PL/SQL result cache
6.OCI Result Set Caching
New Language features:
1.Disabled Trigger
2.FOLLOWS keyword in Trigger
3.PLW-006009 warning
4.Continue statement
5.Enhancements in Dynamic SQL -
Forms 11g New Features Presentation PPT
Folks,
I am searching for Jan Carlin's Forms 11g New Features presentation PPT.
It seems that the Forms section on ias.us.oracle.com has broken links to the stcontent.
Could you please send it or tell me where I can get it?
Please send this response also directly to me.
Thanks,
Gustavo.Gustavo,
Your reference to ias.us.oracle.com is an internal address and will not be accessible from outside of Oracle. Are you an Oracle employee and are looking for this content internally?
Publicly available information about Forms 11 and new features can be found on the tech listing page for Forms:
http://www.oracle.com/technetwork/developer-tools/forms/overview/index.html -
I'm using Nitrox IDE for JSF, but I'm unable to make a new JSF project.
I can only make a new JSP project or a SAMPLE JSF project. Where can i select that i want a JSF project and NOT a JSP project?
Many tnx.No, it is possible to create a JSF project.
The steps are as follows,
* Launch New Web App wizard
* Retain the default "New Web Application" selection, Click Next
* Type in a project name "MyProject"
* Select JSP &/ JSTL Configuration, Click Next
* Check "Add JSF Support" and choose either Sun RI or MyFaces implementation, Click Next
* Review the project settings - Click Finish
A template JSF project is created. -
hi im new to JSF
i just want to know when i design a presentation layer tier,
which situation i need to use .jsp or .jspx..
i saw some examples using .jsp and some use .jspx..
i was wondoring why...dont understand
can anyone explain this and give me some example when using .jsp or .jspxI'd maybe seek out a more specific JSF forums on the web somewhere -- the JDeveloper forum here on OTN may be a good place to send this question since they tend to be more specialized in JSF.
-steve- -
I am implementing a custom JSF page as a presentation for a process. To model this implementation, I used the JSF sample found in \ORABPMStudioHome\samples\advanced\JSF-Screenflow_FoodDelivery.exp.
I have a module entitle TestModule. This module has three objects - TheObject, Member, and Demographics. TheObject is a composition object using Member and Demographics.
-TestModule
-- Demographics
--- address
--- city
--- etc.
-- Member
--- firstName
--- lastName
--- etc.
-- TheObject
--- caseNumber
--- member : TestModule.Member
So I wrote a JSF page with this code:
<%@ page session="true" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://fuego.com/jsp/ftl" prefix="ftl" %>
<%@ taglib uri="http://fuego.com/jsf/components" prefix="ft"%>
<html>
<body>
<f:view>
<h:form>
<h:outputText value="Case Number2: " />
<h:inputText value="#{theObject.caseNumber}" />
<p />
<h:outputText value="First Name: " />
<h:inputText value="#{theObject.member.firstName}" />
<h:outputText value="Last Name: " />
<h:inputText value="#{theObject.member.lastName}" />
<h:commandButton value="Submit" action="returnToFuego" />
</h:form>
</f:view>
</body>
</html>
I have a process with a Global Create activity that references a screenflow. In the argument mapping for the screenflow from the Global Create, I have an IN argument that instantiates an instance of TestModule.TheObject(). The BeginIn of the screenflow takes this argument and assigns it to an instance variable of type TheObject.
I start the engine and launch the workspace. Then, I access my Global Create activity. The custom JSF page is displayed, as intended. I populate the values of the controls and click the "Submit" button. BPM throws the following exception -
Error workspace-1266290500365
Error testing property 'caseNumber' in bean of type null
javax.faces.el.PropertyNotFoundException: Error testing property 'caseNumber' in bean of type null
at com.sun.faces.el.PropertyResolverImpl.getType(PropertyResolverImpl.java:342)
at fuego.workspace.application.WorkspacePropertyResolver.getType(WorkspacePropertyResolver.java:60)
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:338)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:111)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:702)
at javax.faces.component.UIInput.validate(UIInput.java:627)
at javax.faces.component.UIInput.executeValidate(UIInput.java:838)
at javax.faces.component.UIInput.processValidators(UIInput.java:412)
at javax.faces.component.UIForm.processValidators(UIForm.java:170)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
at fuego.workspace.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:132)
at fuego.workspace.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:60)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
The Process instance enters the flow and stops at the first activity. If I open the instance and look at the values that I entered in the controls during the screenflow, the backing bean has been populated with data.
Can anyone shed some light on this? Any help is appreciated. If there is something facet that I didn't mention, let me know, and I will describe it.Rajat's got a good point. You BPM Objects probably look something like this if they are all located in a module named "TestModule":
TestModule.Demographics
- address: String attribute
- city: String attribute
- state: String attribute
TestModule.Member
- firstName: String attribute
- lastName: String attribute
- demographics: TestModule.Demographics
TestModule.TheObject
- caseNumber: String attribute
- member: TestModule.Member
1. Double click the "caseNumber" attribute and change it to not default to null.
2. To avoid chasing null pointer exceptions, open the constructor for "TestModule.Member" and add this logic:
demographics = TestModule.Demographics()3. Similarly, open the constructor for the "TestModule.TheObject" and add this logic:
member = TestModule.Member()Dan -
good day !!! I am trying to create a new presentation in keynote,
when selected sends me the following message: An error occurred while communicating with the server, try again later. I tried for
several days to make the presentation but I keep sending the same message. I'm trying to make it from the keynote
beta (from iCloud)This is the Mac discussion, post your issue in the iWork iCloud discussion where folks who use iCloud can help you.
iWork iCloud Discussion -
UPDATE - New JSF 1.1 Milestone Release
Announcement:
https://javaserverfaces.dev.java.net/servlets/NewsItemView?newsItemID=1387
Download:
https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=2138&expandFolder=2138&folderID=0
New release includes bug fixes and a complete rewrite of the EL implementation. The new EL implementation can provide small performance increases across the board in your JSF applications:
Total time (sec) at 3 Million repetitions:
#{requestScope}
old: 09:431
new: 01:437
#{nested1}
old: 09:831
new: 03:110
#{nested1.selectList}
old: 15.506
new: 10:102
#{nested1.selectList[0]}
old: 20:313
new: 16:984
#{nested1.selectList[0].label}
old: 25:406
new: 22:172
#{(54 * 56 + 43 * 65) * (53 * 0)}
old: 18:797
new: 16:204
#{(53 * 0) / (54 * 56 + 43 * 65)}
old: 18:780
new: 03:922
#{false and true or false and true or true}
old: 13:609
new: 01:969Hello,
I understand that this is not "production release" (Pre Release Software License). So this is prerelease of JSF 1.1 implementation (new weekly/nightly snapshots are for 1.2, and of no use to me since it is early prerelease and even specification is still not available), is that right ? When is production release for new 1.1 implementation expected then ?
Regards, Nedim -
Keynote for News Type Presentation
I would like to ask a question regarding a project I am undertaking...the project is to build a presentation that mimics the many "News TV stations" that are out there on television today...you know the ones I'm talking about, where there is a main video window for news and stories, and then there is a ticker tape running across the bottom with news headlines, sports scores, stock market info, etc....there could also be other sections on the side displaying weather information and traffic information...my question is, what is the best way to go about building this type of presentation...is Keynote the way to go? If so, does anyone know of any templates that could help me achieve my goals?
ThanksIf all you want is to feed information from websites, you could do multiple web views per page (Insert > Web View).
If you are picky about exactly how content fits into those web view windows, you could build some web pages yourself with iFrames loading the original sites and located appropriately (the way you want) and then link from Keynote to those pages you build.
Lot of work, but if you want multiple windows per slide, it may be worth it.
Maybe you are looking for
-
Is it possible to use the status of a checkbox to change the fillcolor of a numeric field?
I have read through most all of the threads, but found none pertaining to my specific question. I would like to change the fillcolor of a numeric field based upon the status (on/off) of a checkbox located on a different page. In other words, if the
-
Why won't Verizon try or even acknowledge our plea to get DSL??
Myself and others in my community have been fighting with Verizon for years now trying to get DSL. If you drive 3 miles down the road people have DSL. We have satellite and I can't even express to you how slow and expensive it is. Try watching a mov
-
Installer has detected an already existing oracle XE Instance on this Syste
I am trying to install XE in my lap top , but i am getting this error.. i have uninstalled earlier version and clean the registry and services, still i am getting the same error.. Kvl prasad
-
WRT 610N 5GHz SSID Name Changed!
I was just checking my setup via the web-based config page and noticed the name of the 5 GHz band had been changed - I am the only one who edits the configuration. This makes me wonder about a situation a few weeks ago. I manage an open wireless netw
-
How can I authorize more than 5 computers?
With the purchase of new laptop, I have reached the limit of 5 authorized computers. However, only 2 are in use; the other 3 have been passed on to fellow employees. Their hard drives were completely erased, so there is no risk of anyone else using t