<h:form>
| <h:commandButton value="klick" action="#{genretest.getTest}">
| <f:param value="test" name="test" />
| </h:commandButton>
|
| </h:form>
and the bean that handles the method
public String getTest()
| {
| FacesContext ct = FacesContext.getCurrentInstance();
|
| String s= ct.getExternalContext().getRequestParameterMap().get("test");
|
| System.out.println("TEST TEST TEST: " + s);
|
| return "test";
| }
"s" always displays as null... i read that this is a bug in jboss but checked out the bugtracker and it said that these bugs were fixed in old versions...
jdk 1.6_13
eclipse 3.4.2
jboss 5.1.0.CR1
all the other features i need work propery (like jpa and stuff) there is no error message or similar, just the null value. happens in 5.0.1.GA too
help or comments on this (bug?) very appreciated
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227892#4227892
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227892
I am having probelsm creating a project with richfaces or icefaces. I can create them just fine, with no errors, but when I try to view them at localhost I get a 404 error (I dont get this error when I do a straightforward jsf project, only icefaces and richfaces).
When I create a richfaces project, I always notice in the project explorer that the libraries are constantly changing ordser, as if eclipse cant decide what order to put them in. I have also heard things about 3.4.2 having classpath problems with jsf. Has anyone heard anythign similar or know of any ways to fix this? Or how I can configure the build path myself, because I really have no idea how it should be done.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227888#4227888
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227888
The easiest solution is often the most overlooked, at least with most of my mistakes.
The problem was my jboss-web.xml. While I forgot to include it in the original post, it did have my desired security domain. However, it was not getting deployed in my .war file, hence why it would only hit the 'other' security domain.
The next problem I ran across was caching of the authentication credentials/roles. I found this page on credential caching in JBoss which seems to have helped.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227887#4227887
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227887
Does any one know what causes this?
What do I do to get around it either using annotations or using XML?
The exact problem is that when JPA invokes TableGenerator it execute the following SQL command on Derby:
select next_hi from hibernate_unique_key for read only with rs
It encouters the following error:
javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not get or update next value
Caused by: java.sql.SQLException: Table/View 'HIBERNATE_UNIQUE_KEY' does not exist.
Derby does not have sequence tables.
We are using:
@Id
@Column(name="UserID")
@GeneratedValue(strategy=GenerationType.AUTO)
The identity column in Derby is defined in the create table command as:
UserID INT NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
Many thanks.
Regards,
Rich Katz
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227886#4227886
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227886