[JBoss Seam] - Re: Submitting using SelectOneRadio
by monkeyden
Sorry to be so noisy on an ignored topic. I have degraded to a much simpler question. Has anyone gotten the valueChangeListener attribute to work with <h:selectOneRadio>? I have seen a handful of threads around and no one has ultimately said that they got it to work. The result in my case is a very mysterious NoSuchMethodException, though I clearly have it defined in the interface and the implementation of my SFSB. How can this possibly be the case? In desperation, I've tried tweaking the InterceptionType, to no avail. Do I need a [currently unknown] annotation on this method?
<h:selectOneRadio immediate="true"
| id="stateRadios"
| value="#{editProfileAction.selectedState}"
| onclick="submit()" valueChangeListener="#{editProfileAction.updateStateRadioChange}">
| <f:selectItem itemLabel="MA" itemValue="MA"/>
| <f:selectItem itemLabel="ME" itemValue="ME"/>
| <f:selectItem itemLabel="NH" itemValue="NH"/>
| <f:selectItem itemLabel="RI" itemValue="RI"/>
| <f:selectItem itemLabel="VT" itemValue="VT"/>
| </h:selectOneRadio>
public void updateStateRadioChange(ValueChangeEvent event);
public void updateStateRadioChange(ValueChangeEvent event){
| this.selectedState = (String)event.getNewValue();
| }
Caused by: java.lang.NoSuchMethodException: updateStateRadioChange
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981910#3981910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981910
19 years, 5 months
[JBoss Seam] - Re: Trying async in 1.1 -- behaves like sync
by gavin.king@jboss.com
That is really easy to implement, but do you think it ever makes sense to hardcode a duration? (And, also, is there a good way to specify a literal date in an annotation?)
Well, I guess I could come up with some kind of expression language for expiry/duration, eg:
@Asynchronous(duration="1 day", intervalDuration="2 weeks")
@Asynchronous(expiry="1 hour + 10 ms", intervalDuration="1000 ms")
Or, perhaps:
@Asynchronous(expiry="#{event.expiry}", intervalDuration="#{event.repeat}")
(1) What is the real usecase?
(2) Which works best for you?
(3) Do you think you really need it?
(4) Do you want to implement it and submit a patch (its straightforward, I promise.)
(Yes, I missed the declaration when I wrote the docs. Bad on me.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981904#3981904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981904
19 years, 5 months
[JBoss Seam] - Re: Scheduling in Seam?
by modoc
Ok thanks! I added that entry to the components.xml, which appears to fix the main issue. However, I'm now having two other problems with the async service.
The first is the following errors in the logs (although they don't appear to prevent the method from running:
| 14:08:31,304 INFO [EJB3Deployer] Deployed: file:/opt/jboss-4.0.5.GA/server/default/deploy/10MinuteMail.ear/10MinuteMail.jar/
| 14:08:31,366 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=10MinuteMail.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 with dependencies:
| 14:08:31,598 INFO [EJBContainer] STARTED EJB: org.jboss.seam.core.Dispatcher ejbName: Dispatcher
| 14:08:31,729 INFO [EJB3Deployer] Deployed: file:/opt/jboss-4.0.5.GA/server/default/deploy/10MinuteMail.ear/jboss-seam.jar
| 14:08:31,742 INFO [TomcatDeployer] deploy, ctxPath=/10MinuteMail, warUrl=.../deploy/10MinuteMail.ear/10MinuteMail.war/
|
|
| 14:08:31,766 ERROR [TimerImpl] Error invoking ejbTimeout: java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the context of a web application
| 14:08:31,767 ERROR [TimerImpl] Error invoking ejbTimeout: java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside the context of a web application
|
|
| 14:08:31,923 INFO [ServletContextListener] Welcome to Seam 1.1.0.BETA1
| 14:08:31,934 INFO [Initialization] reading components.xml
| 14:08:32,166 INFO [Initialization] reading properties from: /seam.properties
| 14:08:32,169 INFO [Initialization] reading properties from: /jndi.properties
| 14:08:32,213 INFO [Initialization] initializing Seam
|
The other problem is that the method gets called almost continuously. I don't know if it's every second, or immediately after the previous completion or what. I'm passing in 600,000 as the interval, I'm assuming that's milliseconds? So that should be every 10 minutes, I think.
| @Create
| public void doStartService() {
| mLog.info("Starting up...");
| mClientMap = new HashMap<String, SessionMailQueue>();
| mLog.info("Kicking off recurring email processor.");
| this.mEmailService.processEmailsRecurring(new Date(), 600000);
| }
|
However it just runs the method repeatedly without a pause.
Any suggestions would be appreciated. Thanks for all your help.
Regards,
Modoc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981897#3981897
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981897
19 years, 5 months