diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-03-31 22:35:43 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-03-31 22:35:43 -0700 |
commit | 38c12cf70ef4714a7fc508f7fbaf44487ea971b7 (patch) | |
tree | 59d29b82f65952653f789615db1003b431be607a /src/com/p4square/grow/frontend | |
parent | cfb2c5ef6582e51ae9cfdfff35e12b5b7fdc24fb (diff) |
Locking down restlet library version.
While trying to fix this issue, I also moved FMFacade into this package
and fixed a couple bugs that snuck into the last commit.
Diffstat (limited to 'src/com/p4square/grow/frontend')
-rw-r--r-- | src/com/p4square/grow/frontend/SurveyPageResource.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/p4square/grow/frontend/SurveyPageResource.java b/src/com/p4square/grow/frontend/SurveyPageResource.java index 1f9c56c..4bb132a 100644 --- a/src/com/p4square/grow/frontend/SurveyPageResource.java +++ b/src/com/p4square/grow/frontend/SurveyPageResource.java @@ -33,7 +33,6 @@ import com.p4square.grow.model.UserRecord; import com.p4square.grow.provider.DelegateProvider; import com.p4square.grow.provider.JsonEncodedProvider; import com.p4square.grow.provider.Provider; -import com.p4square.grow.provider.QuestionProvider; /** * SurveyPageResource handles rendering the survey and processing user's answers. @@ -71,7 +70,9 @@ public class SurveyPageResource extends FreeMarkerPageResource { } mJsonClient = new JsonRequestClient(getContext().getClientDispatcher()); - mQuestionProvider = new QuestionProvider<String>(new JsonRequestProvider<Question>(getContext().getClientDispatcher(), Question.class)) { + mQuestionProvider = new DelegateProvider<String, String, Question>( + new JsonRequestProvider<Question>(getContext().getClientDispatcher(), + Question.class)) { @Override public String makeKey(String questionId) { return getBackendEndpoint() + "/assessment/question/" + questionId; |