You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacek Wagner <ja...@berkeley.edu> on 2008/12/17 20:06:30 UTC
Formatting textarea
All,
I am sending email confirmation without attachment. I would like to
format bodytext using textarea.default-value.
Is it any way add line feed character into bodyText text?
example instead of having
Mr Brown, thank you for your order ...
have
Mr Brown,
thank you for your order
...
Jacek
Re: Formatting textarea
Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> from an ofbiz view this should be a class in the CSS.
>
> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>
>> Ok your right.
>>
>> you must specify 'style="white-space: pre;"', which specifies
>> pre-formatted text handling as in an HTML <pre> area.
>>
>> so
>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>> paste in
>> <textarea cols="80" style="white-space: pre;">
>> At W3Schools you
>> will find all the Web-building tutorials you need,
>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>
>>
>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>
>>> Sorry it did not do it. --Jacek
>>>
>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>> Thank you for ordering Birthday Party Event.
>>> This is to confirm that we received your order ${orderId}
>>> for the workshop ${productName}.
>>> The show start on ${eventDate} at ${eventTime}.
>>> Please give yourself 15 minutes before the beginning of the
>>> workshop.
>>> Thank you for your order.
>>> Sincerely, LHS"/></field>
>>>
>>>
>>> BJ Freeman wrote:
>>>
>>>> are you following the standard format for generating emails?
>>>> if so you can define and html and use html code for a break.
>>>> however if you looking for manual way to input in to a text area then
>>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>>> and will give you a double linefeed.
>>>>
>>>>
>>>>
>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>
>>>>
>>>>> All,
>>>>>
>>>>> I am sending email confirmation without attachment. I would like to
>>>>> format bodytext using textarea.default-value.
>>>>> Is it any way add line feed character into bodyText text?
>>>>>
>>>>> example instead of having
>>>>> Mr Brown, thank you for your order ...
>>>>> have
>>>>> Mr Brown,
>>>>> thank you for your order
>>>>> ...
>>>>>
>>>>> Jacek
>>>>>
>>>>>
>>>>>
>>>>>
>>>
Thank you. This should do it. -- J
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
did not get lost. what is in the Style should go into the CSS.
.whtspcpre{
white-space: pre;
}
I was just making it easy to test.
you form should work then.
I assume your using textarea so they can change it.
also assume that this is not an email form.
Jacek Wagner sent the following on 2/12/2009 8:46 AM:
> BJ Freeman wrote:
> here is a test
> put this in an html page
>
> <STYLE TYPE="text/css">
>
> .whtspcpre{
> white-space: pre;
> } </STYLE>
>
>
> then
>
> <textarea class="whtspcpre" rows="4" cols="80" name="testtextra">
> </textarea>
>
>
>
>
>
> Jacek Wagner sent the following on 2/11/2009 4:40 PM:
>
>>>> BJ Freeman wrote:
>>>>
>>>>> from an ofbiz view this should be a class in the CSS.
>>>>>
>>>>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>>>>
>>>>>
>>>>>> Ok your right.
>>>>>>
>>>>>> you must specify 'style="white-space: pre;"', which specifies
>>>>>> pre-formatted text handling as in an HTML <pre> area.
>>>>>>
>>>>>> so
>>>>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>>>>> paste in
>>>>>> <textarea cols="80" style="white-space: pre;">
>>>>>> At W3Schools you
>>>>>> will find all the Web-building tutorials you need,
>>>>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>>>>
>>>>>>
>>>>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>>>>
>>>>>>> Sorry it did not do it. --Jacek
>>>>>>>
>>>>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>>>>> Thank you for ordering Birthday Party Event.
>>>>>>> This is to confirm that we received your order ${orderId}
>>>>>>> for the workshop ${productName}.
>>>>>>> The show start on ${eventDate} at ${eventTime}.
>>>>>>> Please give yourself 15 minutes before the beginning of
>>>>>>> the
>>>>>>> workshop.
>>>>>>> Thank you for your order.
>>>>>>> Sincerely, LHS"/></field>
>>>>>>>
>>>>>>>
>>>>>>> BJ Freeman wrote:
>>>>>>>
>>>>>>>> are you following the standard format for generating emails?
>>>>>>>> if so you can define and html and use html code for a break.
>>>>>>>> however if you looking for manual way to input in to a text area
>>>>>>>> then
>>>>>>>> use the unix convention of \n (linefeed) then \r is a carriage
>>>>>>>> return
>>>>>>>> and will give you a double linefeed.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>>>>
>>>>>>>>
>>>>>>>>> All,
>>>>>>>>>
>>>>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>>>>> format bodytext using textarea.default-value.
>>>>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>>>>
>>>>>>>>> example instead of having
>>>>>>>>> Mr Brown, thank you for your order ...
>>>>>>>>> have
>>>>>>>>> Mr Brown,
>>>>>>>>> thank you for your order
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> Jacek
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>> I have created class in ccs:
>>>> textarea {
>>>> color: #999999;
>>>> white-space: pre;
>>>> }
>>>> and it did not make any difference other than the color of the font.
>>>>
>>>> puzzled Jacek
>>>>
>>>>
>>>>
>>>>
> I am afraid something got lost in the translation. My target textarea
> was and still is in the
> widget-form. The text I would like to format is in bodyText. See the
> form below:
> <form name="SendConfirmationEmail" type="single"
> target="birthdayPartyConfirmation" title="">
> <actions>
> <service service-name="getPartyEmail" result-map-name="mapFrom">
> <field-map field-name="partyId"
> value="${userLogin.userLoginId}"/>
> </service>
> <service service-name="getPartyEmail" result-map-name="mapTo">
> <field-map field-name="partyId"
> value="${registration.partyId}"/>
> </service>
> </actions>
> <!-- <field name="emailAddressFrom"
> entry-name="mapFrom.emailAddress" parameter-name="sendFrom"
>><text/></field> -->
> <field name="emailAddressFrom" entry-name="mapFrom.emailAddress"
> parameter-name="sendFrom"><text /></field> <field
> name="emailAddressTo" entry-name="mapTo.emailAddress"
> parameter-name="sendTo" ><text/></field>
> <field name="subject"><text default-value="Birthday Party
> confirmation."/></field>
> <field name="bodyText"><textarea class="whtspcpre" rows="5"
> cols="80" default-value="
> ${name}, Thank you for ordering Birthday Party Event.
> This is to confirm that we have received order for the
> workshop ${productName}. The show starts on ${eventDate} at
> ${eventTime}.
> Please give yourself 15 minutes before the beginning of the
> workshop http://www.lawrencehallofscience.org/.
> If you need directions to LHS please follow the link
> http://www.lawrencehallofscience.org/generalinfo/directions.html.
> Catering information can be found at
> http://www.lawrencehallofscience.org/generalinfo/cafe.html and
> do not miss Discovery Corner
> http://lawrencehallofscience.stores.yahoo.net/.
> Thank you for your order.
> Sincerely, LHS"/></field>
> <field name="submitButton" title="${uiLabelMap.CommonSubmit}"
> widget-style="smallSubmit"><submit button-type="button" /></field>
> </form>
> Jacek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJlJllrP3NbaWWqE4RAg5pAJ0ZliBro8PUCLKrNZtlzXpwyoXdrwCgve+i
mkftfF7pZJtjohyklinGKCQ=
=QFKr
-----END PGP SIGNATURE-----
Re: EcommerceSetup.bsh
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
look up request object thru the code you will see many examples.
you can extract or put in data.
as far a bsh it is still supported in code but now use groovy.
Jacek Wagner sent the following on 2/17/2009 2:34 PM:
> All,
>
> I could be a damn question, but will ask anyway:
>
> EcommerceSetup.bsh seems to be a global setup to run ecommerce.
>
> The first line gets productStore from ... object called >request<.
>
> At which point >request< gets its content?
>
> Jacek
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJnEL8rP3NbaWWqE4RAgtkAJ9wpPN43JLCty/WcM9qpYvwLyIXQwCdEjen
6f+IthFZ6hcEp50rvQqFRLY=
=NFqe
-----END PGP SIGNATURE-----
Re: EcommerceSetup.bsh
Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> in the web.xml
> default website
>
> Jacek Wagner sent the following on 2/18/2009 8:00 AM:
>
>> Jacques Le Roux wrote:
>>
>>> You are certainly using release 4, or Opentaps or... ?
>>> Don't expect much support for those out dated versions here...
>>>
>>> Jacques
>>>
>>> From: "Jacek Wagner" <ja...@berkeley.edu>
>>>
>>>> All,
>>>>
>>>> I could be a damn question, but will ask anyway:
>>>>
>>>> EcommerceSetup.bsh seems to be a global setup to run ecommerce.
>>>>
>>>> The first line gets productStore from ... object called >request<.
>>>>
>>>> At which point >request< gets its content?
>>>>
>>>> Jacek
>>>>
>>>>
>> It is Release 4.0. ..so how can I change default store? It keeps
>> selecting 9000. -- Jacek
>>
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJnENIrP3NbaWWqE4RAnlxAKC46/qscrl+yS45mfkOZEnuoi/dYACdF2CP
> Ck0CuaYY4E/ezJ1yxe6nr6k=
> =BRd8
> -----END PGP SIGNATURE-----
>
Thank you. -- Jacek
Re: EcommerceSetup.bsh
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
in the web.xml
default website
Jacek Wagner sent the following on 2/18/2009 8:00 AM:
> Jacques Le Roux wrote:
>> You are certainly using release 4, or Opentaps or... ?
>> Don't expect much support for those out dated versions here...
>>
>> Jacques
>>
>> From: "Jacek Wagner" <ja...@berkeley.edu>
>>> All,
>>>
>>> I could be a damn question, but will ask anyway:
>>>
>>> EcommerceSetup.bsh seems to be a global setup to run ecommerce.
>>>
>>> The first line gets productStore from ... object called >request<.
>>>
>>> At which point >request< gets its content?
>>>
>>> Jacek
>>>
>>
> It is Release 4.0. ..so how can I change default store? It keeps
> selecting 9000. -- Jacek
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJnENIrP3NbaWWqE4RAnlxAKC46/qscrl+yS45mfkOZEnuoi/dYACdF2CP
Ck0CuaYY4E/ezJ1yxe6nr6k=
=BRd8
-----END PGP SIGNATURE-----
Re: EcommerceSetup.bsh
Posted by Jacek Wagner <ja...@berkeley.edu>.
Jacques Le Roux wrote:
> You are certainly using release 4, or Opentaps or... ?
> Don't expect much support for those out dated versions here...
>
> Jacques
>
> From: "Jacek Wagner" <ja...@berkeley.edu>
>> All,
>>
>> I could be a damn question, but will ask anyway:
>>
>> EcommerceSetup.bsh seems to be a global setup to run ecommerce.
>>
>> The first line gets productStore from ... object called >request<.
>>
>> At which point >request< gets its content?
>>
>> Jacek
>>
>
It is Release 4.0. ..so how can I change default store? It keeps
selecting 9000. -- Jacek
Re: EcommerceSetup.bsh
Posted by Jacques Le Roux <ja...@les7arts.com>.
You are certainly using release 4, or Opentaps or... ?
Don't expect much support for those out dated versions here...
Jacques
From: "Jacek Wagner" <ja...@berkeley.edu>
> All,
>
> I could be a damn question, but will ask anyway:
>
> EcommerceSetup.bsh seems to be a global setup to run ecommerce.
>
> The first line gets productStore from ... object called >request<.
>
> At which point >request< gets its content?
>
> Jacek
>
EcommerceSetup.bsh
Posted by Jacek Wagner <ja...@berkeley.edu>.
All,
I could be a damn question, but will ask anyway:
EcommerceSetup.bsh seems to be a global setup to run ecommerce.
The first line gets productStore from ... object called >request<.
At which point >request< gets its content?
Jacek
Re: Formatting textarea
Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ok this is an email form.
> so
> <field name="bodyText"><textarea class="whtspcpre" rows="5"
> cols="80" default-value="
>
> to
> <field name="bodyText"><textarea style="white-space: pre;"
> rows="5" cols="80" default-value="
>
> Jacek Wagner sent the following on 2/12/2009 8:46 AM:
>
>> BJ Freeman wrote:
>> here is a test
>> put this in an html page
>>
>> <STYLE TYPE="text/css">
>>
>> .whtspcpre{
>> white-space: pre;
>> } </STYLE>
>>
>>
>> then
>>
>> <textarea class="whtspcpre" rows="4" cols="80" name="testtextra">
>> </textarea>
>>
>>
>>
>>
>>
>> Jacek Wagner sent the following on 2/11/2009 4:40 PM:
>>
>>
>>>>> BJ Freeman wrote:
>>>>>
>>>>>
>>>>>> from an ofbiz view this should be a class in the CSS.
>>>>>>
>>>>>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Ok your right.
>>>>>>>
>>>>>>> you must specify 'style="white-space: pre;"', which specifies
>>>>>>> pre-formatted text handling as in an HTML <pre> area.
>>>>>>>
>>>>>>> so
>>>>>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>>>>>> paste in
>>>>>>> <textarea cols="80" style="white-space: pre;">
>>>>>>> At W3Schools you
>>>>>>> will find all the Web-building tutorials you need,
>>>>>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>>>>>
>>>>>>>
>>>>>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>>>>>
>>>>>>>
>>>>>>>> Sorry it did not do it. --Jacek
>>>>>>>>
>>>>>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>>>>>> Thank you for ordering Birthday Party Event.
>>>>>>>> This is to confirm that we received your order ${orderId}
>>>>>>>> for the workshop ${productName}.
>>>>>>>> The show start on ${eventDate} at ${eventTime}.
>>>>>>>> Please give yourself 15 minutes before the beginning of
>>>>>>>> the
>>>>>>>> workshop.
>>>>>>>> Thank you for your order.
>>>>>>>> Sincerely, LHS"/></field>
>>>>>>>>
>>>>>>>>
>>>>>>>> BJ Freeman wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> are you following the standard format for generating emails?
>>>>>>>>> if so you can define and html and use html code for a break.
>>>>>>>>> however if you looking for manual way to input in to a text area
>>>>>>>>> then
>>>>>>>>> use the unix convention of \n (linefeed) then \r is a carriage
>>>>>>>>> return
>>>>>>>>> and will give you a double linefeed.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> All,
>>>>>>>>>>
>>>>>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>>>>>> format bodytext using textarea.default-value.
>>>>>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>>>>>
>>>>>>>>>> example instead of having
>>>>>>>>>> Mr Brown, thank you for your order ...
>>>>>>>>>> have
>>>>>>>>>> Mr Brown,
>>>>>>>>>> thank you for your order
>>>>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Jacek
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>> I have created class in ccs:
>>>>> textarea {
>>>>> color: #999999;
>>>>> white-space: pre;
>>>>> }
>>>>> and it did not make any difference other than the color of the font.
>>>>>
>>>>> puzzled Jacek
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>
>
>> I am afraid something got lost in the translation. My target textarea
>> was and still is in the
>> widget-form. The text I would like to format is in bodyText. See the
>> form below:
>>
>
>
>> <form name="SendConfirmationEmail" type="single"
>> target="birthdayPartyConfirmation" title="">
>> <actions>
>> <service service-name="getPartyEmail" result-map-name="mapFrom">
>> <field-map field-name="partyId"
>> value="${userLogin.userLoginId}"/>
>> </service>
>> <service service-name="getPartyEmail" result-map-name="mapTo">
>> <field-map field-name="partyId"
>> value="${registration.partyId}"/>
>> </service>
>> </actions>
>> <!-- <field name="emailAddressFrom"
>> entry-name="mapFrom.emailAddress" parameter-name="sendFrom"
>>
>>> <text/></field> -->
>>>
>> <field name="emailAddressFrom" entry-name="mapFrom.emailAddress"
>> parameter-name="sendFrom"><text /></field> <field
>> name="emailAddressTo" entry-name="mapTo.emailAddress"
>> parameter-name="sendTo" ><text/></field>
>> <field name="subject"><text default-value="Birthday Party
>> confirmation."/></field>
>> <field name="bodyText"><textarea class="whtspcpre" rows="5"
>> cols="80" default-value="
>> ${name}, Thank you for ordering Birthday Party Event.
>> This is to confirm that we have received order for the
>> workshop ${productName}. The show starts on ${eventDate} at
>> ${eventTime}.
>> Please give yourself 15 minutes before the beginning of the
>> workshop http://www.lawrencehallofscience.org/.
>> If you need directions to LHS please follow the link
>> http://www.lawrencehallofscience.org/generalinfo/directions.html.
>> Catering information can be found at
>> http://www.lawrencehallofscience.org/generalinfo/cafe.html and
>> do not miss Discovery Corner
>> http://lawrencehallofscience.stores.yahoo.net/.
>> Thank you for your order.
>> Sincerely, LHS"/></field>
>> <field name="submitButton" title="${uiLabelMap.CommonSubmit}"
>> widget-style="smallSubmit"><submit button-type="button" /></field>
>> </form>
>> Jacek
>>
>
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJlO0PrP3NbaWWqE4RAmdwAKCepBpe9K82CXg41KV3WZvZwdYqawCfT0la
> axutFQR4eqCHzxzmhCNoSZw=
> =6OYH
> -----END PGP SIGNATURE-----
>
It does a job. Thank you very much. -- Jacek
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ok this is an email form.
so
<field name="bodyText"><textarea class="whtspcpre" rows="5"
cols="80" default-value="
to
<field name="bodyText"><textarea style="white-space: pre;"
rows="5" cols="80" default-value="
Jacek Wagner sent the following on 2/12/2009 8:46 AM:
> BJ Freeman wrote:
> here is a test
> put this in an html page
>
> <STYLE TYPE="text/css">
>
> .whtspcpre{
> white-space: pre;
> } </STYLE>
>
>
> then
>
> <textarea class="whtspcpre" rows="4" cols="80" name="testtextra">
> </textarea>
>
>
>
>
>
> Jacek Wagner sent the following on 2/11/2009 4:40 PM:
>
>>>> BJ Freeman wrote:
>>>>
>>>>> from an ofbiz view this should be a class in the CSS.
>>>>>
>>>>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>>>>
>>>>>
>>>>>> Ok your right.
>>>>>>
>>>>>> you must specify 'style="white-space: pre;"', which specifies
>>>>>> pre-formatted text handling as in an HTML <pre> area.
>>>>>>
>>>>>> so
>>>>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>>>>> paste in
>>>>>> <textarea cols="80" style="white-space: pre;">
>>>>>> At W3Schools you
>>>>>> will find all the Web-building tutorials you need,
>>>>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>>>>
>>>>>>
>>>>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>>>>
>>>>>>> Sorry it did not do it. --Jacek
>>>>>>>
>>>>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>>>>> Thank you for ordering Birthday Party Event.
>>>>>>> This is to confirm that we received your order ${orderId}
>>>>>>> for the workshop ${productName}.
>>>>>>> The show start on ${eventDate} at ${eventTime}.
>>>>>>> Please give yourself 15 minutes before the beginning of
>>>>>>> the
>>>>>>> workshop.
>>>>>>> Thank you for your order.
>>>>>>> Sincerely, LHS"/></field>
>>>>>>>
>>>>>>>
>>>>>>> BJ Freeman wrote:
>>>>>>>
>>>>>>>> are you following the standard format for generating emails?
>>>>>>>> if so you can define and html and use html code for a break.
>>>>>>>> however if you looking for manual way to input in to a text area
>>>>>>>> then
>>>>>>>> use the unix convention of \n (linefeed) then \r is a carriage
>>>>>>>> return
>>>>>>>> and will give you a double linefeed.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>>>>
>>>>>>>>
>>>>>>>>> All,
>>>>>>>>>
>>>>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>>>>> format bodytext using textarea.default-value.
>>>>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>>>>
>>>>>>>>> example instead of having
>>>>>>>>> Mr Brown, thank you for your order ...
>>>>>>>>> have
>>>>>>>>> Mr Brown,
>>>>>>>>> thank you for your order
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> Jacek
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>> I have created class in ccs:
>>>> textarea {
>>>> color: #999999;
>>>> white-space: pre;
>>>> }
>>>> and it did not make any difference other than the color of the font.
>>>>
>>>> puzzled Jacek
>>>>
>>>>
>>>>
>>>>
> I am afraid something got lost in the translation. My target textarea
> was and still is in the
> widget-form. The text I would like to format is in bodyText. See the
> form below:
> <form name="SendConfirmationEmail" type="single"
> target="birthdayPartyConfirmation" title="">
> <actions>
> <service service-name="getPartyEmail" result-map-name="mapFrom">
> <field-map field-name="partyId"
> value="${userLogin.userLoginId}"/>
> </service>
> <service service-name="getPartyEmail" result-map-name="mapTo">
> <field-map field-name="partyId"
> value="${registration.partyId}"/>
> </service>
> </actions>
> <!-- <field name="emailAddressFrom"
> entry-name="mapFrom.emailAddress" parameter-name="sendFrom"
>><text/></field> -->
> <field name="emailAddressFrom" entry-name="mapFrom.emailAddress"
> parameter-name="sendFrom"><text /></field> <field
> name="emailAddressTo" entry-name="mapTo.emailAddress"
> parameter-name="sendTo" ><text/></field>
> <field name="subject"><text default-value="Birthday Party
> confirmation."/></field>
> <field name="bodyText"><textarea class="whtspcpre" rows="5"
> cols="80" default-value="
> ${name}, Thank you for ordering Birthday Party Event.
> This is to confirm that we have received order for the
> workshop ${productName}. The show starts on ${eventDate} at
> ${eventTime}.
> Please give yourself 15 minutes before the beginning of the
> workshop http://www.lawrencehallofscience.org/.
> If you need directions to LHS please follow the link
> http://www.lawrencehallofscience.org/generalinfo/directions.html.
> Catering information can be found at
> http://www.lawrencehallofscience.org/generalinfo/cafe.html and
> do not miss Discovery Corner
> http://lawrencehallofscience.stores.yahoo.net/.
> Thank you for your order.
> Sincerely, LHS"/></field>
> <field name="submitButton" title="${uiLabelMap.CommonSubmit}"
> widget-style="smallSubmit"><submit button-type="button" /></field>
> </form>
> Jacek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJlO0PrP3NbaWWqE4RAmdwAKCepBpe9K82CXg41KV3WZvZwdYqawCfT0la
axutFQR4eqCHzxzmhCNoSZw=
=6OYH
-----END PGP SIGNATURE-----
Re: Formatting textarea
Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> here is a test
> put this in an html page
>
> <STYLE TYPE="text/css">
>
> .whtspcpre{
> white-space: pre;
> } </STYLE>
>
>
> then
>
> <textarea class="whtspcpre" rows="4" cols="80" name="testtextra">
> </textarea>
>
>
>
>
>
> Jacek Wagner sent the following on 2/11/2009 4:40 PM:
>
>> BJ Freeman wrote:
>>
>>> from an ofbiz view this should be a class in the CSS.
>>>
>>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>>
>>>
>>>> Ok your right.
>>>>
>>>> you must specify 'style="white-space: pre;"', which specifies
>>>> pre-formatted text handling as in an HTML <pre> area.
>>>>
>>>> so
>>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>>> paste in
>>>> <textarea cols="80" style="white-space: pre;">
>>>> At W3Schools you
>>>> will find all the Web-building tutorials you need,
>>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>>
>>>>
>>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>>
>>>>
>>>>> Sorry it did not do it. --Jacek
>>>>>
>>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>>> Thank you for ordering Birthday Party Event.
>>>>> This is to confirm that we received your order ${orderId}
>>>>> for the workshop ${productName}.
>>>>> The show start on ${eventDate} at ${eventTime}.
>>>>> Please give yourself 15 minutes before the beginning of the
>>>>> workshop.
>>>>> Thank you for your order.
>>>>> Sincerely, LHS"/></field>
>>>>>
>>>>>
>>>>> BJ Freeman wrote:
>>>>>
>>>>>
>>>>>> are you following the standard format for generating emails?
>>>>>> if so you can define and html and use html code for a break.
>>>>>> however if you looking for manual way to input in to a text area then
>>>>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>>>>> and will give you a double linefeed.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> All,
>>>>>>>
>>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>>> format bodytext using textarea.default-value.
>>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>>
>>>>>>> example instead of having
>>>>>>> Mr Brown, thank you for your order ...
>>>>>>> have
>>>>>>> Mr Brown,
>>>>>>> thank you for your order
>>>>>>> ...
>>>>>>>
>>>>>>> Jacek
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>> I have created class in ccs:
>> textarea {
>> color: #999999;
>> white-space: pre;
>> }
>> and it did not make any difference other than the color of the font.
>>
>> puzzled Jacek
>>
>>
>>
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJk6yLrP3NbaWWqE4RAiS6AKDRMc1zXpa2S/Cbes6Pdw1iTRMXGwCgzR4H
> t1HdMguEv9GO/Rg6rtPNTDE=
> =Lpwn
> -----END PGP SIGNATURE-----
>
I am afraid something got lost in the translation. My target textarea
was and still is in the
widget-form. The text I would like to format is in bodyText. See the
form below:
<form name="SendConfirmationEmail" type="single"
target="birthdayPartyConfirmation" title="">
<actions>
<service service-name="getPartyEmail" result-map-name="mapFrom">
<field-map field-name="partyId"
value="${userLogin.userLoginId}"/>
</service>
<service service-name="getPartyEmail" result-map-name="mapTo">
<field-map field-name="partyId"
value="${registration.partyId}"/>
</service>
</actions>
<!-- <field name="emailAddressFrom"
entry-name="mapFrom.emailAddress" parameter-name="sendFrom"
><text/></field> -->
<field name="emailAddressFrom" entry-name="mapFrom.emailAddress"
parameter-name="sendFrom"><text /></field>
<field name="emailAddressTo" entry-name="mapTo.emailAddress"
parameter-name="sendTo" ><text/></field>
<field name="subject"><text default-value="Birthday Party
confirmation."/></field>
<field name="bodyText"><textarea class="whtspcpre" rows="5"
cols="80" default-value="
${name}, Thank you for ordering Birthday Party Event.
This is to confirm that we have received order for the
workshop ${productName}.
The show starts on ${eventDate} at ${eventTime}.
Please give yourself 15 minutes before the beginning of the
workshop http://www.lawrencehallofscience.org/.
If you need directions to LHS please follow the link
http://www.lawrencehallofscience.org/generalinfo/directions.html.
Catering information can be found at
http://www.lawrencehallofscience.org/generalinfo/cafe.html and
do not miss Discovery Corner
http://lawrencehallofscience.stores.yahoo.net/.
Thank you for your order.
Sincerely, LHS"/></field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}"
widget-style="smallSubmit"><submit button-type="button" /></field>
</form>
Jacek
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
here is a test
put this in an html page
<STYLE TYPE="text/css">
.whtspcpre{
white-space: pre;
} </STYLE>
then
<textarea class="whtspcpre" rows="4" cols="80" name="testtextra">
</textarea>
Jacek Wagner sent the following on 2/11/2009 4:40 PM:
> BJ Freeman wrote:
>> from an ofbiz view this should be a class in the CSS.
>>
>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>
>>> Ok your right.
>>>
>>> you must specify 'style="white-space: pre;"', which specifies
>>> pre-formatted text handling as in an HTML <pre> area.
>>>
>>> so
>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>> paste in
>>> <textarea cols="80" style="white-space: pre;">
>>> At W3Schools you
>>> will find all the Web-building tutorials you need,
>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>
>>>
>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>
>>>> Sorry it did not do it. --Jacek
>>>>
>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>> Thank you for ordering Birthday Party Event.
>>>> This is to confirm that we received your order ${orderId}
>>>> for the workshop ${productName}.
>>>> The show start on ${eventDate} at ${eventTime}.
>>>> Please give yourself 15 minutes before the beginning of the
>>>> workshop.
>>>> Thank you for your order.
>>>> Sincerely, LHS"/></field>
>>>>
>>>>
>>>> BJ Freeman wrote:
>>>>
>>>>> are you following the standard format for generating emails?
>>>>> if so you can define and html and use html code for a break.
>>>>> however if you looking for manual way to input in to a text area then
>>>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>>>> and will give you a double linefeed.
>>>>>
>>>>>
>>>>>
>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>
>>>>>
>>>>>> All,
>>>>>>
>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>> format bodytext using textarea.default-value.
>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>
>>>>>> example instead of having
>>>>>> Mr Brown, thank you for your order ...
>>>>>> have
>>>>>> Mr Brown,
>>>>>> thank you for your order
>>>>>> ...
>>>>>>
>>>>>> Jacek
>>>>>>
>>>>>>
>>>>>>
>>>>
> I have created class in ccs:
> textarea {
> color: #999999;
> white-space: pre;
> }
> and it did not make any difference other than the color of the font.
>
> puzzled Jacek
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJk6yLrP3NbaWWqE4RAiS6AKDRMc1zXpa2S/Cbes6Pdw1iTRMXGwCgzR4H
t1HdMguEv9GO/Rg6rtPNTDE=
=Lpwn
-----END PGP SIGNATURE-----
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
and what did you put in the textra
Jacek Wagner sent the following on 2/11/2009 4:40 PM:
> BJ Freeman wrote:
>> from an ofbiz view this should be a class in the CSS.
>>
>> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>>
>>> Ok your right.
>>>
>>> you must specify 'style="white-space: pre;"', which specifies
>>> pre-formatted text handling as in an HTML <pre> area.
>>>
>>> so
>>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>>> paste in
>>> <textarea cols="80" style="white-space: pre;">
>>> At W3Schools you
>>> will find all the Web-building tutorials you need,
>>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>>
>>>
>>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>>
>>>> Sorry it did not do it. --Jacek
>>>>
>>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>>> Thank you for ordering Birthday Party Event.
>>>> This is to confirm that we received your order ${orderId}
>>>> for the workshop ${productName}.
>>>> The show start on ${eventDate} at ${eventTime}.
>>>> Please give yourself 15 minutes before the beginning of the
>>>> workshop.
>>>> Thank you for your order.
>>>> Sincerely, LHS"/></field>
>>>>
>>>>
>>>> BJ Freeman wrote:
>>>>
>>>>> are you following the standard format for generating emails?
>>>>> if so you can define and html and use html code for a break.
>>>>> however if you looking for manual way to input in to a text area then
>>>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>>>> and will give you a double linefeed.
>>>>>
>>>>>
>>>>>
>>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>>
>>>>>
>>>>>> All,
>>>>>>
>>>>>> I am sending email confirmation without attachment. I would like to
>>>>>> format bodytext using textarea.default-value.
>>>>>> Is it any way add line feed character into bodyText text?
>>>>>>
>>>>>> example instead of having
>>>>>> Mr Brown, thank you for your order ...
>>>>>> have
>>>>>> Mr Brown,
>>>>>> thank you for your order
>>>>>> ...
>>>>>>
>>>>>> Jacek
>>>>>>
>>>>>>
>>>>>>
>>>>
> I have created class in ccs:
> textarea {
> color: #999999;
> white-space: pre;
> }
> and it did not make any difference other than the color of the font.
>
> puzzled Jacek
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJk5TWrP3NbaWWqE4RAlU4AKCLAyY1TcIF/P8RX9engx7+IGTeRwCeLmFL
iSD8xXlZMPnOowXh/14nvP4=
=wLe9
-----END PGP SIGNATURE-----
Re: Formatting textarea
Posted by Jacek Wagner <ja...@berkeley.edu>.
BJ Freeman wrote:
> from an ofbiz view this should be a class in the CSS.
>
> BJ Freeman sent the following on 12/17/2008 12:11 PM:
>
>> Ok your right.
>>
>> you must specify 'style="white-space: pre;"', which specifies
>> pre-formatted text handling as in an HTML <pre> area.
>>
>> so
>> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
>> paste in
>> <textarea cols="80" style="white-space: pre;">
>> At W3Schools you
>> will find all the Web-building tutorials you need,
>> from basic HTML to advanced XML, SQL, ASP, and PHP.
>>
>>
>> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>>
>>> Sorry it did not do it. --Jacek
>>>
>>> <field name="bodyText"><textarea default-value="${name}, \n\r
>>> Thank you for ordering Birthday Party Event.
>>> This is to confirm that we received your order ${orderId}
>>> for the workshop ${productName}.
>>> The show start on ${eventDate} at ${eventTime}.
>>> Please give yourself 15 minutes before the beginning of the
>>> workshop.
>>> Thank you for your order.
>>> Sincerely, LHS"/></field>
>>>
>>>
>>> BJ Freeman wrote:
>>>
>>>> are you following the standard format for generating emails?
>>>> if so you can define and html and use html code for a break.
>>>> however if you looking for manual way to input in to a text area then
>>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>>> and will give you a double linefeed.
>>>>
>>>>
>>>>
>>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>>
>>>>
>>>>> All,
>>>>>
>>>>> I am sending email confirmation without attachment. I would like to
>>>>> format bodytext using textarea.default-value.
>>>>> Is it any way add line feed character into bodyText text?
>>>>>
>>>>> example instead of having
>>>>> Mr Brown, thank you for your order ...
>>>>> have
>>>>> Mr Brown,
>>>>> thank you for your order
>>>>> ...
>>>>>
>>>>> Jacek
>>>>>
>>>>>
>>>>>
>>>>>
>>>
I have created class in ccs:
textarea {
color: #999999;
white-space: pre;
}
and it did not make any difference other than the color of the font.
puzzled Jacek
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
from an ofbiz view this should be a class in the CSS.
BJ Freeman sent the following on 12/17/2008 12:11 PM:
> Ok your right.
>
> you must specify 'style="white-space: pre;"', which specifies
> pre-formatted text handling as in an HTML <pre> area.
>
> so
> http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
> paste in
> <textarea cols="80" style="white-space: pre;">
> At W3Schools you
> will find all the Web-building tutorials you need,
> from basic HTML to advanced XML, SQL, ASP, and PHP.
>
>
> Jacek Wagner sent the following on 12/17/2008 11:48 AM:
>> Sorry it did not do it. --Jacek
>>
>> <field name="bodyText"><textarea default-value="${name}, \n\r
>> Thank you for ordering Birthday Party Event.
>> This is to confirm that we received your order ${orderId}
>> for the workshop ${productName}.
>> The show start on ${eventDate} at ${eventTime}.
>> Please give yourself 15 minutes before the beginning of the
>> workshop.
>> Thank you for your order.
>> Sincerely, LHS"/></field>
>>
>>
>> BJ Freeman wrote:
>>> are you following the standard format for generating emails?
>>> if so you can define and html and use html code for a break.
>>> however if you looking for manual way to input in to a text area then
>>> use the unix convention of \n (linefeed) then \r is a carriage return
>>> and will give you a double linefeed.
>>>
>>>
>>>
>>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>>
>>>> All,
>>>>
>>>> I am sending email confirmation without attachment. I would like to
>>>> format bodytext using textarea.default-value.
>>>> Is it any way add line feed character into bodyText text?
>>>>
>>>> example instead of having
>>>> Mr Brown, thank you for your order ...
>>>> have
>>>> Mr Brown,
>>>> thank you for your order
>>>> ...
>>>>
>>>> Jacek
>>>>
>>>>
>>>>
>>
>>
>
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
Ok your right.
you must specify 'style="white-space: pre;"', which specifies
pre-formatted text handling as in an HTML <pre> area.
so
http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_textarea
paste in
<textarea cols="80" style="white-space: pre;">
At W3Schools you
will find all the Web-building tutorials you need,
from basic HTML to advanced XML, SQL, ASP, and PHP.
Jacek Wagner sent the following on 12/17/2008 11:48 AM:
> Sorry it did not do it. --Jacek
>
> <field name="bodyText"><textarea default-value="${name}, \n\r
> Thank you for ordering Birthday Party Event.
> This is to confirm that we received your order ${orderId}
> for the workshop ${productName}.
> The show start on ${eventDate} at ${eventTime}.
> Please give yourself 15 minutes before the beginning of the
> workshop.
> Thank you for your order.
> Sincerely, LHS"/></field>
>
>
> BJ Freeman wrote:
>> are you following the standard format for generating emails?
>> if so you can define and html and use html code for a break.
>> however if you looking for manual way to input in to a text area then
>> use the unix convention of \n (linefeed) then \r is a carriage return
>> and will give you a double linefeed.
>>
>>
>>
>> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>>
>>> All,
>>>
>>> I am sending email confirmation without attachment. I would like to
>>> format bodytext using textarea.default-value.
>>> Is it any way add line feed character into bodyText text?
>>>
>>> example instead of having
>>> Mr Brown, thank you for your order ...
>>> have
>>> Mr Brown,
>>> thank you for your order
>>> ...
>>>
>>> Jacek
>>>
>>>
>>>
>
>
>
Re: Formatting textarea
Posted by Jacek Wagner <ja...@berkeley.edu>.
Sorry it did not do it. --Jacek
<field name="bodyText"><textarea default-value="${name}, \n\r
Thank you for ordering Birthday Party Event.
This is to confirm that we received your order ${orderId}
for the workshop ${productName}.
The show start on ${eventDate} at ${eventTime}.
Please give yourself 15 minutes before the beginning of the
workshop.
Thank you for your order.
Sincerely, LHS"/></field>
BJ Freeman wrote:
> are you following the standard format for generating emails?
> if so you can define and html and use html code for a break.
> however if you looking for manual way to input in to a text area then
> use the unix convention of \n (linefeed) then \r is a carriage return
> and will give you a double linefeed.
>
>
>
> Jacek Wagner sent the following on 12/17/2008 11:06 AM:
>
>> All,
>>
>> I am sending email confirmation without attachment. I would like to
>> format bodytext using textarea.default-value.
>> Is it any way add line feed character into bodyText text?
>>
>> example instead of having
>> Mr Brown, thank you for your order ...
>> have
>> Mr Brown,
>> thank you for your order
>> ...
>>
>> Jacek
>>
>>
>>
Re: Formatting textarea
Posted by BJ Freeman <bj...@free-man.net>.
are you following the standard format for generating emails?
if so you can define and html and use html code for a break.
however if you looking for manual way to input in to a text area then
use the unix convention of \n (linefeed) then \r is a carriage return
and will give you a double linefeed.
Jacek Wagner sent the following on 12/17/2008 11:06 AM:
> All,
>
> I am sending email confirmation without attachment. I would like to
> format bodytext using textarea.default-value.
> Is it any way add line feed character into bodyText text?
>
> example instead of having
> Mr Brown, thank you for your order ...
> have
> Mr Brown,
> thank you for your order
> ...
>
> Jacek
>
>