net.sourceforge.mystique.application
Class AddAttachmentForm

java.lang.Object
  extended by net.sourceforge.mystique.application.AddAttachmentForm

@Controller
@RequestMapping(value="/project/attachment/add.xhtml")
@SessionAttributes(value="attachment")
public class AddAttachmentForm
extends java.lang.Object

Author:
Elias Gomes [eliasgomes@users.sourceforge.net]

Constructor Summary
AddAttachmentForm()
           
 
Method Summary
 java.lang.String processSubmit(org.springframework.web.multipart.MultipartFile multipartFile, Attachment attachment, org.springframework.validation.BindingResult result, org.springframework.web.bind.support.SessionStatus status)
           
 void setAllowedFields(org.springframework.web.bind.WebDataBinder binder)
           
 java.lang.String setupForm(java.lang.Long ticketId, org.springframework.ui.Model model, org.springframework.web.context.request.WebRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddAttachmentForm

public AddAttachmentForm()
Method Detail

setAllowedFields

@InitBinder
public void setAllowedFields(org.springframework.web.bind.WebDataBinder binder)

setupForm

@RequestMapping(method=GET)
public java.lang.String setupForm(@RequestParam(value="ticketId")
                                                 java.lang.Long ticketId,
                                                 org.springframework.ui.Model model,
                                                 org.springframework.web.context.request.WebRequest request)
                           throws RepositoryException
Throws:
RepositoryException

processSubmit

@RequestMapping(method=POST)
public java.lang.String processSubmit(@RequestParam
                                                     org.springframework.web.multipart.MultipartFile multipartFile,
                                                     @ModelAttribute
                                                     Attachment attachment,
                                                     org.springframework.validation.BindingResult result,
                                                     org.springframework.web.bind.support.SessionStatus status)
                               throws RepositoryException,
                                      java.io.IOException
Throws:
RepositoryException
java.io.IOException


Copyright © 2010. All Rights Reserved.