You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by marcelo_Java <ma...@gmail.com> on 2008/08/21 00:23:13 UTC

Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

I'm using the TinyMCE, but when I format my text inside the textarea and
submit the form and save the content to the database, the content get stored
this way:
<p><strong>dsgdeftgdsgdsfgd</strong></p>

An when I use an expansion like:

${productInstance.description}

The text that appears on the page come out like this:
<p><strong>dsgdeftgdsgdsfgd</strong></p>

And when you see the source of the page, this part gets its simbols
replaced:
&lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;

Anybody have any idea?
-- 
View this message in context: http://www.nabble.com/Someone-know-how-can-I-configure-a-WYSIWYG-editor-on-a-Tapestry-web-app--tp19079202p19079202.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by "Martijn Brinkers (List)" <ma...@gmail.com>.
You should post your questions to the Tapestry users
<us...@tapestry.apache.org> list. The dev list just for developer
related questions and you'll also have a greater chance of getting you
questions answered if you post them to the users list.

Martijn
 
On Wed, 2008-08-20 at 17:06 -0700, marcelo_Java wrote:
> Sorry, I'm new at this forum, should I keep updating in here?
> 
> So, I was not aware of this component, what would be the best way to
> implement this solution in this code?:
> <t:loop source="lkWindowProducts" value="productInstance">
>                 <div id="AdvertisingBoard">
>                 	<div id="space_"></div>
>                 	<div id="title_box">
>                        <div id="ad_txt"> # ${productInstance.name} </div>
>                     </div>
>                     <div id="space__"></div>
>                     <div id="space_ad2"></div>
>                     <div id="img_ad2"> ${productInstance.productPhoto}
> </div>
>                     <div id="space_ad3"></div>
> 
> <!-- Here's the problem -->
> 
>                    <div
> id="descricao_anuncio">${productInstance.description}</div>
> 
> <!-- Here's the problem -->
> 
>                     <div id="box_price">
>                     	<div id="price">$ ${productInstance.price}</div>
>                     </div>
>                     <div id="details"> # Details </div>
>                     <div id="toShopCar"> # Put it in the bag </div>
>                 </div>
> 	</t:loop>
> 
> 
> Filip S. Adamsen-2 wrote:
> > 
> > Hi,
> > 
> > This is really a question for the users list.
> > 
> > That said, you want to use the OutputRaw component:
> > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
> > 
> > -Filip
> > 
> > On 2008-08-21 00:23, marcelo_Java wrote:
> >> I'm using the TinyMCE, but when I format my text inside the textarea and
> >> submit the form and save the content to the database, the content get
> >> stored
> >> this way:
> >> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> >> 
> >> An when I use an expansion like:
> >> 
> >> ${productInstance.description}
> >> 
> >> The text that appears on the page come out like this:
> >> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> >> 
> >> And when you see the source of the page, this part gets its simbols
> >> replaced:
> >> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
> >> 
> >> Anybody have any idea?
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: dev-help@tapestry.apache.org
> > 
> > 
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by marcelo_Java <ma...@gmail.com>.
THANK YOU SO MUCH!

You don't know how much time I spent searching for that, I leave a billion
messages to Howard Lewis...

Sorry for everything, in my next quests I will post in the right place.

Thank you all,
Marcelo R.


Filip S. Adamsen-2 wrote:
> 
> Hi,
> 
> Easy. Just change
> 
>    <div id="descricao_anuncio">
>      ${productInstance.description}
>    </div>
> 
> to
> 
>    <div id="descricao_anuncio">
>      <t:outputraw value="productInstance.description"/>
>    </div>
> 
> That's all there is to it.
> 
> -Filip
> 
> On 2008-08-21 02:06, marcelo_Java wrote:
>> Sorry, I'm new at this forum, should I keep updating in here?
>> 
>> So, I was not aware of this component, what would be the best way to
>> implement this solution in this code?:
>> <t:loop source="lkWindowProducts" value="productInstance">
>>                 <div id="AdvertisingBoard">
>>                 	<div id="space_"></div>
>>                 	<div id="title_box">
>>                        <div id="ad_txt"> # ${productInstance.name} </div>
>>                     </div>
>>                     <div id="space__"></div>
>>                     <div id="space_ad2"></div>
>>                     <div id="img_ad2"> ${productInstance.productPhoto}
>> </div>
>>                     <div id="space_ad3"></div>
>> 
>> <!-- Here's the problem -->
>> 
>>                    <div
>> id="descricao_anuncio">${productInstance.description}</div>
>> 
>> <!-- Here's the problem -->
>> 
>>                     <div id="box_price">
>>                     	<div id="price">$ ${productInstance.price}</div>
>>                     </div>
>>                     <div id="details"> # Details </div>
>>                     <div id="toShopCar"> # Put it in the bag </div>
>>                 </div>
>> 	</t:loop>
>> 
>> 
>> Filip S. Adamsen-2 wrote:
>>> Hi,
>>>
>>> This is really a question for the users list.
>>>
>>> That said, you want to use the OutputRaw component:
>>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
>>>
>>> -Filip
>>>
>>> On 2008-08-21 00:23, marcelo_Java wrote:
>>>> I'm using the TinyMCE, but when I format my text inside the textarea
>>>> and
>>>> submit the form and save the content to the database, the content get
>>>> stored
>>>> this way:
>>>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>>>>
>>>> An when I use an expansion like:
>>>>
>>>> ${productInstance.description}
>>>>
>>>> The text that appears on the page come out like this:
>>>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>>>>
>>>> And when you see the source of the page, this part gets its simbols
>>>> replaced:
>>>> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
>>>>
>>>> Anybody have any idea?
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>>
>>>
>>>
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Someone-know-how-can-I-configure-a-WYSIWYG-editor-on-a-Tapestry-web-app--tp19079202p19080799.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,

Easy. Just change

   <div id="descricao_anuncio">
     ${productInstance.description}
   </div>

to

   <div id="descricao_anuncio">
     <t:outputraw value="productInstance.description"/>
   </div>

That's all there is to it.

-Filip

On 2008-08-21 02:06, marcelo_Java wrote:
> Sorry, I'm new at this forum, should I keep updating in here?
> 
> So, I was not aware of this component, what would be the best way to
> implement this solution in this code?:
> <t:loop source="lkWindowProducts" value="productInstance">
>                 <div id="AdvertisingBoard">
>                 	<div id="space_"></div>
>                 	<div id="title_box">
>                        <div id="ad_txt"> # ${productInstance.name} </div>
>                     </div>
>                     <div id="space__"></div>
>                     <div id="space_ad2"></div>
>                     <div id="img_ad2"> ${productInstance.productPhoto}
> </div>
>                     <div id="space_ad3"></div>
> 
> <!-- Here's the problem -->
> 
>                    <div
> id="descricao_anuncio">${productInstance.description}</div>
> 
> <!-- Here's the problem -->
> 
>                     <div id="box_price">
>                     	<div id="price">$ ${productInstance.price}</div>
>                     </div>
>                     <div id="details"> # Details </div>
>                     <div id="toShopCar"> # Put it in the bag </div>
>                 </div>
> 	</t:loop>
> 
> 
> Filip S. Adamsen-2 wrote:
>> Hi,
>>
>> This is really a question for the users list.
>>
>> That said, you want to use the OutputRaw component:
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
>>
>> -Filip
>>
>> On 2008-08-21 00:23, marcelo_Java wrote:
>>> I'm using the TinyMCE, but when I format my text inside the textarea and
>>> submit the form and save the content to the database, the content get
>>> stored
>>> this way:
>>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>>>
>>> An when I use an expansion like:
>>>
>>> ${productInstance.description}
>>>
>>> The text that appears on the page come out like this:
>>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>>>
>>> And when you see the source of the page, this part gets its simbols
>>> replaced:
>>> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
>>>
>>> Anybody have any idea?
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: dev-help@tapestry.apache.org
>>
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by marcelo_Java <ma...@gmail.com>.
Sorry, I'm new at this forum, should I keep updating in here?

So, I was not aware of this component, what would be the best way to
implement this solution in this code?:
<t:loop source="lkWindowProducts" value="productInstance">
                <div id="AdvertisingBoard">
                	<div id="space_"></div>
                	<div id="title_box">
                       <div id="ad_txt"> # ${productInstance.name} </div>
                    </div>
                    <div id="space__"></div>
                    <div id="space_ad2"></div>
                    <div id="img_ad2"> ${productInstance.productPhoto}
</div>
                    <div id="space_ad3"></div>

<!-- Here's the problem -->

                   <div
id="descricao_anuncio">${productInstance.description}</div>

<!-- Here's the problem -->

                    <div id="box_price">
                    	<div id="price">$ ${productInstance.price}</div>
                    </div>
                    <div id="details"> # Details </div>
                    <div id="toShopCar"> # Put it in the bag </div>
                </div>
	</t:loop>


Filip S. Adamsen-2 wrote:
> 
> Hi,
> 
> This is really a question for the users list.
> 
> That said, you want to use the OutputRaw component:
> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
> 
> -Filip
> 
> On 2008-08-21 00:23, marcelo_Java wrote:
>> I'm using the TinyMCE, but when I format my text inside the textarea and
>> submit the form and save the content to the database, the content get
>> stored
>> this way:
>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>> 
>> An when I use an expansion like:
>> 
>> ${productInstance.description}
>> 
>> The text that appears on the page come out like this:
>> <p><strong>dsgdeftgdsgdsfgd</strong></p>
>> 
>> And when you see the source of the page, this part gets its simbols
>> replaced:
>> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
>> 
>> Anybody have any idea?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Someone-know-how-can-I-configure-a-WYSIWYG-editor-on-a-Tapestry-web-app--tp19079202p19080337.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,

This is really a question for the users list.

That said, you want to use the OutputRaw component:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html

-Filip

On 2008-08-21 00:23, marcelo_Java wrote:
> I'm using the TinyMCE, but when I format my text inside the textarea and
> submit the form and save the content to the database, the content get stored
> this way:
> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> 
> An when I use an expansion like:
> 
> ${productInstance.description}
> 
> The text that appears on the page come out like this:
> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> 
> And when you see the source of the page, this part gets its simbols
> replaced:
> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
> 
> Anybody have any idea?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


RE: Someone know how can I configure a WYSIWYG editor on a Tapestry web app?

Posted by Jonathan Barker <jo...@gmail.com>.
This is clearly a user list question.  Please direct your questions there if
you want help.


> -----Original Message-----
> From: marcelo_Java [mailto:marcelorjava@gmail.com]
> Sent: Wednesday, August 20, 2008 18:23
> To: dev@tapestry.apache.org
> Subject: Someone know how can I configure a WYSIWYG editor on a Tapestry
> web app?
> 
> 
> I'm using the TinyMCE, but when I format my text inside the textarea and
> submit the form and save the content to the database, the content get
> stored
> this way:
> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> 
> An when I use an expansion like:
> 
> ${productInstance.description}
> 
> The text that appears on the page come out like this:
> <p><strong>dsgdeftgdsgdsfgd</strong></p>
> 
> And when you see the source of the page, this part gets its simbols
> replaced:
> &lt;p&gt;&lt;strong&gt;dsgdeftgdsgdsfgd&lt;/strong&gt;&lt;/p&gt;
> 
> Anybody have any idea?
> --
> View this message in context: http://www.nabble.com/Someone-know-how-can-
> I-configure-a-WYSIWYG-editor-on-a-Tapestry-web-app--
> tp19079202p19079202.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org