Re: Inline Elements
Re: Inline Elements
- Subject: Re: Inline Elements
- From: Þór Sigurðsson <email@hidden>
- Date: Mon, 10 Jun 2013 09:26:43 +0000
- Thread-topic: Inline Elements
Nothing that I can see - the only difference from my properties is that I define:
component.wellFormedTemplateRequired=false
You could try to add that and re-open your project to see if it helps, but if you have $ as prefix and no suffix and use value="$somevariable" and somevariable is defined as:
public String somevariable = "....";
or
public String somevariable() {
return ".....";
}
public void setSomevariable(String value) {
... = value;
}
and it still doesn't work, then I guess you'd need to post more info on your project and setup than what's already been posted.
/Thor
On 10.6.2013, at 09:01, Thomas Grass (01SoftwareSolutions) wrote:
> Hi,
>
> my build.properties file looks like the following, but it still not work? What did i wrong?
>
> ----
> #Wed Oct 17 16:20:52 CEST 2012
> webXML_CustomContent=
> project.name=XYZ
> embed.Network=true
> embed.System=true
> webXML=false
> embed.User=true
> principalClass=eu.xyz.XYZ
> embed.Local=true
> classes.dir=bin
> project.name.lowercase=xyz
> customInfoPListContent=
> embed.Project=true
> project.type=application
> component.inlineBindingPrefix=$
> component.inlineBindingSuffix=
> ----
>
> Thanks
>
> Am 10.06.2013 um 10:27 schrieb Þór Sigurðsson <email@hidden>:
>
>> 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@hidden<mailto:email@hidden>>:
>>
>> 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@hidden<mailto:email@hidden>> 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@hidden<mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden<mailto:email@hidden>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden<mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>>
>>
>> ________________________________
>>
>> 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden