• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OGNL binding failing for WOImageButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

  1. create new Wonder Application
  2. create an image in WebServerResources/default.com/images/search.jpg
  3. Add public String comp = "default.com"; to Session.java
  4. In Main.html, add WOImage <webobject name = "SubmitButton"></webobject> in body tag
  5. 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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: OGNL binding failing for WOImageButton
      • From: "Robert B. Hanviriyapunt" <email@hidden>
References: 
 >OGNL binding failing for WOImageButton (From: Tarun Reddy <email@hidden>)
 >Re: OGNL binding failing for WOImageButton (From: Tarun Reddy <email@hidden>)
 >Re: OGNL binding failing for WOImageButton (From: John Larson <email@hidden>)
 >Re: OGNL binding failing for WOImageButton (From: John Larson <email@hidden>)
 >Re: OGNL binding failing for WOImageButton (From: Tarun Reddy <email@hidden>)
 >Re: OGNL binding failing for WOImageButton (From: Tarun Reddy <email@hidden>)

  • Prev by Date: Re: OGNL binding failing for WOImageButton
  • Next by Date: WO 5.2 / 5.3 run app standalone.
  • Previous by thread: Re: OGNL binding failing for WOImageButton
  • Next by thread: Re: OGNL binding failing for WOImageButton
  • Index(es):
    • Date
    • Thread