天道酬勤,学无止境

outputformat

Can I use f:convertNumber with h:outputFormat

I have a composite component and this is a snippet from it. <h:outputFormat id="output" value="{0} / {1} / {2}" rendered="#{cc.attrs.readOnly}" styleClass="#{cc.attrs.styleClass}"> <f:param value="#{empty cc.attrs.value1 ? '-' : cc.attrs.value1}" /> <f:param value="#{empty cc.attrs.value2 ? '-' : cc.attrs.value2}" /> <f:param value="#{empty cc.attrs.value3 ? '-' : cc.attrs.value3}"/> </h:outputFormat> If I want to format value3 using <f:convertNumber>, how can I do that?

2021-06-28 13:25:21    分类:问答    java   jsf   outputformat

How to record raw AAC audio files in Android using MediaRecorder? AAC_ADTS doesn't work

I'm using the Android MediaRecorder to record AAC encoded audio files. Setting the output format to MPEG-4 worked pretty well. But as my audio player supports neither MPEG-4 nor 3GP I tried to get raw AAC files by using the output format AAC_ADTS, which is supported by Android since API level 16. mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); mRecorder.setOutputFile(mFileName); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC); Here is where I got stuck. The MediaRecorder created

2021-06-10 14:30:30    分类:问答    android   mediarecorder   aac   ADTS   outputformat