You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2008/09/23 08:45:22 UTC

pluto and preference\ values as xml

Hello all,
I am trying to create an embedded html portlet. I find it a little bit 
extra work to use FilePortlet or any other sort of static portlet for 
small chunks of xml. So having an embedded html portlet that get the 
contents of the html from a portlet preference that is set in psml is a 
good work around. Now the problem is that preferences as retrieved as 
text and since the html or XHTML are not strings (they have < and > ) I 
was not able to get the contents from the preferences. I tried escaping 
the html but no luck. I don't know if anyone has a work around. I know 
that the implementation of pluto is set by jsr 286, but does the 
preference have to be string?

Can anyone comment on this, please ?

thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: pluto and preference\ values as xml

Posted by Mansour Al Akeel <ma...@gmail.com>.
Woonsan Ko wrote:
> How about using CDATA?
>   

I tried it works great. That was clever idea. :)

>
> --- On Tue, 9/23/08, Mansour Al Akeel <ma...@gmail.com> wrote:
>
>   
>> From: Mansour Al Akeel <ma...@gmail.com>
>> Subject: Re: pluto and preference\ values as xml
>> To: "Jetspeed Users List" <je...@portals.apache.org>
>> Date: Tuesday, September 23, 2008, 5:26 PM
>> Woonsan, thank you. I tried again the escaped html and it
>> worked. I 
>> missed to ecape one of the tags. Now that I escaped all the
>> tags 
>> properly it's working fine. I am wondering if
>> there's a way to get 
>> unescaped html. I can live with the escaped but it will be
>> easier just 
>> to put plain html. Do you know any ?
>>
>>
>> Woonsan Ko wrote:
>>     
>>> Hi Mansour,
>>>
>>> I'm not sure but can't we store escaped html
>>>       
>> as a preference?
>>     
>>> I tried to store a bookmark, name="Apache
>>>       
>> HTTPd",
>> value="http://httpd.<b>apache</b>.org/"
>> in the bookmark portlet.
>>     
>>> AFAIK, the bookmark portlet stores the bookmark
>>>       
>> information in the preferences.
>>     
>>> It seems showing correctly as I intended to.
>>>
>>> -Woonsan
>>>
>>>
>>> --- On Tue, 9/23/08, Mansour Al Akeel
>>>       
>> <ma...@gmail.com> wrote:
>>     
>>>   
>>>       
>>>> From: Mansour Al Akeel
>>>>         
>> <ma...@gmail.com>
>>     
>>>> Subject: pluto and preference\ values as xml
>>>> To: "Jetspeed Users List"
>>>>         
>> <je...@portals.apache.org>
>>     
>>>> Date: Tuesday, September 23, 2008, 8:45 AM
>>>> Hello all,
>>>> I am trying to create an embedded html portlet. I
>>>>         
>> find it a
>>     
>>>> little bit 
>>>> extra work to use FilePortlet or any other sort of
>>>>         
>> static
>>     
>>>> portlet for 
>>>> small chunks of xml. So having an embedded html
>>>>         
>> portlet
>>     
>>>> that get the 
>>>> contents of the html from a portlet preference
>>>>         
>> that is set
>>     
>>>> in psml is a 
>>>> good work around. Now the problem is that
>>>>         
>> preferences as
>>     
>>>> retrieved as 
>>>> text and since the html or XHTML are not strings
>>>>         
>> (they have
>>     
>>>> < and > ) I 
>>>> was not able to get the contents from the
>>>>         
>> preferences. I
>>     
>>>> tried escaping 
>>>> the html but no luck. I don't know if anyone
>>>>         
>> has a work
>>     
>>>> around. I know 
>>>> that the implementation of pluto is set by jsr
>>>>         
>> 286, but
>>     
>>>> does the 
>>>> preference have to be string?
>>>>
>>>> Can anyone comment on this, please ?
>>>>
>>>> thank you.
>>>>
>>>>
>>>>
>>>>         
>> ---------------------------------------------------------------------
>>     
>>>> To unsubscribe, e-mail:
>>>> jetspeed-user-unsubscribe@portals.apache.org
>>>> For additional commands, e-mail:
>>>> jetspeed-user-help@portals.apache.org
>>>>     
>>>>         
>>>       
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>>     
>>> To unsubscribe, e-mail:
>>>       
>> jetspeed-user-unsubscribe@portals.apache.org
>>     
>>> For additional commands, e-mail:
>>>       
>> jetspeed-user-help@portals.apache.org
>>     
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail:
>> jetspeed-user-help@portals.apache.org
>>     
>
>
>       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: pluto and preference\ values as xml

Posted by Woonsan Ko <wo...@yahoo.com>.
How about using CDATA?


--- On Tue, 9/23/08, Mansour Al Akeel <ma...@gmail.com> wrote:

> From: Mansour Al Akeel <ma...@gmail.com>
> Subject: Re: pluto and preference\ values as xml
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, September 23, 2008, 5:26 PM
> Woonsan, thank you. I tried again the escaped html and it
> worked. I 
> missed to ecape one of the tags. Now that I escaped all the
> tags 
> properly it's working fine. I am wondering if
> there's a way to get 
> unescaped html. I can live with the escaped but it will be
> easier just 
> to put plain html. Do you know any ?
> 
> 
> Woonsan Ko wrote:
> > Hi Mansour,
> >
> > I'm not sure but can't we store escaped html
> as a preference?
> > I tried to store a bookmark, name="Apache
> HTTPd",
> value="http://httpd.<b>apache</b>.org/"
> in the bookmark portlet.
> > AFAIK, the bookmark portlet stores the bookmark
> information in the preferences.
> > It seems showing correctly as I intended to.
> >
> > -Woonsan
> >
> >
> > --- On Tue, 9/23/08, Mansour Al Akeel
> <ma...@gmail.com> wrote:
> >
> >   
> >> From: Mansour Al Akeel
> <ma...@gmail.com>
> >> Subject: pluto and preference\ values as xml
> >> To: "Jetspeed Users List"
> <je...@portals.apache.org>
> >> Date: Tuesday, September 23, 2008, 8:45 AM
> >> Hello all,
> >> I am trying to create an embedded html portlet. I
> find it a
> >> little bit 
> >> extra work to use FilePortlet or any other sort of
> static
> >> portlet for 
> >> small chunks of xml. So having an embedded html
> portlet
> >> that get the 
> >> contents of the html from a portlet preference
> that is set
> >> in psml is a 
> >> good work around. Now the problem is that
> preferences as
> >> retrieved as 
> >> text and since the html or XHTML are not strings
> (they have
> >> < and > ) I 
> >> was not able to get the contents from the
> preferences. I
> >> tried escaping 
> >> the html but no luck. I don't know if anyone
> has a work
> >> around. I know 
> >> that the implementation of pluto is set by jsr
> 286, but
> >> does the 
> >> preference have to be string?
> >>
> >> Can anyone comment on this, please ?
> >>
> >> thank you.
> >>
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> jetspeed-user-unsubscribe@portals.apache.org
> >> For additional commands, e-mail:
> >> jetspeed-user-help@portals.apache.org
> >>     
> >
> >
> >       
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@portals.apache.org
> > For additional commands, e-mail:
> jetspeed-user-help@portals.apache.org
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@portals.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: pluto and preference\ values as xml

Posted by Mansour Al Akeel <ma...@gmail.com>.
Woonsan, thank you. I tried again the escaped html and it worked. I 
missed to ecape one of the tags. Now that I escaped all the tags 
properly it's working fine. I am wondering if there's a way to get 
unescaped html. I can live with the escaped but it will be easier just 
to put plain html. Do you know any ?


Woonsan Ko wrote:
> Hi Mansour,
>
> I'm not sure but can't we store escaped html as a preference?
> I tried to store a bookmark, name="Apache HTTPd", value="http://httpd.<b>apache</b>.org/" in the bookmark portlet.
> AFAIK, the bookmark portlet stores the bookmark information in the preferences.
> It seems showing correctly as I intended to.
>
> -Woonsan
>
>
> --- On Tue, 9/23/08, Mansour Al Akeel <ma...@gmail.com> wrote:
>
>   
>> From: Mansour Al Akeel <ma...@gmail.com>
>> Subject: pluto and preference\ values as xml
>> To: "Jetspeed Users List" <je...@portals.apache.org>
>> Date: Tuesday, September 23, 2008, 8:45 AM
>> Hello all,
>> I am trying to create an embedded html portlet. I find it a
>> little bit 
>> extra work to use FilePortlet or any other sort of static
>> portlet for 
>> small chunks of xml. So having an embedded html portlet
>> that get the 
>> contents of the html from a portlet preference that is set
>> in psml is a 
>> good work around. Now the problem is that preferences as
>> retrieved as 
>> text and since the html or XHTML are not strings (they have
>> < and > ) I 
>> was not able to get the contents from the preferences. I
>> tried escaping 
>> the html but no luck. I don't know if anyone has a work
>> around. I know 
>> that the implementation of pluto is set by jsr 286, but
>> does the 
>> preference have to be string?
>>
>> Can anyone comment on this, please ?
>>
>> thank you.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> jetspeed-user-unsubscribe@portals.apache.org
>> For additional commands, e-mail:
>> jetspeed-user-help@portals.apache.org
>>     
>
>
>       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: pluto and preference\ values as xml

Posted by Woonsan Ko <wo...@yahoo.com>.
Hi Mansour,

I'm not sure but can't we store escaped html as a preference?
I tried to store a bookmark, name="Apache HTTPd", value="http://httpd.<b>apache</b>.org/" in the bookmark portlet.
AFAIK, the bookmark portlet stores the bookmark information in the preferences.
It seems showing correctly as I intended to.

-Woonsan


--- On Tue, 9/23/08, Mansour Al Akeel <ma...@gmail.com> wrote:

> From: Mansour Al Akeel <ma...@gmail.com>
> Subject: pluto and preference\ values as xml
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, September 23, 2008, 8:45 AM
> Hello all,
> I am trying to create an embedded html portlet. I find it a
> little bit 
> extra work to use FilePortlet or any other sort of static
> portlet for 
> small chunks of xml. So having an embedded html portlet
> that get the 
> contents of the html from a portlet preference that is set
> in psml is a 
> good work around. Now the problem is that preferences as
> retrieved as 
> text and since the html or XHTML are not strings (they have
> < and > ) I 
> was not able to get the contents from the preferences. I
> tried escaping 
> the html but no luck. I don't know if anyone has a work
> around. I know 
> that the implementation of pluto is set by jsr 286, but
> does the 
> preference have to be string?
> 
> Can anyone comment on this, please ?
> 
> thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@portals.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org