Support Wikipedia

Tuesday, June 30, 2009

CSS : Make a Button look like a link

I had to make a button look like a clickable link and here is the CSS I used.
 

.buttonLink{
color:black;
background:none;
text-decoration:underline;
text-shadow:brown;
font-variant:small-caps;
font-weight:bolder;
font-family:sans-serif;
padding:0px;
border-top: 0px solid #fff;
border-left: 0px solid #fff;
border-bottom: 0px solid #4799E6;
border-right: 0px solid #4799E6;
display: inherit;
width:auto;
text-align:center;
}


Usage :
<input id="exampleButton" name="exampleButton" value="Click Here" title="Click Here" class="sortLink" type="submit">

Monday, June 29, 2009

Richfaces & JSF 1.1 ERROR: ClassNotFoundException: javax.faces.component.ActionSource2

Environment:
Richfaces : 3.3.1
JSF : 1.1
WAS: 6.1

Caused by: java.lang.ClassNotFoundException: javax.faces.component.ActionSource2

This is caused if you are using richfaces 3 in JSF 1.1 environment.
Richfaces has a dependency on JSF 1.2 and cannot be used in JSF 1.1 environment.

Fix: Remove all web.xml changes you made for richfaces and remove any pom.xml dependencies.

Refer :
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/TechnicalRequirements.html

Spring faces & JSF 1.1 : org.springframework.faces.ui.ProgressiveUICommand.getActionExpression()Ljavax/el/MethodExpression;

Caused by: java.lang.NoSuchMethodError: org.springframework.faces.ui.ProgressiveUICommand.getActionExpression()Ljavax/el/MethodExpression;

This is caused if you are using sf:commandLink tag in JSF 1.1 environment.
You should change the commandlink to h:commandlink (i.e. the core component) or t:commandLink (i.e. tomahawk component) and that should work.

SWF 2.0.7 & JSF 1.2 : java.lang.NoSuchMethodError: javax.faces.application.StateManager.saveView(Ljavax/faces/context/FacesContext;)Ljava/lang/Object;

If you get the below error, and you are using JSF 1.1 and SWF 2.0.7
java.lang.NoSuchMethodError: javax.faces.application.StateManager.saveView(Ljavax/faces/context/FacesContext;)Ljava/lang/Object;


Revert back to SWF 2.0.5 and that should fix it.

Its a bug in Spring Web Flow. SWF 2.0.7 makes some JSF 1.2 specific calls that are not supported by JSF 1.1 implementations. Hence the about error. Its supposed to be fixed in 2.0.8.

Refer to :
http://jira.springframework.org/browse/SWF-1112

For more details:
http://jira.springframework.org/browse/SWF-1096

faces-config error : Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found.

Environment :
JSF 1.1
WAS 6.1


If you get the following error :
org.apache.commons.digester.Digester - Parse Error at line 2 column 14: Document is invalid: no grammar found. org.xml.sax.SAXParseException: Document is invalid: no grammar found.

Courtesy :
http://wiki.apache.org/myfaces/Websphere_Installation

If you have the faces-config.xml file like below :

Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

it must be replaced as follows:

Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">

That's all there is to it
Support Wikipedia Support Wikipedia Support Wikipedia Support Wikipedia Support Wikipedia Support Wikipedia