You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joseph McGranaghan <dr...@draegoonz.com> on 2006/12/20 00:25:42 UTC

[OT] ajaxArea embedded with displayTag

I'm trying to use an ajaxArea for the main portion of my site.

Inside it I have control panel of several tiles.

One of the tiles contains a displayTag that I want ajaxified
unto it's own self, not the whole main ajaxArea.

Matter of fact, I can't even get it to work right with the enclosed
ajaxArea either.

I've tried every combination imaginable of ajaxArea, anchors, 
displaytag, and ajax:displayTag

Hoping some poor soul solved this one already.



Basically:

<ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">

                <display:table name="data" id="row" scope="request"
class="displaytag" requestURI="/myaction.do">

                        <display:column property="itemID" title="ID:"
class="leftalign" headerClass="" sortable="true" />

                    </display:table>

</ajax:area>


Thanks,

Joe




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


Re: [OT] ajaxArea embedded with displayTag

Posted by Joseph McGranaghan <dr...@draegoonz.com>.
No it's from the AjaxTags project.

I tried to post to JWP mailing list but got bounce for some reason, 
hence the [OT]

I use struts 1.3.5 though, not s2

Musachy Barroso wrote:
> I don't think "ajax:area" is an S2 tag. Is that form another ajax 
> library?
>
> regards
> musachy
>
> Joseph McGranaghan wrote:
>> I'm trying to use an ajaxArea for the main portion of my site.
>>
>> Inside it I have control panel of several tiles.
>>
>> One of the tiles contains a displayTag that I want ajaxified
>> unto it's own self, not the whole main ajaxArea.
>>
>> Matter of fact, I can't even get it to work right with the enclosed
>> ajaxArea either.
>>
>> I've tried every combination imaginable of ajaxArea, anchors, 
>> displaytag, and ajax:displayTag
>>
>> Hoping some poor soul solved this one already.
>>
>>
>>
>> Basically:
>>
>> <ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">
>>
>>                <display:table name="data" id="row" scope="request"
>> class="displaytag" requestURI="/myaction.do">
>>
>>                        <display:column property="itemID" title="ID:"
>> class="leftalign" headerClass="" sortable="true" />
>>
>>                    </display:table>
>>
>> </ajax:area>
>>
>>
>> Thanks,
>>
>> Joe
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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: [OT] ajaxArea embedded with displayTag

Posted by Musachy Barroso <mb...@wfscorp.com>.
I don't think "ajax:area" is an S2 tag. Is that form another ajax library?

regards
musachy

Joseph McGranaghan wrote:
> I'm trying to use an ajaxArea for the main portion of my site.
>
> Inside it I have control panel of several tiles.
>
> One of the tiles contains a displayTag that I want ajaxified
> unto it's own self, not the whole main ajaxArea.
>
> Matter of fact, I can't even get it to work right with the enclosed
> ajaxArea either.
>
> I've tried every combination imaginable of ajaxArea, anchors, 
> displaytag, and ajax:displayTag
>
> Hoping some poor soul solved this one already.
>
>
>
> Basically:
>
> <ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">
>
>                <display:table name="data" id="row" scope="request"
> class="displaytag" requestURI="/myaction.do">
>
>                        <display:column property="itemID" title="ID:"
> class="leftalign" headerClass="" sortable="true" />
>
>                    </display:table>
>
> </ajax:area>
>
>
> Thanks,
>
> Joe
>
>
>
>
> ---------------------------------------------------------------------
> 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: [OT] ajaxArea embedded with displayTag

Posted by Joseph McGranaghan <dr...@draegoonz.com>.
After playing with ajaxTags to no avail (on this problem anyways ),

I switched to AjaxAnywhere for use with displayTag.

Took about 20 min total using this awesome source! 
<http://raibledesigns.com/page/rd?entry=the_future_of_the_displaytag>
Works like a charm :)

-Joe


Sakari.Isoniemi@tietoenator.com wrote:
> Hai
>
> A trivial question ?
>
> I have a problem with DisplayTags (DT) in Struts2  where OGNL throws
> exception from DT-
> parameter like 'o-434343-p'.  (See discussion "Struts2, DisplayTags
> OGNL-error Sakari.Isoniemi " )
>
> So the solution is to use Ajax to bybass Struts2-frame and OGNL ?
>
> /S
>
> -----Original Message-----
> From: Musachy Barroso [mailto:mbarroso@wfscorp.com] 
> Sent: 20. joulukuuta 2006 3:02
> To: Struts Users Mailing List
> Subject: Re: [OT] ajaxArea embedded with displayTag
>
> If you put the displayTag inside the ajax:area it won't get reloaded 
> after the ajax call, what you can do is put the displayTag on a page 
> let's say A, the create a page B that has:
>
> <ajax:area ..>   
>  
>   <%@ include file="A.jsp" %> //or call the action here
> </ajax:area>
>
> then create an action, that the ajax:area will call to update its 
> content, that action return value must map to the page A.jsp so the 
> content is evaluated, sent back to the page, and displayed inside the 
> ajax:area.
>
> musachy
>
> Joseph McGranaghan wrote:
>   
>> I'm trying to use an ajaxArea for the main portion of my site.
>>
>> Inside it I have control panel of several tiles.
>>
>> One of the tiles contains a displayTag that I want ajaxified
>> unto it's own self, not the whole main ajaxArea.
>>
>> Matter of fact, I can't even get it to work right with the enclosed
>> ajaxArea either.
>>
>> I've tried every combination imaginable of ajaxArea, anchors, 
>> displaytag, and ajax:displayTag
>>
>> Hoping some poor soul solved this one already.
>>
>>
>>
>> Basically:
>>
>> <ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">
>>
>>                <display:table name="data" id="row" scope="request"
>> class="displaytag" requestURI="/myaction.do">
>>
>>                        <display:column property="itemID" title="ID:"
>> class="leftalign" headerClass="" sortable="true" />
>>
>>                    </display:table>
>>
>> </ajax:area>
>>
>>
>> Thanks,
>>
>> Joe
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
>   

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


RE: [OT] ajaxArea embedded with displayTag

Posted by Sa...@tietoenator.com.
Hai

A trivial question ?

I have a problem with DisplayTags (DT) in Struts2  where OGNL throws
exception from DT-
parameter like 'o-434343-p'.  (See discussion "Struts2, DisplayTags
OGNL-error Sakari.Isoniemi " )

So the solution is to use Ajax to bybass Struts2-frame and OGNL ?

/S

-----Original Message-----
From: Musachy Barroso [mailto:mbarroso@wfscorp.com] 
Sent: 20. joulukuuta 2006 3:02
To: Struts Users Mailing List
Subject: Re: [OT] ajaxArea embedded with displayTag

If you put the displayTag inside the ajax:area it won't get reloaded 
after the ajax call, what you can do is put the displayTag on a page 
let's say A, the create a page B that has:

<ajax:area ..>   
 
  <%@ include file="A.jsp" %> //or call the action here
</ajax:area>

then create an action, that the ajax:area will call to update its 
content, that action return value must map to the page A.jsp so the 
content is evaluated, sent back to the page, and displayed inside the 
ajax:area.

musachy

Joseph McGranaghan wrote:
> I'm trying to use an ajaxArea for the main portion of my site.
>
> Inside it I have control panel of several tiles.
>
> One of the tiles contains a displayTag that I want ajaxified
> unto it's own self, not the whole main ajaxArea.
>
> Matter of fact, I can't even get it to work right with the enclosed
> ajaxArea either.
>
> I've tried every combination imaginable of ajaxArea, anchors, 
> displaytag, and ajax:displayTag
>
> Hoping some poor soul solved this one already.
>
>
>
> Basically:
>
> <ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">
>
>                <display:table name="data" id="row" scope="request"
> class="displaytag" requestURI="/myaction.do">
>
>                        <display:column property="itemID" title="ID:"
> class="leftalign" headerClass="" sortable="true" />
>
>                    </display:table>
>
> </ajax:area>
>
>
> Thanks,
>
> Joe
>
>
>
>
> ---------------------------------------------------------------------
> 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: [OT] ajaxArea embedded with displayTag

Posted by Musachy Barroso <mb...@wfscorp.com>.
If you put the displayTag inside the ajax:area it won't get reloaded 
after the ajax call, what you can do is put the displayTag on a page 
let's say A, the create a page B that has:

<ajax:area ..>   
 
  <%@ include file="A.jsp" %> //or call the action here
</ajax:area>

then create an action, that the ajax:area will call to update its 
content, that action return value must map to the page A.jsp so the 
content is evaluated, sent back to the page, and displayed inside the 
ajax:area.

musachy

Joseph McGranaghan wrote:
> I'm trying to use an ajaxArea for the main portion of my site.
>
> Inside it I have control panel of several tiles.
>
> One of the tiles contains a displayTag that I want ajaxified
> unto it's own self, not the whole main ajaxArea.
>
> Matter of fact, I can't even get it to work right with the enclosed
> ajaxArea either.
>
> I've tried every combination imaginable of ajaxArea, anchors, 
> displaytag, and ajax:displayTag
>
> Hoping some poor soul solved this one already.
>
>
>
> Basically:
>
> <ajax:area id="ajaxFrame" ajaxAnchors="true" ajaxFlag="ajaxFrame">
>
>                <display:table name="data" id="row" scope="request"
> class="displaytag" requestURI="/myaction.do">
>
>                        <display:column property="itemID" title="ID:"
> class="leftalign" headerClass="" sortable="true" />
>
>                    </display:table>
>
> </ajax:area>
>
>
> Thanks,
>
> Joe
>
>
>
>
> ---------------------------------------------------------------------
> 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