| Hi Simone, many thanks for your reply. Would you by any chance have an example of a very simple process done in a .js and .java version? I take it that I can still reference the java classes from my sitemap as I would do the flowscripts?: <map:flow language="java"> <map:script src=""/> </map:flow> How would I reference method calls from the site map to java methods? In _javascript_ it would be: <map:call function="terms"> <map:parameter name="page_Name" value="account"/> </map:call> Would I be correct in thinking that I would do: <map:call login.user="terms"> <map:parameter name="page_Name" value="account"/> </map:call> How would I read the parameter into the class/method from the sitemap? Like so?: private String artistID = cocoon.parameters.artistID; Would I pass it from the sitemap the same was as shown above?: <map:parameter name="page_Name" value="account"/> What about persisting data? I have a variable which persists a user object after a user has logged in: var userGlobal = cocoon.session.getAttribute("user"); Would the javaflow equiv be: private Object userGlobal = cocoon.session.getAttribute("user"); ??? How do i represent forms in javaflow: var form = new Form("forms/artistOrder.xml"); form.showForm("artistLyricsPopUp1.xml",{"artistID":artistID,"artist_name":artist_name,"artist_info":artist_info,"track_lyrics":track_lyrics,"track_title":track_title,"userGlobal":userGlobal}); var model = form.getModel(); var bizData = {"next" : model.next, "delItem" : model.delItem, "quantity" : model.quantity} and finally would I be correct in thinking that continuation is still represented as: cocoon.sendPageAndWait("artistDetails2.xml",{"artistID":artistID}); many thanks Andrew Hi Andrew, |
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript [ Javaflow] Simone Gianni
- Re: Cast type in flowscript [ Javaflow] Andrew Madu
- Re: Cast type in flowscript [ Javaflow] Jason Johnston
- Re: Cast type in flowscript [ Javaflow] Simone Gianni
- Re: Cast type in flowscript [ Javaflow] Andrew Madu
- Re: Cast type in flowscript [ Javaflow] Simone Gianni
- Re: Cast type in flowscript [ Javaflow] Andrew Madu
- Re: Cast type in flowscript [ Javaflo... Simone Gianni
- Re: Cast type in flowscript [ Javaflow] Andrew Madu
