"david.spark" wrote : One problem is that the @Out annotation should be in the
code where the athlete was originally selected. How is the athlete that you want to upload
the workout for selected?
The athlete is selected via a xhtml page. I've been using seam-gen. So imagine the
athleteList.xthml page. I merely added a link to the uploadWorkout page:
| <h:column>
| <f:facet name="header">Calendar</f:facet>
| <s:link id="athlete"
| value="Calendar"
| view="/workoutList.xhtml">
| <f:param name="workoutId"
| value="#{workout.id}"/>
| <f:param name="athleteId"
| value="#{athlete.id}"/>
| </s:link>
| </h:column>
|
The @Out was placed in athlete.java
uploadWorkout.xhtml looks like this:
| <s:fileUpload id="inUploadFile"
| data="#{uploadedWorkout.uploadedFile}"
| fileName="#{uploadedWorkout.fileName}"
| contentType="#{uploadedWorkout.contentType}"
| styleClass="fileUploadInput" />
| <div style="clear:both"/>
|
| </rich:panel>
|
| <div class="actionButtons">
| <h:commandButton id="uploadWorkout" value="Upload
Workout"
| action="#{uploadWorkout.uploadWorkout}"/>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072455#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...