Hm... this looks alright to me - the only thing that is a bit strange are the context paths in the urls you posted... is you magnolia instance really called "mymodule"?

Check for typos in the configuration... e.g. the "pages" folder name.

Other than that I don't have an idea what could be wrong - works fine for me. And no, I did not find a manual / wiki for this so far. I just had a look at the code of the PUR module. But how about if you would document your findings? This would be the basis for a good wiki article.

Good luck!

-will

On 30.09.2008, at 11:02, Leviter wrote:


I decided to dot it the "proper" Magnolia way, but cannot find enough
information about it to get me started.   :-((

I created my own Java class and created a "pages" folder in my module
configuration. In this folder I created my "stateDispatcher" (content node) and set the class for it to my own Java class. I even set the name property,
but do not think this is a mandatory property.

But this cannot be all I have to do (since it does not work it clearly
isn't)...

When I navigate to my page
(http://localhost:8080/mymodule/.magnolia/pages/ stateDispatcher.html) I get
2 warnings in my console:

WARN   info.magnolia.module.admininterface.PageHandlerManager
PageHandlerManager.java(getPageHandler:89) 30.09.2008 09:58:33  Page
definition not found: "stateDispatcher"
WARN info.magnolia.cms.servlets.MVCServlet MVCServlet.java(doPost: 115)
30.09.2008 09:58:33  no handler found for url
/vanlanschot-module/.magnolia/pages/stateDispatcher.html

What did I miss? And is there any documentation (on the wiki or
documentation site) about this subject?

Cheers,
-- Marcel



Magnolia - User mailing list wrote:

I can think of three possibilities... but I'm sure there are more:

1. Very easy - quite "unsecure"
2. Quite easy but a bit ugly + requires special template
3. More complicated but probably the "proper" Magnolia way to do it:
Use a Magnolia "page"
Have a look at "pages" concept and how they are configured:
        - e.g. config: /modules/adminInterface/pages/...
        - info.magnolia.module.admininterface.PageMVCHandler



--
View this message in context: 
http://www.nabble.com/Dispatching-from-one-%28form%29page-to-one-of-four.-tp19724471p19738493.html
Sent from the Magnolia - User mailing list archive at Nabble.com.


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to