[JBoss Seam] - How to set
by haefti
Hi!
I'm pretty new to Seam and have problem with <s:selectItems>.
The following code
| <h:selectOneListbox size="10">
| <s:selectItems value="#{videos}" var="video"
| label="#{video.videoId} - #{video.headline}" />
| <s:convertEntity />
| </h:selectOneListbox>
|
does this (I used braces here because the forum didn't want to display the option-tags.)
anonymous wrote :
| {option value="1"}250 - Headline 1{/option}
| {option value="2"}140 - Headline 2{/option}
| {option value="3"}7 - Headline 3{/option}
| .
| .
|
but I would like to have
anonymous wrote :
| {option value="250"}250 - Headline 1{/option}
| {option value="140"}140 - Headline 2{/option}
| {option value="7"}7 - Headline 3{/option}
| .
| .
|
so that the videoId is transported as parameter when submitting the form.
What do I have to change to change the value attribute of the option tags to a property of the variable?
Thanks!
Haefti
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107428#4107428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107428
18 years, 8 months
[Beginners Corner] - FileUpload from MS Client
by rupang
Hello,
I am trying to upload a file (word 2003 doc) which is less than 50KB
My Client is MS VB.NET ("Windows Form") Program which is using WebClient.UploadFile(strUploadURL, "POST", strFullFileName)
And Server Side is JBoss-4.0.5.GA with Struts2 and Spring2
I have setup a Servlet with doPost Method which is getting called from the (above) client method. as soon as request arrives on the server I get following message:(Without even executing the first line in the doPost method which is to Log the request if (logger.isDebugEnabled()) )
[STDOUT] 14:52:02,324 INFO [Dispatcher] Unable to find 'struts.multipart.saveDir' property setting. Defaulting to javax.servlet.context.tempdir
[STDOUT] 14:52:02,480 ERROR [MultiPartRequest] org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
Kindly help me to find solution for this issue!
Thanks,
Rupang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107427#4107427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107427
18 years, 8 months