Re: OGNL binding failing for WOImageButton
Re: OGNL binding failing for WOImageButton
- Subject: Re: OGNL binding failing for WOImageButton
- From: Paul Hoadley <email@hidden>
- Date: Thu, 13 Jan 2011 17:44:45 +1030
Hi Tarun,On 13/01/2011, at 3:19 PM, Tarun Reddy wrote: - create new Wonder Application
- create an image in WebServerResources/default.com/images/search.jpg
- Add public String comp = "default.com"; to Session.java
- In Main.html, add WOImage <webobject name = "SubmitButton"></webobject> in body tag
- In Main.wod add
SubmitButton : WOImageButton { filename = "~session.comp + \"/images/search.jpg\""; action = null; // filename = "default.com/images/search.jpg"; } Fail.
Pretty simple to reproduce.
I can't reproduce your failure. I followed your steps above, with the exception that (as Farrukh pointed out) you can't bind a constant to action, so I substituted a do-nothing action that returns null. I get an 'input' element with 'type="image"' rendered, as expected.
Next step is to see if I update the Wonder Frameworks if this still fails. Mine is from May 10, 2010.
I tested using the built frameworks from 20 December 2010.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden