ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grant Edwards" <grant.eric.edwa...@gmail.com>
Subject FORM help for newbie --- parameter is missing: [IN]
Date Wed, 06 Feb 2008 14:26:08 GMT

In the following two form segments, when the users clicks on the hyperlink
or the "submit button" I need to add the respective MessageRequestor or
MessageUrl into the "context" Map which is available to the executeJob
service method. However try as I may I dont seem to get this correct.

 <form name="RequestorList" type="list" list-name="requestors">
        <auto-fields-entity entity-name="MessageRequestor"
        <field name="Url">
            <hyperlink target="urls?requestorRowId=${id}"
description="Target Url"/>

 <form name="Execute" type="single" target="executeJob" > <!-- this form
posts to "executeJob" (see controller.xml) -->
        <field name="url">
                <entity-options entity-name="MessageUrl" description="${url}
        <field name="submitButton" title="Run Job"
widget-style="standardSubmit"><submit button-type="button"/></field>

----This is my service definition----
<service name="executeJob" engine="java" export="true"
location="..............SomeService" invoke="executeJob">
        <description>Execute a job</description>
        <attribute name="messageRequestor" type="
org.ofbiz.entity.GenericValue" mode="IN" optional="false"/>
        <attribute name="messageUrl" type="org.ofbiz.entity.GenericValue"
mode="IN" optional="false"/>
        <attribute name="responseXmlDoc" type="String" mode="OUT"

public static Map executeJob(DispatchContext dctx, Map context) {

---- exception report
Incoming context (in runSync : executeJob) does not match expected
Exception: org.ofbiz.service.ServiceValidationException
Message: The following required parameter is missing: [IN] [
executeJob.messageRequestor]The following required parameter is missing:
[IN] [executeJob.messageUrl]
---- stack trace

Any help would be appreciated.

Thank you.

Grant Edwards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message