got5/tapestry5-jquery — Issue #149: issue with reveal mixing when applied to a disabled link
Author: Gillespie59
Created: 2012-03-01 10:23:33+00:00
State: open
Labels: Tapestry5-jQuery Core

Hello,
I'm trying to use the reveal mixing with a link that can be disabled
depending on the application state.
I get an IllegalState Exception saying that Client id for .... is not
available as it did not render yet (or was disabled).
as a workaround, I replaced
line 70:
jso.put("id", element.getClientId());
with:
try{
jso.put("id", element.getClientId());
}catch (Throwable t){
jso.put("id", null);
}
probably not the most elegant solution, but it works.
If you have any suggestions on how to achieve this in a better way I'd
be glad to hear them :)
Thank you for your help.

Kind Regards,

Raul Davidovich