Kristian, I would like to suggest another alternative until you get used to
the click framework. The view->edit[1] and view->insert pattern is a good
point to start and after you have more expirience with the framework you
can do more experiments.
That was what I did [2] and after that I could understand how the framework
is simple.


[1] http://click.avoka.com/click-examples/table/edit-table.htm
[2] https://code.google.com/p/construtor/source/browse/trunk/park-samples/#

2013/8/6 Kristian Lind <[email protected]>

> The problem is I have no where to get the Id from in the onSave method..
> the idField is empty and is not set the in the OnGet() method cause the
> request parameter is null.
>
> I wanna do
>
> HashMap<String, String> m = new HashMap<String, String>();
> m.put("productId", idField.getValue());
> setRedirect(EditProduct.class, m);
>
> if I test with a hardcoded id
> HashMap<String, String> m = new HashMap<String, String>();
> m.put("productId", "1");
> setRedirect(EditProduct.class, m);
>
> it works... so I don't think I have to use the alternative redirect
> methods.
>
>
> --
>
>> Best regards
>>>
>>> Kristian Lind
>>>
>>
>>
>
>
> --
> Best regards
>
> Kristian Lind
>

Reply via email to