Re: Dynamic image as table background

"Pierre Gilquin" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Thanks Geoff for your idea.
I can use CSS but my image come from a database and is map as a NSData. 

How can I get the dynamic URL from this ?

Pierre

  ----- Original Message ----- 
  From: Geoff Hopson 
  To: Pierre Gilquin 
  Cc: [email protected] 
  Sent: Tuesday, January 31, 2006 2:00 PM
  Subject: Re: Dynamic image as table background


  I can't supply any code, just an idea, but couldn't you use CSS here? Put a style definition in your component and feed the image path into that? (this will mean putting the image under the webserver somewhere...)

  HTH 
  Geoff



  On 31/01/06, Pierre Gilquin <[email protected]> wrote:
    Hello list,

    Is there a way to serve a dynamic image as table background ?

    I have try to use a WOGenericContainer as Table  where imageBackground
    method  returns NSData of the image.

    GenericContainer1: WOGenericContainer { 
    background = imageBackground ;
    border = 1;
    cellpadding = 0;
    cellspacing = 0;
    elementName = "TABLE";
    height = hauteurTableau;
    width = largeurTableau;
    }

    Without success, as  I get the following trace : 

    [2006-01-31 12:31:29 CET] <WorkerThread1>
    <com.webobjects.appserver._private.WODirectActionRequestHandler>: Exception
    while handling action named
    "{values%20=%20{dataimage%20=%20<class%20com.webobjects.foundation.NSData%20(offset=0,%20length=30598,%20data=[-1]'" 
    on action class "null" :java.lang.reflect.InvocationTargetException
    [2006-01-31 12:31:29 CET] <WorkerThread1>
    java.lang.reflect.InvocationTargetException
    at
    com.webobjects.appserver._private.WOActionRequestHandler._handleRequest (WOActionRequestHandler.java:250)
    at
    com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:142)
    at
    com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java :1306)
    at
    com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
    at
    com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
    at java.lang.Thread.run(Thread.java :536)
    Caused by: java.lang.NoSuchMethodException:
    DirectAction.{values%20=%20{dataimage%20=%20<class%20com.webobjects.foundation.NSData%20(offset=0,%20length=30598,%20data=[-1]'Action()
    at
    com.webobjects.appserver.WODirectAction.performActionNamed (WODirectAction.java:125)
    at
    com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:240)


    Thank for any idea.


    Pierre Gilquin
    _______________________________________________ 
    WebObjects-dev mailing list
    [email protected]
    http://www.omnigroup.com/mailman/listinfo/webobjects-dev 





------------------------------------------------------------------------------


  _______________________________________________
  WebObjects-dev mailing list
  [email protected]
  http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.