This content has been marked as final.
Show 5 replies
-
1. Re: Problem in displaying right output
dhinojosa Aug 13, 2008 12:57 AM (in response to rbhayani)<s:button> doesn't submit the form. Was that intentional?
Can we also see your backing beans (uservoicemessages, showuservoicemessage) for that? -
2. Re: Problem in displaying right output
rbhayani Aug 13, 2008 6:53 AM (in response to rbhayani)here's the backing bean
@DataModelSelection
@Out(required = false)
private UserVoiceMessage uservoicemessage;
@Stateful
@Name("showuservoicemessage")
public class VoiceMessageAction implements VoiceMessage, Serializable {
public String delete() {
if (uservoicemessage != null) {
uservoicemessages.remove(uservoicemessage);
em.remove(uservoicemessage);
uservoicemessage = null;
setStatus(false);
}
return findVoiceMessage();
}
@Begin
@Factory("uservoicemessages")
@SuppressWarnings("unchecked")
public String findVoiceMessage() {
uservoicemessages = em.createQuery(
"select o from UserVoiceMessage o where o.user = :user")
.setParameter("user", user).getResultList();
uservoicemessage = null;
return "voicemessage";
}
public void play() {
if (uservoicemessage != null) {
String muccWebAudioDir = null;
String MUCC_WEB_AUDIO_WAR = "mucc-web-audio.war";
String JBOSS_BIND_ADDRESS = System.getProperty(
"jboss.bind.address", "127.0.0.1");
String fileName = uservoicemessage.getFileName();
muccWebAudioDir = (new StringBuffer("http://").append(
JBOSS_BIND_ADDRESS).append(":8080/").append(MUCC_WEB_AUDIO_WAR)
.append("/audio/")).append(fileName).toString();
System.out.println("The muccWebAudioDir is:" +muccWebAudioDir);
uservoicemessage.setRead(true);
setCurrentVoiceMessage(muccWebAudioDir);//filePath
setStatus(true);
}
}
} -
3. Re: Problem in displaying right output
rbhayani Aug 16, 2008 8:41 AM (in response to rbhayani)Can anyone please help me on this ASAP?
It's getting a bit critical for me.
Please....
-
4. Re: Problem in displaying right output
nickarls Aug 16, 2008 9:16 AM (in response to rbhayani)s:button still doesn't submit the form.
-
5. Re: Problem in displaying right output
rbhayani Aug 16, 2008 2:57 PM (in response to rbhayani)I am using this and form does get submitted...