RE: s:head theme=ajax causing prob;em with s:url

2008-09-07 Thread Martin Gainty

pls display full jsp

thx,
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 Date: Thu, 4 Sep 2008 11:15:10 -0700
 From: [EMAIL PROTECTED]
 To: user@struts.apache.org
 Subject: s:head theme=ajax causing prob;em with s:url
 
 
 Hi,
 
 Does anyone know of any problems with using s:head theme=ajax and
 s:url
 
 I have a jsp which uses s:head theme=ajax and as soon as I go this jsp,
 all other s:urls's in the page stops working. It just shows me the last
 link created.
 
 Any pointers/help regarding this will much appreciated.
 
 Thanks
 Tuni
 -- 
 View this message in context: 
 http://www.nabble.com/%3Cs%3Ahead-theme%3D%22ajax%22%3E-causing-prob-em-with-%3Cs%3Aurl%3E-tp19316767p19316767.html
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote:
 Does anyone know of any problems with using s:head
 theme=ajax and s:url
 
 I have a jsp which uses s:head
 theme=ajax and as soon as I go this jsp,
 all other s:urls's in the page stops working.
 It just shows me the last link created.

What do you mean by the s:urls stop working?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul

Thanks form responding.

I am using struts2 with tiles and I have a commonlayout.jsp with all the
relevant links in the application, for ex, Add, View Search etc. One of the
jsp's has all the link in it and which appears on the left pane of the
page.. (Just like a regular html page). The links are something like this...
s:url id =search action=SearchClient includeParams=none
  s:a href=%{search}/
/s:url


s:url id =add action=AddClient includeParams=none
  s:a href=%{add}/
/s:url
..

As soona s I got to the add page which has the s:head theme=ajax, all my
links on the left page stops working. When I click on them, they all go to
the add page. But if I remove the s:head theme=ajax  from the add jsp
page, it fixes the problem.

Hopefully, it is more clear now





newton.dave wrote:
 
 --- On Thu, 9/4/08, tutul wrote:
 Does anyone know of any problems with using s:head
 theme=ajax and s:url
 
 I have a jsp which uses s:head
 theme=ajax and as soon as I go this jsp,
 all other s:urls's in the page stops working.
 It just shows me the last link created.
 
 What do you mean by the s:urls stop working?
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3Cs%3Ahead-theme%3D%22ajax%22%3E-causing-prob-em-with-%3Cs%3Aurl%3E-tp19316767p19317137.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote:
 s:url id =search action=SearchClient includeParams=none
   s:a href=%{search}/
 /s:url

Did you try it like this?

s:url id=search action=SearchClient includeParams=none/
s:a href=%{#search}/

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul

I changed it to the option you had suggested. It doesn't work. The thing is
the links are working if I remove the theme=ajax from the s:head tag. So
I am guessing it has to do with how ajax works. I am very new to this ajax
thing...May be missing out on some settings 



newton.dave wrote:
 
 --- On Thu, 9/4/08, tutul wrote:
 s:url id =search action=SearchClient includeParams=none
   s:a href=%{search}/
 /s:url
 
 Did you try it like this?
 
 s:url id=search action=SearchClient includeParams=none/
 s:a href=%{#search}/
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3Cs%3Ahead-theme%3D%22ajax%22%3E-causing-prob-em-with-%3Cs%3Aurl%3E-tp19316767p19317600.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread Dave Newton
--- On Thu, 9/4/08, tutul wrote:
 I changed it to the option you had suggested. It doesn't
 work. The thing is the links are working if I remove the
 theme=ajax from the s:head tag. So I am guessing it 
 has to do with how ajax works. I am very new to this ajax
 thing...May be missing out on some settings 

Oh, ajax theme, sorry.

If you set the theme to ajax the s:a... tag will be making Ajax 
requests--is that what you're trying to do? If so, reading the documentation 
would be a good place to start:

For S2.0:
http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-anchorTag

For S2.1:
http://struts.apache.org/2.x/docs/dojo-anchor.html

If you're not, then just use regular HTML a... tags.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: s:head theme=ajax causing prob;em with s:url

2008-09-04 Thread tutul

That worked. I was not actually trying to make Ajax request. I was just using
the ajax theme to populate a certain part of the jsp.
Thanks for the response. 


newton.dave wrote:
 
 --- On Thu, 9/4/08, tutul wrote:
 I changed it to the option you had suggested. It doesn't
 work. The thing is the links are working if I remove the
 theme=ajax from the s:head tag. So I am guessing it 
 has to do with how ajax works. I am very new to this ajax
 thing...May be missing out on some settings 
 
 Oh, ajax theme, sorry.
 
 If you set the theme to ajax the s:a... tag will be making Ajax
 requests--is that what you're trying to do? If so, reading the
 documentation would be a good place to start:
 
 For S2.0:
 http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-anchorTag
 
 For S2.1:
 http://struts.apache.org/2.x/docs/dojo-anchor.html
 
 If you're not, then just use regular HTML a... tags.
 
 Dave
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/%3Cs%3Ahead-theme%3D%22ajax%22%3E-causing-prob-em-with-%3Cs%3Aurl%3E-tp19316767p19318126.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]