You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by carmi_cd <ca...@yahoo.com> on 2008/02/19 08:45:29 UTC

[S2] IE does not refresh page

Hi i have program that when the user input data in the form and clicked the
save button, it should display list of records that reflects changes made in
the record edited thru the form. In Firefox it works perfectly but in IE the
list does not reflect the changes made. It was refreshing the list before
but when I put the ShowLoadingText="false" in my save button, It does not
refresh the list anymore. 
I really need to put the ShowLoadingText="false" property in my save button
to solve the issue in IE which is not retrieving the values from the form.  

Please help me. how should I solve this. thanks again in advance. 
-- 
View this message in context: http://www.nabble.com/-S2--IE-does-not-refresh-page-tp15560342p15560342.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [S2] IE does not refresh page

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Try not overwriting your form with the target to see if it works.
Also, try using the formId attribute of the submit buttons.
And finally, simplify the html as much as possible and work upwards from 
there.

carmi_cd wrote:
> hi i really think it has something to do with the showloadingText in IE. 
> because when the form is save by clicking the submit button with
> showLoadingText="false"
> it is saved but the list was not refresh. And if I save the form by clicking
> the submit button 
> with showLoadingText="true" the value is from form is null but the list is
> refresh with that 
> particular record having null values. also If I click a link that loads the
> list it does refresh because that 
> link has showLoadingText set to true.
>
>    Do you have idea how can i solve this? I think Struts are not working
> fine in IE.. please 
> help me. Thanks again.
>
>
> Jeromy Evans - Blue Sky Minds wrote:
>   
>> Hmm...this is a guess, but there's a relevant issue in IE's innerHTML 
>> implementation.  Dojo uses this to insert the response into the page.  
>> This particular issue is that tables must be xhtml-compliant. 
>> Specifically, they must contain all the required tags including <thead> 
>> and <tbody>.  Try adding those tags to your response.  IE definitely 
>> does not permit you to insert (most) invalid HTML into the page.
>>
>> If not successful, IE is hopeless at debugging this, so simplify the 
>> pages (the one making the request and the result) to isolate the cause.
>>
>> Good luck!
>>
>> PS.
>> All your calls like this:
>>
>> <s:property value="getModuleName()"/>
>>
>> can be replaced with this:
>>
>> <s:property value="moduleName"/>
>>
>> as it's a javabean-compliant property name (what have works too but is 
>> not the convention)
>>
>> carmi_cd wrote:
>>     
>>> hi, yes my submit reached my action because the record is saved/updated
>>> in
>>> the database.
>>> yes the list is the response from the action. 
>>>
>>> the list is refreshing in Firefox but not in IE..here is part of list.jsp
>>>
>>>                         <s:iterator id="users" value="getUsersList()">
>>>                             <tr> 
>>>                                 <td align="left" valign="top">
>>>                                     <s:checkbox name="selectedGroup"
>>> fieldValue="%{getUserId()}%{nextCell.label}" 
>>>                                     theme="simple" />
>>>                                 </td>
>>>                                 <td align="left" valign="top">
>>>                                     <s:url id="list"
>>> value="UserMgt_input.action?userid=%{getUserId()}&task=edit"/>
>>>                                     <s:a theme="ajax" 
>>>                                          href="%{list}" 
>>>                                          targets="module"
>>>                                          errorText="Unable to load
>>> list.">
>>>                                         <s:property
>>> value="getLastName()"/>
>>> , <s:property value="getFirstName()"/> <s:property
>>> value="getMiddleName()"/>
>>>                                     </s:a>
>>>                                 </td>
>>>                                 <td align="left" valign="top">
>>>                                     <s:property value="getUserName()"/>
>>>                                 </td>
>>>                                 <td align="left" valign="top">
>>>                                     <s:iterator id="modules"
>>> value="getModules()">
>>>                                         <s:property
>>> value="getModuleName()"/> ,                                    
>>>                                     </s:iterator>
>>>                                 </td>
>>>                             </tr>
>>>                         </s:iterator>        
>>>
>>> i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given
>>> you
>>> enough information, 
>>> if not, dont hesitate to ask, i'm really new in Struts, I need help.
>>> Thanks
>>> again.
>>>
>>>
>>> Jeromy Evans - Blue Sky Minds wrote:
>>>   
>>>       
>>>> Setting showLoadingText="false" itself shouldn't affect this.
>>>>
>>>> Is the submit reaching your action?
>>>> Is the list that's refreshed the response from the action? Or is the 
>>>> refresh via a topic? Or refresh by some other means?
>>>> Does your response contain any inline javascript? Or dojo widgets/ajax
>>>> tags?
>>>>
>>>> The only other thing that frequently doesn't work is including inline 
>>>> javascript in the responses and expecting theme to execute at a 
>>>> particular time.
>>>> Which version of struts are you using btw?
>>>>
>>>> regards,
>>>>  Jeromy Evans
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>     
>
>   

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


Re: [S2] IE does not refresh page

Posted by carmi_cd <ca...@yahoo.com>.
hi i really think it has something to do with the showloadingText in IE. 
because when the form is save by clicking the submit button with
showLoadingText="false"
it is saved but the list was not refresh. And if I save the form by clicking
the submit button 
with showLoadingText="true" the value is from form is null but the list is
refresh with that 
particular record having null values. also If I click a link that loads the
list it does refresh because that 
link has showLoadingText set to true.

   Do you have idea how can i solve this? I think Struts are not working
fine in IE.. please 
help me. Thanks again.


Jeromy Evans - Blue Sky Minds wrote:
> 
> Hmm...this is a guess, but there's a relevant issue in IE's innerHTML 
> implementation.  Dojo uses this to insert the response into the page.  
> This particular issue is that tables must be xhtml-compliant. 
> Specifically, they must contain all the required tags including <thead> 
> and <tbody>.  Try adding those tags to your response.  IE definitely 
> does not permit you to insert (most) invalid HTML into the page.
> 
> If not successful, IE is hopeless at debugging this, so simplify the 
> pages (the one making the request and the result) to isolate the cause.
> 
> Good luck!
> 
> PS.
> All your calls like this:
> 
> <s:property value="getModuleName()"/>
> 
> can be replaced with this:
> 
> <s:property value="moduleName"/>
> 
> as it's a javabean-compliant property name (what have works too but is 
> not the convention)
> 
> carmi_cd wrote:
>> hi, yes my submit reached my action because the record is saved/updated
>> in
>> the database.
>> yes the list is the response from the action. 
>>
>> the list is refreshing in Firefox but not in IE..here is part of list.jsp
>>
>>                         <s:iterator id="users" value="getUsersList()">
>>                             <tr> 
>>                                 <td align="left" valign="top">
>>                                     <s:checkbox name="selectedGroup"
>> fieldValue="%{getUserId()}%{nextCell.label}" 
>>                                     theme="simple" />
>>                                 </td>
>>                                 <td align="left" valign="top">
>>                                     <s:url id="list"
>> value="UserMgt_input.action?userid=%{getUserId()}&task=edit"/>
>>                                     <s:a theme="ajax" 
>>                                          href="%{list}" 
>>                                          targets="module"
>>                                          errorText="Unable to load
>> list.">
>>                                         <s:property
>> value="getLastName()"/>
>> , <s:property value="getFirstName()"/> <s:property
>> value="getMiddleName()"/>
>>                                     </s:a>
>>                                 </td>
>>                                 <td align="left" valign="top">
>>                                     <s:property value="getUserName()"/>
>>                                 </td>
>>                                 <td align="left" valign="top">
>>                                     <s:iterator id="modules"
>> value="getModules()">
>>                                         <s:property
>> value="getModuleName()"/> ,                                    
>>                                     </s:iterator>
>>                                 </td>
>>                             </tr>
>>                         </s:iterator>        
>>
>> i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given
>> you
>> enough information, 
>> if not, dont hesitate to ask, i'm really new in Struts, I need help.
>> Thanks
>> again.
>>
>>
>> Jeromy Evans - Blue Sky Minds wrote:
>>   
>>>
>>> Setting showLoadingText="false" itself shouldn't affect this.
>>>
>>> Is the submit reaching your action?
>>> Is the list that's refreshed the response from the action? Or is the 
>>> refresh via a topic? Or refresh by some other means?
>>> Does your response contain any inline javascript? Or dojo widgets/ajax
>>> tags?
>>>
>>> The only other thing that frequently doesn't work is including inline 
>>> javascript in the responses and expecting theme to execute at a 
>>> particular time.
>>> Which version of struts are you using btw?
>>>
>>> regards,
>>>  Jeromy Evans
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>>
>>>     
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--IE-does-not-refresh-page-tp15560342p15606733.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [S2] IE does not refresh page

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Hmm...this is a guess, but there's a relevant issue in IE's innerHTML 
implementation.  Dojo uses this to insert the response into the page.  
This particular issue is that tables must be xhtml-compliant. 
Specifically, they must contain all the required tags including <thead> 
and <tbody>.  Try adding those tags to your response.  IE definitely 
does not permit you to insert (most) invalid HTML into the page.

If not successful, IE is hopeless at debugging this, so simplify the 
pages (the one making the request and the result) to isolate the cause.

Good luck!

PS.
All your calls like this:

<s:property value="getModuleName()"/>

can be replaced with this:

<s:property value="moduleName"/>

as it's a javabean-compliant property name (what have works too but is 
not the convention)

carmi_cd wrote:
> hi, yes my submit reached my action because the record is saved/updated in
> the database.
> yes the list is the response from the action. 
>
> the list is refreshing in Firefox but not in IE..here is part of list.jsp
>
>                         <s:iterator id="users" value="getUsersList()">
>                             <tr> 
>                                 <td align="left" valign="top">
>                                     <s:checkbox name="selectedGroup"
> fieldValue="%{getUserId()}%{nextCell.label}" 
>                                     theme="simple" />
>                                 </td>
>                                 <td align="left" valign="top">
>                                     <s:url id="list"
> value="UserMgt_input.action?userid=%{getUserId()}&task=edit"/>
>                                     <s:a theme="ajax" 
>                                          href="%{list}" 
>                                          targets="module"
>                                          errorText="Unable to load list.">
>                                         <s:property value="getLastName()"/>
> , <s:property value="getFirstName()"/> <s:property value="getMiddleName()"/>
>                                     </s:a>
>                                 </td>
>                                 <td align="left" valign="top">
>                                     <s:property value="getUserName()"/>
>                                 </td>
>                                 <td align="left" valign="top">
>                                     <s:iterator id="modules"
> value="getModules()">
>                                         <s:property
> value="getModuleName()"/> ,                                    
>                                     </s:iterator>
>                                 </td>
>                             </tr>
>                         </s:iterator>        
>
> i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given you
> enough information, 
> if not, dont hesitate to ask, i'm really new in Struts, I need help. Thanks
> again.
>
>
> Jeromy Evans - Blue Sky Minds wrote:
>   
>>
>> Setting showLoadingText="false" itself shouldn't affect this.
>>
>> Is the submit reaching your action?
>> Is the list that's refreshed the response from the action? Or is the 
>> refresh via a topic? Or refresh by some other means?
>> Does your response contain any inline javascript? Or dojo widgets/ajax
>> tags?
>>
>> The only other thing that frequently doesn't work is including inline 
>> javascript in the responses and expecting theme to execute at a 
>> particular time.
>> Which version of struts are you using btw?
>>
>> regards,
>>  Jeromy Evans
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>     
>
>   

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


Re: [S2] IE does not refresh page

Posted by carmi_cd <ca...@yahoo.com>.
hi, yes my submit reached my action because the record is saved/updated in
the database.
yes the list is the response from the action. 

the list is refreshing in Firefox but not in IE..here is part of list.jsp

                        <s:iterator id="users" value="getUsersList()">
                            <tr> 
                                <td align="left" valign="top">
                                    <s:checkbox name="selectedGroup"
fieldValue="%{getUserId()}%{nextCell.label}" 
                                    theme="simple" />
                                </td>
                                <td align="left" valign="top">
                                    <s:url id="list"
value="UserMgt_input.action?userid=%{getUserId()}&task=edit"/>
                                    <s:a theme="ajax" 
                                         href="%{list}" 
                                         targets="module"
                                         errorText="Unable to load list.">
                                        <s:property value="getLastName()"/>
, <s:property value="getFirstName()"/> <s:property value="getMiddleName()"/>
                                    </s:a>
                                </td>
                                <td align="left" valign="top">
                                    <s:property value="getUserName()"/>
                                </td>
                                <td align="left" valign="top">
                                    <s:iterator id="modules"
value="getModules()">
                                        <s:property
value="getModuleName()"/> ,                                    
                                    </s:iterator>
                                </td>
                            </tr>
                        </s:iterator>        

i'm using Struts 2.0.5. The theme being use is ajax. I hope I've given you
enough information, 
if not, dont hesitate to ask, i'm really new in Struts, I need help. Thanks
again.


Jeromy Evans - Blue Sky Minds wrote:
> 
> 
> 
> Setting showLoadingText="false" itself shouldn't affect this.
> 
> Is the submit reaching your action?
> Is the list that's refreshed the response from the action? Or is the 
> refresh via a topic? Or refresh by some other means?
> Does your response contain any inline javascript? Or dojo widgets/ajax
> tags?
> 
> The only other thing that frequently doesn't work is including inline 
> javascript in the responses and expecting theme to execute at a 
> particular time.
> Which version of struts are you using btw?
> 
> regards,
>  Jeromy Evans
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-S2--IE-does-not-refresh-page-tp15560342p15582733.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: [S2] IE does not refresh page

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
carmi_cd wrote:
> Hi i have program that when the user input data in the form and clicked the
> save button, it should display list of records that reflects changes made in
> the record edited thru the form. In Firefox it works perfectly but in IE the
> list does not reflect the changes made. It was refreshing the list before
> but when I put the ShowLoadingText="false" in my save button, It does not
> refresh the list anymore. 
> I really need to put the ShowLoadingText="false" property in my save button
> to solve the issue in IE which is not retrieving the values from the form.  
>
> Please help me. how should I solve this. thanks again in advance. 
>   

Setting showLoadingText="false" itself shouldn't affect this.

Is the submit reaching your action?
Is the list that's refreshed the response from the action? Or is the 
refresh via a topic? Or refresh by some other means?
Does your response contain any inline javascript? Or dojo widgets/ajax tags?

The only other thing that frequently doesn't work is including inline 
javascript in the responses and expecting theme to execute at a 
particular time.
Which version of struts are you using btw?

regards,
 Jeromy Evans

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