Created
October 6, 2016 17:57
-
-
Save bryceosterhaus/fcfd19e58e50d006e3363bb9bf63ae9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void index() throws Exception { | |
| JSONArray loopJobTitleCompositesJSONArray = JSONFactoryUtil.createJSONArray(); | |
| List<LoopJobTitleComposite> loopJobTitleComposites = LoopJobTitleUtil.getLoopJobTitleComposites(themeDisplay); | |
| for (LoopJobTitleComposite loopJobTitleComposite : loopJobTitleComposites) { | |
| loopJobTitleCompositesJSONArray.put(loopJobTitleComposite.getJSONObject()); | |
| } | |
| renderRequest.setAttribute("loopJobTitleCompositesJSONArray", loopJobTitleCompositesJSONArray); | |
| renderRequest.setAttribute("loopJobTitleCount", getBaseModelsCount(null, null)); | |
| if (!isRespondingTo("json")) { | |
| return; | |
| } | |
| respondWith(loopJobTitleCompositesJSONArray); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 13 -> 18 is new