Re: Notify Listen Topics dynamics

2008-12-26 Thread MyAshok

hi,

Did you wrote any javascript for your notify topics.


With regards,
Ashok



Felipe Fraga wrote:
> 
> Greetings all,
> 
> I'm having trouble understanding the notify/listen topics dynamics.
> 
> According to the following link in the "notify topics scenario":
> http://struts.apache.org/2.0.11/docs/ajax-tags.html
> 
> When a DIV listens to a topic that is being notified, it should be
> refreshed once before the execution of the action, and one more time
> after the action completes. In my case, it is being refreshed several
> times before and another several times after. The number of times
> seems to be randomic.
> 
> I have the following JSP with 2 DIVs. The one on the bottom listens to
> a Topic notified by a submit that is in another JSP, more precisely,
> in the JSP loaded on the upper div.
> 
> Below is the DIVs structure:
> 
> 
>   Operator Form
>action="saveOperator!input" />
>  id="divSaveOperator"
>   href="%{urlShowSaveOperatorForm}"
>   theme="ajax"
>   loadingText="Loading operator form..."
>   cssClass="innerdiv" />
> 
> 
> 
> 
> 
>   Operators Listing
>  action="showOperatorsListing" />
>id="divOperatorsListing"
>   href="%{urlShowOperatorsListing}"
>   theme="ajax"
>   listenTopics="updateOperatorsListing"
>   loadingText="Loading operators listing..."
>   cssClass="innerdiv" />
> 
> 
> And below there is the submit that notifies the topic:
> 
>  targets="divSaveOperator" 
> notifyTopics="updateOperatorsListing" 
>   loadingText="Loading
> operator's form..." />
> 
> Still below, there is my log of the actions execute methods being
> called. You can notice the method of the refresh list being called
> several times before and anfter the Save Profile method.
> 
> 15:34:22,706 INFO  [ShowProfilesListingAction] ::: Executing Profiles
> Listing
> 15:34:22,780 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,797 INFO  [SaveProfileAction] ::: Executing  Save Profile
> 15:34:22,819 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,841 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,146 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,197 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,219 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,241 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 
> Can anybody help me?
> 
> Thanks a lot.
> 
> Felipe Fraga
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Notify-Listen-Topics-dynamics-tp21168939p21172613.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Notify Listen Topics dynamics

2008-12-25 Thread MyAshok

Hi felipa,

Can u refer this below url:

http://javachamp.blogspot.com/search/label/ajax%20dropdown

if it gives u solution. Please inform me.

With Regards,
Ashok


Felipe Fraga wrote:
> 
> Greetings all,
> 
> I'm having trouble understanding the notify/listen topics dynamics.
> 
> According to the following link in the "notify topics scenario":
> http://struts.apache.org/2.0.11/docs/ajax-tags.html
> 
> When a DIV listens to a topic that is being notified, it should be
> refreshed once before the execution of the action, and one more time
> after the action completes. In my case, it is being refreshed several
> times before and another several times after. The number of times
> seems to be randomic.
> 
> I have the following JSP with 2 DIVs. The one on the bottom listens to
> a Topic notified by a submit that is in another JSP, more precisely,
> in the JSP loaded on the upper div.
> 
> Below is the DIVs structure:
> 
> 
>   Operator Form
>action="saveOperator!input" />
>  id="divSaveOperator"
>   href="%{urlShowSaveOperatorForm}"
>   theme="ajax"
>   loadingText="Loading operator form..."
>   cssClass="innerdiv" />
> 
> 
> 
> 
> 
>   Operators Listing
>  action="showOperatorsListing" />
>id="divOperatorsListing"
>   href="%{urlShowOperatorsListing}"
>   theme="ajax"
>   listenTopics="updateOperatorsListing"
>   loadingText="Loading operators listing..."
>   cssClass="innerdiv" />
> 
> 
> And below there is the submit that notifies the topic:
> 
>  targets="divSaveOperator" 
> notifyTopics="updateOperatorsListing" 
>   loadingText="Loading
> operator's form..." />
> 
> Still below, there is my log of the actions execute methods being
> called. You can notice the method of the refresh list being called
> several times before and anfter the Save Profile method.
> 
> 15:34:22,706 INFO  [ShowProfilesListingAction] ::: Executing Profiles
> Listing
> 15:34:22,780 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,797 INFO  [SaveProfileAction] ::: Executing  Save Profile
> 15:34:22,819 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:22,841 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,146 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,197 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,219 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 15:34:23,241 INFO  [ShowProfilesListingAction] ::: Executing  Profiles
> Listing
> 
> Can anybody help me?
> 
> Thanks a lot.
> 
> Felipe Fraga
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Notify-Listen-Topics-dynamics-tp21168939p21172329.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Datetimepicker locale setting problem - struts 2.0.11.1

2008-12-25 Thread MyAshok

Hi,

Please help me, I am in deep trouble.
I have finished my module using s:datetimepicker with my locale setting as
US.
But when i deployed my module, It started creating problem.

1) My server has the regional setting as US.
2) My Testing team guy is having regional setting as UK.
3) My regional setting is also US.

For me its working good.
For my testing guy , it showing invalid field value for field dtp1.

Please reply me asap.

With regards,
Ashok.
-- 
View this message in context: 
http://www.nabble.com/Datetimepicker-locale-setting-problem---struts-2.0.11.1-tp21172293p21172293.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: Session problem unidentified

2008-10-23 Thread MyAshok

Hi all,

Sorry for the late reply.

Inside my action method the User object is populated via autowiring.

Dao object is being injected as bean using spring.
i dont know how to set scope for the bean.

please help me in using the bean with scope.

If i did anything wrong in my approach, please help in correcting the basic
structure or approach.
or refer any URL which suits to solve my issue.

please help me




Kawczynski, David wrote:
> 
> How does your action class get populated with a User object (or whatever
> it is that is saved incorrectly)?
> Does Spring have any role in the creation of that object?  If so, what
> scope is that bean defined?  
> What's the value of the key for this object when it is saved
> incorrectly?
> 
> 
> -Original Message-
> From: MyAshok [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 09, 2008 4:07 PM
> To: user@struts.apache.org
> Subject: Session problem unidentified
> 
> 
> Hi all,
> 
> I got a critical problem.
> My Application Environment - Struts 2 Application, Spring injection for
> dao, 
> Hiberanate3
> 
> Scenerio
> 
> 1) When user A logged in and add a new user x (which sets the
> selectedUser
> (gettersettervariable) to Null).
> 2) At the same time, user B logged in and edit a existing user (which
> sets
> the selectedUser to some value).
> 
> 3) Now, the user A save the entries, this row is updated to the table
> for
> the existing user( which was selected by userB)
> 
> I cant find where i went wrong.
> I can guess that there is a problem with session management.
> I cant find whether the problem with the HibernateSession or
> HttpSession.
> 
> Can u please give me solutions.
> 
> Waiting for the helpful solution with hope.
> With Regards,
> Ashok
> -- 
> View this message in context:
> http://www.nabble.com/Session-problem-unidentified-tp19906321p19906321.h
> tml
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> Notice:  This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
> New Jersey, USA 08889), and/or its affiliates (which may be known
> outside the United States as Merck Frosst, Merck Sharp & Dohme or
> MSD and in Japan, as Banyu - direct contact information for affiliates is
> available at http://www.merck.com/contact/contacts.html) that may be
> confidential, proprietary copyrighted and/or legally privileged. It is
> intended solely for the use of the individual or entity named on this
> message. If you are not the intended recipient, and have received this
> message in error, please notify us immediately by reply e-mail and
> then delete it from your system.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Session-problem-unidentified-tp19906321p20139739.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: Struts 2: Can not set Action's property which is an array of Strings

2008-10-23 Thread MyAshok

Andriy,

Can u give me the sample code snippet to get the array value from jsp.

With Regards,
MYAshok



Andriy Kharchuk wrote:
> 
> It helped. Thank you.
> 
> 2008/1/28, Hernandez, David <[EMAIL PROTECTED]>:
>>
>>
>> Andriy,
>>
>> Try putting the array in an encapsulating object, i.e. an ArrayList.
>>
>> Regards,
>>
>> David Hernandez
>>
>> -Original Message-
>> From: Andriy Kharchuk [mailto:[EMAIL PROTECTED]
>> Sent: Monday, January 28, 2008 4:15 PM
>> To: Struts Users Mailing List
>> Subject: Struts 2: Can not set Action's property which is an array of
>> Strings
>>
>> Hi guys,
>>
>> My Action has property which is an array of Strings. I'm rendering html
>> table using this property. What is correct way to update this property
>> from jsp?
>>
>> I tried the following but it doesn't work:
>>
>> 1. JSP
>> 
>> 
>>
>> 2. Action
>> private String[] selectedItems;
>>
>> public String[] getSelectedItems(){
>> return selectedItems;
>> }
>>
>> public void setSelectedItems(String[] selectedItems){
>> this.selectedItems = selectedItems;
>> }
>>
>> Exception is
>> [ERROR] 23:11:16,750 InstantiatingNullHandler | Could not create and/or
>> set value back on to object |
>> com.opensymphony.xwork2.util.InstantiatingNullHandler.nullPropertyValue(
>> InstantiatingNullHandler.java:110)| nullPropertyValue
>> java.lang.InstantiationException: [Ljava.lang.String;
>> at java.lang.Class.newInstance0(Unknown Source)
>>
>> I will appreciate any help.
>>
>> Thanks,
>> Andriy
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> - - - - - - -
>>
>> This message is intended only for the personal and confidential use of
>> the
>> designated recipient(s) named above.  If you are not the intended
>> recipient
>> of this message you are hereby notified that any review, dissemination,
>> distribution or copying of this message is strictly prohibited.  This
>> communication is for information purposes only and should not be regarded
>> as
>> an offer to sell or as a solicitation of an offer to buy any financial
>> product, an official confirmation of any transaction, or as an official
>> statement of Lehman Brothers.  Email transmission cannot be guaranteed to
>> be
>> secure or error-free.  Therefore, we do not represent that this
>> information
>> is complete or accurate and it should not be relied upon as such.  All
>> information is subject to change without notice.
>>
>> 
>> IRS Circular 230 Disclosure:
>> Please be advised that any discussion of U.S. tax matters contained
>> within
>> this communication (including any attachments) is not intended or written
>> to
>> be used and cannot be used for the purpose of (i) avoiding U.S. tax
>> related penalties or (ii) promoting, marketing or recommending to another
>> party any transaction or matter addressed herein.
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2%3A-Can-not-set-Action%27s-property-which-is-an-array-of-Strings-tp15145619p20139502.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]



Session problem unidentified

2008-10-09 Thread MyAshok

Hi all,

I got a critical problem.
My Application Environment - Struts 2 Application, Spring injection for dao, 
Hiberanate3

Scenerio

1) When user A logged in and add a new user x (which sets the selectedUser
(gettersettervariable) to Null).
2) At the same time, user B logged in and edit a existing user (which sets
the selectedUser to some value).

3) Now, the user A save the entries, this row is updated to the table for
the existing user( which was selected by userB)

I cant find where i went wrong.
I can guess that there is a problem with session management.
I cant find whether the problem with the HibernateSession or HttpSession.

Can u please give me solutions.

Waiting for the helpful solution with hope.
With Regards,
Ashok
-- 
View this message in context: 
http://www.nabble.com/Session-problem-unidentified-tp19906321p19906321.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: Correct usage of datetimepicker?

2008-09-23 Thread MyAshok

Hi,

I am also facing the problem of invalid field value. I didnt give any
validation for the datetimepicker but it validate itself and give this field
error. Pls help asap.

With Regards,
Ashok



Torsten Römer wrote:
> 
> Great, that was quickly fixed :-)
> 
> I'm looking forward to 2.1.0!
> 
> Thanks!
> 
> Torsten
> 
> Musachy Barroso wrote:
>> I found several problem with the datetimepicker, first (and the worst) is
>> that the names of the input fields (visible and hidden) were switched.
>> Second, the hidden field was storing just the date section of the RFC
>> 3339
>> format. In short, in the few cases that it worked it was because Xwork
>> tries
>> as a hard as possible to parse dates, using different formats.
>> 
>> thanks
>> musachy
>> 
>> On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>>
>>> Done! (WW-1917)
>>>
>>> Hope this is useful, if I can help out in any other way please let me
>>> know!
>>>
>>> BTW there is no such locale en_UK, it should be en_GB, but unfortunately
>>> that wasn't the problem.
>>>
>>> Torsten
>>>
>>> Musachy Barroso schrieb:
>>> > Can you log a jira ticket with the details on how to reproduce the
>>> problem?
>>> >
>>> > https://issues.apache.org/struts/
>>> >
>>> > thanks
>>> > musachy
>>> >
>>> > On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> Yes I did, and I also get that far; the datepicker shows up fine, and
>>> it
>>> >> inserts the picked date in the field in the format I specified using
>>> >> displayFormat - but when I submit the form I get that validation
>>> error.
>>> >>
>>> >> So I am still using String instead of Date and I'm currently trying
>>> to
>>> >> get the entered date validated. When this works I am already quite
>>> happy.
>>> >>
>>> >> The problem that occurs in case the user has JavaScript disabled I am
>>> >> BTW working around by placing an additional textfield with the same
>>> name
>>> >> in a  tag. Like this the user can at least enter a date
>>> >> manually.
>>> >>
>>> >> Torsten
>>> >>
>>> >> Musachy Barroso schrieb:
>>> >> > Did you look at the examples in showcase? I know the timepicker was
>>> >> really
>>> >> > broken on 2.0.6, but the datepicker was working.
>>> >> >
>>> >> > musachy
>>> >> >
>>> >> > On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>> >> >>
>>> >> >> I didn't have any struts.date.format set in my .properties files,
>>> but
>>> >> >> for testing I set it to -MM-dd in all of them but that doesn't
>>> >> seem
>>> >> >> to have any effect. The date is still shown in dd.MM.yy format,
>>> and
>>> I
>>> >> >> get that validation error when request_locale=en_UK.
>>> >> >>
>>> >> >> Then I also set displayFormat to -MM-dd but like this I always
>>> get
>>> >> a
>>> >> >> validation error.
>>> >> >>
>>> >> >> If I try to set saveFormat I get an exception:
>>> >> >> SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
>>> >> >> org.apache.jasper.JasperException: /page/reservation.jsp(15,1)
>>> >> Attribute
>>> >> >> saveFormat invalid for tag datetimepicker according to TLD
>>> >> >>
>>> >> >> The only way how I can get it to work is to use strings and parse
>>> the
>>> >> >> date myself in the action class. But like this, no validation is
>>> done
>>> >> at
>>> >> >> all.
>>> >> >>
>>> >> >> It's a pity because the datetimepicker would be extremely easy to
>>> >> use &
>>> >> >> it looks really nice but it doesn't seem to like me ;-)
>>> >> >>
>>> >> >> Torsten
>>> >> >>
>>> >> >> Martin Gainty schrieb:
>>> >> >> > please display contents of struts.date.format
>>> >> >> > for both *en_UK.properties and
>>> >> >> > *de_DE.properties files
>>> >> >> >
>>> >> >> > Martin--
>>> >> >> > This email message and any files transmitted with it contain
>>> >> >> confidential
>>> >> >> > information intended only for the person(s) to whom this email
>>> >> message
>>> >> >> is
>>> >> >> > addressed.  If you have received this email message in error,
>>> please
>>> >> >> notify
>>> >> >> > the sender immediately by telephone or email and destroy the
>>> >> original
>>> >> >> > message without making a copy.  Thank you.
>>> >> >> >
>>> >> >> > - Original Message - From: "Musachy Barroso"
>>> >> >> <[EMAIL PROTECTED]>
>>> >> >> > To: "Struts Users Mailing List" 
>>> >> >> > Sent: Monday, May 07, 2007 8:05 PM
>>> >> >> > Subject: Re: Correct usage of datetimepicker?
>>> >> >> >
>>> >> >> >
>>> >> >> > Using Date for the action field is the way to go. The selected
>>> value
>>> >> is
>>> >> >> > submited in RFC 3339 format (that can me modified using the
>>> >> saveFormat
>>> >> >> > attribute, which shouldn't have been public on the first place).
>>> I'm
>>> >> >> not
>>> >> >> > really sure how it would work if the client has javascript
>>> disabled.
>>> >> >> >
>>> >> >> > musachy
>>> >> >> >
>>> >> >> > On 5/7/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>> >> >> >>
>>> >> >> >> I'm a bit unsure about a few things around datetimepicker.
>>> >> >> >>
>>> >> >> >> What type should t

Re: autowiring in html tag

2008-09-17 Thread MyAshok

Dave, 

Thank You very much for the timely reply.

I need to do the submit in ajax theme, so if i change the theme to render
table tag - the requirement will collapse.

I thought to say " values from jsp to action is passing, but not the
viceversa", there was misspelled as "form" instead of "from" in my thread.

Regards,
Ashok


newton.dave wrote:
> 
> --- On Wed, 9/17/08, Jim Kiley wrote:
>> How would the HTML  tag receive 
>> information from your Struts action?
> 
> Magic, yo.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/autowiring-in-html-tag-tp19539274p19539808.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: Struts 2 + AjaxTags + DisplayTag

2008-09-17 Thread MyAshok

hi,

Are you using struts 2.1.2 Beta for your project?


With Regards,
Ashok




dynamicd wrote:
> 
> After some long hours I got pagination and export working with ajaxtags
> and displaytag
> THis is how you do ajax pagination.
> 
> AjaxTags 1.3 rc7
> Struts2.0.12
> DisplayTag 1.1.1
> 
> 
> I had to make small change in the ajaxtags.js for it to work
> Comment out the line that calls the prefunction in the ajaxtags.js
> 
> /**
>  * Prefunction Invoke Ajax.Update TAG
>  */
> AjaxJspTag.PreFunctionUpdateInvoke = Class.create();
> AjaxJspTag.PreFunctionUpdateInvoke.prototype = Object.extend(new
> AjaxJspTag.Base(), {
> 
>   initialize: function(ajaxupdateData) {
> /**
>   this.preFunction = ajaxupdateData.preFunction;
>   if (isFunction(this.preFunction))
>   { 
>   this.preFunction();
>   }
>   */
>   if (this.cancelExecution) {
>   alert("I am canceling the excution");
>   this.cancelExecution = false;
>   return ;
>   }   
> /**
>  * alert("Here I am in  PreFunction Ajaxupdatedata"+ ajaxupdateData.id + "
> " + ajaxupdateData.href + " " + ajaxupdateData.postFunction  + "
> prefunction" + this.preFunction); 
>  */
>   
>   var thisCall = new
> Ajax.Updater(ajaxupdateData.id,ajaxupdateData.href,{onComplete:
> ajaxupdateData.postFunction});
>   }
> 
> });
> 
> 
> Add this to the head section of the page in this order
> 
> 
> 
> 
> 
> In the jsp page for me which is seperate from the indexpage 
> 
> <%@ taglib prefix="s" uri="/struts-tags" %>
> <%@ taglib uri="http://displaytag.sf.net"; prefix="display" %>
>  <%@ taglib uri="http://ajaxtags.org/tags/ajax"; prefix="ajax" %>
> 
> 
> 
> 
> 
>   
> 
>export="true" excludedParams="*" pagesize="15"
> requestURI="/Dashboard/ViewAllUsers.action">
> theme="simple" fieldValue="%{#attr.userlist.id}"
> >
>>
>>
>escapeXml="true" >
>escapeXml="true">  
>escapeXml="true">  
> 
>   
> 
> 
> 
> 
> 
>  id="deleteUser" cssClass="anchors" theme="ajax" targets="users"
> formId="userform">Delete
> 
> 
> 
> One thing to note here is that do not use  use  instead.
> s:form create a Table and when the ajax call happens it will refresh a
> different div in the table and you will see 2 divs with same data
> 
> When you look at the page source you will see the links ajaxified as one
> below
> a onclick="new AjaxJspTag.PreFunctionUpdateInvoke({id: "userList", href:
> "/ViewAllUsers.action?d-3610194-p=2&userList=true" }); return false;"
> href="javascript://nop/">Next 
> Hey Márcio
> Where you ever successful in getting AjaxTags to work with Dispay Tag and
> Struts2
> I am at the same junction as you were. Please let me know. 
> Thanks
> 
> 
> 
> 
> Márcio Gurgel wrote:
>> 
>> Hi Randy,
>> 
>> I also tried to set requestURI.
>> I'm having lots of problems with components inside tabbedPanels...
>> 
>> For example:
>> This example works outside a tabbed panel:
>> 
>>   2. Attach to "onmouseover", and "onclick" event on Area below and
>> update
>> content of Div1, highlight targets with green color
>> > targets="div1" events="onmouseover,onclick" highlightColor="green"/>
>> 
>> Mouse Over or Click Here!
>> 
>> 
>> When its inside a div from tabbedpanel just doesn't work.
>> 
>> Does anyone can help me?
>> 
>> 
>> 2008/4/15, Randy Burgess <[EMAIL PROTECTED]>:
>>>
>>> Well your requestURI is not set so the URL is set to the current JSP and
>>> not
>>> the action. I have never had any success leaving requestURI blank with
>>> DisplayTag on S1 or S2. I always set it to the name of an action.
>>>
>>> Regards,
>>> Randy Burgess
>>> Sr. Web Applications Developer
>>> Nuvox Communications
>>>
>>>
>>>
>>> > From: Márcio Gurgel <[EMAIL PROTECTED]>
>>> > Reply-To: Struts Users Mailing List 
>>> > Date: Tue, 15 Apr 2008 01:18:34 -0300
>>> > To: Struts Users Mailing List 
>>> > Subject: Re: Struts 2 + AjaxTags + DisplayTag
>>>
>>> >
>>> > Matt, tanks for your help. But I need to persist with displayTags /:
>>> >
>>> > I guess that there's some kind of validation inside struts 2 that
>>> doesnt
>>> > allow the correct work of ajaxtags..
>>> > Just take a look at my generated url from displaytag pagination.
>>> >
>>> > http://localhost:8080/SGVDBA/view/usuario/UsuPesquisaResultados.jsp?
>>> >
>>> currentUsu.eMail=¤tUsu.chv=¤tUsu.dtGvr=&struts.enableJSONValidatio
>>> > n=true
>>> > &buttonPesquisar=Pesquisar&dojo.currentUsu.dtGvr=&d-49489-p=2
>>> >
>>> >
>>> > Tanks all!
>>> >
>>> > 2008/4/14, matt.payne <[EMAIL PROTECTED]>:
>>> >>
>>> >>
>>> >> You could try struts2 +  jquery + jgrid
>>> >> (http://trirand.com/jqgrid/jqgrid.html)
>>> >> If you need ajax, you need something that returns an json or xml
>>> response
>>> >> (insert you velocity, freemarker, json result, jsp result here).
>>> >>
>>> >> Matt
>>> >>
>>> >>
>>> >>
>>> >> Márcio Gurgel wrote:
>>> >>>
>>> >>> Hi all!
>>> >>>
>>> >>> Since this morning I'm having troubles to configure ajaxTags in my
>>> >>> project.
>>> >>> I followed the steps fro

autowiring in html tag

2008-09-17 Thread MyAshok

Hi all,

Is it possible to use html tag instead struts 2 tag which should implement
the autowiring.
I tried with  instead of .
I can pass value form jsp to action but not from action to jsp.
Where i did wrong.
Please give me the solution ASAP.

With Regards,
Ashok,
-- 
View this message in context: 
http://www.nabble.com/autowiring-in-html-tag-tp19539274p19539274.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: problem in s:a tag xmlhttptransport error callback failed:[object Error]

2008-08-29 Thread MyAshok

hi,

I got it, when i removed the indicator, it works cool.

anyhow thanks for everybody who looks into it.

With regards,
ashok

MyAshok wrote:
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> Pls help me asap.
> 
> On click on the Url.
> 
>  showLoadingText="false" targets="mainpage">Hai
> 
> 
> I got an error showing in debug mode xmlhttptransport error callback
> failed:[object Error]
> 
> this same line is working in some other jsp. I think the current issue
> might be because of the line  is placed inside s:iterator. This is
> just a extra info.
> 
> please asap
> 
> With Hope and thanks,
> Ashok. 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-in-s%3Aa-tag-xmlhttptransport-error-callback-failed%3A-object-Error--tp19226349p19226538.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]



problem in s:a tag xmlhttptransport error callback failed:[object Error]

2008-08-29 Thread MyAshok






Hi all,

Pls help me asap.

On click on the Url.

Hai


I got an error showing in debug mode xmlhttptransport error callback
failed:[object Error]

this same line is working in some other jsp. I think the current issue might
be because of the line  is placed inside s:iterator. This is just a
extra info.

please asap

With Hope and thanks,
Ashok. 
-- 
View this message in context: 
http://www.nabble.com/problem-in-s%3Aa-tag-xmlhttptransport-error-callback-failed%3A-object-Error--tp19226349p19226349.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: I need generic html table structure with theme ajax in struts 2

2008-08-29 Thread MyAshok

Hi Harper,

Thanks for ur quick reply.

Is there any other possibilities or any plugins to make this possible.
Because, I dont want to make ajax theme obselete by extending it by my code.

Applause for the solution,

With Hope,
Ashok.





Laurie Harper wrote:
> 
> MyAshok wrote:
>> Hi all,
>> 
>> Again thanks for ur past replies.
>> 
>> Now, I am in a new issue.
>> 
>> I need to use the ajax theme for two buttons (s:button id=A and s:button
>> id
>> =B). But, as default, each s: tag will create a tr and td tags. I dont
>> want
>> this type of table structure(row by row). I want to customize table
>> structure as that of generic html table.
> 
> You'll need to customize the templates for the 'ajax' theme, or create 
> your own theme based on / extending the 'ajax' theme, to define the 
> markup you want to generate. See here for details:
> 
> http://struts.apache.org/2.0.11.1/docs/themes-and-templates.html
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I-need-generic-html-table-structure-with-theme-ajax-in-struts-2-tp19202580p19215585.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]



I need generic html table structure with theme ajax in struts 2

2008-08-28 Thread MyAshok

Hi all,

Again thanks for ur past replies.

Now, I am in a new issue.

I need to use the ajax theme for two buttons (s:button id=A and s:button id
=B). But, as default, each s: tag will create a tr and td tags. I dont want
this type of table structure(row by row). I want to customize table
structure as that of generic html table.

Pls ask me if any communication problem.

Pls help me asap.

Waiting for ur reply.

regards,
Ashok.


-- 
View this message in context: 
http://www.nabble.com/I-need-generic-html-table-structure-with-theme-ajax-in-struts-2-tp19202580p19202580.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: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok

Hi Jeromy,


We got it. Its working fine.

Thank you very much for the quick reply.

Can you tell me whats might be the problem with my IE.

Regards,
Ashok.







Jeromy Evans - Blue Sky Minds wrote:
> 
> MyAshok wrote:
>> Hi all,
>>
>> Thanks for all your response.
>>
>> Finally i isolated the problem and found that the problem is with the
>> ajax
>> submit of the same div. (i.e) my form and the submit targets to the same
>> div. This scenerio creates the problem that the values in the jsp is not
>> populated to the action by autowiring.
>>
>>   
> 
> That sounds an awful lot like the previously mentioned Dojo/IE bug.
> 
> Turn off the loading text (showLoadingText="false") on the widget that 
> generates the request and see how you go.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19067009.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: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-20 Thread MyAshok

Hi all,

Thanks for all your response.

Finally i isolated the problem and found that the problem is with the ajax
submit of the same div. (i.e) my form and the submit targets to the same
div. This scenerio creates the problem that the values in the jsp is not
populated to the action by autowiring.

login.jsp







In struts.xml, login.jsp




How can i sort out this issue.

I tried with simple samples and searched as much as possible. But i cant get
a clear solution.
Waiting for some clear solution.

Thanks again to all.

With Regards,
Ashok




Jeromy Evans - Blue Sky Minds wrote:
> 
> Martin Gainty wrote:
>>
>> var xmlhttp=dojo.hostenv.getXmlhttpObject()
>> var response= xmlhttp.responseXML;
>> var parsed_response=SomeXMLParser(response);
>> document.getElementByTagId("div").innerHtml = parsed_response;
>> -->
>> 
>>
>> yes/no?
>> Martin 
>>   
> 
> That would work, but dojo already includes code to invoke the right XML 
> parser depending on the browser and includes code to strip the 
> javascript out of the parsed response and execute it after updating the 
> DOM.  So it's best to reuse that code (which is behaviour of the widget) 
> rather than rewrite an 80% complete solution.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19065871.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: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-18 Thread MyAshok


Thanks Evans,

In IE, instead of loading text it shows [object error]. But it redirects to
a new page.

In Firefox, neither showing loading text nor object error. It redirects to a
new page.




script 
--

function activatePartnerSubscriber() {

subCount =  document.getElementById('subCount').value;

var count = selectedCheckBoxCount();
if (count >= 1) {

document.getElementById('SubscriberForm').action
='/myproj/activate.action';

document.getElementById('SubscriberForm').submit();
} else {
alert("Please select atleast one Subscriber");
}
}

I am unable to find where the ajax request is missing. Please Give some
ideas to proceed.

with hope,
Ashok




Jeromy Evans - Blue Sky Minds wrote:
> 
> MyAshok wrote:
>> I do have the same issue. on click of submit, the loadingtext  is
>> displaying
>> but the result in a new page as i am redirect to a action. 
>>
>> Any solutions? please asap.
>>
>> >  method="activateSubscriber">
>>  > type="redirect-action">viewPartners
>>  
>> Waiting for reply..
>>
>>   
> 
> If it's performing a full-page redirect, then your form did a plain old 
> post/get to the action, not ajax.
> You will need to isolate why the request wasn't sent via XHR.  That 
> means it's a client-side problem, not a struts.xml problem.
> 
> As a guess, without any context, if you've only tested in IE so far, 
> turn off the loadingText message. 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19030271.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: struts2: simple ajax form - returns value to a new page (not to a DIV)

2008-08-17 Thread MyAshok

I do have the same issue. on click of submit, the loadingtext  is displaying
but the result in a new page as i am redirect to a action. 

Any solutions? please asap.


viewPartners

Waiting for reply..


Jeromy Evans - Blue Sky Minds wrote:
> 
> View the html source in the browser.
> 
> The head should contain a script like this one from the struts2-showcase:
> 
> 
> // Dojo configuration
> djConfig = {
> baseRelativePath: "/struts2-showcase/struts/dojo",
> isDebug: false,
> bindEncoding: "UTF-8",
> debugAtAllCosts: true // not needed, but allows the Venkman
> debugger to work with the includes
> };
> 
>  src="/struts2-showcase/struts/dojo/dojo.js">
>  src="/struts2-showcase/struts/simple/dojoRequire.js">
> 
>  src="/struts2-showcase/struts/ajax/dojoRequire.js">
>  src="/struts2-showcase/struts/CommonFunctions.js">
> 
> 
> In FireBug, you should see all those scripts being found.
> 
> xianwinwin wrote:
>>
>> "Check that dojo is setup in the head of your page (view the html)"
>> how do I do that?
>>
>> Thank you!
>>
>>
>> Jeromy Evans - Blue Sky Minds wrote:
>>   
>>> Use the FireBug plugin for FF.
>>>
>>> Check that dojo is setup in the head of your page (view the html) and 
>>> that all of the resources it requires are loaded (using the net tab). 
>>> Ensure that struts filter is receiving requests for the /struts/*
>>> resources.
>>>
>>> xianwinwin wrote:
>>> 
 :-( 
 I think I have an issue with the ajax configuration (I'm not sure).
 How can I verify that my theme="ajax" is configured properly?

 thank you!





 Jeromy Evans - Blue Sky Minds wrote:
   
   
> No, it seems fine now.
>
> Turn on debugging:
>
> 
>>
>> on top, plus
>>
>> > targets="two"
>> />
>>
>> but I get the same result - it goes to an empty page with the result
>> and
>> not
>> to the DIV?
>> :-(
>>
>> any idea?
>>
>>
>>
>>
>>
>> xianwinwin wrote:
>>   
>>   
>>   
>>> Hi all,
>>> I'm trying to return a result to DIV in a form (in the example
>>> id='two')
>>>
>>> this is my form:
>>>
>>> initial
>>> content
>>> >> id='theForm2'
>>> cssStyle="border: 1px solid green;"
>>> action='testing_AjaxRemoteForm'
>>> method='post'
>>> theme="ajax">
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> when the user clicks the GO2 --> the action, AjaxRemoteForm,  is
>>> 'activated' (showing the 'data' the user has input)
>>>
>>> public String AjaxRemoteForm()
>>> {
>>> System.out.println("active ajax test 1 with data: 
>>> "+data);
>>> return "test.ajax.2";
>>> }
>>>
>>> and routed to AjaxResult3.jsp:
>>>
>>> >> class="com.struts.user.account.TestingAction">  
>>> >> type="tiles">test_1
>>> >> name="test.ajax.2">/pages/welcome/AjaxResult3.jsp
>>> 
>>> 
>>>
>>>
>>>
>>> The result comes in a NEW page with the 'data' value the user has
>>> input
>>>
>>>
>>>
>>> "AjaxResult3.jsp" 
>>> -
>>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>>
>>> <%
>>> request.setAttribute("decorator", "none");
>>> response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
>>> response.setHeader("Pragma","no-cache"); //HTTP 1.0
>>> response.setDateHeader ("Expires", 0); //prevents caching at the
>>> proxy
>>> server
>>> %>
>>>
>>> The value you entered was: 
>>>
>>>
>>>
>>>
>>> Q: How can I incorporate the 'data' value in the DIV and not in a
>>> new
>>> page?
>>>
>>> 
>>> 
>>> 
>>   
>>   
>>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> 
> 
   
   
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>> 
>>
>>   
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2%3A-simple-ajax-form---returns-value-to-a-new-page-%28not-to-a-DIV%29-tp15562626p19026280.html
Sent from the Struts - User mailing list archive at Nabble