You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pai911 <ja...@gmail.com> on 2008/01/16 14:30:00 UTC

[T4.1.3] Problems with async DireckLink

Dear all:

The following is the template for three tabs.

When each tab is clicked, switchTab listener should be invoked to set the
tab property

and asynchrounously update tabs@Any component.


However, I found that in IE 6.0, the click of DirectLink will cause the
refresh of the whole page.

Is it a bug?

Please help me with this !

Thank you!

<div>

  <ul id="tabnav">
  <li>
     Trip 
  </li>

  <li>
     Photo 
  </li>

  <li> Favorite 
  </li>
</ul>

</div>

<div jwcid="tabs@Any" class="up_box">

  <div jwcid="@If" condition="ognl:tab=='trip' ">
      trip
  </div>

  <div jwcid="@If" condition="ognl:tab=='photo' ">
     photo
  </div>

  <div jwcid="@If" condition="ognl:tab=='favorite' ">
     favorite
  </div>

</div>
-- 
View this message in context: http://www.nabble.com/-T4.1.3--Problems-with-async-DireckLink-tp14880659p14880659.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Pai911 <ja...@gmail.com>.
So, you read this in mail box
Then I think I should repost this

Here is the code

<div>

  <ul id="tabnav">
  <li>
    &lt;a jwcid="@DirectLink" listener="listener:switchTab"
parameters="trip" async="true"  updateComponents="tabs">Trip&lt;/a>
  </li>

  <li>
    &lt;a class="greenTab" jwcid="@DirectLink" listener="listener:switchTab"
parameters="photo" async="true" updateComponents="tabs">Photo&lt;/a>
  </li>

  <li>
&lt;a class="yellowTab"  jwcid="@DirectLink" listener="listener:switchTab"
parameters="favorite" async="true" updateComponents="tabs">Favorite&lt;/a>
  </li>
</ul>

</div>

<div jwcid="tabs@Any" class="up_box">

  <div jwcid="@If" condition="ognl:tab=='trip' ">
      trip
  </div>

  <div jwcid="@If" condition="ognl:tab=='photo' ">
     photo
  </div>

  <div jwcid="@If" condition="ognl:tab=='favorite' ">
     favorite
  </div>

</div>


Ulrich Stärk wrote:
> 
> I'm giving up, I still can't see it. Use a proper mail client.
> 
> Pai911 schrieb:
>> Sorry! The forum filter the definition
>> 
>> Now I escape the tag myself, and it appears.
>> 
>> Please see the original post!
>> 
>> I have to tell you that in my IE, this happens even when async="true" is
>> set
>> 
>> Thank you!
>> 
>> 
>> Ulrich Stärk wrote:
>>> I still can't see the DirectLink declaration you are using... Where is
>>> it?
>>>
>>> Uli
> 
> 

-- 
View this message in context: http://www.nabble.com/-T4.1.3--Problems-with-async-DireckLink-tp14880659p14913463.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Ulrich Stärk <ul...@spielviel.de>.
I'm giving up, I still can't see it. Use a proper mail client.

Pai911 schrieb:
> Sorry! The forum filter the definition
> 
> Now I escape the tag myself, and it appears.
> 
> Please see the original post!
> 
> I have to tell you that in my IE, this happens even when async="true" is set
> 
> Thank you!
> 
> 
> Ulrich Stärk wrote:
>> I still can't see the DirectLink declaration you are using... Where is it?
>>
>> Uli
>>
>> Pai911 schrieb:
>>> Hi! The related logic:
>>>
>>>     public abstract String getTab();
>>>
>>>     public abstract void setTab(String tabName);
>>>
>>>     /* Listeners */
>>>     public void switchTab(String tabName) {
>>>         this.setTab(tabName);
>>>     }
>>>
>>> I think it's more likely related to the version of IE
>>>
>>> It seems to happen in certain version of IE
>>>
>>> Thank you!!
>>>
>>>
>>> Ulrich Stärk wrote:
>>>> Please post the DirectLink definition and the rest of the logic you 
>>>> wrote to switch tabs.
>>>>
>>>> Pai911 schrieb:
>>>>> Dear all:
>>>>>
>>>>> The following is the template for three tabs.
>>>>>
>>>>> When each tab is clicked, switchTab listener should be invoked to set
>>>>> the
>>>>> tab property
>>>>>
>>>>> and asynchrounously update tabs@Any component.
>>>>>
>>>>>
>>>>> However, I found that in IE 6.0, the click of DirectLink will cause the
>>>>> refresh of the whole page.
>>>>>
>>>>> Is it a bug?
>>>>>
>>>>> Please help me with this !
>>>>>
>>>>> Thank you!
>>>>>
>>>>> <div>
>>>>>
>>>>>   <ul id="tabnav">
>>>>>   <li>
>>>>>      Trip 
>>>>>   </li>
>>>>>
>>>>>   <li>
>>>>>      Photo 
>>>>>   </li>
>>>>>
>>>>>   <li> Favorite 
>>>>>   </li>
>>>>> </ul>
>>>>>
>>>>> </div>
>>>>>
>>>>> <div jwcid="tabs@Any" class="up_box">
>>>>>
>>>>>   <div jwcid="@If" condition="ognl:tab=='trip' ">
>>>>>       trip
>>>>>   </div>
>>>>>
>>>>>   <div jwcid="@If" condition="ognl:tab=='photo' ">
>>>>>      photo
>>>>>   </div>
>>>>>
>>>>>   <div jwcid="@If" condition="ognl:tab=='favorite' ">
>>>>>      favorite
>>>>>   </div>
>>>>>
>>>>> </div>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Pai911 <ja...@gmail.com>.
Sorry! The forum filter the definition

Now I escape the tag myself, and it appears.

Please see the original post!

I have to tell you that in my IE, this happens even when async="true" is set

Thank you!


Ulrich Stärk wrote:
> 
> I still can't see the DirectLink declaration you are using... Where is it?
> 
> Uli
> 
> Pai911 schrieb:
>> Hi! The related logic:
>> 
>>     public abstract String getTab();
>> 
>>     public abstract void setTab(String tabName);
>> 
>>     /* Listeners */
>>     public void switchTab(String tabName) {
>>         this.setTab(tabName);
>>     }
>> 
>> I think it's more likely related to the version of IE
>> 
>> It seems to happen in certain version of IE
>> 
>> Thank you!!
>> 
>> 
>> Ulrich Stärk wrote:
>>> Please post the DirectLink definition and the rest of the logic you 
>>> wrote to switch tabs.
>>>
>>> Pai911 schrieb:
>>>> Dear all:
>>>>
>>>> The following is the template for three tabs.
>>>>
>>>> When each tab is clicked, switchTab listener should be invoked to set
>>>> the
>>>> tab property
>>>>
>>>> and asynchrounously update tabs@Any component.
>>>>
>>>>
>>>> However, I found that in IE 6.0, the click of DirectLink will cause the
>>>> refresh of the whole page.
>>>>
>>>> Is it a bug?
>>>>
>>>> Please help me with this !
>>>>
>>>> Thank you!
>>>>
>>>> <div>
>>>>
>>>>   <ul id="tabnav">
>>>>   <li>
>>>>      Trip 
>>>>   </li>
>>>>
>>>>   <li>
>>>>      Photo 
>>>>   </li>
>>>>
>>>>   <li> Favorite 
>>>>   </li>
>>>> </ul>
>>>>
>>>> </div>
>>>>
>>>> <div jwcid="tabs@Any" class="up_box">
>>>>
>>>>   <div jwcid="@If" condition="ognl:tab=='trip' ">
>>>>       trip
>>>>   </div>
>>>>
>>>>   <div jwcid="@If" condition="ognl:tab=='photo' ">
>>>>      photo
>>>>   </div>
>>>>
>>>>   <div jwcid="@If" condition="ognl:tab=='favorite' ">
>>>>      favorite
>>>>   </div>
>>>>
>>>> </div>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-T4.1.3--Problems-with-async-DireckLink-tp14880659p14911219.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Ulrich Stärk <ul...@spielviel.de>.
I still can't see the DirectLink declaration you are using... Where is it?

Uli

Pai911 schrieb:
> Hi! The related logic:
> 
>     public abstract String getTab();
> 
>     public abstract void setTab(String tabName);
> 
>     /* Listeners */
>     public void switchTab(String tabName) {
>         this.setTab(tabName);
>     }
> 
> I think it's more likely related to the version of IE
> 
> It seems to happen in certain version of IE
> 
> Thank you!!
> 
> 
> Ulrich Stärk wrote:
>> Please post the DirectLink definition and the rest of the logic you 
>> wrote to switch tabs.
>>
>> Pai911 schrieb:
>>> Dear all:
>>>
>>> The following is the template for three tabs.
>>>
>>> When each tab is clicked, switchTab listener should be invoked to set the
>>> tab property
>>>
>>> and asynchrounously update tabs@Any component.
>>>
>>>
>>> However, I found that in IE 6.0, the click of DirectLink will cause the
>>> refresh of the whole page.
>>>
>>> Is it a bug?
>>>
>>> Please help me with this !
>>>
>>> Thank you!
>>>
>>> <div>
>>>
>>>   <ul id="tabnav">
>>>   <li>
>>>      Trip 
>>>   </li>
>>>
>>>   <li>
>>>      Photo 
>>>   </li>
>>>
>>>   <li> Favorite 
>>>   </li>
>>> </ul>
>>>
>>> </div>
>>>
>>> <div jwcid="tabs@Any" class="up_box">
>>>
>>>   <div jwcid="@If" condition="ognl:tab=='trip' ">
>>>       trip
>>>   </div>
>>>
>>>   <div jwcid="@If" condition="ognl:tab=='photo' ">
>>>      photo
>>>   </div>
>>>
>>>   <div jwcid="@If" condition="ognl:tab=='favorite' ">
>>>      favorite
>>>   </div>
>>>
>>> </div>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
> 


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Pai911 <ja...@gmail.com>.
Hi! The related logic:

    public abstract String getTab();

    public abstract void setTab(String tabName);

    /* Listeners */
    public void switchTab(String tabName) {
        this.setTab(tabName);
    }

I think it's more likely related to the version of IE

It seems to happen in certain version of IE

Thank you!!


Ulrich Stärk wrote:
> 
> Please post the DirectLink definition and the rest of the logic you 
> wrote to switch tabs.
> 
> Pai911 schrieb:
>> Dear all:
>> 
>> The following is the template for three tabs.
>> 
>> When each tab is clicked, switchTab listener should be invoked to set the
>> tab property
>> 
>> and asynchrounously update tabs@Any component.
>> 
>> 
>> However, I found that in IE 6.0, the click of DirectLink will cause the
>> refresh of the whole page.
>> 
>> Is it a bug?
>> 
>> Please help me with this !
>> 
>> Thank you!
>> 
>> <div>
>> 
>>   <ul id="tabnav">
>>   <li>
>>      Trip 
>>   </li>
>> 
>>   <li>
>>      Photo 
>>   </li>
>> 
>>   <li> Favorite 
>>   </li>
>> </ul>
>> 
>> </div>
>> 
>> <div jwcid="tabs@Any" class="up_box">
>> 
>>   <div jwcid="@If" condition="ognl:tab=='trip' ">
>>       trip
>>   </div>
>> 
>>   <div jwcid="@If" condition="ognl:tab=='photo' ">
>>      photo
>>   </div>
>> 
>>   <div jwcid="@If" condition="ognl:tab=='favorite' ">
>>      favorite
>>   </div>
>> 
>> </div>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-T4.1.3--Problems-with-async-DireckLink-tp14880659p14886289.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: [T4.1.3] Problems with async DireckLink

Posted by Ulrich Stärk <ul...@spielviel.de>.
Please post the DirectLink definition and the rest of the logic you 
wrote to switch tabs.

Pai911 schrieb:
> Dear all:
> 
> The following is the template for three tabs.
> 
> When each tab is clicked, switchTab listener should be invoked to set the
> tab property
> 
> and asynchrounously update tabs@Any component.
> 
> 
> However, I found that in IE 6.0, the click of DirectLink will cause the
> refresh of the whole page.
> 
> Is it a bug?
> 
> Please help me with this !
> 
> Thank you!
> 
> <div>
> 
>   <ul id="tabnav">
>   <li>
>      Trip 
>   </li>
> 
>   <li>
>      Photo 
>   </li>
> 
>   <li> Favorite 
>   </li>
> </ul>
> 
> </div>
> 
> <div jwcid="tabs@Any" class="up_box">
> 
>   <div jwcid="@If" condition="ognl:tab=='trip' ">
>       trip
>   </div>
> 
>   <div jwcid="@If" condition="ognl:tab=='photo' ">
>      photo
>   </div>
> 
>   <div jwcid="@If" condition="ognl:tab=='favorite' ">
>      favorite
>   </div>
> 
> </div>


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