Hi.

In one of my elements i define a "submission" and an "inputbean":

   <submission name="alta">
       <bean classname="apigweb.Usuario"/>
       <param name="clave"></param>
   </submission>

   <input name="sid"/>
   <input name="idsaldo"/>
   <inbean name="licencia" classname="apigweb.Licencia"/>

Rife complains:

com.uwyn.rife.engine.exceptions.ParameterInputConflictException: The
parameter 'estado' in submission 'alta' of element 'altaUsuario.xml'
conflicts with an existing global input.

I guess the reason is both apigweb.Usuario and apigweb.Licencia have
some fields with the same name ("estado" and others)

I've been trying the prefixes of the named beans but can't get it right...

In http://rifers.org/wiki/display/RIFE/Named+beans+in+datalinks i see:

<element implementation="sample.Source">
 <outbean name="outbean1" classname="sample.BeanImpl" prefix="pre_"/>
 <exit name="beanexit"/>
</element>

<element implementation="sample.Destination">
 <inbean name="inbean1" classname="sample.BeanImpl" prefix="pre_"/>
</element>

<element id="SOURCE" file="sample/source.xml" url="/sample">
 <flowlink srcexit="beanexit" destid="DEST"/>
 <datalink srcoutbean="outbean1" destid="DEST" destinbean="inbean1"/>
</element>
<element id="DEST" file="sample/destination.xml"/>


I guess the prefix allows avoid that collision (although i wonder why
two fields from distinct beans "collide"). The method

setOutputBean()

can take a second parameter with the prefix, but the method

getNamedInputBean()

does not allow to specify a prefix. SO:

Who can i access the "inbean1" in the sample.Destination code?  with
getNamedInputBean("inbean1")? and the prefix?

Thanks.

--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to