Discussion:
[jboss-user] [Beginner's Corner] - Can't get JSF to run on JBoss
Tiki Shabudin
2013-02-07 02:58:01 UTC
Permalink
Tiki Shabudin [https://community.jboss.org/people/tikishabudin] modified the document:

"Can't get JSF to run on JBoss"

To view the document, visit: https://community.jboss.org/docs/DOC-48322

--------------------------------------------------------------
Sorry if this is the wrong place to post this but I've been trying to run a couple of JSF files on JBoss AS 7.1.1 but so far nothing seems to be working. No errors, just that the jsf tags don't do anything. The source code is as follows (they're the same for both the .xhtml and .jsp file)

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html>
<html xmlns=" http://www.w3.org/1999/xhtml http://www.w3.org/1999/xhtml"
          xmlns:f=" http://java.sun.com/jsf/html http://java.sun.com/jsf/html">
<f:head>
</f:head>
<f:body>
          This is a test.
          <f:form>
                    <f:commandButton value="Testing" />
          </f:form>
</f:body>
</html>

Would appreciate if someone could tell me what I'm doing wrong. Also, I'm using Eclipse Juno. Is there autocomplete support for JSF tags in Eclipse?
--------------------------------------------------------------

Comment by going to Community
[https://community.jboss.org/docs/DOC-48322]

Create a new document in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2075]
Manish Prajapati
2013-02-07 05:24:04 UTC
Permalink
Manish Prajapati [https://community.jboss.org/people/rahul22] commented on the document

"Can't get JSF to run on JBoss"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-48322#comment-11534

--------------------------------------------------
hi,

Without giving any action to the button , what are you trying to achieve ???

can you specify like what you wanted and what is happening ??

That way it would be easy to understand

Thanks
--------------------------------------------------
Tiki Shabudin
2013-02-07 05:36:17 UTC
Permalink
Tiki Shabudin [https://community.jboss.org/people/tikishabudin] commented on the document

"Can't get JSF to run on JBoss"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-48322#comment-11535

--------------------------------------------------
Sorry Manish,
What I meant was that I was hoping to see at least a submit button or something on the screen, But aside from the words "This is a test." appearing, nothing else does.
--------------------------------------------------
Manish Prajapati
2013-02-07 06:22:30 UTC
Permalink
Manish Prajapati [https://community.jboss.org/people/rahul22] commented on the document

"Can't get JSF to run on JBoss"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-48322#comment-11536

--------------------------------------------------
hi,

few questions ??

are you using maven ???

if yes then dependency you are using from jboss only like this :-

<dependency>
                              <groupId>org.jboss.spec.javax.faces</groupId>
                              <artifactId>jboss-jsf-api_2.1_spec</artifactId>
                              <scope>provided</scope>
                    </dependency>
????

thanks
--------------------------------------------------

Loading...