Request-map problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Request-map problem

Magnoli
Hello,

        I want to implement a simple messaging system(something like twitter) based on the current NoteInfo. My idea is that doing this in the projectView screen.
but every time after I input a message the page will jump from the projectview screen  to another screen.
I checked the controller.xml in the workeffort component and it says

 <request-map uri="createWorkEffortNote">
        <security https="true" auth="true"/>
        <event type="service" invoke="createWorkEffortNote"/>
        <response name="success" type="view" value="EditWorkEffortNotes"/>After the service, that's where the browser goes to
        <response name="error" type="view" value="EditWorkEffortNotes"/>
    </request-map>

If I change the value like value=projectView
then nothing comes out since we need projectID parameter like projectView?projectID=9000.
So should I do this in a different way or make other modifications?

Thanks
Tanlin
Reply | Threaded
Open this post in threaded view
|

Re: Request-map problem

Jacques Le Roux
Administrator
Try to use a request-redirect and pass projectID as a parameter
See examples in code (ie don't expect more help from me...)

Jacques

From: "谭麟" <[hidden email]>
Hello,

        I want to implement a simple messaging system(something like twitter) based on the current NoteInfo. My idea is that doing
this in the projectView screen.
but every time after I input a message the page will jump from the projectview screen  to another screen.
I checked the controller.xml in the workeffort component and it says

 <request-map uri="createWorkEffortNote">
        <security https="true" auth="true"/>
        <event type="service" invoke="createWorkEffortNote"/>
        <response name="success" type="view" value="EditWorkEffortNotes"/>After the service, that's where the browser goes to
        <response name="error" type="view" value="EditWorkEffortNotes"/>
    </request-map>

If I change the value like value=projectView
then nothing comes out since we need projectID parameter like projectView?projectID=9000.
So should I do this in a different way or make other modifications?

Thanks
Tanlin