It all depends on your settings in the $PROJECTROOT/build.properties file 
"component.inlineBindingPrefix" and "component.inlineBindingSuffix".

If you have:
component.inlineBindingPrefix=[
component.inlineBindingSuffix=]

Then you'd use:

<wo:str value="[someVariable]" />
or
<wo:string ... />

but if you've got

component.inlineBindingPrefix=$
component.inlineBindingSuffix=

Then you'd use:

<wo:str value="$someVariable" />
or
<wo:string ... />

See the pattern?

I use the latter - and I suspect you do too, although I have seen the former 
around...

/Thor

On 10.6.2013, at 07:38, Thomas Grass (01SoftwareSolutions) wrote:

Hi Paul,
thank you for your reply. I tried it, but it won't work for me. Here is a 
better description for my problem (or the thing i want to do):

Example for the WOComponent "TestComponent":

I've a variable like this in my TestComponent.java:

public String aTestString = "Hello WO";

In my TestComponent.html i've tried to request the string:

<wo:string value = "[aTestString]" />


The final output will be now:

<wo:string value = "[aTestString]" />

It looks like the tag will not me translated. Is there any setting which i have 
to set?

Thank you,

Thomas



Am 09.06.2013 um 13:48 schrieb Paul Yu <[email protected]<mailto:[email protected]>>:

Thomas

If you want to use the testString as a variable, then it should be "$testString"

Paul

Sent from my iPad

On Jun 9, 2013, at 7:05 AM, "Thomas Grass (01SoftwareSolutions)" 
<[email protected]<mailto:[email protected]>> wrote:

Hello Community,
i want to use inline elements such like this:

<h1><wo:string value="testString" valueWhenEmpty = "-" /></h1>

But webobjects ignores such statements (there is no output and no error 
message). What must be set to use it? For some cases I don't want to use the 
"default" and write a WOD and a HTML.

Thanks
Thomas


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com

This email sent to [email protected]<mailto:[email protected]>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/thors%40us.is

This email sent to [email protected]


________________________________

Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/fyrirvari

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to