小编sor*_*rab的帖子

从Store Paging Memory中删除记录后刷新Extjs Grid

我有EXT JS Grid.当我从网格中删除记录时,它将从页面中删除.但是,当我做下一个/上一个时,数据会再次显示.删除记录后,工具栏也不会显示正确的统计信息.

你能帮忙吗?

<script type="text/javascript" src="/extjs-4.0.7/ext-all.js"></script>
<script type="text/javascript" src="/extjs-4.0.7/examples/ux/data/PagingMemoryProxy.js"></script>

<link rel="stylesh`enter code here`eet" type="text/css" href="/extjs-4.0.7/resources/css/ext-all.css" />

<script>
    var selectedRecord = null;

    function getRecord() {
        return selectedRecord;
    }

    var data = '{"user":[sample date for the grid]}';
    var workitemList = "";
    var selectedItems = new Array();

    Ext.onReady(function() {
        Ext.QuickTips.init();
        Ext.tip.QuickTipManager.init();

        Ext.define('Model', {
            extend: 'Ext.data.Model',
            fields: [{
                    name: 'WORKITEMID',
                    mapping: 'WORKITEMID'
                },
                {
                    name: 'ALERTID',
                    mapping: 'ALERTID'
                },    
            ]
        });

        var storeMain = Ext.create('Ext.data.Store', {
            model: 'Model',
            autoLoad: false,
            buffered: false,
            pageSize: …
Run Code Online (Sandbox Code Playgroud)

grid extjs refresh

5
推荐指数
1
解决办法
1177
查看次数

WTRN0037W: 事务服务在 xa_recover 操作中遇到错误

我正在使用 WSA 8.5 、JDK 6、JDBC 11。我收到 XAException。我已按照其他帖子的建议设置了授予权限,但没有解决我的问题。

你能帮忙吗?此问题在负载测试下创建巨大的日志文件并导致应用程序挂起。

我在 SystemOut.log 中收到以下错误

[11/19/15 18:02:41:029 IST] 0000003d WSRdbXaResour E   DSRA0304E:  XAException occurred. XAException contents and details are: The cause is               : null.
[11/19/15 18:02:41:030 IST] 0000003d WSRdbXaResour E   DSRA0302E:  XAException occurred.  Error code is: XAER_RMERR (-3).  Exception is: <null>
[11/19/15 18:02:41:030 IST] 0000003d XARminst      E   WTRN0037W: The transaction service encountered an error on an xa_recover operation. The resource was com.ibm.ws.rsadapter.spi.WSRdbXaResourceImpl@cc24166c. The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException
        at …
Run Code Online (Sandbox Code Playgroud)

websphere

2
推荐指数
1
解决办法
7453
查看次数

ZonedDateTime 忽略 ss 部分的 00

我正在尝试转换字符串值“2018-10-11T12:00:00Z”;到 ZonedDateTime。如果我使用默认的 ZonedDateTime.parse(zonedDateTime) ,则 ss 部分即 00 被删除,并且我得到“2018-10-11T12:00Z”作为输出。

您能帮忙如何保留 00 作为 SS 部分吗?

String zonedDateTime = "2018-10-11T12:00:00Z";

ZonedDateTime z =  ZonedDateTime.parse(zonedDateTime);
System.out.println(z);  // return 2018-10-11T12:00Z

ZonedDateTime z1 =  ZonedDateTime.parse (zonedDateTime, DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ") );

System.out.println(z1);  // Exception : Text '2018-10-11T12:00:00Z' could not be parsed at index 19
Run Code Online (Sandbox Code Playgroud)

java datetime-format seconds datetime-parsing zoneddatetime

2
推荐指数
1
解决办法
1924
查看次数

如何使用 ReadBodyPredicateFactory 缓存负载数据

我有 Spring Boot 微服务,并使用 swagger 发送大量有效负载。在服务器上我只得到 15000 个字符,并且重置 2000 个字符未读取。

如何使用 ReadBodyPredicateFactory 缓存正文消息文本?

我正在使用 springcloudgateway 并添加了过滤器。在 apply 方法的过滤器中,我尝试使用读取有效负载 json

  DefaultServerRequest serverRequest = new DefaultServerRequest(exchange);
  body = serverRequest.bodyToMono(String.class).toFuture().get();
Run Code Online (Sandbox Code Playgroud)

有时会挂起。

我尝试使用 Flux,然后只收到一半消息 Flux body = request.getBody();

    body.subscribe(buffer -> {

        try {
            System.out.println("byte count:" + 
           buffer.readableByteCount());
            byte[] bytes = new byte[buffer.readableByteCount()];
            buffer.read(bytes);
            DataBufferUtils.release(buffer);
            String bodyString = new String(bytes, StandardCharsets.UTF_8);
            sb.append(bodyString);
        } catch (Exception e) {
            e.printStackTrace();
        }
Run Code Online (Sandbox Code Playgroud)

cloud spring gateway

1
推荐指数
1
解决办法
2596
查看次数