Hi,
by default you register dirty values on the client side by calling something like:
registerDirtyInformation(getId(),nowContent,byFlush,true,null,false);
But you can also add additional values in the following way:
registerDirtyInformation(getId()+".harry",nowContent,byFlush,true,null,false);
Only exception: do not use appendices with ".action*" because this is how action events are transferred.
You now need to tell the server side processing that there are additional values to be passed. The most simple way is to just tell the CaptainCasa processing in the component class on server side by overriding the method "appendDecodeInformation". We do it internally e.g. with the SMARTTEXTAREA component, where in addition to the text the cursor position is transferred:
Code:
public class SMARTTEXTAREAComponent
extends BaseActionComponent
{
@Override
protected void appendDecodeInformation(List<DecodePassData> decodeInfos)
{
super.appendDecodeInformation(decodeInfos);
decodeInfos.add(new DecodePassData(".textselectioninfo","textselectioninfo"));
}
}
The first parameter of DecodePassData is the "appendix" that you add from your client side component. THe second is the tag-attribute name of the component.
Regards, Björn