Add Conference suite... Ajout du back
Policy failures: Code warning - failed on resource AddConferenceController2.java. Reason: The import org.yacos.web.author.form.FormSubmission is never used, line 1 Override reason: prout
This commit is contained in:
@@ -4,6 +4,7 @@ submission.title=Article's submission
|
|||||||
|
|
||||||
form.submission.article.title=Article's title
|
form.submission.article.title=Article's title
|
||||||
form.submission.article.theme=Article's theme
|
form.submission.article.theme=Article's theme
|
||||||
|
form.submission.article.abstractText=Abstract
|
||||||
form.submission.listauthor=Article's author
|
form.submission.listauthor=Article's author
|
||||||
form.submission.mainauthor=Main author
|
form.submission.mainauthor=Main author
|
||||||
form.submission.secondaryauthor=Secondary author
|
form.submission.secondaryauthor=Secondary author
|
||||||
@@ -27,4 +28,7 @@ preference.ok=You have successfully chosen all your preferences about each artic
|
|||||||
dispatch.title=Dispatch the articles to the members
|
dispatch.title=Dispatch the articles to the members
|
||||||
|
|
||||||
# Conference Form
|
# Conference Form
|
||||||
conference.linkMenu.title=Adding Conference
|
conference.titleMenu=Add a conference
|
||||||
|
conference.title=Title
|
||||||
|
conference.description=Description
|
||||||
|
conference.otherInformations=Complementary information
|
||||||
@@ -8,8 +8,6 @@
|
|||||||
<title><fmt:message key="title" /></title>
|
<title><fmt:message key="title" /></title>
|
||||||
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
<link rel="stylesheet" href="./stylesheets/base.css" type="text/css" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function doSubmit()
|
function doSubmit()
|
||||||
{
|
{
|
||||||
@@ -19,7 +17,6 @@ form.submit();
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@@ -32,11 +29,15 @@ form.submit();
|
|||||||
<div id="main_content">
|
<div id="main_content">
|
||||||
|
|
||||||
|
|
||||||
<h2 align="center">Add new conference</h2>
|
<h2 align="center"><fmt:message key="conference.titleMenu" /></h2>
|
||||||
|
|
||||||
<form:form commandName="formConference" name="monForm">
|
<form:form commandName="formConference" name="monForm">
|
||||||
|
|
||||||
|
<input type="hidden" name="typeAction" value="">
|
||||||
|
|
||||||
Formulaire ici
|
<fmt:message key="conference.title" /> <input type="text" name="title"/> <br/><br />
|
||||||
|
<fmt:message key="conference.description" /> <textarea name="description"></textarea> <br/><br />
|
||||||
|
<fmt:message key="conference.otherInformations" /> <textarea name="otherInformations"></textarea> <br/><br />
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
@@ -44,7 +45,7 @@ form.submit();
|
|||||||
|
|
||||||
</form:form>
|
</form:form>
|
||||||
|
|
||||||
|
<br />
|
||||||
<a href="<c:url value="main.htm"/>">Home</a></div>
|
<a href="<c:url value="main.htm"/>">Home</a></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer"> </div>
|
<div class="footer"> </div>
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ form.submit();
|
|||||||
function doBack()
|
function doBack()
|
||||||
{
|
{
|
||||||
var form = document.monForm2;
|
var form = document.monForm2;
|
||||||
form.action = 'addConference.htm';
|
form.action = 'addConference2.htm';
|
||||||
|
form.typeAction.value = 'back';
|
||||||
form.submit();
|
form.submit();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -40,6 +41,8 @@ form.submit();
|
|||||||
|
|
||||||
<form:form commandName="formConference2" name="monForm2">
|
<form:form commandName="formConference2" name="monForm2">
|
||||||
|
|
||||||
|
<input type="hidden" name="typeAction" value="">
|
||||||
|
|
||||||
Formulaire ici
|
Formulaire ici
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="submission.title" /></a></li>
|
<li><a href="<c:url value="submissionArticle.htm"/>"><fmt:message key="submission.title" /></a></li>
|
||||||
<li><a href="<c:url value="choosePreference.htm"/>"><fmt:message key="preference.title" /></a></li>
|
<li><a href="<c:url value="choosePreference.htm"/>"><fmt:message key="preference.title" /></a></li>
|
||||||
<li><a href="<c:url value="dispatchArticle.htm"/>"><fmt:message key="dispatch.title" /></a></li>
|
<li><a href="<c:url value="dispatchArticle.htm"/>"><fmt:message key="dispatch.title" /></a></li>
|
||||||
<li><a href="<c:url value="addConference.htm"/>"><fmt:message key="conference.linkMenu.title" /></a></li>
|
<li><a href="<c:url value="addConference.htm"/>"><fmt:message key="conference.titleMenu" /></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer"> </div>
|
<div class="footer"> </div>
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ function Supprimer(form) {
|
|||||||
<form:label path="title"><fmt:message key="form.submission.article.title" /></form:label> <form:input path="title"/> <br/><br />
|
<form:label path="title"><fmt:message key="form.submission.article.title" /></form:label> <form:input path="title"/> <br/><br />
|
||||||
<form:label path="theme"><fmt:message key="form.submission.article.theme" /></form:label> <form:input path="theme"/> <br/><br />
|
<form:label path="theme"><fmt:message key="form.submission.article.theme" /></form:label> <form:input path="theme"/> <br/><br />
|
||||||
|
|
||||||
|
<form:label path="abstractText"><fmt:message key="form.submission.article.abstractText" /></form:label> <form:textarea path="abstractText" /><br/><br/>
|
||||||
|
|
||||||
<hr /> <br />
|
<hr /> <br />
|
||||||
|
|
||||||
<label for="listauthor"><fmt:message key="form.submission.listauthor" /></label> <br /><br />
|
<label for="listauthor"><fmt:message key="form.submission.listauthor" /></label> <br /><br />
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ public class SArticleController extends SimpleFormController {
|
|||||||
else {
|
else {
|
||||||
|
|
||||||
byte b[] = file.getBytes();
|
byte b[] = file.getBytes();
|
||||||
File file2 = new File(file.getOriginalFilename()); //mettre le bon path ici
|
File file2 = new File(file.getOriginalFilename());
|
||||||
|
// TODO mettre le bon path ici
|
||||||
|
|
||||||
FileOutputStream fos = new FileOutputStream(file2);
|
FileOutputStream fos = new FileOutputStream(file2);
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ public class FormSubmission {
|
|||||||
private String mainauthor;
|
private String mainauthor;
|
||||||
private String secondaryauthor;
|
private String secondaryauthor;
|
||||||
private ArrayList<String> liste;
|
private ArrayList<String> liste;
|
||||||
|
private String abstractText;
|
||||||
|
|
||||||
public FormSubmission() {
|
public FormSubmission() {
|
||||||
|
|
||||||
@@ -59,4 +60,12 @@ public class FormSubmission {
|
|||||||
this.liste = liste;
|
this.liste = liste;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAbstractText() {
|
||||||
|
return abstractText;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAbstractText(String abstractText) {
|
||||||
|
this.abstractText = abstractText;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,16 @@ public class AddConferenceController extends SimpleFormController{
|
|||||||
HttpServletResponse response, Object command, BindException errors)
|
HttpServletResponse response, Object command, BindException errors)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
logger.info("Returning addConference view");
|
String typeAction = ((FormConference) command).getTypeAction();
|
||||||
|
|
||||||
|
logger.info(((FormConference) command).getTitle());
|
||||||
|
|
||||||
|
if (typeAction.equals("back")) {
|
||||||
|
logger.info("je passe ds le back du controller 1");
|
||||||
|
return new ModelAndView("addConference");
|
||||||
|
}
|
||||||
|
|
||||||
|
logger.info("Returning addConference2 view");
|
||||||
return new ModelAndView(new RedirectView("addConference2.htm"));
|
return new ModelAndView(new RedirectView("addConference2.htm"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,6 +47,7 @@ public class AddConferenceController extends SimpleFormController{
|
|||||||
FormConference conference = null;
|
FormConference conference = null;
|
||||||
|
|
||||||
conference = new FormConference();
|
conference = new FormConference();
|
||||||
|
|
||||||
|
|
||||||
return conference;
|
return conference;
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|||||||
import org.springframework.web.servlet.mvc.SimpleFormController;
|
import org.springframework.web.servlet.mvc.SimpleFormController;
|
||||||
import org.springframework.web.servlet.view.RedirectView;
|
import org.springframework.web.servlet.view.RedirectView;
|
||||||
import org.yacos.core.conferences.IConferenceManager;
|
import org.yacos.core.conferences.IConferenceManager;
|
||||||
|
import org.yacos.web.author.form.FormSubmission;
|
||||||
import org.yacos.web.chairman.form.FormConference;
|
import org.yacos.web.chairman.form.FormConference;
|
||||||
|
|
||||||
public class AddConferenceController2 extends SimpleFormController{
|
public class AddConferenceController2 extends SimpleFormController{
|
||||||
@@ -29,6 +30,13 @@ public class AddConferenceController2 extends SimpleFormController{
|
|||||||
HttpServletResponse response, Object command, BindException errors)
|
HttpServletResponse response, Object command, BindException errors)
|
||||||
throws Exception
|
throws Exception
|
||||||
{
|
{
|
||||||
|
String typeAction = ((FormConference) command).getTypeAction();
|
||||||
|
|
||||||
|
if (typeAction.equals("back")) {
|
||||||
|
logger.info("je passe ds le back du controller 2");
|
||||||
|
return new ModelAndView("addConference");
|
||||||
|
}
|
||||||
|
|
||||||
logger.info("Returning addConference2 view");
|
logger.info("Returning addConference2 view");
|
||||||
return new ModelAndView(new RedirectView("addConference3.htm"));
|
return new ModelAndView(new RedirectView("addConference3.htm"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import java.util.Date;
|
|||||||
public class FormConference {
|
public class FormConference {
|
||||||
|
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private String titre;
|
private String title;
|
||||||
private String description;
|
private String description;
|
||||||
private String otherInformations;
|
private String otherInformations;
|
||||||
private Date dateAbstract;
|
private Date dateAbstract;
|
||||||
@@ -14,6 +14,8 @@ public class FormConference {
|
|||||||
private Date dateStart;
|
private Date dateStart;
|
||||||
private Date dateEnd;
|
private Date dateEnd;
|
||||||
|
|
||||||
|
private String typeAction;
|
||||||
|
|
||||||
public FormConference () {}
|
public FormConference () {}
|
||||||
|
|
||||||
public Integer getId() {
|
public Integer getId() {
|
||||||
@@ -24,12 +26,12 @@ public class FormConference {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTitre() {
|
public String getTitle() {
|
||||||
return titre;
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTitre(String titre) {
|
public void setTitle(String title) {
|
||||||
this.titre = titre;
|
this.title = title;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
@@ -87,6 +89,14 @@ public class FormConference {
|
|||||||
public void setDateEnd(Date dateEnd) {
|
public void setDateEnd(Date dateEnd) {
|
||||||
this.dateEnd = dateEnd;
|
this.dateEnd = dateEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTypeAction() {
|
||||||
|
return typeAction;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTypeAction(String typeAction) {
|
||||||
|
this.typeAction = typeAction;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user