-
New Feature
-
Resolution: Done
-
Normal
-
9.0.0
-
None
-
None
Current Result
<button onClick="@command('handle', format='USD', price=9.99, id=3)"/>
@Command public void handle(@BindingParam("format") String format, @BindingParam("price") double price, @BindingParam("id") int id) { }
A group of @BindingParam will grow easily and hard to maintain.
Expected Result
public class Product { private String format; private double price; private int id; // Getters and setters are omitted }
@Command public void handle(@BindingParams Product product) { // product.getFormat(), product.getPrice(), product.getId() ... }
Create a Bean object to collect all related properties.