Johan,
That won't work. The [] must be the first and last parts of the
quoted entry, like
<a href="[xxxx]">a link</a>
One solution to this is to use the ognl: scheme (not part of the
default WO5.4 but I have it as an example) and concat yourself:
<img src="[ognl: '/upload/' +
mySess.selectedPerformance.primaryKey + '/klein.jpg']" width="82"
height="82" border="0"/>
I sent all my examples from WOWODC to Mike Schrag after the
presentation; hopefully he could put them someplace where people can
get them.
It might be a nice add-on to have some extensions framework where the
OGNL and format namespaces could live. Hooking it up is a fairly
simple matter in your application.
- Drew
On Jun 17, 2009, at 9:25 AM, Johan Henselmans wrote:
On 17 jun 2009, at 15:05, Q wrote:
Make sure your WOD file is empty if you're using WO54 inline
bindings. Unlike WOOgnl, WO54 doesn't let you mix WOD and inline
entries in the same component. If your wod isn't empty then it will
not parse the inline bindings.
Thanks! That solved it. Removing all the stuff from the wod file
made it a lot easier. I am still contemplating if this is an
advantage: it does put a lot of no essential information in your
HTML file, especially if you have a lot of bindings to fill.
Still one problem remaining:
<img src="/upload/[mySess.selectedPerformance.primaryKey]/klein.jpg"
width="82" height="82" border="0"/>
displays:
<img width="82" height="82" border="0" src="/upload/
[mySess.selectedPerformance.primaryKey]/klein.jpg"/>
How can I get something in that kind of HTML tag?
If I try
<img src="/upload/"[mySess.selectedPerformance.primaryKey]"/
klein.jpg" width="82" height="82" border="0"/>
it also leads to:
<img width="82" height="82" border="0" src="/upload/
[mySess.selectedPerformance.primaryKey]/klein.jpg"/>
just like
<img src="/upload/[@ "[mySess.selectedPerformance.primaryKey]" @]/
klein.jpg" width="82" height="82" border="0"/>
On 17/06/2009, at 10:52 PM, Johan Henselmans wrote:
On 17 jun 2009, at 13:48, Mike Schrag wrote:
Your email said "using latest wonder/WOOGNL" -- this replaces the
template parser with the one in WOOGNL. If you want to use the
5.4 one, you need to remove WOOGNL.
ms
Right, removed WOOGNL Framework from the build path, but now my
nifty components come out like this in the browser:
<wo:WOString value = "[mySess.cart.cartTotal]" formatter =
"[mySess.localFormat]"/>
So, no template parsing whatsoever. I am using the traditional
<webobject name = "CurrentCartItemPerformanceShowInfoShowName"/>
and
<wo:WOString value = "[cart.cartTotalItems]" />
In the same html file.
It seems components where I only use the traditional notation,
template parsing works.
I use this Library path:
<Pasted Graphic.png>
any suggestions?
On Jun 17, 2009, at 7:42 AM, Johan Henselmans wrote:
On 17 jun 2009, at 13:13, Andrew Lindesay wrote:
Hello Johan;
<a name ="[@ <wo:WOString value =
"[mySess.selectedPerformance.primaryKey]"/> @]"/>
Are you using the WO 5.4 new template format? I have just
started using the new format myself and think it is great. I
think you can just do this;
<a name="[mySess.selectedPerformance.primaryKey]"/>
cheers.
___
Andrew Lindesay
www.lindesay.co.nz
I just tried. The output was:
<a name ="[mySess.selectedPerformance.primaryKey]"/>
hmmm.
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159
_______________________________________________
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/mschrag%40mdimension.com
This email sent to [email protected]
_______________________________________________
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/johan%40netsense.nl
This email sent to [email protected]
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159
_______________________________________________
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/qdolan%40gmail.com
This email sent to [email protected]
--
Seeya...Q
Quinton Dolan - [email protected]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
Regards,
Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159
_______________________________________________
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/drewd
%40apple.com
This email sent to [email protected]
---
Drew Davidson
_______________________________________________
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]