Hi!
Is there a way to submit datefield, which has attribute disabled="true"
in template but was enabled using JavaScript on page.
Currently enabling field using JS does nothing and datefield is not
submitted, although it should IMHO.
Or is there some other way to have field disabled by default, but with
possibility of enabling it and submitting its value?

Example:
--- template ---
<t:checkbox t:id="enableDate" t:value="dateEnabled"
onclick="$('date').disabled = !$('date').disabled;" />
<t:datefield t:id="date" t:value="date" t:format="yyyy-MM-dd"
t:disabled="true" />

--- page class ---
private Date date;
public Date getDate() { return date; }
public void setDate(Date date) {
    log("date", startDate);
    this.date = date;
}

In code above setDate() is not called, even though datefield was enabled
using JS.

Regards,
Przemysław Wojnowski


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to