log information
Hi,
I have attched the log information.
I have problem with the validation messages alone.
The validation mesages are properly sent from the server response and i can see the validation message in the client( Only after mouse over to the record).
But i need this to show the validation messages automatically in the curresponding row.
Update method in server action file
public DSResponse update(Domain domain)
{ log.debug("-- In Domain Update Method --");
DSResponse dsResponse = new DSResponse();
try {
// update code here --- updateDomain(domain);
} catch (javax.ejb.EJBException e) {
//validation code here dsResponse.setStatus(DSResponse.STATUS_VALIDATION_ERROR);
dsResponse.addError("domain","Duplicate entry '" +domain.getDomain() +"' for Domain");
dsResponse.setData (domain);
}
return dsResponse;
}
log information
19:06:19.234:INFO:EventHandler:Target Canvas for event 'mousedown': [ImgButton ID:saveIcon]
19:06:19.281:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[ImgButton ID:saveIcon]' has handler: Canvas.prepareForDragging()
19:06:19.328:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[ToolStrip ID:toolBar]' has handler: Canvas.prepareForDragging()
19:06:19.375:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VLayout ID:headerArea]' has handler: Canvas.prepareForDragging()
19:06:19.421:DEBUG:EventHandler:Bubbling event 'prepareForDragging', target '[VLayout ID:pageLayout]' has handler: Canvas.prepareForDragging()
19:06:19.468:DEBUG:EventHandler:Event 'prepareForDragging' bubbled to top
19:06:19.531:DEBUG:EventHandler:No dragTarget, not dragging
19:06:19.578:INFO:ImgButton:saveIcon:call to deprecated setClassName() property - use setStyleName() instead
19:06:19.625:DEBUG:EventHandler:Event 'mouseDown' bubbled to top
19:06:19.687:DEBUG:EventHandler:Event 'mouseStillDown' bubbled to top
19:06:19.765:DEBUG:nativeFocus:onblur fired on: [GridRenderer ID:indexList_body], activeElement: isc_R
19:06:19.796:DEBUG:nativeFocus:onfocus fired on: [ImgButton ID:saveIcon], activeElement: isc_R
19:06:19.843:INFO:EventHandler:Target Canvas for event 'mouseup': [ImgButton ID:saveIcon]
19:06:19.890:INFO:ImgButton:saveIcon:call to deprecated setClassName() property - use setStyleName() instead
19:06:19.937:DEBUG:EventHandler:Event 'mouseUp' bubbled to top
19:06:20.000:DEBUG:gridEdit:indexList:change detection: newValues: {domainId: "3",
domain: 100}, oldValues: {dateModified: "2007-08-16 11:24:10.0",
domain: "3424",
domainId: "3",
comment: "gdf",
name: "fdfdsfds",
dateCreated: "2007-08-16 11:24:10.0"}
19:06:20.046:DEBUG:gridEdit:indexList:At field: domain applying validators: [
{type: "integerRange",
max: 10000,
min: 1,
errorMessage: "The value can only be from 1 to 10000",
resultingValue: 100,
dynamicErrorMessageArguments: Obj}
]
19:06:20.093:INFO:gridEdit:indexList:validateFieldValue, newValue: 100, passed validation: true, resultingValue: 100
19:06:20.140:DEBUG:gridEdit:indexList:change detection: newValues: {domainId: "3",
domain: 100}, oldValues: {dateModified: "2007-08-16 11:24:10.0",
domain: "3424",
domainId: "3",
comment: "gdf",
name: "fdfdsfds",
dateCreated: "2007-08-16 11:24:10.0"}
19:06:20.203:DEBUG:gridEdit:indexList:At field: domain applying validators: [
{type: "integerRange",
max: 10000,
min: 1,
errorMessage: "The value can only be from 1 to 10000",
resultingValue: 100,
dynamicErrorMessageArguments: Obj}
]
19:06:20.250:INFO:gridEdit:indexList:validateFieldValue, newValue: 100, passed validation: true, resultingValue: 100
19:06:20.296:INFO:gridEdit:indexList:Saving newValues '{domainId: "3",
domain: 100}'
19:06:20.343:DEBUG:DataSource:domain:Outbound DSRequest: {operationType: "update",
dataSource: "domain",
data: Obj,
operation: undef,
application: undef,
willHandleError: true,
showPrompt: false,
oldValues: Obj{name:fdfdsfds},
clientContext: Obj}
19:06:20.390:INFO:DataSource:domain:performDSOperation(update) 1 records, queuing
19:06:20.453:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
19:06:20.500:INFO:DataSource:domain:operation: update submitted against DataSource domain, 2 ResultSets will be affected
19:06:20.562:INFO:RPCManager:sendQueue[7]: 1 RPCRequest(s); transport: xmlHttpRequest; target: http://localhost/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=7
19:06:20.640:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
19:06:20.703:DEBUG:RPCManager:XMLHttpRequest POST to http://localhost/isomorphic/IDACall?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=7 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">7</transactionNum><operations xsi:type="xsd:List"><elem xsi:type="xsd:Object"><where xsi:type="xsd:Object"><domainId>3</domainId></where><values xsi:type="xsd:Object"><dateModified>2007-08-16 11:24:10.0</dateModified><domain xsi:type="xsd:long">100</domain><domainId>3</domainId><comment>gdf</comment><name>fdfdsfds</name><dateCreated>2007-08-16 11:24:10.0</dateCreated></values><operationConfig xsi:type="xsd:Object"><dataSource>domain</dataSource><operationType>update</operationType></operationConfig><appID>builtinApplication</appID><operation>domain_update</operation><oldValues xsi:type="xsd:Object"><dateModified>2007-08-16 11:24:10.0</dateModified><domain>3424</domain><domainId>3</domainId><comment>gdf</comment><name>fdfdsfds</name><dateCreated>2007-08-16 11:24:10.0</dateCreated></oldValues></elem></operations></transaction>&protocolVersion=1.0<--
19:06:20.765:INFO:ImgButton:saveIcon:call to deprecated setClassName() property - use setStyleName() instead
19:06:20.859:DEBUG:EventHandler:Event 'click' bubbled to top
19:06:21.031:INFO:RPCManager:transaction 7 arrived after 406ms
19:06:21.078:DEBUG:RPCManager:Result string for transaction 7: "//isc_RPCResponseStart-->[
{
errors:[
{
domain:{errorMessage:"Duplicate entry '100' for Domain"}
}
],
invalidateCache:false,
data:{comment:"gdf", domain:100, domainId:3, name:"fdfdsfds",
dateModified:Date.parseServerDate(2007,7,17),dateCreated:Date.parseServerDate(2007,7,16)},
endRow:0,
status:-4,
isDSResponse:true,
totalRows:0,
startRow:0
}
]//isc_RPCResponseEnd"
19:06:21.125:INFO:RPCManager:rpcResponse(custom)[rpc]: [status=-4], result: object
19:06:21.171:INFO:gridEdit:indexList:error on save, status: -4, errors: [Obj
]
19:06:23.671:DEBUG:EventHandler:mousing out of [ImgButton ID:saveIcon] mousing over [ToolStrip ID:toolBar]
19:06:23.734:DEBUG:Label:isc_Label_92:setRect: {left: -10000,
top: -1000,
width: undef,
height: undef}
19:06:24.140:DEBUG:nativeFocus:onblur fired on: [ImgButton ID:saveIcon], activeElement: isc_R
19:06:27.609:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
19:06:27.703:INFO:RPCManager:sendQueue[8]: 1 RPCRequest(s); transport: xmlHttpRequest; target: alarm.do?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=8
19:06:27.859:DEBUG:RPCManager:Using ActiveX XMLHttpRequest via constructor: MSXML2.XMLHTTP
19:06:27.968:DEBUG:RPCManager:XMLHttpRequest POST to alarm.do?is_isc_rpc=true&isc_clientVersion=5.6&xmlHttp=true&iscTNum=8 contentType: application/x-www-form-urlencoded; charset=UTF-8 with body -->_transaction=<transaction xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:type="xsd:Object"><transactionNum xsi:type="xsd:long">8</transactionNum><operations xsi:type="xsd:List"><elem
Thanks,
Rajadurai T