Problem in AJAX tag in Struts2

2007-08-08 Thread Vijay Prajapati
Hi I am using ajax  tag in  tag to get status on systems
at the time of loading but when i am doing this through AJAX then 
tag sending continuous request and at once time my explorer gives system
error.

There are 3 elements(systems) in my list so at the time of iterating three
ajax request would be generate but instead contious request is generating
and whole page is loading in  tag. but i want only image in place of
div tag.

so please help me to solve this problem.

I am here giving code within  tag of my  working JSP.



   
  
 
 
 
 
   
 
   
  

  

   
   
 
 
 
 
  
 



 Thank you,
 Vijay


Problem in Implementation of Struts2 Validation framework

2007-05-29 Thread Vijay Prajapati

Hi,
I am using Struts2.0.6 and trying to implement Validator framework but
couldn't succeed. I have confution to give name of
actionname-validator.xmlfile.
I am here giving action cofiguration in Struts.xml



< result name="success">/adduser.jsp 
/adduser.jsp

I have implemented UserManagementAction.java with 4
methods(addNew,Update,delete,execute) which return SUCCESS and INPUT. In
that i want validation in only 2 methods(addNew,Update).

If i would create UserManagementAction-validation.xml then validation is
executed for all 4 methods. but if i would create
UserManagementAction-addNew-validation.xml then it is not executed for
addNew method.

In my JSP there are 3 submit button with assigned method named
addNew,Update,delete.

So what should i do to execute validation for addNew and Update method?

Please Help me to solve this problem.

Vijay Prajapati


Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Vijay Prajapati

Hi Olivier,
I am using Struts2.0.6 and trying to implement Validator framework but
couldn't succeed. I have confution to give name of
actionname-validator.xmlfile.
I am here giving action cofiguration in Struts.xml



/adduser.jsp
/adduser.jsp

I have implemented UserManagementAction.java with 4
methods(addNew,Update,delete,execute) which return SUCCESS and INPUT. In
that i want validation in only 2 methods(addNew,Update).

If i would create UserManagementAction-validation.xml then validation is
executed for all 4 methods. but if i would create
UserManagementAction-addNew-validation.xml then it is not executed for
addNew method.

In my JSP there are 3 submit button with assigned method named
addNew,Update,delete.

So what should i do to execute validation for addNew and Update method?

Please Help me to solve this problem.

Vijay Prajapati



On 5/29/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote:


I think you have to add validation interceptor to your action.

Try something like that :


   
   Menu
   /jsp/Logon.jsp

   


Hope it helps ;)

2007/5/29, robinbajaj <[EMAIL PROTECTED]>:
>
>
>  >
>
> I am a Struts 2 newbie. The validation piece from Struts 2 bootstrap
> tutorial is
> not kicking in, and does not show the validation error messages even
when
> I
> provide invalid data.
>
> I started my this struts2 project using the the Maven Starter Archetype
> (struts2-archetype-starter)
> and my Logon-validation.xml is located src/main/resources folder, which
> gets
> copied in Web-inf/classes folder on deployment (done through mvn
> jetty:run).
>
> I am trying to following this link from Struts2 bootstrap tutorial
> http://struts.apache.org/2.x/docs/validating-input.html
>
> and have an issue at the Validation Input piece.
>
> I have created my Logon.java (my action), my logon.jsp and correctly
> mapped
> them in struts.xml
>
> Here's my struts.xml code.
> http://rafb.net/p/KG8ELQ25.html
>
> Here's my Logon.java
> http://rafb.net/p/vNR89E61.html
>
> Here's my Logon.jsp
> http://rafb.net/p/rOZl5r57.html
>
> Here's my Logon-Validation.xml
> http://rafb.net/p/FToVf186.html
>
> I give in empty username and password and hit submit, and get returned
to
> the Logon.jsp without showing the error messages. Can someone please
point
> out what's wrong. ??
>
>
> --
> View this message in context:
>
http://www.nabble.com/-s2--Validation-does-not-work-in-Struts-2-basic-project-tf3830792.html#a10845117
> 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: Optiontransferselect button customization.

2007-05-27 Thread Vijay Prajapati

Jeromy,
I have done it. Thank you very much for your efforts to provide me a
solution.

Vijay


On 5/25/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Vijay,

For the last time, the doubleId attribute of optiontransferselect works
in struts 2.0.6.  I provided you with code from a live system that uses
it to set the style of the second select as an ALTERNATIVE to
doubleCssClass and doubleCssStyle.
The doubleCssClass and doubleCssStyle attributes do NOT work with struts
2.0.6 as mentioned in the previous emails.  That issue was kindly fixed
by Musachy in 2.0.8 as stated in WW-1752.

If you don't understand what an html id is and how to use CSS with that,
please read about the "id selector" at
http://www.w3schools.com/css/css_syntax.asp
If you don't understand what WW-1752 means, this is a reference to the
issue number reported on JIRA at
https://issues.apache.org/struts/browse/WW-1752

Good luck,
Jeromy Evans

Vijay Prajapati wrote:
> Jeromy,
>This can not worked according to your suggestion. There are bug in
> Struts 2.0.6.
> This bug is solved in Struts 2.0.8 and still this version in development
> mode. So whenever it will relese then It would be solved.
>
> Just try it and if u have other solution then tell me.
>
> Vijay
> On 5/24/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> Vijay, I'm guessing you've already moved on from this, but the example
>> below is how you can use the doubleId attribute of
>>  to assign an html ID to the second select and
>> assign styles to that select using CSS.  The code you have quoted is an
>> extract from the stylesheet.  To reiterate, this is how to do it
WITHOUT
>> doubleCssClass and doubleCssStyle (WW-1752).
>>
>> Vijay Prajapati wrote:
>> > Jeromy,
>> >  Please try to use doubleCssClass and doubleCssStyle attribute in
>> >  in your production JSP. It won't work for
>> second
>> > list.
>> > You haven't use both of them attribute and how could you generate
>> given
>> > below code in your JSP.
>> > #userCompaniesAssigned {
>> >   width: 300px;
>> >}
>> >
>> >#userCompaniesNotAssigned {
>> >  width: 300px;
>> >   }
>> >
>> >
>> >
>> >
>> >
>> > On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hmm... I use 2.0.6.
>> >>
>> >> The wiki at
>> http://struts.apache.org/2.x/docs/optiontransferselect.html
>> >> lists doubleId as an attribute, it's definitely included in the
>> >> OptionTransferSelect class and OptionTransferSelectTag class (in
>> >> AbstractDoubleListTag) and it's definitely referenced in the
>> >> optiontransferselect.ftl template for the simple theme and above.
>> >>
>> >> I've encountered bug with optiontransferselect in 2.0.6 but it
>> doesn't
>> >> affect this particular issue.
>> >>
>> >> In your email you typed 'doubled' instead of 'doubleId'.  I can't
>> think
>> >> of what else it could be.
>> >>
>> >> Here is some production JSP that works:
>> >>
>> >> > >>  leftTitle="Grant Access to"
>> >>  rightTitle="Deny Access to"
>> >>  name="companiesAssigned"
>> >>  list="companiesAssignedList"
>> >>  listKey="key" listValue="description"
>> >>  id="userCompaniesAssigned"
>> >>  doubleName="companiesNotAssigned"
>> >>  doubleList="companiesNotAssignedList"
>> >>  doubleListKey="key" doubleListValue="description"
>> >>  doubleId="userCompaniesNotAssigned"
>> >>  allowAddAllToLeft="true"
>> >>  allowAddAllToRight="true"
>> >>  allowSelectAll="false"
>> >>  allowUpDownOnLeft="false"
>> >>  allowUpDownOnRight="false"/>
>> >>
>> >> and the CSS that sets the style of the two generated selects:
>> >> #userCompaniesAssigned {
>> >>width: 300px;
>> >> }
>> >>
>> >> #userCompaniesNotAssigned {
>> >>width: 300px;
>> >> }
>> >>
>> >> and an extract of the generated HTML:
>> >> 
>> >> 
>> >> 
>> >>Grant Access to
>> >> &

Re: Optiontransferselect button customization.

2007-05-24 Thread Vijay Prajapati

Jeromy,
   This can not worked according to your suggestion. There are bug in
Struts 2.0.6.
This bug is solved in Struts 2.0.8 and still this version in development
mode. So whenever it will relese then It would be solved.

Just try it and if u have other solution then tell me.

Vijay
On 5/24/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Vijay, I'm guessing you've already moved on from this, but the example
below is how you can use the doubleId attribute of
 to assign an html ID to the second select and
assign styles to that select using CSS.  The code you have quoted is an
extract from the stylesheet.  To reiterate, this is how to do it WITHOUT
doubleCssClass and doubleCssStyle (WW-1752).

Vijay Prajapati wrote:
> Jeromy,
>  Please try to use doubleCssClass and doubleCssStyle attribute in
>  in your production JSP. It won't work for
second
> list.
> You haven't use both of them attribute and how could you generate given
> below code in your JSP.
> #userCompaniesAssigned {
>   width: 300px;
>}
>
>#userCompaniesNotAssigned {
>  width: 300px;
>   }
>
>
>
>
>
> On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> Hmm... I use 2.0.6.
>>
>> The wiki at http://struts.apache.org/2.x/docs/optiontransferselect.html
>> lists doubleId as an attribute, it's definitely included in the
>> OptionTransferSelect class and OptionTransferSelectTag class (in
>> AbstractDoubleListTag) and it's definitely referenced in the
>> optiontransferselect.ftl template for the simple theme and above.
>>
>> I've encountered bug with optiontransferselect in 2.0.6 but it doesn't
>> affect this particular issue.
>>
>> In your email you typed 'doubled' instead of 'doubleId'.  I can't think
>> of what else it could be.
>>
>> Here is some production JSP that works:
>>
>> >  leftTitle="Grant Access to"
>>  rightTitle="Deny Access to"
>>  name="companiesAssigned"
>>  list="companiesAssignedList"
>>  listKey="key" listValue="description"
>>  id="userCompaniesAssigned"
>>  doubleName="companiesNotAssigned"
>>  doubleList="companiesNotAssignedList"
>>  doubleListKey="key" doubleListValue="description"
>>  doubleId="userCompaniesNotAssigned"
>>  allowAddAllToLeft="true"
>>  allowAddAllToRight="true"
>>  allowSelectAll="false"
>>  allowUpDownOnLeft="false"
>>  allowUpDownOnRight="false"/>
>>
>> and the CSS that sets the style of the two generated selects:
>> #userCompaniesAssigned {
>>width: 300px;
>> }
>>
>> #userCompaniesNotAssigned {
>>width: 300px;
>> }
>>
>> and an extract of the generated HTML:
>> 
>> 
>> 
>>Grant Access to
>> > multiple="multiple">
>>My Company Pty
>> Ltd
>>
>>
>> 
>>
>> 
>> 
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesAssigned'),
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button">
>>> onclick="moveAllOptions(document.getElementById
('userCompaniesAssigned'),
>>
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button">
>> 
>> 
>>Deny Access to
>> > id="userCompaniesNotAssigned">
>> 
>> 
>> 
>> 
>>
>>
>>
>> Vijay Prajapati wrote:
>> > Jeromy,
>> >In which version it includes doubled attribute for second select.
I
>> am
>> > using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it
>> shows
>> > Bug in Optiontransferselect in version 2.0.6.
>> >  please send me code for it.
>> >
>> >
>> > Vija

Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave
  I have done it.
  Thank you.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> You can solve this problem without .

Oh, thanks; I thought I had to solve this with
 I sure am sorry it's taken me so long;
I'm a little slow sometimes.

> If you have any simple solution then let me know
ASAP

*sigh*

Is this for your job?

d.




Pinpoint
customers who are looking for what you sell.
http://searchmarketing.yahoo.com/

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




Re: [S2] needs refresh to work properly

2007-05-24 Thread Vijay Prajapati

Laurie,
I have done it. Thank you very much. I would like to appreciate your
efforts done for me.
I would like to work with you to solve problems. If possible then we would
meet u through net.

Vijay

On 5/25/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Perhaps something like the following, making use of the status info [1]
exposed by s:iterator:

  
  


  

  
  

L.

[1]

http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html

Vijay Prajapati wrote:
> Dave,
>
> Can you please send sample code to print matrix of 10 element from one
> list through iterator tag in Struts 2.0.6?
> I am here giving sample output..
>
>1   2   3  --- in 1st row of HTML table
>4   5   6  --- in 2nd row of same HTML table
>7   8   9  --- in 3rd row of same HTML table
>10  --- in 4th row of same HTML table
>
>
> Thank you,
> Vijay
>
> On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> > Is there Nested Iterator tag in Struts 2.0.6?
>>
>> I don't believe that one is necessary; you should be
>> able to arbitrarily nest  tags (I have
>> several cases where I do that with no issues).
>>
>> One thing to note is that if you need to access an
>> outer-iterator value you'd need to declare an id
>> attribute in the outer iterator and refer to it using
>> the "#" OGNL syntax within the inner iterator.
>>
>> Er... that made sense in my head :/
>>
>> d.
>>
>>
>>
>>
>>
Get
>>
>> the free Yahoo! toolbar and rest assured with the added security of
>> spyware
>> protection.
>> http://new.toolbar.yahoo.com/toolbar/features/norton/index.php
>>
>> -
>> 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]




Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave
   You can solve this problem without .
   If you have any simple solution then let me know ASAP

Thank you,
Vijay Prajapati


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>> If there are n elements in collection then there
>> would be many rows and in each rows 5 elements will

>> be display.

So... do you know of any way in Java to do something
every five times through a loop?

(I haven't used  so I don't know if it's
a better way to solve this problem as opposed to just
doing the simple test by hand.)

d.




Building
a website is a piece of cake. Yahoo! Small Business gives you all the tools
to get online.
http://smallbusiness.yahoo.com/webhosting

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




Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

update "#appStatus.index" instead of "#appStatus.incex"
On 5/24/07, Vijay Prajapati <[EMAIL PROTECTED]> wrote:


Dave,

 I am here giving my code on JSP. So please try to correct it.
I have 7 elements in collection and i have to show 5 elements in one row
and rest of the elements in second row. If there are n elements in
collection then there would be many rows and in each rows 5 elements will be
display.


   

   
  
 
   < s:url id="applicationmonitor" action ="
ViewApplicationAction.action">
  < s:param name="applicationName" value= "%{application}"/>
  
< p> 

   < s:else>-
   
  
  



< tr>
 <
s:actionmessage/>






On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> > If you have any solution then help me out.
>
> Seriously, I think I helped you already.
>
> Maybe if you explain where you're having issues coming
> up with the solution we can work our way through it.
>
> d.
>
>
>
>
> 

>
> 8:00? 8:25? 8:40? Find a flick in no time
> with the Yahoo! Search movie showtime shortcut.
> http://tools.search.yahoo.com/shortcuts/#news
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave,

I am here giving my code on JSP. So please try to correct it.
I have 7 elements in collection and i have to show 5 elements in one row and
rest of the elements in second row. If there are n elements in collection
then there would be many rows and in each rows 5 elements will be display.


  
   
  
 

  
 
 

   
  -
  
 
 




 <
s:actionmessage/>






On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> If you have any solution then help me out.

Seriously, I think I helped you already.

Maybe if you explain where you're having issues coming
up with the solution we can work our way through it.

d.






8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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




Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Al,
   I am getting values through List from Struts Action and based on that i
have to show values on JSPs. and i think Struts can do it.
If you have any solution then help me out.


On 5/24/07, Al Sutton <[EMAIL PROTECTED]> wrote:


Vijay,

You've been given a good hint about Struts can offer to help. If you feel
you need to improve the formatting maybe you should look for a JSP
formatting tag library and ask the question on their list.

Regards,

Al.

-Original Message-
From: Vijay Prajapati [mailto:[EMAIL PROTECTED]
Sent: 24 May 2007 13:48
To: Struts Users Mailing List
Subject: Re: Problem regarding  tag

Dave
   I want to print pattern which i have drawn in my first mail through
 tag.
As per your link it will shows 1,2,3,4,5 in row but i want to draw it in
row and column wise.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> --- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> > Can you please send sample code to print matrix of 10 element from
> > one
>
> Look at the  "status" attribute.
>
> http://struts.apache.org/2.x/docs/iterator.html
>
> See the last example regarding "#stat.index".
>
> d.
>
>
>
>
> __
> __Get the Yahoo! toolbar and be alerted to new email
> wherever you're surfing.
> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php
>
> -
> 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]




Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave,
I have 10 element in list() and i want to retrieve and to show them through
 tag on JSP. But not in one row but in given below style.
I am here giving sample output..

   1   2   3  --- in 1st row of HTML table
   4   5   6  --- in 2nd row of same HTML table
   7   8   9  --- in 3rd row of same HTML table
   10  --- in 4th row of same HTML table

There  might be more element so based on that row will be increased.
So do you have any code or idea to solve this problem?
Please reply me ASAP

On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> I want to print pattern which i have drawn in my
> first mail through  tag.
>   As per your link it will shows 1,2,3,4,5 in row
> but i want to draw it in row and column wise.

So how might you go about solving that?

You have #stat.index. You have the  tag.

There must be some way of combining the two to
implement behavior based on some test of #stat.index.

d.




Need
a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

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




Re: Problem regarding tag

2007-05-24 Thread Vijay Prajapati

Dave
   I want to print pattern which i have drawn in my first mail through
 tag.
 As per your link it will shows 1,2,3,4,5 in row but i want to draw it in
row and column wise.

Vijay


On 5/24/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> Can you please send sample code to print matrix of
> 10 element from one

Look at the  "status" attribute.

http://struts.apache.org/2.x/docs/iterator.html

See the last example regarding "#stat.index".

d.




Get
the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

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




Problem regarding tag

2007-05-23 Thread Vijay Prajapati

Hi All,
Can you please send sample code to print matrix of 10 element from one
list through iterator tag in Struts 2.0.6?
I am here giving sample output..

   1   2   3  --- in 1st row of HTML table
   4   5   6  --- in 2nd row of same HTML table
   7   8   9  --- in 3rd row of same HTML table
   10  --- in 4th row of same HTML table

I want to show this in HTML through  tag in Struts 2.0.6.

Thank you,
Vijay


Re: [S2] needs refresh to work properly

2007-05-23 Thread Vijay Prajapati

Dave,

Can you please send sample code to print matrix of 10 element from one
list through iterator tag in Struts 2.0.6?
I am here giving sample output..

   1   2   3  --- in 1st row of HTML table
   4   5   6  --- in 2nd row of same HTML table
   7   8   9  --- in 3rd row of same HTML table
   10  --- in 4th row of same HTML table


Thank you,
Vijay

On 5/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vijay Prajapati <[EMAIL PROTECTED]> wrote:
> Is there Nested Iterator tag in Struts 2.0.6?

I don't believe that one is necessary; you should be
able to arbitrarily nest  tags (I have
several cases where I do that with no issues).

One thing to note is that if you need to access an
outer-iterator value you'd need to declare an id
attribute in the outer iterator and refer to it using
the "#" OGNL syntax within the inner iterator.

Er... that made sense in my head :/

d.




Get
the free Yahoo! toolbar and rest assured with the added security of spyware
protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

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




Re: [S2] needs refresh to work properly

2007-05-23 Thread Vijay Prajapati

Hi,
  Is there Nested Iterator tag in Struts2.0.6?
I want to show matrix of list value  through Iterator tag in HTML Table. So
is it possible?
I am here giving example which shows values in table form  from list.
  List imageList= new ArrayList(10);
images should show like below in HTML table.
 imageList.get(0)   imageList.get(1)   imageList.get(2)
 imageList.get(3)   imageList.get(4)   imageList.get(5)
 imageList.get(6)   imageList.get(7)   imageList.get(8)
 imageList.get(9)

Please Help me if any one has solutions for it.

Vijay
On 5/8/07, Diego Yasuhiko Kurisaki <[EMAIL PROTECTED]> wrote:


Hi i've written the following in a JSP.



   ${ca.name}
   ${ca.description}
   remove
   edit



I have a method in my action called getClients.

When i first load the page, the iterator tag generates the exact number of
rows of the list that is returned by the getClients method.
But the EL ${ca.name} and ${ca.description} doesn't return any value until
a
refresh.

I've tried then putting a breakpoint inside the getName and getDescription
methods, it seens that the methods are being called just after the first
refresh.

Looks like i'm doing something very wrong, am i not supposed to use EL
inside ? What should i use then?
--
[]'s Diego Yasuhiko Kurisaki



Re: Optiontransferselect button customization.

2007-05-23 Thread Vijay Prajapati

Jeromy,
 Please try to use doubleCssClass and doubleCssStyle attribute in
 in your production JSP. It won't work for second
list.
You haven't use both of them attribute and how could you generate given
below code in your JSP.
#userCompaniesAssigned {
  width: 300px;
   }

   #userCompaniesNotAssigned {
 width: 300px;
  }





On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


Hmm... I use 2.0.6.

The wiki at http://struts.apache.org/2.x/docs/optiontransferselect.html
lists doubleId as an attribute, it's definitely included in the
OptionTransferSelect class and OptionTransferSelectTag class (in
AbstractDoubleListTag) and it's definitely referenced in the
optiontransferselect.ftl template for the simple theme and above.

I've encountered bug with optiontransferselect in 2.0.6 but it doesn't
affect this particular issue.

In your email you typed 'doubled' instead of 'doubleId'.  I can't think
of what else it could be.

Here is some production JSP that works:



and the CSS that sets the style of the two generated selects:
#userCompaniesAssigned {
   width: 300px;
}

#userCompaniesNotAssigned {
   width: 300px;
}

and an extract of the generated HTML:



   Grant Access to

   My Company Pty
Ltd






   
       
   
   


   Deny Access to








Vijay Prajapati wrote:
> Jeromy,
>In which version it includes doubled attribute for second select. I
am
> using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it
shows
> Bug in Optiontransferselect in version 2.0.6.
>  please send me code for it.
>
>
> Vijay
>
>
> On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> optiontransferselect includes the doubleId attribute for the second
>> select.  Your CSS can reference that ID.
>>
>> To change the order of the buttons you'll need to create your own
>> optiontransferselect.ftl template based on the existing one.
>>
>> Vijay Prajapati wrote:
>> > Hi,
>> >This is Vijay and currently using Struts2.0.6 production viersion
>> > in my
>> > application development.
>> > I have been used almost all tags in Struts2.0.6 but there are problem
>> > in > > optiontransferselect> tag. It doesn't include cssClass and cssStyle
of
>> > Second Select box at run time.
>> > So Is there any solution for it?
>> > If any one has solved this problem in new version then please let me
>> > know.
>> > Even I want to change order of left move and right move button so can
>> > i do
>> > it?
>> >
>> > I am here giving code for this tag.
>> >
>> > > multiple="true"
>> > leftTitle="%{getText('addgroupmanager.apceform.allSystems')}"
>> > doubleName="groupSystems"
>> > doubleList="systemgroup" doubleMultiple ="true"
>> rightTitle="%{getText('
>> > addgroupmanager.apceform.groupsystems ')}"
>> > buttonCssClass="formInputButton"
>> > allowAddToRight ="true" addToRightLabel="%{'> >'}"
>> allowAddToLeft="true"
>> > addToLeftLabel="%{' < <'}" allowUpDownOnLeft="false"
>> > allowUpDownOnRight="false"
>> > allowAddAllToLeft="false" allowAddAllToRight= "false"
>> > allowSelectAll="false"
>> > required= "true"/>
>> >
>> > Please help me ASAP.
>> >
>> > Thank you,
>> > Vijay Prajapati
>> >
>> >
>> > On 4/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Felipe Rodrigues wrote:
>> >> > Hi guys,
>> >> >
>> >> > Can I somehow change the button (e.g. addAllToLeft) of a
>> >> > Optiontransferselect to some image? I imagine it can be done by
>> >> changing
>> >> the
>> >> > ftl, but I'd like some clues to do that.
>> >>
>> >> For some documentation on themes and extending/customizing them, see
>> >> here:
>> >>
>> >> http://struts.apache.org/2.x/docs/themes-and-templates.html
>> >> http://struts.apache.org/2.x/docs/extending-themes.html
>> >>
>> >> > Would be great to define some id
>> >> > for these buttons, then we could change it by css.
>> >> > How about that?
>> >>
>> >> I don't know off hand what the markup looks like for this component,
>&

Re: Optiontransferselect button customization.

2007-05-22 Thread Vijay Prajapati

Jeromy,
   In which version it includes doubled attribute for second select. I am
using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it shows
Bug in Optiontransferselect in version 2.0.6.
 please send me code for it.


Vijay


On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:


optiontransferselect includes the doubleId attribute for the second
select.  Your CSS can reference that ID.

To change the order of the buttons you'll need to create your own
optiontransferselect.ftl template based on the existing one.

Vijay Prajapati wrote:
> Hi,
>This is Vijay and currently using Struts2.0.6 production viersion
> in my
> application development.
> I have been used almost all tags in Struts2.0.6 but there are problem
> in  optiontransferselect> tag. It doesn't include cssClass and cssStyle of
> Second Select box at run time.
> So Is there any solution for it?
> If any one has solved this problem in new version then please let me
> know.
> Even I want to change order of left move and right move button so can
> i do
> it?
>
> I am here giving code for this tag.
>
>  leftTitle="%{getText('addgroupmanager.apceform.allSystems')}"
> doubleName="groupSystems"
> doubleList="systemgroup" doubleMultiple ="true" rightTitle="%{getText('
> addgroupmanager.apceform.groupsystems ')}"
> buttonCssClass="formInputButton"
> allowAddToRight ="true" addToRightLabel="%{'> >'}" allowAddToLeft="true"
> addToLeftLabel="%{' < <'}" allowUpDownOnLeft="false"
> allowUpDownOnRight="false"
> allowAddAllToLeft="false" allowAddAllToRight= "false"
> allowSelectAll="false"
> required= "true"/>
>
> Please help me ASAP.
>
> Thank you,
> Vijay Prajapati
>
>
> On 4/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>>
>> Felipe Rodrigues wrote:
>> > Hi guys,
>> >
>> > Can I somehow change the button (e.g. addAllToLeft) of a
>> > Optiontransferselect to some image? I imagine it can be done by
>> changing
>> the
>> > ftl, but I'd like some clues to do that.
>>
>> For some documentation on themes and extending/customizing them, see
>> here:
>>
>> http://struts.apache.org/2.x/docs/themes-and-templates.html
>> http://struts.apache.org/2.x/docs/extending-themes.html
>>
>> > Would be great to define some id
>> > for these buttons, then we could change it by css.
>> > How about that?
>>
>> I don't know off hand what the markup looks like for this component,
but
>> that may already be possible with the appropriate selectors. If not,
>> customize the theme and make it so :-)
>>
>> L.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> 
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date:
21/05/2007 2:01 PM
>


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




Re: Optiontransferselect button customization.

2007-05-21 Thread Vijay Prajapati

Hi,
   This is Vijay and currently using Struts2.0.6 production viersion in my
application development.
I have been used almost all tags in Struts2.0.6 but there are problem in  tag. It doesn't include cssClass and cssStyle of
Second Select box at run time.
So Is there any solution for it?
If any one has solved this problem in new version then please let me know.
Even I want to change order of left move and right move button so can i do
it?

I am here giving code for this tag.



Please help me ASAP.

Thank you,
Vijay Prajapati


On 4/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:


Felipe Rodrigues wrote:
> Hi guys,
>
> Can I somehow change the button (e.g. addAllToLeft) of a
> Optiontransferselect to some image? I imagine it can be done by changing
the
> ftl, but I'd like some clues to do that.

For some documentation on themes and extending/customizing them, see here:

http://struts.apache.org/2.x/docs/themes-and-templates.html
http://struts.apache.org/2.x/docs/extending-themes.html

> Would be great to define some id
> for these buttons, then we could change it by css.
> How about that?

I don't know off hand what the markup looks like for this component, but
that may already be possible with the appropriate selectors. If not,
customize the theme and make it so :-)

L.


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




Re: Good idea of installing a file on host machine

2007-05-09 Thread Vijay Prajapati

can we user HIDEFOCUS attribute in  tag in Struts2.0.6?

Vijay Prajapati


problem in optiontransferselect tag in Struts2.0.6

2007-05-07 Thread Vijay Prajapati

Hi,
   This is Vijay and currently using Struts2.0.6 production viersion in my
application development.
I have been used almost all tags in Struts2.0.6 but there are problem in
 tag. It doesn't include cssClass and cssStyle of
Second Select box at run time.
So Is there any solution for it?
If any one has solved this problem in new version then please let me know.
Even I want to change order of left move and right move button so can i do
it?

I am here giving code for this tag.



Please help me ASAP.

Thank you,
Vijay Prajapati


RE: Regarding dynamic radio button..

2007-02-20 Thread Vijay Prajapati
Hi Tim,
   Could you please send me your code with nested tag so I can get
something from it.

Thank you,
Vijay Prajapati

-Original Message-
From: Tim Williams [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 20, 2007 8:39 PM
To: Struts Users Mailing List
Subject: Re: Regarding dynamic radio button..

On 2/20/07, Vijay Prajapati <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am using Struts2.0.1.
>
> I have created groups of 3 dynamic radiobuttons through iterator(Array
List) tag. But I have to give different names to these groups. I am here
giving code which I have been written in my jsp.
>
>
>
> 
>
>  
>
> 
>
> 
>
> 
>
>  
>
> 
>
>
>
> Here "groupname" is collection(ArrayList which store
groupname(String)) in Action class. So can I user name as value of
collection so every radio button would have different name as per
collection value?
>
>
>
> So Help me to assign different names for each radio button group.

I'm doing something similiar using the nested tags.  It provides the
unique naming for you. I explicitly create the radio buttons with the
nested:radio tag though.  I use nested:iterate in the same way you use
s:iterate.  Since you have to pass the list into the radio tags, I
reckon it wouldn't hurt for you to also explicitly list out the
buttons.  Anyway, if you have any flexibility, you may want to take a
look at the nested tags before trying to do it yourself.

--tim

-
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]



Regarding dynamic radio button..

2007-02-20 Thread Vijay Prajapati
I am using Struts2.0.1.
I have created groups of 3 dynamic radiobuttons through iterator(Array
List) tag. But I have to give different names to these groups. I am here
giving code which I have been written in my jsp.
 

 



 

 
Here “groupname” is collection(ArrayList which store groupname(String))
in Action class. So can I user name as value of collection so every
radio button would have different name as per collection value?
 
So Help me to assign different names for each radio button group.
 
With Regards,

| Vijay Prajapati |  
| Sr. Software Engineer |  
| Real Soft (Intl) Pvt. Ltd, Vadodara  | 
| SEI-CMM Level IV & ISO 9001:2000 Company  |  
|  Phone: (0265) 5563097, 5598758, 5598626, 5598630  |  
Cell No: +91 9898149407
 <mailto:[EMAIL PROTECTED] >
[EMAIL PROTECTED]