You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by James Winburn <jw...@computerguidance.com> on 2008/12/04 22:39:46 UTC

WebContentPortlet error

Hey Guys,

 

Since I got no responses about my iFrame problem (it WAS sort of vague),
I looked around for another solution. The WebContentPortlet looks like
it may be what we need to run our main web app as a portlet.  Problem is
that the portlet with all the defaults intact doesn't work.  We I try to
run it, I get the following error:

 

Portlet is Not Available: demo::WebContentPortlet
Reason: Exception while rewritting HTML page. Error: Exception while
rewritting HTML page. Error: Exception while rewritting HTML page.
Error: Exception while rewritting HTML page. Error: Failure reading: /,
response code: 405

 

It is set up to display http://www.google.com <http://www.google.com/>
so I doubt if there is any problem with the site itself.

 

Any ideas?  

 

Thanks,

James Winburn

 


RE: personalization Issue

Posted by FRAGOSO ruben <ru...@gemalto.com>.

Try to see the possible security combinations, in order for the user
being able to choose the layout and skins, this is an option that might
be defined in the psml security options. The other option that I find in
mind is to make you own portlet to change the layout/skin, It is my
belief that you can also take advantage of the Jetspeed source in order
to see how the layout/skin mechanism works, and implement a portlet that
does what you want. Sorry if I cannot help more than that =(. Good Luck


Best regards
Ruben Fragoso

 

 

-----Original Message-----
From: Harsh Kapoor [mailto:harsh.kapoor@aricent.com] 
Sent: 14. prosince 2008 18:12
To: Jetspeed Developers List
Subject: RE: personalization Issue

Hi Thanks for the reply.

Well the issue is how can we do it programatically.

I mean in our portal we dont give rights to users as admin , where they
can have rights to change look and feel.

We will have a seperate prefrence portlet where they will pick a ame of
the theme and then after update that theme and skin will apply.
Regards
Harsh

________________________________________
From: FRAGOSO ruben [ruben.FRAGOSO@gemalto.com]
Sent: Friday, December 12, 2008 4:10 PM
To: Jetspeed Developers List
Subject: RE: personalization Issue

You can already do that when you are in the dialog to change the portlet
order/location, it is the same dialog to change the theme of the portal
and the skin of the portlet

Regards


Ruben Fragoso






-----Original Message-----
From: Harsh Kapoor [mailto:harsh.kapoor@aricent.com]
Sent: 11. prosince 2008 15:23
To: Jetspeed Developers List
Subject: personalization Issue

Hi

We need to build a personalization portal system using Jetspeed portal
server.

Best Example is Google's mygoogle.com

Well we are not intending to build such a vast system currently.

But our portal server will give options to user to pick look and feel of
Portal and Portlet themes from a list of drop down to user browsing it
upon their successful logon to our system


Can anyone suggest how can we change the Page and portlet theme
mentioned in Jetspeed PSML files on runtime and refresh the page so that
new theme is loaded when user pick any one of those from a drop down.


BR
Harsh Kapoor.


"DISCLAIMER: This message is proprietary to Aricent and is intended
solely for the use of the individual to whom it is addressed. It may
contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended.
If you have received this message in error,please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus."

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


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

"DISCLAIMER: This message is proprietary to Aricent and is intended
solely for the use of the individual to whom it is addressed. It may
contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended.
If you have received this message in error,please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus."

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


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


RE: personalization Issue

Posted by Harsh Kapoor <ha...@aricent.com>.
Hi Thanks for the reply.

Well the issue is how can we do it programatically.

I mean in our portal we dont give rights to users as admin , where they can have rights to change look and feel.

We will have a seperate prefrence portlet where they will pick a ame of the theme and then after update that theme and skin will apply.
Regards
Harsh

________________________________________
From: FRAGOSO ruben [ruben.FRAGOSO@gemalto.com]
Sent: Friday, December 12, 2008 4:10 PM
To: Jetspeed Developers List
Subject: RE: personalization Issue

You can already do that when you are in the dialog to change the portlet
order/location, it is the same dialog to change the theme of the portal
and the skin of the portlet

Regards


Ruben Fragoso






-----Original Message-----
From: Harsh Kapoor [mailto:harsh.kapoor@aricent.com]
Sent: 11. prosince 2008 15:23
To: Jetspeed Developers List
Subject: personalization Issue

Hi

We need to build a personalization portal system using Jetspeed portal
server.

Best Example is Google's mygoogle.com

Well we are not intending to build such a vast system currently.

But our portal server will give options to user to pick look and feel of
Portal and Portlet themes from a list of drop down to user browsing it
upon their successful logon to our system


Can anyone suggest how can we change the Page and portlet theme
mentioned in Jetspeed PSML files on runtime and refresh the page so that
new theme is loaded when user pick any one of those from a drop down.


BR
Harsh Kapoor.


"DISCLAIMER: This message is proprietary to Aricent and is intended
solely for the use of the individual to whom it is addressed. It may
contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended.
If you have received this message in error,please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus."

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


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

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

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


RE: personalization Issue

Posted by FRAGOSO ruben <ru...@gemalto.com>.
You can already do that when you are in the dialog to change the portlet
order/location, it is the same dialog to change the theme of the portal
and the skin of the portlet

Regards

 
Ruben Fragoso


 

 

-----Original Message-----
From: Harsh Kapoor [mailto:harsh.kapoor@aricent.com] 
Sent: 11. prosince 2008 15:23
To: Jetspeed Developers List
Subject: personalization Issue

Hi

We need to build a personalization portal system using Jetspeed portal
server.

Best Example is Google's mygoogle.com

Well we are not intending to build such a vast system currently.

But our portal server will give options to user to pick look and feel of
Portal and Portlet themes from a list of drop down to user browsing it
upon their successful logon to our system


Can anyone suggest how can we change the Page and portlet theme
mentioned in Jetspeed PSML files on runtime and refresh the page so that
new theme is loaded when user pick any one of those from a drop down.


BR
Harsh Kapoor.


"DISCLAIMER: This message is proprietary to Aricent and is intended
solely for the use of the individual to whom it is addressed. It may
contain privileged or confidential information and should not be
circulated or used for any purpose other than for what it is intended.
If you have received this message in error,please notify the originator
immediately. If you are not the intended recipient, you are notified
that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. Aricent accepts no
responsibility for loss or damage arising from the use of the
information transmitted by this email including damage from virus."

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


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


personalization Issue

Posted by Harsh Kapoor <ha...@aricent.com>.
Hi

We need to build a personalization portal system using Jetspeed portal server.

Best Example is Google's mygoogle.com

Well we are not intending to build such a vast system currently.

But our portal server will give options to user to pick look and feel of Portal and Portlet themes from a list of drop down to user browsing it upon their successful logon to our system


Can anyone suggest how can we change the Page and portlet theme mentioned in Jetspeed PSML files on runtime and refresh the page so that new theme is loaded when user pick any one of those from a drop down.


BR
Harsh Kapoor.


"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

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


Re: WebContentPortlet question ...again

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

Just my guess: the problem could be from the security limitation for javascript to access other domain's contents if you use two app servers with different domain names.

Woonsan


--- On Wed, 12/10/08, James Winburn <jw...@computerguidance.com> wrote:

> From: James Winburn <jw...@computerguidance.com>
> Subject: WebContentPortlet question ...again
> To: "Jetspeed Developers List" <je...@portals.apache.org>
> Date: Wednesday, December 10, 2008, 8:43 PM
> Hey all,
> 
> Sorry to belabor this, but I have another WebContentPortlet
> question.
> If the web app displayed in the portlet uses WebSphere
> rather than
> Tomcat (which oddly enough is actually the case for us),
> will the two
> app servers conflict?  If so, why does this NOT seem to
> happen if we put
> the same WebSphere-based application in an iFrame portlet?
> 
> Thanks,
> James Winburn
> Computer Guidance Corporation
> Scottsdale, AZ
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail:
> jetspeed-dev-help@portals.apache.org


      

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


WebContentPortlet question ...again

Posted by James Winburn <jw...@computerguidance.com>.
Hey all,

Sorry to belabor this, but I have another WebContentPortlet question.
If the web app displayed in the portlet uses WebSphere rather than
Tomcat (which oddly enough is actually the case for us), will the two
app servers conflict?  If so, why does this NOT seem to happen if we put
the same WebSphere-based application in an iFrame portlet?

Thanks,
James Winburn
Computer Guidance Corporation
Scottsdale, AZ



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


Re: WebContentPortlet error

Posted by David Sean Taylor <dt...@onehippo.com>.
dtaylor@onehippo.com  www.onehippo.com
San Francisco - Hippo USA Inc. 101 H Street, Suite Q Petaluma CA 94952  
+1 (877) 41-HIPPO
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466




On Dec 8, 2008, at 8:14 AM, James Winburn wrote:

> David,
>
> Thanks for the response.  The inability to save state in an iframe  
> is as
> I feared.  We've come up with a work-around that's kludgy and about as
> non-robust as a web app could be (I think it was even coughing up  
> blood
> last night) but it works ...sort of.
>
> It's still looking like the WebContentPortlet is what we will  
> ultimately
> be using, but this is proving to be problematic. The amazon URL you  
> gave
> me did indeed work, but OUR web app did not.  After logging in, the
> second page is displayed ...after a fashion.  Components come up all
> over the screen with no regard for the size of the portlet.  It also
> seems to freeze up.  Interacting with any of the components does
> nothing.
>
> Granted, we are doing some funky things in this app (at least as funky
> as google).  I would have been surprised if the portlet worked with  
> all
> this proprietary craziness.  (Webfacing ...don't ask. It's not  
> pretty.)
>
> It's looking like I will need to write a new portlet based on the
> WebContentPortlet that would do the right thing when it comes to our  
> web
> app.
>
There is a rewriter framework based on XML configuration, it might be  
worth taking a look at

> But if I still have your attention, please allow me to ask yet another
> question.  I notice that in the "fragment" table there are columns  
> that
> seem to define properties (EXT_PROP_NAME_1, EXT_PROP_VALUE_1, etc.)   
> How
> can one access these columns in a portlet?
>

 From a portlet.... its not directly accessible using the Portlet API
The Jetspeed API has an interface Fragment, see  
Fragment.getProperties, you'd have to use the Page Manager to retrieve  
a page, then navigate down to a fragment


RE: WebContentPortlet error

Posted by James Winburn <jw...@computerguidance.com>.
David,

Thanks for the response.  The inability to save state in an iframe is as
I feared.  We've come up with a work-around that's kludgy and about as
non-robust as a web app could be (I think it was even coughing up blood
last night) but it works ...sort of.

It's still looking like the WebContentPortlet is what we will ultimately
be using, but this is proving to be problematic. The amazon URL you gave
me did indeed work, but OUR web app did not.  After logging in, the
second page is displayed ...after a fashion.  Components come up all
over the screen with no regard for the size of the portlet.  It also
seems to freeze up.  Interacting with any of the components does
nothing.  

Granted, we are doing some funky things in this app (at least as funky
as google).  I would have been surprised if the portlet worked with all
this proprietary craziness.  (Webfacing ...don't ask. It's not pretty.) 

It's looking like I will need to write a new portlet based on the
WebContentPortlet that would do the right thing when it comes to our web
app.  

But if I still have your attention, please allow me to ask yet another
question.  I notice that in the "fragment" table there are columns that
seem to define properties (EXT_PROP_NAME_1, EXT_PROP_VALUE_1, etc.)  How
can one access these columns in a portlet?

Thanks,
James Winburn
Computer Guidance Corp.
Scottsdale, AZ




-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com] 
Sent: Thursday, December 04, 2008 5:59 PM
To: Jetspeed Developers List
Subject: Re: WebContentPortlet error


On Dec 4, 2008, at 1:39 PM, James Winburn wrote:

> Hey Guys,
>
>
>
> Since I got no responses about my iFrame problem (it WAS sort of  
> vague),

I know of no known solution, so I didn't respond. Once you navigate  
off the page with the IFrame, and then come back, you will lose state.
I don't know how to keep that session, its outside of our control AFAIK

>
> I looked around for another solution. The WebContentPortlet looks like
> it may be what we need to run our main web app as a portlet.   
> Problem is
> that the portlet with all the defaults intact doesn't work.  We I  
> try to
> run it, I get the following error:
>
>
>
> Portlet is Not Available: demo::WebContentPortlet
> Reason: Exception while rewritting HTML page. Error: Exception while
> rewritting HTML page. Error: Exception while rewritting HTML page.
> Error: Exception while rewritting HTML page. Error: Failure  
> reading: /,
> response code: 405
>
Yeah, google.com is now causing a 405, it didn't crash last time I  
tested it. Oh well.
Go into edit mode and try this link:

http://www.amazon.com

Then navigate to the Books link. Then click on another menu tab in  
Jetspeed, and then come back to this page. You will see that it  
remembered the books page, unlike on an IFrame

By chance if you are interested, its bombing out in the  
WebContentPortlet in trying to rewrite a relative URL:

              
rewriter.rewrite(rewriteController.createParserAdaptor("text/html"),  
htmlReader, htmlWriter);

I think the rewriter just needs to ignore bad URL links (actually we  
are erroneously following down a misunderstood URL path), but it  
shouldn't cause it to give up like it does
Let me know if you want to provide a patch otherwise create a JIRA  
issue and assign it to me and I'll fix it




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


Re: WebContentPortlet error

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Dec 4, 2008, at 1:39 PM, James Winburn wrote:

> Hey Guys,
>
>
>
> Since I got no responses about my iFrame problem (it WAS sort of  
> vague),

I know of no known solution, so I didn't respond. Once you navigate  
off the page with the IFrame, and then come back, you will lose state.
I don't know how to keep that session, its outside of our control AFAIK

>
> I looked around for another solution. The WebContentPortlet looks like
> it may be what we need to run our main web app as a portlet.   
> Problem is
> that the portlet with all the defaults intact doesn't work.  We I  
> try to
> run it, I get the following error:
>
>
>
> Portlet is Not Available: demo::WebContentPortlet
> Reason: Exception while rewritting HTML page. Error: Exception while
> rewritting HTML page. Error: Exception while rewritting HTML page.
> Error: Exception while rewritting HTML page. Error: Failure  
> reading: /,
> response code: 405
>
Yeah, google.com is now causing a 405, it didn't crash last time I  
tested it. Oh well.
Go into edit mode and try this link:

http://www.amazon.com

Then navigate to the Books link. Then click on another menu tab in  
Jetspeed, and then come back to this page. You will see that it  
remembered the books page, unlike on an IFrame

By chance if you are interested, its bombing out in the  
WebContentPortlet in trying to rewrite a relative URL:

              
rewriter.rewrite(rewriteController.createParserAdaptor("text/html"),  
htmlReader, htmlWriter);

I think the rewriter just needs to ignore bad URL links (actually we  
are erroneously following down a misunderstood URL path), but it  
shouldn't cause it to give up like it does
Let me know if you want to provide a patch otherwise create a JIRA  
issue and assign it to me and I'll fix it