[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-23 Thread explorer
Got the same problem that a link tag is not being injected into the header.
Any information please?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066829#4066829

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066829
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-19 Thread [EMAIL PROTECTED]
as is.

But your browser won't like something like:


  | 
  | 
  | 
  | 
  |
  |
  |
  | 
  | 
  | 
  | 

It's the responsibility of the portlet to be a good citizen of a portal.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065786#4065786

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065786
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-19 Thread brownfielda
I suppose the question should be a bit more specific.

When you defer to a JSP does the markup it sends back get used as is?  Or does 
some component parse through that markup and strip out any of those forbidden 
tags?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065782#4065782

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065782
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
Well at the end there is a unique HTML page with a unique html, head and body 
tags. So in your portlet you mustn't produce those tags.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065548#4065548

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065548
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread brownfielda
Possibly related:  The portlet spec says something about disallowed HTML tags.  
I believe head and body were among them.

Is this relevant when using JSP?

Maybe dispatcher.include("myJSP.jsp") parses those tags out when returning 
control to the portlet.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065524#4065524

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
I don't think the onload javascript execution issue has anything to do with the 
fact you have instances of the same portlet on the same page.

This issue is more related to the way AJAX based Partial refresh works, and 
when that happens, only your pages DOM model is getting updated, but the actual 
Page is not getting refreshed (typical AJAX usecase).

Hence, the Page is not doing a complete refresh, the onLoad event is not fired, 
and your JavaScript is not executed.

I bet if you put the 


  | 
  | alert('Test');
  | 
  | 

inside your Portlet markup, they will probably work even in "Partial Refresh" 
mode

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065515#4065515

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065515
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
I did the following for the partial refresh

Log in as admin and added the Partial refresh property for that page but 
disabled the partial refresh by unchecking it.Then log in as the user and 
copied that particular page to my dashboard. Now everything is working fine. 
The problem is with the partial refresh, i have not enabled the feature but by 
default it is enabled so i disabled it as i mentioned. Is that the javascript 
and the link tags to style wont work for partial refresh(Multiple instance of 
same portlet on same page)?

Thank you very much for your kind help. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065497#4065497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
And this onload javascript works just fine when only one instance of the 
portlet is placed on the page?

At this point you may have to do some javascript debugging on your browser.

The  part is actually completely independent of what the portlets are doing on 
the page. The Portlets are just aggregated markup on the Page, so the 

 javascript should be like any other web application

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065492#4065492

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065492
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
No i am not using the partial refresh feature. 
No one more thing is that the link tag for styles is also not working similar 
to the javascript.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065482#4065482

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065482
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
Are you by any chance using the "Partial Refresh" feature of the Portal?

Reason I say that is with "Partial Refresh" only portions of your page a loaded 
and the Page is not fully refreshed.


If you page is being fully refreshed, the onload event on your body should be 
getting called

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065469#4065469

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065469
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
Tried with the Onload event but still its not working.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065468#4065468

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065468
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread [EMAIL PROTECTED]
Try this and see if its still random


  |  
  |function callOnLoad()
  |{
  |alert("Test");
  |}
  | 
  | 
  | ...
  | 
  | 

Basically making the code execute using DOM events.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065458#4065458

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065458
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
Thanks for your reply.

I can able to fix the issue by giving the namespace tag. But i have few other 
problems with mulitple instance of same portlet on same page. I am invoking the 
javascript before the body tag 

  |  
  | alert("Test");
  | 
  | 
  | ...
  | 
  | 
On submit of this form again i am redirecting to the same JSP page in the 
portlets doView method but I am not getting the alert message on the submission 
of the form. When i do a refresh i am getting the alert. For random Submission 
the entire page is refreshed automatically and i am getting the alert. 

Kindly help me to fix this issue.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065447#4065447

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065447
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread kumarkn
Thanks for your reply.

I can able to fix the issue by giving the namespace tag. But i have few other 
problems with mulitple instance of same portlet on same page. I am invoking the 
javascript before the body tag 

alert("Test");


...


On submit of this form again i am redirecting to the same JSP page in the 
portlets doView method but I am not getting the alert message on the submission 
of the form. When i do a refresh i am getting the alert. For random Submission 
the entire page is refreshed automatically and i am getting the alert. 

Kindly help me to fix this issue.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065444#4065444

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065444
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-18 Thread brownfielda
Hadn't ever thought about this problem.

Digging through the portlet spec (as per Thomas' recommendation) found the 
solution in PLT 22.4.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065363#4065363

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-17 Thread kumarkn
Added to the above query.

Tried to fix the issue by looping through all the forms in the document and get 
the correct form name and apply the logic. It is working until i submit the 
form, once submitted the logic goes off. This issue is not happening always, 
its happening for frequent form submission.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065194#4065194

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Multiple instance of same portlet on same page

2007-07-17 Thread [EMAIL PROTECTED]
Use a different namespace for your HTML elements. 

See the portlet spec.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065190#4065190

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065190
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user