[JBoss jBPM] - Re: BPEL beta2 -
by KVAK_TNT
OK this file I allread found :-)
But if I add the following line - nothing new happens:
| <category name="net.sf.ehcache">
| <priority value="ERROR"/>
| </category>
|
I Also tried
* sf.hibernate
* net.sf
Maybe here the full file:
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
| <!-- ===================================================================== -->
| <!-- -->
| <!-- Log4j Configuration -->
| <!-- -->
| <!-- ===================================================================== -->
|
| <!-- $Id: log4j.xml,v 1.26.2.10 2006/04/21 17:29:20 csuconic Exp $ -->
|
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
| <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
|
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="INFO"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
| <appender name="CONSOLE_DEBUG" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
| <category name="org.apache">
| <priority value="INFO"/>
| </category>
|
| <category name="org.jboss.serial">
| <priority value="INFO"/>
| </category>
|
| <category name="org.jgroups">
| <priority value="WARN"/>
| </category>
|
| <category name="jacorb">
| <priority value="WARN"/>
| </category>
|
| <category name="org.jboss.management">
| <priority value="INFO"/>
| </category>
|
| <category name="org.jboss.webservice">
| <priority value="DEBUG"/>
| </category>
|
| <category name="org.jboss.axis">
| <priority value="INFO"/>
| </category>
|
| <category name="eu.somepackage">
| <priority value="DEBUG"/>
| <appender-ref ref="CONSOLE_DEBUG"/>
| </category>
|
| <category name="org.hibernate">
| <priority value="WARN"/>
| </category>
|
| <category name="net.sf">
| <priority value="ERROR"/>
| </category>
|
| <category name="sf.hibernate">
| <priority value="ERROR"/>
| </category>
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| </root>
| </log4j:configuration>
|
I hope someone can help me in this.
by the way does anyone know when the Releasedate of jBOSS-BPEL will be? (I read something about 10/30/06 http://jira.jboss.com/jira/browse/BPEL?)
Greetings
Claus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979563#3979563
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979563
19 years, 8 months
[JBoss Seam] - Re: problem in a simple seam application
by dilshat
I am still having the same problem with the simple registration example although I have followed the exact procedure on the readme.txt.
In order to see whether the Bean is actually created on the registration page, I have slightly modified the getName() method:
| .....
| @Name("user")
| @Scope(SESSION)
| ....
| public class User implements Serializable
| {
| ....
| public String getName()
| {
| return "I am created:"+name;
| }
|
I am expecting on the first page should display the "I am created:" as the value of:
<h:inputText value="#{user.username}" required="true"/>
on the registration page. But it still displays the empty content, and when I press "Registration" button, it display three "Conversion Error" message.
Running out of option, I have created the bean using managed bean in the faces-config.xml:
| <managed-bean>
| <managed-bean-name>user</managed-bean-name>
| <managed-bean-class>org.jboss.seam.example.registration.User</managed-bean-class>
| <managed-bean-scope>request</managed-bean-scope>
| </managed-bean>
|
This time the bean is indeed created, I can see the content I set on the bean. So I assume JBoss failed to create the User bean, baybe it failed to get the annodation from @Name("user") I don't know.
Could you give me a hint where shall I look at to find out the cause of the problem.
>From the discussion, I understand that it may be because that the embedded Ejb container has not started properly, but there is no any exception or error message (in the log) when the first page is loaded and I have followed the exact procedure in the readme.txt.
I assume it maybe because of the database connection it have not created the bean silently so I removed the meta tags @Entity and @Table from User.java code to make it pure Java Bean, but still JBoss seam have not created User Bean and there is no error or exception.
I though that SeamPhaseListener in faces-config.xml should be enough to make the JBossSeam injection to work on pure Java Beans in JSF, but apparantly there is more story in it.
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
|
I will be very appreciate if you give me a hint about where shall I look to solve this problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979559#3979559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979559
19 years, 8 months
[JBoss Seam] - Re: Implementing a multi-select table
by zzzz8
What I did is basically added some code in the getters and setters methods that are bound to the boolean checkbox. I'm pretty sure there's a better way of doing this, and if anyone knows, please tell me. But I believe this is probably what jazir had in mind and here's what I implemented a while back:
@Name("testJobList")
| @Stateful
| public class TestBean implements TestLocal {
| @DataModel("JobList")
| private List<JobStatus> statusList = null;
|
| @DataModelSelection("JobList")
| private JobStatus jobSelected;
|
| private Map<String, Boolean> selectedMap = null;
|
| private boolean selected;
|
| @Factory("JobList")
| public final void retrieveJobs() {
| selectedMap = new HashMap<String, Boolean>();
|
| List<JobStatus> jobStatus = ... ; // get jobStatus object
| }
|
| public final String performAction() {
| for (JobStatus tempJob : statusList) {
| // Assuming a JobStatus job has fields (with getters) attr1
| String attr1 = tempJob.getAttr1();
| if (selectedMap.get(attr1)) {
| // perform action code here...
| }
| }
| return "goToPage";
| }
|
| public final boolean isSelected() {
| if (jobSelected != null && selectedMap != null) {
| String key = jobSelected.getAttr1();
| Boolean value = selectedMap.get(key);
| if (value == null) {
| return false;
| } else {
| return value;
| }
| } else {
| return false;
| }
| }
|
| public final void setSelected(final boolean inputSelected) {
| if (selectedMap != null && jobSelected != null) {
| String key = jobSelected.getAttr1();
| selectedMap.put(key, inputSelected);
| }
| }
|
| @Remove
| @Destroy
| public void destroy() {
|
| }
| }
Here's the JSP markup:
<h:form>
| <h:dataTable value="#{JobList}" var="selectJob">
| <h:column>
| <h:selectBooleanCheckbox value="#{testJobList.selected}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="attr1" />
| </f:facet>
| <h:outputText escape="true" value="#{selectJob.attr1}" />
| </h:column>
| <h:column>
| <f:facet name="header">
| <h:outputText value="attr2" />
| </f:facet>
| <h:outputText value="#{selectJob.attr2}" />
| </h:column>
| <h:commandButton value="performAction"
| action="#{testJobList.performAction}" type="submit" />
| </h:form>
This code for the getters and setters is probably a little muddled because I'm using the Tomahawk extended datatable to sort things (I took out the Tomahawk extended datatable JSF markup from the JSP). In this case, my unique identifier for the object would be attr1. I believe the setters and getters could probably be simpler (and one should probably use a List instead of a Map), something like this:
List selectedList;
|
| public final boolean isSelected() {
| return selectedList.contains(jobSelected); // or return selectedList.contains(jobSelected.getAttr1());
| }
|
| public final void setSelected(final boolean inputSelected) {
| if (inputSelected) {
| selectedList.add(jobSelected); // or selectedList.add(jobSelected.getAttr1());
| }
| }
But the whole point here is that one needs to add some more code (more than the usual stuff) in the getters/setters in the value binding for the boolean checkbox - and make a note that JSF iterates through all the rows of the datatable - and that one can use this to your advantage in the getters/setters. This works for me and I didn't have to modify the entity... I was probably not clear in my explanation (I gotta go to sleep :) ), but I hope this helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979556#3979556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979556
19 years, 8 months