In 4.0, component parameters have a default binding type. The default binding type for the "selected" parameter is ognl:
http://jakarta.apache.org/tapestry/current/tapestry/ComponentReference/Submit.html

Try this instead:

<input type="submit" jwcid="@Submit" value="Cancel" selected="whichButton" tag="cancel" onclick="form.onsubmit = null;"/>

It appears that Tapestry is trying to parse "ognl:whichButton" as an ognl expression, instead of just "whichButton".

Confused? Me too. I was under the impression that "ognl:whichButton" would still work...

Paul

seloha . wrote:

I am getting an error message:

Unable to read OGNL expression '<parsed OGNL expression>' of [EMAIL PROTECTED]: $UserAddPage_67.cancel

which highlights this line in my template:

<input type="submit" jwcid="@Submit" value="Cancel" selected="ognl:whichButton" tag="cancel" onclick="form.onsubmit = null;"/>

after I have pressed this cancel button.

In my page specification I have:

<property name="whichButton"/>

and in my java file I have:

public abstract String getWhichButton();

I used this technique in Tapestry 3.0 to determine which button was being pressed.

Has anyone any ideas why this now fails and how to fix it.

Thanks in advance,

Paul



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to