Struts2 - dojo anchor error

View: New views
5 Messages — Rating Filter:   Alert me  

Struts2 - dojo anchor error

by Kishan Paandy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Folks,

Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html 

"There's a bug in IE6/IE7 which makes impossible to use the target's attribute with a parent Div, because such Div's content's are overwritten with the tag's loadingText. Resulting in an "undefined" message in the content's, instead of the result of the request.

One possible alternative is to set showLoadingText="false" and set the indicator attribute to an element showing the desired loading text or image (outside the div)."
 
The alternative mentioned above is also not working.

Is there is any solution for this apart from the mentioned alternative?

Please advice.

Thank you.
Regards,
Kishan.G
 
Team Leader.
www.spansystems.com

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


Re: Struts2 - dojo anchor error

by newton.dave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kishan G. Chellap Paandy wrote:

> Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html
>
> "There's a bug in IE6/IE7 which makes impossible to use the target's
> attribute with a parent Div, because such Div's content's are
> overwritten with the tag's loadingText. Resulting in an "undefined"
> message in the content's, instead of the result of the request.
>
> One possible alternative is to set showLoadingText="false" and set
> the indicator attribute to an element showing the desired loading
> text or image (outside the div)."
>
> The alternative mentioned above is also not working.
>
> Is there is any solution for this apart from the mentioned
> alternative?

What specific issue are you having? AFAIK the anchor tag works.

Dave

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


RE: Struts2 - dojo anchor error

by Kishan Paandy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dave,

Thanks for your reply.

Here is what I'm doing.

....................
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
....................
<sx:head debug="true" cache="false" compressed="false" />
............
............
        <div class="sectionPanel">
        <div class="heading">
                        .........
                        .........
                        <table>
                        <th>
                                <@s.url id="sort" namespace="${parameters.nameSpace}" action="Sort">
                                        <@s.param name="id" value="${tmpIdVal}"/>
                                </@s.url>
                                <@sx.a href="${sort}" key="app.sort" targets="content">
                                        <img src="<@s.url value="/images/icon_delete.gif"/>" alt="<@s.text name="app.sort"/>" title="<@s.text name="app.sort"/>" border="0" width="14" height="15"/>
                                </@sx.a>
                        </th>
                        <th>xxx</th>
                        <tr>
                        <td>
                        .........
                        .........
                        .........
                        </td>
                        </tr>
                        <tr>
                        <td>
                        .........
                        .........
                        .........
                        </td>
                        </tr>
                        </table>
                        .........
        </div>
        <div id="content">
            <jsp:include page="localizationAjax.jsp"/>
        </div>
    </div>
        ........
        ........
        ........

But when I do the above and when I click on the sort image on the table header, it should go to the action and update the content div part with the jsp.
It is indeed going to the action, but in the content div part I'm getting "undefined" text in IE 7. But the same is working in Mozilla 2.

I'm using Struts 2.1.6.

Thank you.
Regards,
Kishan.G
 
Team Leader.
www.spansystems.com



-----Original Message-----
From: Dave Newton [mailto:newton.dave@...]
Sent: Thursday, July 02, 2009 3:02 PM
To: Struts Users Mailing List
Subject: Re: Struts2 - dojo anchor error

Kishan G. Chellap Paandy wrote:

> Referring to: http://struts.apache.org/2.1.6/docs/dojo-anchor.html
>
> "There's a bug in IE6/IE7 which makes impossible to use the target's
> attribute with a parent Div, because such Div's content's are
> overwritten with the tag's loadingText. Resulting in an "undefined"
> message in the content's, instead of the result of the request.
>
> One possible alternative is to set showLoadingText="false" and set
> the indicator attribute to an element showing the desired loading
> text or image (outside the div)."
>
> The alternative mentioned above is also not working.
>
> Is there is any solution for this apart from the mentioned
> alternative?

What specific issue are you having? AFAIK the anchor tag works.

Dave

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


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


Re: Struts2 - dojo anchor error

by DNewfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kishan G. Chellap Paandy wrote:
> Here is what I'm doing.

> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
> <sx:head debug="true" cache="false" compressed="false" />

OK, this looks like a jsp page...

> <@s.url id="sort" namespace="${parameters.nameSpace}" action="Sort">
>   <@s.param name="id" value="${tmpIdVal}"/>
> </@s.url>
> <@sx.a href="${sort}" key="app.sort" targets="content">
>   <img src="<@s.url value="/images/icon_delete.gif"/>" alt="<@s.text name="app.sort"/>" title="<@s.text name="app.sort"/>" border="0" width="14" height="15"/>
> </@sx.a>

But this does not.

Those "@FOO." bits should be "FOO:", then you have to change the JSTL
expressions to OGNL because rtexprvalue is false for the struts tags (to
avoid a security issue).

http://struts.apache.org/2.1.6/docs/tag-reference.html
http://struts.apache.org/2.1.6/docs/tag-syntax.html

-Dale

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


RE: Struts2 - dojo anchor error

by Kishan Paandy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I think I have missed something.

I have a JSP page and in that I have the <sx:head...... tag.

And I have written a S2 tag for which the template is ftl and in that ftl I have <@sx.a href="${sort}".......

Now this is working fine in Mozilla but not in IE 7.

Thank you.
Regards,
Kishan.G
 
Team Leader.
www.spansystems.com



-----Original Message-----
From: Dale Newfield [mailto:dale@...]
Sent: Friday, July 03, 2009 8:10 PM
To: Struts Users Mailing List
Subject: Re: Struts2 - dojo anchor error

Kishan G. Chellap Paandy wrote:
> Here is what I'm doing.

> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
> <sx:head debug="true" cache="false" compressed="false" />

OK, this looks like a jsp page...

> <@s.url id="sort" namespace="${parameters.nameSpace}" action="Sort">
>   <@s.param name="id" value="${tmpIdVal}"/>
> </@s.url>
> <@sx.a href="${sort}" key="app.sort" targets="content">
>   <img src="<@s.url value="/images/icon_delete.gif"/>" alt="<@s.text name="app.sort"/>" title="<@s.text name="app.sort"/>" border="0" width="14" height="15"/>
> </@sx.a>

But this does not.

Those "@FOO." bits should be "FOO:", then you have to change the JSTL
expressions to OGNL because rtexprvalue is false for the struts tags (to
avoid a security issue).

http://struts.apache.org/2.1.6/docs/tag-reference.html
http://struts.apache.org/2.1.6/docs/tag-syntax.html

-Dale

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

DISCLAIMER:

This email message and all attachments are  confidential and may contain information that
is privileged,  confidential or exempt from  disclosure under applicable law.  If you are
not  the intended  recipient,  you  are notified  that any dissemination, distribution or
copying  of this email  is strictly prohibited. If you have received this email in error,
please notify us immediately by return email or to mailadmin@... and destroy
the original message.

Opinions, conclusions, and other  information in  this message that  do not relate to the
official business of SPAN, shall be understood to be neither given nor endorsed by SPAN.


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