Giter Club home page Giter Club logo

Comments (1)

ralscha avatar ralscha commented on July 30, 2024

No they can't handle additional parameters. Haven't found a solution for
that. My approach is adding the properties to the object. In your case
adding confId to the class ScannerPreferences. One thing you could try is
using Map<String,Object> as parameter. But then you have to get the value
out of the map and set it into your object.

@ExtDirectMethod(value = ExtDirectMethodType.STORE_MODIFY)
public ScannerPreferences addScannerPreferences(Map<String,Object> values)
{

Not sure if that works.

Ralph

On Tue, Jul 31, 2012 at 12:56 PM, salamoun <
[email protected]

wrote:

Hello,
is it possible to send some extra params to STORE_MODIFY funciton?

Someting like this:
@ExtDirectMethod(value = ExtDirectMethodType.STORE_MODIFY)
public ScannerPreferences addScannerPreferences(
@RequestParam(value = "confId") Long confId,
ScannerPreferences scanPrefs) {
.... do something here ...
}

I'm able to add param to Json Data object on request, but I get JAVA
error, because custom param isn't part of main object (ScannerPreferences):
Unrecognized field "confId" (Class
cz.designplus.platon.terminal.ScannerPreferences), not marked as ignorable
at [Source: N/A; line: -1, column: -1](through reference chain:
cz.designplus.platon.terminal.ScannerPreferences["confId"])

Is there a way how to pass some params beside main object? Thanks.


Reply to this email directly or view it on GitHub:
#38

from extdirectspring.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.