• 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: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship


  • Subject: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 17 May 2011 08:14:41 -0700

On May 16, 2011, at 11:50 PM, <email@hidden> wrote:
So if I use Wonder, I can write this code in my WOD to display each person picture where person pic like http://webserver/person/mini/personPk.jpg?

i.e :
<wo:loop item="$persons" list="$person">
....Member picture
<wo name ="picture"/>
...

</wo>

in WOD 
picture : ERXImage {
src = ""http://webserver/person/mini/id.jpg" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">http://webserver/person/mini/"+person.pk+".jpg";

Almost:
src = "">~"http://webserver/person/mini/"+person.pk+".jpg";

That is WOOgnl syntax.
===>Don't work : [com.webobjects.appserver.parser.declaration.TokenMgrError] Lexical error at line 158, column 15.  Encountered: "~" (126), after : "":<com.webobjects.appserver._private.WOComponentDefinition: Error parsing template for Component : 'file:/Volumes/SNOW-DATA/workspace/Dossier-Etudiants/Components/Recherche.wo':
com.webobjects.appserver.parser.declaration.WODeclarationFormatException: Lexical error at line 158, column 15.  Encountered: "~" (126), after : "

Your app needs to be a Wonder app or it needs to initialize WOOgnl:

WOOgnl.factory();

And it needs to include the WOOgnl.framework in the Libraries.


Chuck

-- 
Chuck Hill             Senior Consultant / VP Development

Come to WOWODC this July for unparalleled WO learning opportunities and real peer to peer problem solving!  Network, socialize, and enjoy a great cosmopolitan city.  See you there!  http://www.wocommunity.org/wowodc11/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)
 >Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship (From: email@hidden)

  • Prev by Date: Re: Replacing no instance / app not found with custom 404 or similar
  • Next by Date: Re: build.xml: Content is not allowed in prolog.
  • Previous by thread: Re: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Next by thread: Re: Tr: Re: Re: Fetching on 2 EOMODELS using different schema in DATABASE with but have relationship
  • Index(es):
    • Date
    • Thread