Re: [ Tobago ] Regarding PopUp's

2007-03-09 Thread madan chowdary
Hi Volker,

Replaced Event.observe() with Tobago.addEventListener() and the popup displayed 
fine.

But regarding the issue what i had, how can i proceed...

Is there any means of archiving my task to open a popup and navigate to another 
page with the same link and no double clicks on other links.

Tried with javascript frameworks like Dojo, YUI which resulted in DIV alignment 
issues in FireFox and IE.

This issue is to be fixed very soon as my project deadline is very near.

Suggest me how can i move ahead to accomplish this task.

Thnx in advance,

Regards,
Madan





- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 8:24:00 PM
Subject: Re: [ Tobago ] Regarding PopUp's

 Can u explain me how can i go ahead with Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

I just took a look in the sources: you can replace Event.observe()
with Tobago.addEventListener(). They take the same params.








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [ Tobago ] Regarding PopUp's

2007-03-09 Thread Volker Weber

Hi Madan,

Add the 'invisible' link as i wrote before, and change your script to
submit this actionIs instead of the one where the hover event is
observed.
It's no problem to submit a links actionId in mouseover script of another one.

Regards,
 Volker

2007/3/9, madan chowdary [EMAIL PROTECTED]:


Hi Volker,

Replaced Event.observe() with Tobago.addEventListener() and the popup
displayed fine.

But regarding the issue what i had, how can i proceed...

Is there any means of archiving my task to open a popup and navigate to
another page with the same link and no double clicks on other links.

Tried with javascript frameworks like Dojo, YUI which resulted in DIV
alignment issues in FireFox and IE.

This issue is to be fixed very soon as my project deadline is very near.

Suggest me how can i move ahead to accomplish this task.

Thnx in advance,

Regards,
Madan





- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 8:24:00 PM
Subject: Re: [ Tobago ] Regarding PopUp's


 Can u explain me how can i go ahead with Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

I just took a look in the sources: you can replace Event.observe()
with Tobago.addEventListener(). They take the same params.


 
 Here's a new way to find what you're looking for - Yahoo! Answers


Re: [ Tobago ] Regarding PopUp's

2007-03-09 Thread madan chowdary
Thnx volker, 

Will try that out and say u back if any issues occurred..

Regards
Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Friday, 9 March, 2007 5:47:59 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi Madan,

Add the 'invisible' link as i wrote before, and change your script to
submit this actionIs instead of the one where the hover event is
observed.
It's no problem to submit a links actionId in mouseover script of another one.

Regards,
  Volker

2007/3/9, madan chowdary [EMAIL PROTECTED]:

 Hi Volker,

 Replaced Event.observe() with Tobago.addEventListener() and the popup
 displayed fine.

 But regarding the issue what i had, how can i proceed...

 Is there any means of archiving my task to open a popup and navigate to
 another page with the same link and no double clicks on other links.

 Tried with javascript frameworks like Dojo, YUI which resulted in DIV
 alignment issues in FireFox and IE.

 This issue is to be fixed very soon as my project deadline is very near.

 Suggest me how can i move ahead to accomplish this task.

 Thnx in advance,

 Regards,
 Madan





 - Original Message 
 From: Volker Weber [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday, 8 March, 2007 8:24:00 PM
 Subject: Re: [ Tobago ] Regarding PopUp's


  Can u explain me how can i go ahead with Tobago.addEventListener() or
  Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

 I just took a look in the sources: you can replace Event.observe()
 with Tobago.addEventListener(). They take the same params.


  
  Here's a new way to find what you're looking for - Yahoo! Answers








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [ Tobago ] Regarding PopUp's

2007-03-09 Thread madan chowdary
Hi Volker,

Thnx for the suggestion regarding the invisible link.

Now was able to see the popup and navigate to other pages without any issue.

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Friday, 9 March, 2007 5:53:01 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Thnx volker, 

Will try that out and say u back if any issues occurred..

Regards
Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Friday, 9 March, 2007 5:47:59 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi Madan,

Add the 'invisible' link as i wrote before, and change your script to
submit this actionIs instead of the one where the hover event is
observed.
It's no problem to submit a links actionId in mouseover script of another one.

Regards,
  Volker

2007/3/9, madan chowdary
 [EMAIL PROTECTED]:

 Hi Volker,

 Replaced Event.observe() with Tobago.addEventListener() and the popup
 displayed fine.

 But regarding the issue what i had, how can i proceed...

 Is there any means of archiving my task to open a popup and navigate to
 another page with the same link and no double clicks on other links.

 Tried with javascript frameworks like Dojo, YUI which resulted in DIV
 alignment issues in FireFox and IE.

 This issue is to be fixed very soon as my project deadline is very near.

 Suggest me how can i move ahead to accomplish this task.

 Thnx in advance,

 Regards,
 Madan





 - Original Message 
 From: Volker Weber [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday,
 8 March, 2007 8:24:00 PM
 Subject: Re: [ Tobago ] Regarding PopUp's


  Can u explain me how can i go ahead with Tobago.addEventListener() or
  Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

 I just took a look in the sources: you can replace Event.observe()
 with Tobago.addEventListener(). They take the same params.


  
  Here's a new way to find what you're looking for - Yahoo! Answers










 
Here’s a new way to find what you're looking for - Yahoo! Answers 






__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread madan chowdary
Hi All,

Please help me over this  I am in real need of this functionality and my 
project deadline is ahead.

Thnx in adnvace, 

Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Wednesday, 7 March, 2007 1:01:50 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi All,

After debugging this thing , at last was able to get the popup on mouseover 
with the help of prototype.js.

The code is as such

tc:cell
tc:link label=View Cart Contents id=viewCartContents 
action=viewCartContents
f:facet name=popup
tc:popup width=620 height=300
 id=sheetConfigPopup
tc:box label=Cart Summary
f:facet name=layout
tc:gridLayout/
/f:facet
f:facet
 name=toolBar
tc:toolBar
tc:toolBarCommand label=X
tc:attribute name=popupClose 
value=immediate/
   
 /tc:toolBarCommand
/tc:toolBar
/f:facet
tc:cell
tc:sheet
 id=checkOutSheetPopUp
  value=#{shoppingCart.items}
  columns=60px;350px;80px;100px
 
 var=cartItem
  showHeader=true
  showDirectLinks=center
 
 directLinkCount=10
  first=0
  selectable=none
tc:column label=#{bundle.quantity} 
id=number sortable=false
 align=center
tc:out value=#{cartItem.quantity} 
id=p_quantity /
/tc:column

tc:column label=#{bundle.productName}
 id=prdName
tc:out 
value=#{cartItem.item.productCode} id=p_code/
tc:out value= -  /
tc:out 
value=#{cartItem.item.productName}
 id=p_name/
/tc:column

tc:column label=#{bundle.unitPrice} 
sortable=true align=right
tc:out 
value=#{cartItem.listPriceForQuantity}
 id=p_unitprice
converter=CurrencyConverter /
/tc:column

tc:column label=#{bundle.extTotal} 
sortable=true align=right
 
tc:out value=#{cartItem.quantity * 
cartItem.listPriceForQuantity} id=Ex_Total
  converter=CurrencyConverter /
   
 /tc:column
/tc:sheet
/tc:cell
/tc:box
/tc:popup
 /f:facet
/tc:link
   
 
tc:script
Event.observe(window, 'load', initCartSummary);

function initCartSummary(){
Event.observe($('page:cartSummary:viewCartContents'), 
'mouseover', 
showCartContents);

Event.observe($('page:cartSummary:viewCartContents'), 
'mouseout',
 
showCartContents_mouseOut);

Event.observe($('page:cartSummary:viewCartContents'), 
'click', 
viewCartContents);
}

var delayhide = null;

function
 viewCartContents()
{
if (typeof delayhide!=undefined)
clearTimeout(delayhide);
}

function showCartContents(){
delayhide = 
setTimeout(Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup',
 'page:cartSummary:viewCartContents'),500);
}

function showCartContents_mouseOut(){
if (typeof delayhide!=undefined)
clearTimeout(delayhide);
}
/tc:script

Used Event object in prototype.js to observe the id for tc:link , and when 
mouse over then fire this action 
 Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup', 
'page:cartSummary:viewCartContents') 

When clicked on the link, captured the event by click option.

Both the ' popup when mouseover ' and ' page navigation when clicked on the 
link ' are working fine

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread Volker Weber

Hi Madan,

which implementation/version of jsf did you use?

afaik your last version should work with myfaces 1.1.5 and tobago
1.0.10[-SNAPSHOT].

But to be future proof i suggest to use Tobago.addEventListener() or
Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
because we are going to remove prototype from tobago.

Regards,
 Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:


Hi All,

Please help me over this  I am in real need of this functionality and my
project deadline is ahead.

Thnx in adnvace,

Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Wednesday, 7 March, 2007 1:01:50 PM
Subject: Re: [ Tobago ] Regarding PopUp's


Hi All,

After debugging this thing , at last was able to get the popup on mouseover
with the help of prototype.js.

The code is as such

tc:cell
tc:link label=View Cart Contents id=viewCartContents
action=viewCartContents
f:facet name=popup
tc:popup width=620 height=300
id=sheetConfigPopup
tc:box label=Cart Summary
f:facet name=layout
tc:gridLayout/
/f:facet
f:facet name=toolBar
tc:toolBar
tc:toolBarCommand
label=X
tc:attribute
name=popupClose value=immediate/
/tc:toolBarCommand
/tc:toolBar
/f:facet
tc:cell
tc:sheet id=checkOutSheetPopUp

value=#{shoppingCart.items}

columns=60px;350px;80px;100px
  var=cartItem
  showHeader=true

showDirectLinks=center

directLinkCount=10
  first=0

selectable=none
tc:column
label=#{bundle.quantity} id=number sortable=false align=center
tc:out
value=#{cartItem.quantity} id=p_quantity /
/tc:column

tc:column
label=#{bundle.productName} id=prdName
tc:out
value=#{cartItem.item.productCode} id=p_code/
tc:out value= - 
/
tc:out
value=#{cartItem.item.productName} id=p_name/
/tc:column

tc:column
label=#{bundle.unitPrice} sortable=true align=right
tc:out
value=#{cartItem.listPriceForQuantity} id=p_unitprice

converter=CurrencyConverter /
/tc:column

tc:column
label=#{bundle.extTotal} sortable=true align=right 
tc:out
value=#{cartItem.quantity * cartItem.listPriceForQuantity} id=Ex_Total

converter=CurrencyConverter /
/tc:column
/tc:sheet
/tc:cell
/tc:box
/tc:popup
 /f:facet
/tc:link

tc:script
Event.observe(window, 'load', initCartSummary);

function initCartSummary(){

Event.observe($('page:cartSummary:viewCartContents'),
'mouseover',
showCartContents);


Event.observe($('page:cartSummary:viewCartContents'),
'mouseout',
showCartContents_mouseOut);


Event.observe($('page:cartSummary:viewCartContents'),
'click',
viewCartContents);
}

var delayhide = null;

function viewCartContents()
{
if (typeof delayhide!=undefined)
clearTimeout(delayhide);
}

function showCartContents(){
delayhide =
setTimeout(Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup',
'page:cartSummary:viewCartContents'),500);
}

function showCartContents_mouseOut(){
if (typeof delayhide!=undefined)
clearTimeout(delayhide);
}
/tc:script

Used Event object in prototype.js to observe the id for tc:link , and when
mouse over then fire this action 
Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup',
'page:cartSummary:viewCartContents') 

When clicked on the link, captured the event by click option.

Both the ' popup when mouseover ' and ' page navigation when clicked on the
link ' are working fine.

But was facing an issue like as such
-- When the mouse is placed on viewCartContents

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread madan chowdary
Hi Volker,

Added MyFaces 1.1.5 and Tobago nightly build jars.

But there was no change in the behavior what i explained in my previous mails.

Can u explain me how can i go ahead with Tobago.addEventListener() or 
Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

Thnx 

Regards
Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 3:19:17 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi Madan,

which implementation/version of jsf did you use?

afaik your last version should work with myfaces 1.1.5 and tobago
1.0.10[-SNAPSHOT].

But to be future proof i suggest to use Tobago.addEventListener() or
Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
because we are going to remove prototype from tobago.

Regards,
  Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:

 Hi All,

 Please help me over this  I am in real need of this functionality and my
 project deadline is ahead.

 Thnx in adnvace,

 Madan

 - Original Message 
 From: madan chowdary [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Wednesday, 7 March, 2007 1:01:50 PM
 Subject: Re: [ Tobago ] Regarding PopUp's


 Hi All,

 After debugging this thing , at last was able to get the popup on mouseover
 with the help of prototype.js.

 The code is as such

 tc:cell
 tc:link label=View Cart Contents id=viewCartContents
 action=viewCartContents
 f:facet name=popup
 tc:popup width=620 height=300
 id=sheetConfigPopup
 tc:box label=Cart Summary
 f:facet name=layout
 tc:gridLayout/
 /f:facet
 f:facet name=toolBar
 tc:toolBar
 tc:toolBarCommand
 label=X
 tc:attribute
 name=popupClose value=immediate/
 /tc:toolBarCommand
 /tc:toolBar
 /f:facet
 tc:cell
 tc:sheet id=checkOutSheetPopUp

 value=#{shoppingCart.items}

 columns=60px;350px;80px;100px
   var=cartItem
   showHeader=true

 showDirectLinks=center

 directLinkCount=10
   first=0

 selectable=none
 tc:column
 label=#{bundle.quantity} id=number sortable=false align=center
 tc:out
 value=#{cartItem.quantity} id=p_quantity /
 /tc:column

 tc:column
 label=#{bundle.productName} id=prdName
 tc:out
 value=#{cartItem.item.productCode} id=p_code/
 tc:out value= - 
 /
 tc:out
 value=#{cartItem.item.productName} id=p_name/
 /tc:column

 tc:column
 label=#{bundle.unitPrice} sortable=true align=right
 tc:out
 value=#{cartItem.listPriceForQuantity} id=p_unitprice

 converter=CurrencyConverter /
 /tc:column

 tc:column
 label=#{bundle.extTotal} sortable=true align=right 
 tc:out
 value=#{cartItem.quantity * cartItem.listPriceForQuantity} id=Ex_Total

 converter=CurrencyConverter /
 /tc:column
 /tc:sheet
 /tc:cell
 /tc:box
 /tc:popup
  /f:facet
 /tc:link

 tc:script
 Event.observe(window, 'load', initCartSummary);

 function initCartSummary(){

 Event.observe($('page:cartSummary:viewCartContents'),
 'mouseover',
 showCartContents);


 Event.observe($('page:cartSummary:viewCartContents'),
 'mouseout',
 showCartContents_mouseOut);


 Event.observe($('page:cartSummary:viewCartContents'),
 'click',
 viewCartContents);
 }

 var delayhide = null;

 function viewCartContents()
 {
 if (typeof delayhide!=undefined)
 clearTimeout(delayhide);
 }

 function showCartContents(){
 delayhide =
 setTimeout(Tobago.openPopupWithAction('page:cartSummary:sheetConfigPopup',
 'page:cartSummary:viewCartContents'),500);
 }

 function showCartContents_mouseOut

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread Volker Weber

The problem is the action=viewCartContents.

a ajax action MUST return null as outcome. Otherwise the
uiComponentTree on server is replaced by a new one and the restore
fails.

Regards,
 Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:


Hi Volker,

Added MyFaces 1.1.5 and Tobago nightly build jars.

But there was no change in the behavior what i explained in my previous
mails.

Can u explain me how can i go ahead with Tobago.addEventListener() or
Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

Thnx

Regards
Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 3:19:17 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi Madan,

which implementation/version of jsf did you use?

afaik your last version should work with myfaces 1.1.5 and tobago
1.0.10[-SNAPSHOT].

But to be future proof i suggest to use Tobago.addEventListener() or
Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
because we are going to remove prototype from tobago.

Regards,
  Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:

 Hi All,

 Please help me over this  I am in real need of this functionality and
my
 project deadline is ahead.

 Thnx in adnvace,

 Madan

 - Original Message 
 From: madan chowdary [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Wednesday, 7 March, 2007 1:01:50 PM
 Subject: Re: [ Tobago ] Regarding PopUp's


 Hi All,

 After debugging this thing , at last was able to get the popup on
mouseover
 with the help of prototype.js.

 The code is as such

 tc:cell
 tc:link label=View Cart Contents id=viewCartContents
 action=viewCartContents
 f:facet name=popup
 tc:popup width=620 height=300
 id=sheetConfigPopup
 tc:box label=Cart Summary
 f:facet name=layout
 tc:gridLayout/
 /f:facet
 f:facet name=toolBar
 tc:toolBar
 tc:toolBarCommand
 label=X
 tc:attribute
 name=popupClose value=immediate/
 /tc:toolBarCommand
 /tc:toolBar
 /f:facet
 tc:cell
 tc:sheet
id=checkOutSheetPopUp

 value=#{shoppingCart.items}

 columns=60px;350px;80px;100px
   var=cartItem

showHeader=true

 showDirectLinks=center

 directLinkCount=10
   first=0

 selectable=none
 tc:column
 label=#{bundle.quantity} id=number sortable=false align=center
 tc:out
 value=#{cartItem.quantity} id=p_quantity /
 /tc:column

 tc:column
 label=#{bundle.productName} id=prdName
 tc:out
 value=#{cartItem.item.productCode} id=p_code/
 tc:out value= -

 /
 tc:out
 value=#{cartItem.item.productName} id=p_name/
 /tc:column

 tc:column
 label=#{bundle.unitPrice} sortable=true align=right
 tc:out
 value=#{cartItem.listPriceForQuantity} id=p_unitprice

 converter=CurrencyConverter /
 /tc:column

 tc:column
 label=#{bundle.extTotal} sortable=true align=right 
 tc:out
 value=#{cartItem.quantity * cartItem.listPriceForQuantity} id=Ex_Total

 converter=CurrencyConverter /
 /tc:column
 /tc:sheet
 /tc:cell
 /tc:box
 /tc:popup
  /f:facet
 /tc:link

 tc:script
 Event.observe(window, 'load', initCartSummary);

 function initCartSummary(){

 Event.observe($('page:cartSummary:viewCartContents'),
 'mouseover',
 showCartContents);


 Event.observe($('page:cartSummary:viewCartContents'),
 'mouseout',
 showCartContents_mouseOut);


 Event.observe($('page:cartSummary:viewCartContents'),
 'click',
 viewCartContents);
 }

 var delayhide = null;

 function viewCartContents()
 {
 if (typeof delayhide!=undefined)
 clearTimeout(delayhide);
 }

 function showCartContents(){
 delayhide

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread madan chowdary
Hi Volker,

Am totally confused how to proceed, i need both the action part and the pop box.

advice me how to go with this ?

Thnx

Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 4:24:37 PM
Subject: Re: [ Tobago ] Regarding PopUp's

The problem is the action=viewCartContents.

a ajax action MUST return null as outcome. Otherwise the
uiComponentTree on server is replaced by a new one and the restore
fails.

Regards,
  Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:

 Hi Volker,

 Added MyFaces 1.1.5 and Tobago nightly build jars.

 But there was no change in the behavior what i explained in my previous
 mails.

 Can u explain me how can i go ahead with Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

 Thnx

 Regards
 Madan

 - Original Message 
 From: Volker Weber [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday, 8 March, 2007 3:19:17 PM
 Subject: Re: [ Tobago ] Regarding PopUp's

 Hi Madan,

 which implementation/version of jsf did you use?

 afaik your last version should work with myfaces 1.1.5 and tobago
 1.0.10[-SNAPSHOT].

 But to be future proof i suggest to use Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
 because we are going to remove prototype from tobago.

 Regards,
   Volker

 2007/3/8, madan chowdary [EMAIL PROTECTED]:
 
  Hi All,
 
  Please help me over this  I am in real need of this functionality and
 my
  project deadline is ahead.
 
  Thnx in adnvace,
 
  Madan
 
  - Original Message 
  From: madan chowdary [EMAIL PROTECTED]
  To: MyFaces Discussion users@myfaces.apache.org
  Sent: Wednesday, 7 March, 2007 1:01:50 PM
  Subject: Re: [ Tobago ] Regarding PopUp's
 
 
  Hi All,
 
  After debugging this thing , at last was able to get the popup on
 mouseover
  with the help of prototype.js.
 
  The code is as such
 
  tc:cell
  tc:link label=View Cart Contents id=viewCartContents
  action=viewCartContents
  f:facet name=popup
  tc:popup width=620 height=300
  id=sheetConfigPopup
  tc:box label=Cart Summary
  f:facet name=layout
  tc:gridLayout/
  /f:facet
  f:facet name=toolBar
  tc:toolBar
  tc:toolBarCommand
  label=X
  tc:attribute
  name=popupClose value=immediate/
  /tc:toolBarCommand
  /tc:toolBar
  /f:facet
  tc:cell
  tc:sheet
 id=checkOutSheetPopUp
 
  value=#{shoppingCart.items}
 
  columns=60px;350px;80px;100px
var=cartItem
 
 showHeader=true
 
  showDirectLinks=center
 
  directLinkCount=10
first=0
 
  selectable=none
  tc:column
  label=#{bundle.quantity} id=number sortable=false align=center
  tc:out
  value=#{cartItem.quantity} id=p_quantity /
  /tc:column
 
  tc:column
  label=#{bundle.productName} id=prdName
  tc:out
  value=#{cartItem.item.productCode} id=p_code/
  tc:out value= -
 
  /
  tc:out
  value=#{cartItem.item.productName} id=p_name/
  /tc:column
 
  tc:column
  label=#{bundle.unitPrice} sortable=true align=right
  tc:out
  value=#{cartItem.listPriceForQuantity} id=p_unitprice
 
  converter=CurrencyConverter /
  /tc:column
 
  tc:column
  label=#{bundle.extTotal} sortable=true align=right 
  tc:out
  value=#{cartItem.quantity * cartItem.listPriceForQuantity} id=Ex_Total
 
  converter=CurrencyConverter /
  /tc:column
  /tc:sheet
  /tc:cell
  /tc:box
  /tc:popup
   /f:facet
  /tc:link
 
  tc:script
  Event.observe(window, 'load', initCartSummary);
 
  function initCartSummary(){
 
  Event.observe($('page:cartSummary:viewCartContents'),
  'mouseover',
  showCartContents);
 
 
  Event.observe($('page:cartSummary:viewCartContents'),
  'mouseout

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread Volker Weber

If i understand this correct the action part navigates to another
view, but did not open the popup?
If so you should not put the popup into this link.
you can add a invisible link tc:link label=View Cart Contents
id=viewCartPopup
for the popup action after this link.

2007/3/8, madan chowdary [EMAIL PROTECTED]:


Hi Volker,

Am totally confused how to proceed, i need both the action part and the pop
box.

advice me how to go with this ?

Thnx

Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 4:24:37 PM
Subject: Re: [ Tobago ] Regarding PopUp's

The problem is the action=viewCartContents.

a ajax action MUST return null as outcome. Otherwise the
uiComponentTree on server is replaced by a new one and the restore
fails.

Regards,
  Volker

2007/3/8, madan chowdary [EMAIL PROTECTED]:

 Hi Volker,

 Added MyFaces 1.1.5 and Tobago nightly build jars.

 But there was no change in the behavior what i explained in my previous
 mails.

 Can u explain me how can i go ahead with Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?

 Thnx

 Regards
 Madan

 - Original Message 
 From: Volker Weber [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday, 8 March, 2007 3:19:17 PM
 Subject: Re: [ Tobago ] Regarding PopUp's

 Hi Madan,

 which implementation/version of jsf did you use?

 afaik your last version should work with myfaces 1.1.5 and tobago
 1.0.10[-SNAPSHOT].

 But to be future proof i suggest to use Tobago.addEventListener() or
 Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
 because we are going to remove prototype from tobago.

 Regards,
   Volker

 2007/3/8, madan chowdary [EMAIL PROTECTED]:
 
  Hi All,
 
  Please help me over this  I am in real need of this functionality
and
 my
  project deadline is ahead.
 
  Thnx in adnvace,
 
  Madan
 
  - Original Message 
  From: madan chowdary [EMAIL PROTECTED]
  To: MyFaces Discussion users@myfaces.apache.org
  Sent: Wednesday, 7 March, 2007 1:01:50 PM
  Subject: Re: [ Tobago ] Regarding PopUp's
 
 
  Hi All,
 
  After debugging this thing , at last was able to get the popup on
 mouseover
  with the help of prototype.js.
 
  The code is as such
 
  tc:cell
  tc:link label=View Cart Contents id=viewCartContents
  action=viewCartContents
  f:facet name=popup
  tc:popup width=620 height=300
  id=sheetConfigPopup
  tc:box label=Cart Summary
  f:facet name=layout
  tc:gridLayout/
  /f:facet
  f:facet name=toolBar
  tc:toolBar
  tc:toolBarCommand
  label=X
  tc:attribute
  name=popupClose value=immediate/
 
/tc:toolBarCommand
  /tc:toolBar
  /f:facet
  tc:cell
  tc:sheet
 id=checkOutSheetPopUp
 
  value=#{shoppingCart.items}
 
  columns=60px;350px;80px;100px
 
var=cartItem
 
 showHeader=true
 
  showDirectLinks=center
 
  directLinkCount=10
first=0
 
  selectable=none
  tc:column
  label=#{bundle.quantity} id=number sortable=false align=center
  tc:out
  value=#{cartItem.quantity} id=p_quantity /
  /tc:column
 
  tc:column
  label=#{bundle.productName} id=prdName
  tc:out
  value=#{cartItem.item.productCode} id=p_code/
  tc:out value=
-
 
  /
  tc:out
  value=#{cartItem.item.productName} id=p_name/
  /tc:column
 
  tc:column
  label=#{bundle.unitPrice} sortable=true align=right
  tc:out
  value=#{cartItem.listPriceForQuantity} id=p_unitprice
 
  converter=CurrencyConverter /
  /tc:column
 
  tc:column
  label=#{bundle.extTotal} sortable=true align=right 
  tc:out
  value=#{cartItem.quantity * cartItem.listPriceForQuantity}
id=Ex_Total
 
  converter=CurrencyConverter /
  /tc:column
  /tc:sheet
  /tc:cell
  /tc:box
  /tc:popup
   /f:facet
  /tc:link
 
  tc:script
  Event.observe(window, 'load', initCartSummary

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread madan chowdary
No Volker,

The tc:link which i used to display the popup with the help of prototype.js 
as specifed in my previous mail and the action part in tc:link navigates to 
another page  are working fine.

But whts my problem is , after i get a popup when placed my mosuse over the 
link and close the popup,

I am not able to navigate with the other links in the page in first attempt . 

But if i click the second time, i am able to navigate.

So i have to click twice on the links to go to my desired page.

Think u understood my case ?

Madan

- Original Message 
From: Volker Weber [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Thursday, 8 March, 2007 5:06:29 PM
Subject: Re: [ Tobago ] Regarding PopUp's

If i understand this correct the action part navigates to another
view, but did not open the popup?
If so you should not put the popup into this link.
you can add a invisible link tc:link label=View Cart Contents
id=viewCartPopup
for the popup action after this link.

2007/3/8, madan chowdary [EMAIL PROTECTED]:

 Hi Volker,

 Am totally confused how to proceed, i need both the action part and the pop
 box.

 advice me how to go with this ?

 Thnx

 Madan

 - Original Message 
 From: Volker Weber [EMAIL PROTECTED]
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday, 8 March, 2007 4:24:37 PM
 Subject: Re: [ Tobago ] Regarding PopUp's

 The problem is the action=viewCartContents.

 a ajax action MUST return null as outcome. Otherwise the
 uiComponentTree on server is replaced by a new one and the restore
 fails.

 Regards,
   Volker

 2007/3/8, madan chowdary [EMAIL PROTECTED]:
 
  Hi Volker,
 
  Added MyFaces 1.1.5 and Tobago nightly build jars.
 
  But there was no change in the behavior what i explained in my previous
  mails.
 
  Can u explain me how can i go ahead with Tobago.addEventListener() or
  Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?
 
  Thnx
 
  Regards
  Madan
 
  - Original Message 
  From: Volker Weber [EMAIL PROTECTED]
  To: MyFaces Discussion users@myfaces.apache.org
  Sent: Thursday, 8 March, 2007 3:19:17 PM
  Subject: Re: [ Tobago ] Regarding PopUp's
 
  Hi Madan,
 
  which implementation/version of jsf did you use?
 
  afaik your last version should work with myfaces 1.1.5 and tobago
  1.0.10[-SNAPSHOT].
 
  But to be future proof i suggest to use Tobago.addEventListener() or
  Tobago.bindAsEventListener() instead of prototype.js:Event.observe()
  because we are going to remove prototype from tobago.
 
  Regards,
Volker
 
  2007/3/8, madan chowdary [EMAIL PROTECTED]:
  
   Hi All,
  
   Please help me over this  I am in real need of this functionality
 and
  my
   project deadline is ahead.
  
   Thnx in adnvace,
  
   Madan
  
   - Original Message 
   From: madan chowdary [EMAIL PROTECTED]
   To: MyFaces Discussion users@myfaces.apache.org
   Sent: Wednesday, 7 March, 2007 1:01:50 PM
   Subject: Re: [ Tobago ] Regarding PopUp's
  
  
   Hi All,
  
   After debugging this thing , at last was able to get the popup on
  mouseover
   with the help of prototype.js.
  
   The code is as such
  
   tc:cell
   tc:link label=View Cart Contents id=viewCartContents
   action=viewCartContents
   f:facet name=popup
   tc:popup width=620 height=300
   id=sheetConfigPopup
   tc:box label=Cart Summary
   f:facet name=layout
   tc:gridLayout/
   /f:facet
   f:facet name=toolBar
   tc:toolBar
   tc:toolBarCommand
   label=X
   tc:attribute
   name=popupClose value=immediate/
  
 /tc:toolBarCommand
   /tc:toolBar
   /f:facet
   tc:cell
   tc:sheet
  id=checkOutSheetPopUp
  
   value=#{shoppingCart.items}
  
   columns=60px;350px;80px;100px
  
 var=cartItem
  
  showHeader=true
  
   showDirectLinks=center
  
   directLinkCount=10
 first=0
  
   selectable=none
   tc:column
   label=#{bundle.quantity} id=number sortable=false align=center
   tc:out
   value=#{cartItem.quantity} id=p_quantity /
   /tc:column
  
   tc:column
   label=#{bundle.productName} id=prdName
   tc:out
   value=#{cartItem.item.productCode} id=p_code/
   tc:out value=
 -
  
   /
   tc:out
   value=#{cartItem.item.productName} id=p_name/
   /tc:column

Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread Volker Weber


So i have to click twice on the links to go to my desired page.

Think u understood my case ?


Yes, and the reason is the action attribute in the link.

The links action should navigate to another view, but also open a
popup in the same view.
This can't work. As you wrote before if you remove the action you have
no problems with clicking after closing the popup.

Because of the action the navigationHandler is invoked, which results
in creating a new viewId, jsfState and sequence.
This state is included in the ajax response and set into the page.
Now the next request did not found a corrospondending saved
uiComponentTree, which results in just rerender the view.

Regards,
 Volker


Re: [ Tobago ] Regarding PopUp's

2007-03-08 Thread Volker Weber

Can u explain me how can i go ahead with Tobago.addEventListener() or
Tobago.bindAsEventListener() instead of prototype.js:Event.observe() ?


I just took a look in the sources: you can replace Event.observe()
with Tobago.addEventListener(). They take the same params.


Re: [ Tobago ] Regarding PopUp's

2007-03-06 Thread madan chowdary
 on the link.
-- when removed the action attribute in tc:link for viewCartContents, and 
place the mouse, close the popup and then click on the top links, then was able 
to navigate to page which it refers.

Y does this page refresh occures after i close the popup and click on other 
links.

how could i solve this issue ?

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Tuesday, 6 March, 2007 1:14:27 AM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi All,

Was trying to debug the application for popup when placed mouse over a link 
with  JavaScript, but its a bit tedious to go through the JavaScript Ajax 
frameworks and achieve this task.

Can u guyz please suggest me how to proceed for this case...

And i am desperately waiting for onMouseOver  attribute in tc:link/ to 
display the popup that i had when clicked the link...

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 March, 2007 12:33:20 PM
Subject: Re: [ Tobago ]
 Regarding PopUp's

Hi All,

Is there any means of doing this...

I am in real need of this functionality.

I tried using different JavaScript frameworks like Dojo, Yahoo UI framework.

But there rendering is causing some script problems when tested in FireFox and 
IE, and even the Z-Index is differing for the DIV's .

I tried with a popup with tc:link .when clicked it would display the popup.

Buts that's not my case, the popup should be shown when we place mouse over 
tc:link/

if there is no mouseOver attribute for tc:link/ it would be helpful for these 
kind of situations .

Plz suggest me how to proceed to my case.

Thnx in Advance,

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Tuesday, 27 February, 2007 11:57:38 AM
Subject: [ Tobago ] Regarding PopUp's

Hi All,

I need to display a popup which is shown when a user places mouse over a link.

My case is as such...

There would be a link, which on clicked will navigate to a page which has the 
User Details.

Now when he places his mouse over the link, i need to show a popup which has 
the same details as when shown when he clicks the link.

according to wht i know, the popup will be shown only when we click on the 
link, but not on mouse over.

Is this could be done with mouseover function ?

Thnx in
 advance,

Regards,
Madan







 
Here’s a new way to find what you're looking for - Yahoo! Answers 








 
Here’s a new way to find what you're looking for - Yahoo! Answers 








 
Here’s a new way to find what you're looking for - Yahoo! Answers 






__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [ Tobago ] Regarding PopUp's

2007-03-05 Thread madan chowdary
Hi All,

Was trying to debug the application for popup when placed mouse over a link 
with  JavaScript, but its a bit tedious to go through the JavaScript Ajax 
frameworks and achieve this task.

Can u guyz please suggest me how to proceed for this case...

And i am desperately waiting for onMouseOver  attribute in tc:link/ to 
display the popup that i had when clicked the link...

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Saturday, 3 March, 2007 12:33:20 PM
Subject: Re: [ Tobago ] Regarding PopUp's

Hi All,

Is there any means of doing this...

I am in real need of this functionality.

I tried using different JavaScript frameworks like Dojo, Yahoo UI framework.

But there rendering is causing some script problems when tested in FireFox and 
IE, and even the Z-Index is differing for the DIV's .

I tried with a popup with tc:link .when clicked it would display the popup.

Buts that's not my case, the popup should be shown when we place mouse over 
tc:link/

if there is no mouseOver attribute for tc:link/ it would be helpful for these 
kind of situations .

Plz suggest me how to proceed to my case.

Thnx in Advance,

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Tuesday, 27 February, 2007 11:57:38 AM
Subject: [ Tobago ] Regarding PopUp's

Hi All,

I need to display a popup which is shown when a user places mouse over a link.

My case is as such...

There would be a link, which on clicked will navigate to a page which has the 
User Details.

Now when he places his mouse over the link, i need to show a popup which has 
the same details as when shown when he clicks the link.

according to wht i know, the popup will be shown only when we click on the 
link, but not on mouse over.

Is this could be done with mouseover function ?

Thnx in
 advance,

Regards,
Madan







 
Here’s a new way to find what you're looking for - Yahoo! Answers 








 
Here’s a new way to find what you're looking for - Yahoo! Answers 






__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: [ Tobago ] Regarding PopUp's

2007-03-02 Thread madan chowdary
Hi All,

Is there any means of doing this...

I am in real need of this functionality.

I tried using different JavaScript frameworks like Dojo, Yahoo UI framework.

But there rendering is causing some script problems when tested in FireFox and 
IE, and even the Z-Index is differing for the DIV's .

I tried with a popup with tc:link .when clicked it would display the popup.

Buts that's not my case, the popup should be shown when we place mouse over 
tc:link/

if there is no mouseOver attribute for tc:link/ it would be helpful for these 
kind of situations .

Plz suggest me how to proceed to my case.

Thnx in Advance,

Regards,
Madan

- Original Message 
From: madan chowdary [EMAIL PROTECTED]
To: MyFaces Discussion users@myfaces.apache.org
Sent: Tuesday, 27 February, 2007 11:57:38 AM
Subject: [ Tobago ] Regarding PopUp's

Hi All,

I need to display a popup which is shown when a user places mouse over a link.

My case is as such...

There would be a link, which on clicked will navigate to a page which has the 
User Details.

Now when he places his mouse over the link, i need to show a popup which has 
the same details as when shown when he clicks the link.

according to wht i know, the popup will be shown only when we click on the 
link, but not on mouse over.

Is this could be done with mouseover function ?

Thnx in advance,

Regards,
Madan







 
Here’s a new way to find what you're looking for - Yahoo! Answers 






__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

[ Tobago ] Regarding PopUp's

2007-02-26 Thread madan chowdary
Hi All,

I need to display a popup which is shown when a user places mouse over a link.

My case is as such...

There would be a link, which on clicked will navigate to a page which has the 
User Details.

Now when he places his mouse over the link, i need to show a popup which has 
the same details as when shown when he clicks the link.

according to wht i know, the popup will be shown only when we click on the 
link, but not on mouse over.

Is this could be done with mouseover function ?

Thnx in advance,

Regards,
Madan





__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/