[JBoss Seam] - Re: DataModel and Row Unavailable
by ssc_ch
I found the problem, but didn't solve it yet..
The problem is in the following part and if i comment this part, the thing with de table is working correctly, but now I have to find a solution for my new problem :-)
| <ice:panelGrid columns="3">
|
| <ice:outputText value="#{messages['profNewCase.patient']}" />
| <ice:outputText value="#{messages['profNewCase.description']}" />
| <ice:outputText value="#{messages['profNewCase.type']}" />
|
| <h:selectOneMenu id="patientListbox" required="true"
| value="#{patient}" >
|
|
| <s:selectItems value="#{caseAction.myPatients}" var="patient"
| label="#{patient.firstname} #{patient.lastname}"
| noSelectionLabel="#{messages['profNewCase.noSelection']}"/>
| <s:convertEntity />
|
| </h:selectOneMenu>
|
| <ice:inputText required="true" value="#{caseAction.description}" />
|
|
|
| <h:selectOneMenu id="typeListbox" required="true"
| value="#{caseType}">
|
|
| <s:selectItems value="#{caseAction.caseTypes}" var="caseType"
| label="#{caseType.type}"
| noSelectionLabel="#{messages['profNewCase.noSelection']}"/>
| <s:convertEntity />
|
| </h:selectOneMenu>
|
|
| </ice:panelGrid>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058804#4058804
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058804
18Â years, 9Â months
[Management, JMX/JBoss] - Re: user defined mbeans - Notification Broadcaster
by konkimalla
Even after implementing the interface I am getting the same error. Below is the mbean class
package com.clique.cmg.util;
import org.jboss.annotation.ejb.Service;
import org.jboss.annotation.ejb.Management;
import javax.management.Notification;
import javax.management.*;
import org.jboss.mx.util.*;
import java.util.*;
@Service (objectName="TestJmxBean:service=Jmxcalculate")
@Management(JmxCalculatorMBean.class)
public class JmxCalculator extends JBossNotificationBroadcasterSupport
implements JmxCalculatorMBean, NotificationBroadcaster {
int growthrate;
int result;
public void setGrowthrate (int growthrate) {
this.growthrate = growthrate;
}
public int getGrowthrate () {
return growthrate;
}
public int calculate (int start, int end) {
result = growthrate + start + end;
emitNotification();
return result;
}
// Lifecycle methods
public void create() throws Exception {
growthrate = 50;
System.out.println("Calculator - Creating");
}
public void destroy() {
System.out.println("Calculator - Destroying");
}
private void emitNotification() {
try {
System.out.println("Send the Notification");
Notification attribNotify = new Notification("cmg", this, 1L, "Notify the result: " + result);
sendNotification(attribNotify);
} catch (Exception e) {
e.printStackTrace();
System.out.println("Error in broadcaster");
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058796#4058796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058796
18Â years, 9Â months