<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.web.webobjects.devel">
    <title>gmane.comp.web.webobjects.devel</title>
    <link>http://blog.gmane.org/gmane.comp.web.webobjects.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24215"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24214"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24213"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24212"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24211"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24210"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24209"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24208"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24207"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24206"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24205"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24204"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24203"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24202"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24201"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24200"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24199"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24198"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24197"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24196"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24215">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24215</link>
    <description>&lt;pre&gt;Hi Ondra,

While looking for something else, I see that I actually _did_ work around this.  I no longer recall why this works, but it does.  I have this in my "page frame" that wraps all of my content pages:

&amp;lt;iframe style="height:0px;width:0px;visibility:hidden" src="about:blank"&amp;gt;
This frame prevents back/forward cache bug in Safari do not remove!
&amp;lt;/iframe&amp;gt;
&amp;lt;/webobject name = "Body" &amp;gt;

A related page is here: http://stackoverflow.com/questions/24046/the-safari-back-button-problem

Chuck


On 2012-04-26, at 8:44 PM, Chuck Hill wrote:


&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-05-03T00:47:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24214">
    <title>Re: Problem with download link in 'appendToResponse' [SOLVED]</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24214</link>
    <description>&lt;pre&gt;
Worked like a charm. Thanks!

On 26.04.2012, at 02:37, Alexis Tual wrote:


_______________________________________________
WebObjects-dev mailing list
WebObjects-dev&amp;lt; at &amp;gt;omnigroup.com
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
&lt;/pre&gt;</description>
    <dc:creator>Juergen Lorenz Simon</dc:creator>
    <dc:date>2012-04-27T09:17:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24213">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24213</link>
    <description>&lt;pre&gt;
On 2012-04-26, at 7:41 PM, Ondřej Čada wrote:


Ah, yes.  My aging memory is slowly starting to cough up things.  :-)



Radar 5983915.  Still open.  Though I did get a little curt with Apple Engineering when they asked for a reproduction case.

Clearly, Safari is totally broken.  I have no solution for this other than "don't back track".



Chuck





&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-04-27T03:44:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24212">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24212</link>
    <description>&lt;pre&gt;Chuck,

On Apr 27, 2012, at 4:23 AM, Chuck Hill wrote:


Safari / Mac OS X. The client reported problems from iPad.


Hmmmm..... seems it is so! I've just downloaded FF, and the behaviour there is indeed considerably different from Safari, and seems from it, it works (more or less) all right. Namely, backtrack does trigger dispatch/appendToResponse there all right

(Somewhat inconsistently with what you suggested /or at least with what I understood/, the action then _gets_ called all right, too. That's not important though.)

Which is bad, since my client rather needs that the app does work with iPad/Safari, too. Darn...


The headers look like this:

====
HTTP/1.1 200 Apple WebObjects
cache-control: private
cache-control: no-cache
cache-control: no-store
cache-control: must-revalidate
cache-control: max-age=0
expires: Fri, 27-Apr-2012 02:32:48 GMT
content-type: text/html; charset=UTF-8
pragma: no-cache
x-webobjects-loadaverage: 4
date: Fri, 27-Apr-2012 02:32:48 GMT
set-cookie: wosid=sQtMjsY7xerCBetSFGubaM; version="1"; path=/cgi-bin/WebObjects/CEBOIS.woa
set-cookie: woinst=-1; version="1"; path=/cgi-bin/WebObjects/CEBOIS.woa
content-length: 4140
====

Thanks and all the best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-27T02:41:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24211">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24211</link>
    <description>&lt;pre&gt;Which browser are you using?  It seems like maybe the browser is caching instead of respecting the headers.  It is probably worth using a proxy for your browser (Charles is one) and see if it is actually sending a request.  If not, then it is buggy or something is wrong with those headers.  If it IS sending a request, then there is a problem in WO or perhaps your web server.  Hmmm, that reminds me of something.  Are you using mod_expires in Apache?  It can mess with the headers.  I use this as a configuration:

&amp;lt;IfModule mod_expires.c&amp;gt;
        ExpiresActive On
        ExpiresDefault A60
    ExpiresByType application/javascript A3600
    ExpiresByType text/css A3600
        ExpiresByType text/html A1

The last one prevents browser caching for longer than a second.


Chuck


On 2012-04-26, at 7:07 PM, Ondřej Čada wrote:


&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-04-27T02:23:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24210">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24210</link>
    <description>&lt;pre&gt;A propos ...

On Apr 27, 2012, at 3:57 AM, Ondřej Čada wrote:


... here's what happens if, instead of the 'back' button, I use the 'select foo' link (whose action just nulls session.foo):

=== ... correct OK:Foo1 shown | 'select foo' link clicked ... ===
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-27T02:07:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24209">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24209</link>
    <description>&lt;pre&gt;Chuck,

On Apr 26, 2012, at 9:18 PM, Chuck Hill wrote:


Well, so I am missing something of importance. Not a big surprise :)


Works consistently -- anytime I try the sequence, first or tenth time, the above's what happens.


Nope, it is not. Nothing happens at 'back' at all, far as I can say. See also below.


I've added logs above and below super.dispatchRequest. Also, I am logging from app and session appendToResponse, and from component's preAppendToResponse and postAppendToResponse. The logs look like this:

    public WOResponse dispatchRequest(WORequest rr) { // in Application
        println "-- WILL dispatch ${rr.context.contextID}"
        WOResponse re=super.dispatchRequest(rr)
        println "-- DID dispatch ${rr.context.contextID}"
        re
    }
    public void appendToResponse(WOResponse response, WOContext context) { // in both Application and Session
        def cid=context.request.requestHandlerPathArray.lastObject // this is what...
        def n=cid.indexOf('.')                                     // ... I have found ...
        if (n&amp;gt;=0) cid=cid.substring(0,n)                           // ... at the Web as a solution of the problem
        println "//// app-pre ${context.contextID}: $cid"          // session prefixes 'sess'
        super.appendToResponse(response,context)
        println "//// app-post ${context.contextID}: $cid"
    }
    protected void preAppendToResponse(WOResponse response, WOContext context) { // in Component
        def cid=context.request.requestHandlerPathArray.lastObject
        def n=cid.indexOf('.')
        if (n&amp;gt;=0) cid=cid.substring(0,n)
        println "//// comp-pre ${context.contextID}: $cid LAST $_lastKnownCID known ${_knownCIDs.containsObject(cid)}, CM ${sess.foo.title}"
    }
    protected void postAppendToResponse(WOResponse response, WOContext context) {
         _knownCIDs.addObject(_lastKnownCID=context.contextID)
         println "//// comp-post ${context.contextID}: $_lastKnownCID, CM ${sess.footitle}"
    }


=== first access of the page ... ===
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-27T01:57:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24208">
    <title>Re: setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24208</link>
    <description>&lt;pre&gt;Hi Ondra!

On 2012-04-26, at 6:17 AM, Ondřej Čada wrote:


It works.  :-P



Probably.  Is this the first access to your application?  If so, it could be making a new page instance each time.



Is anything getting to application.dispatchRequest()?



That is consistent with setPageRefreshOnBacktrackEnabled(true).



Check what is happening to the contextID when this is going on.


Chuck


&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-04-26T19:18:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24207">
    <title>Re: decimal . or , interchangeable</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24207</link>
    <description>&lt;pre&gt;Hi Ondra,


On 2012-04-26, at 3:39 PM, Ondřej Čada wrote:


Yes, you are correct.  You can probably guess which one I have been looking at lately.  :-)



I think the only way would be to make your own NSNumberFormatter in your own com.webobjects.foundation package and get it to load first on the classpath (Wonder does this for ERXExtensions).

Also, formatters are NOT threadsafe so having them shared from the application instance will lead to problems in times of high concurrency.  They should be cached on the session or lower.


Chuck




&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-04-26T22:53:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24206">
    <title>Re: decimal . or , interchangeable</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24206</link>
    <description>&lt;pre&gt;Chuck,

thanks a lot!

On Apr 26, 2012, at 9:05 PM, Chuck Hill wrote:

I suppose you meant an NSNumberFormatter subclass, right? Or am I missing some fine point there?

Is there a way to "install" such an object globally to be used for all numeric form fields, or do I have to go through all forms and all fields and explicitly fill something like 'formatter="$application.myFormatter"' to each of them? That's what I'd like to get rid of -- if possible.

Thanks again,
OC

&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-26T22:39:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24205">
    <title>Re: decimal . or , interchangeable</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24205</link>
    <description>&lt;pre&gt;I think you will need a custom NSTimestampFormatter subclass for this.


Chuck

On 2012-04-26, at 8:13 AM, Ondřej Čada wrote:


&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-04-26T19:05:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24204">
    <title>decimal . or , interchangeable</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24204</link>
    <description>&lt;pre&gt;Hello again,

the client want me to change a pretty old and pretty big WO application so that both '.' and ',' work interchangeably for a decimal point on input, in all fields of all forms.

I know a number of ways to do that for a specific field, but before I dive into that, isn't there a way to say globally for an entire WO application: "Hey, whenever and wherever you are converting a string to a number, consider '.' and ',' equal"? That would help a lot.

I went through the NSNumberFormatter API, but found nothing :(

Thanks and all the best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-26T15:13:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24203">
    <title>setPageRefreshOnBacktrackEnabled problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24203</link>
    <description>&lt;pre&gt;Hello there,

either setPageRefreshOnBacktrackEnabled does not work, or I am missing something fundamental.

In my "class Application extends ERXApplication" I do "setPageRefreshOnBacktrackEnabled(true)". All the HTTP headers are generated all right, far as I can say:

===
12 ~P/WebObjects&amp;gt; curl -D - &amp;lt;my app URL&amp;gt;
HTTP/1.1 200 Apple
Date: Thu, 26 Apr 2012 13:05:20 GMT
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r
cache-control: private
cache-control: no-cache
cache-control: no-store
cache-control: must-revalidate
cache-control: max-age=0
expires: Sun, 22-Apr-2012 20:37:15 GMT
pragma: no-cache
set-cookie: wosid=YCGjnZm0l4GhkbB33k27C0; version="1"; path=/cgi-bin/WebObjects/CEBOIS.woa
set-cookie: woinst=1; version="1"; path=/cgi-bin/WebObjects/CEBOIS.woa
connection: close
content-length: 5452
MS-Author-Via: DAV
Content-Type: text/html; charset=UTF-8

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&amp;gt;
...
===

In my session there is "SomeClass foo".

In one of my pages, there is (essentially) this:

===
&amp;lt;wo:if condition=$session.foo&amp;gt; OK &amp;lt;wo:str value=$session.foo.title/&amp;gt; &amp;lt;/wo&amp;gt;
&amp;lt;wo:else&amp;gt;
  &amp;lt;wo:hyperlink action=$selectFoo1&amp;gt;Foo1&amp;lt;/wo&amp;gt;
  &amp;lt;wo:hyperlink action=$selectFoo2&amp;gt;Foo2&amp;lt;/wo&amp;gt;
&amp;lt;/wo&amp;gt;
===

with the actions trivial "WOComponent selectFoo1() { session().foo=foo1; return null; }" and similar with Foo2. (There is also a "select Foo" action in the OK part which does session().foo=null, but that's not important here, it works perfectly.)

It works perfectly -- till I use backtrack. With backtrack, it goes all wrong :(

1. page is opened, shows "Foo1 Foo2"
2. "Foo1" is clicked, shows correctly the "OK Foo1.title" contents
3. back button is used --&amp;gt; oops, shows again "Foo1 Foo2"!

Here I probably am missing something -- given I have set pageRefreshOnBacktrackEnabled=true, it should show still OK, since my session still contains non-null foo, should it not?

Anyway, seems no part of my application gets activated at this moment; not even appendToResponse logs anything.

4. "Foo2" is clicked --&amp;gt; oops, shows again "OK Foo1.title"

whilst none of the selectFoo1/selectFoo2 actions is ever called. appendToResponse is called, though.

What am I missing, and, more important, how to fix the problem? I don't care whether
(a) back keeps showing the "OK Foo1.title" contents (
(b) back goes to "Foo1 Foo2" AND selection works all right.

I've googled out a trick based on contextID comparation, but that one fails with automatic refresh (which it considers to be same as "back") :(

Thanks and all the best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-04-26T13:17:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24202">
    <title>Weird OGNL problem?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24202</link>
    <description>&lt;pre&gt;Hello there,

at the moment, I'm getting the following exception. Can anybody see where the null extra argument got from? I'd be grateful for any advice:

Feb 26 01:18:29 CEBOIS[56000] ERROR ognl.webobjects.WOOgnlAssociation  - Exception invoking valueInComponent on WOOgnlAssociation with keyPath '!sess().currentUserCanEditAuction(auctionItem)'
MissingMethodException: No signature of method: app.Session.currentUserCanEditAuction() is applicable for argument types: (null, model.DBAuction) values: [null, { ... the auction from auctionItem ... }]
Possible solutions: currentUserCanEditAuction(model.DBAuction)
...

Thanks and best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-02-26T00:24:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24201">
    <title>WOLips HTML formatter woes</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24201</link>
    <description>&lt;pre&gt;Hello there,

is it possible to make the thing *not* to turn accented characters to HTML entitites?

When I put "á" into my UTF-8 HTML template, I'd rather it stayed "á"; that it gets turned into &amp;amp;aacute; is extremely annoying.

Thanks and best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-02-23T11:00:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24200">
    <title>Re: Barcode with iText</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24200</link>
    <description>&lt;pre&gt;Hi,

Thank you very much. Incorporated, adapted, and it works perfectly.

Cheers

Louis


On 2012-02-22, at 04:14 , Gary Teter wrote:


Louis Demers eng.
www.obzerv.com
&lt;/pre&gt;</description>
    <dc:creator>Louis Demers</dc:creator>
    <dc:date>2012-02-22T16:36:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24199">
    <title>access to enclosing component bindings?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24199</link>
    <description>&lt;pre&gt;Hello there,

in a structure similar to

&amp;lt;wo:repeat ... list="$something.out.there"&amp;gt;
  &amp;lt;wo:MyComponent partOfList="$something.out.there"/&amp;gt;
&amp;lt;/wo&amp;gt;
&amp;lt;wo:repeat ... list="$another.list.here"&amp;gt;
  &amp;lt;wo:MyComponent partOfList="$another.list.here"/&amp;gt;
&amp;lt;/wo&amp;gt;
&amp;lt;wo:repeat ... list="$and.just.another.one"&amp;gt;
  &amp;lt;wo:MyComponent partOfList="$and.just.another.one"/&amp;gt;
&amp;lt;/wo&amp;gt;

if would be pretty convenient if I could implement MyComponent so that instead of binding its "partOfList" explicitly, it finds the enclosing WORepetition (innermost if more, crash if none) and reads in its list binding.

Is it possible? If so, can you please point me to some hint/example/doc of howto?

Thanks a lot,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-02-22T12:21:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24198">
    <title>Re: Barcode with iText</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24198</link>
    <description>&lt;pre&gt;Image: WOImage {
align = "right";
data = barcodeData;
mimeType = "image/png";
}

public NSData barcodeData() {
return barcode128AsPNG("some barcode data");
}

public static NSData barcode128AsPNG(String barcode) {
Barcode128 code128 = new Barcode128();
code128.setCode(barcode);
java.awt.Image image = code128.createAwtImage(Color.BLACK, Color.WHITE);
BufferedImage bufferedImage = bufferedImageFromImage(image);
SunPNGEncoderAdapter encoder = new SunPNGEncoderAdapter();
try {
bytes = new NSData(encoder.encode(bufferedImage));
} catch (java.io.IOException e) {
// the goggles, they do nothing
}
return bytes;        
}

public static BufferedImage bufferedImageFromImage(java.awt.Image img) { 
//This line is important, this makes sure that the image is 
//loaded fully 
img = new ImageIcon(img).getImage(); 

//Create the BufferedImage object with the width and height of the Image 
BufferedImage bufferedImage = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB); 

//Create the graphics object from the BufferedImage 
Graphics g = bufferedImage.createGraphics(); 

//Draw the image on the graphics of the BufferedImage 
g.drawImage(img, 0, 0, null); 

//Dispose the Graphics 
g.dispose(); 

//return the BufferedImage 
return bufferedImage; 
} 


On Feb 21, 2012, at 4:26 PM, Louis Demers wrote:

&lt;/pre&gt;</description>
    <dc:creator>Gary Teter</dc:creator>
    <dc:date>2012-02-22T09:14:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24197">
    <title>Barcode with iText</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24197</link>
    <description>&lt;pre&gt;Hi,

I'm trying to create barcodes with iText without inserting them into a PDF, but instead for inclusion into a wocomponent. The barcode is returned as a com.itextpdf.text.Image but I can't figure out how to get a usable image for woimage. Alternatively, I could get a java.awt.Image, But I'm equally dum and clueless with those.

Any past experience and pointers would be welcomed.

Cordially.


Louis Demers eng.
www.obzerv.com
&lt;/pre&gt;</description>
    <dc:creator>Louis Demers</dc:creator>
    <dc:date>2012-02-22T00:26:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24196">
    <title>Quick OGNL question</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24196</link>
    <description>&lt;pre&gt;Hello there,

among others, I'm exploring the WOOgnl power (quite nice stuff!)

Now I've got a subcomponent whose bindings are "auction" and "field". Auction has methods

// Auction -- the object to which the component's "auction" binding leads
String listFieldValue(Field field) { return .... }
void setListFieldValue(Field field, Strin val) { .... }

The subcomponents contains, among others,

&amp;lt;wo:textfield value = "~auction.listFieldValue(field)"/&amp;gt;

and I was rather surprised seeing the form gets created properly -- the OGNL thing is quite nice :)

Of course, as you probably guessed long ago, self-evidently the form can't save with this binding. Now, is there an OGNL trick to fix it in the HTML/WOD so that it does save all right, or do I have to implement glue code in my component and bind to that, like

// Component glue code
String listFieldValue() { auction.listFieldValue(field) }
void setListFieldValue(String val) { auction.setListFieldValue(field,val) }

&amp;lt;!-- and new binding --&amp;gt;
&amp;lt;wo:textfield value = "$listFieldValue"/&amp;gt;

Thanks and all the best,
---
Ondra Čada
OCSoftware:     ocs&amp;lt; at &amp;gt;ocs.cz               http://www.ocs.cz
private         ondra&amp;lt; at &amp;gt;ocs.cz             http://www.ocs.cz/oc
&lt;/pre&gt;</description>
    <dc:creator>Ondřej Čada</dc:creator>
    <dc:date>2012-02-21T14:33:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24195">
    <title>Re: form woes</title>
    <link>http://permalink.gmane.org/gmane.comp.web.webobjects.devel/24195</link>
    <description>&lt;pre&gt;
On 2012-02-20, at 6:40 PM, Ondřej Čada wrote:


I don't know.  :-)  I've always just looked at the Properties files in ERExtensions for the documentation and looked at the source if I needed further details.



Oh, I did not consider Groovy.   Yes, that could be affecting things.  



Sigh.  Looks like you are in for some fun there.  Good luck!


Chuck

&lt;/pre&gt;</description>
    <dc:creator>Chuck Hill</dc:creator>
    <dc:date>2012-02-21T00:45:59</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.web.webobjects.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.webobjects.devel</link>
  </textinput>
</rdf:RDF>

