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.
--
Paul.
http://logicsquad.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]