Overriding Struts UI Controls

2008-12-28 Thread Narayana S
Hi, i am overriding the struts UI controls for my role based UI rendering. based on user role i have to decide few attributes of UI component like editability,visibility etc. for that i have implemented logic required. to achieve this i am extending TextFieldTag and in the overriding method d

Action Problem ....

2008-03-28 Thread Narayana S
Hi, i am having one link in a page. when i click on the link, i am going to the other page with some request level attribute. in the second page i have one update button, when i press that button, after performing some action and should return back to the 1st page along with same reques

Extending Struts 2 controls

2008-06-05 Thread Narayana S
Hi, in my application, i have a requirement of implementing field level customization, like locking the field, hiding the field etc.. to achieve this i am planning to extends "struts-tags" tag library functionality. can any one give any idea of how to do this? Thanks in advance.

Re: Extending Struts 2 controls

2008-06-05 Thread Narayana S
.views.jsp.ui.TextFieldTag*, i want to add a new attribute to the text field tag. can you tell me, how i can implement this? Thanks in advance. On Thu, Jun 5, 2008 at 6:45 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Thu, 6/5/08, Narayana S <[EMAIL PROTECTED]> wrote: > >

Struts Themes Problem - help

2008-06-22 Thread Narayana S
Hi, i am new to struts 2, developed sample application that is using resource bundle, i could configure application and labels are perfectly displayed with the values retrived from the resource bundle. The problem is here struts 2 is applying it's own styles to my page, i want to give my

Re: Struts Themes Problem - help

2008-06-22 Thread Narayana S
Newton <[EMAIL PROTECTED]> wrote: > --- On Sun, 6/22/08, Narayana S <[EMAIL PROTECTED]> wrote: > > The problem is here struts 2 is applying it's own styles to > > my page, i want to give my own styles instead of using struts > > default styles, > > The e

my Own CSS

2008-06-23 Thread Narayana S
Hi, i used struts 2 default theme to develop the pages. but recently i got the CSS from the designer now i need to apply those styles to my project. the problem is when i change theme to simple, it is not letting me to read values from properties file(Resource bundle). how can i apply my own

Simple Theme - Internationalization problem

2008-06-23 Thread Narayana S
Hi, i am applying simple theme for my struts 2 page, when the theme is default it could read values from resource bundle, after i changed theme to simple, it couldn't read the values from the resource bundle. --- This is how i am creating the form. am i missing any thing? please help

Re: Struts Themes Problem - help

2008-06-24 Thread Narayana S
given ( like ) the label is not rendered!! can you help me on solving this >? On Mon, Jun 23, 2008 at 11:18 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Narayana S wrote: > >> Hi Dave, >> >> thanks for your reply, but when i use simple theme, my application

internationalization problem..

2008-06-24 Thread Narayana S
Hi, i am applying simple theme for my struts 2 page, when the theme is default it could read values from resource bundle, after i changed theme to simple, it couldn't read the values from the resource bundle. --- This is how i am creating the form. am i missing any thing? please help

Re: internationalization problem..

2008-06-25 Thread Narayana S
Hi, please reply, i was kind of stuck because of this issue,. On Wed, Jun 25, 2008 at 9:20 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > i am applying simple theme for my struts 2 page, when the theme is > default it could read values from resource bundl

Fwd: Struts Themes Problem - help

2008-06-25 Thread Narayana S
Hi Laurie / Dave, can you please help on this? -- Forwarded message -- From: Narayana S <[EMAIL PROTECTED]> Date: Tue, Jun 24, 2008 at 3:12 PM Subject: Re: Struts Themes Problem - help To: Struts Users Mailing List , [EMAIL PROTECTED] Hi

Re: Struts Themes Problem - help

2008-06-26 Thread Narayana S
o generate no label (because the simple theme doesn't do > that). If that's what you're seeing, that's the correct behaviour. If you > are seeing something different, you need to describe exactly what that is. > > L. > > > Narayana S wrote: > >> Hi laur

Re: Struts Themes Problem - help

2008-06-29 Thread Narayana S
, 6/27/08, Narayana S <[EMAIL PROTECTED]> wrote: > > but here it introduced one more problem, with the xhtml > > theme we get the field level validation error messages below > > the individual control, but the simple theme is not giving any > > validation error message

Validation doubt

2008-06-30 Thread Narayana S
Hi, as per my understanding, we can implement validations in struts 2 in the following ways... 1. overriding validate() method in Action class 2. writing ActionClass-validation.xml file 3. using validator annotations validate method implements declarative security, ActionClass-valication.xml

Re: Validation doubt

2008-06-30 Thread Narayana S
Hi Jeromy and Lukasz, Thanks for your reply, the information provided by you is really helpful. i could understand well about validation framework with your explanation. Thanks a lot. On Mon, Jun 30, 2008 at 1:45 PM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > Narayan

Customizing CSS

2008-07-10 Thread Narayana S
Hi, as per my requirement, i have to apply two different colors to alternate rows.can any one guide me how to extend theme to implement this?

Re: Customizing CSS

2008-07-13 Thread Narayana S
Hi, Thanks for your reply, but i am talking about UI screen, not a table display. in the screen itself for every control i want to apply an alternate back ground color. for example these two should come with two different background colors. On Thu, Jul 10, 2008 at 3:18 PM, Narayana

Extending Struts Controls - problem

2008-07-13 Thread Narayana S
Hi, I have extended Simple theme (by modifying XHTML theme), implemented the column span for every control as given below. it is working fine. Now to pass these parameters directly within the textfield tag, i have extended org.apache.struts2.views.jsp.ui.TextFieldTag and cr

Re: Customizing CSS

2008-07-14 Thread Narayana S
> Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > -Original Message- > From: Narayana S [mailto:[EMAIL PROTECTED] > Sent

Re: Extending Struts Controls - problem

2008-07-14 Thread Narayana S
any one please reply to this... i am kind of stucked On Mon, Jul 14, 2008 at 11:49 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > I have extended Simple theme (by modifying XHTML theme), > implemented the column span for every cont

an issue with my Action class - help me

2008-07-15 Thread Narayana S
Hi, I am new to struts 2. my page is having a list which is dynamically generated by action, so while calling the jsp page itself from a menu, I am calling URL "/mymodule1/EditEmployee.action", which is mapped to EditEmplyeeAction.java. first time when i am generating the page I am generat

Re: an issue with my Action class - help me

2008-07-15 Thread Narayana S
Thanks Dave and Lukasz, i got the concept, and solved the issue. Thank you very much. On Tue, Jul 15, 2008 at 4:47 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Tue, 7/15/08, Narayana S <[EMAIL PROTECTED]> wrote: > > I am new to struts 2. my page i

Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, In my form I have employee number, name, and roles, here employee number and name are text fields and roles is a checkboxlist, to generate the list boxes i had a map called rolesMap in my action class, as well i have a set called userRoles that specifies the items to be selected. *jsp*

Re: Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, Please discard this email. as my action mapping is wrong it is behaving like this, now i could fix the issue. Sorry. On Thu, Jul 17, 2008 at 4:03 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > In my form I have employee number, name, and roles, here employee > n

disabling textfield....problem

2008-07-21 Thread Narayana S
Hi, i have a text field, with disabled property set to TRUE, and when i coming back to the same page with some error messages for the other fields, it is missing the textfield value, it is not retaining like the non-disabled fields where i am missing? plz help me..

Re: disabling textfield....problem

2008-07-21 Thread Narayana S
:42 PM > To: Struts Users Mailing List > Subject: Re: disabling textfieldproblem > > According to html, browser will not send the disabled fields to the > server along with the request headers. So you've to send that value in > the form of a hidden value. > > Regards,

Tree Control events problem..

2008-08-07 Thread Narayana S
Hi, in my project i need to use a tree control, i have started looking at tree tag of struts, but though i wrote some event handle, it is not at all executing any events. he is the part of code... Showcase - UI Tag Example - Tree Example (Static) * function treeNodeSelected(

Re: Tree Control events problem..

2008-08-07 Thread Narayana S
Did any one see this mail ? :( On Thu, Aug 7, 2008 at 12:52 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > in my project i need to use a tree control, i have started looking > at tree tag of struts, but though i wrote some event handle, it is not at > all execut

DoJo Plugin for struts 2.0.11

2008-08-19 Thread Narayana S
Hi, i am right now working on struts 2 tree component, as we have some issues with the events of this tree version, some where i found that using struts pojo plug-in will solve this issue, but i couldnt find any url to download the dojo plugin, can you please tell me how and where i can

Re: DoJo Plugin for struts 2.0.11

2008-08-21 Thread Narayana S
is recognising struts-tags but not struts-dogo-tags thanks in advance. On Wed, Aug 20, 2008 at 4:00 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 8/20/08, Narayana S wrote: > > i am right now working on struts 2 tree component, as we have some > > issues with

Re: DoJo Plugin for struts 2.0.11

2008-08-21 Thread Narayana S
> As to dojo plug-in, for example dojo plugin can be found inside the > struts-2.1.2-lib.zip archive which can be downloaded from the link above. > And you must put the struts2-dojo-plugin-2.1.2.jar file under your lib (ie. > /WEB-INF/lib) folder. > ** > Regards. > > On Thu,

Struts 2.1 Tree Problem

2008-08-21 Thread Narayana S
Hi, i was using struts 2.0.11 and we know tree control is having some issues in that version, so i want to migrate to struts 2.1. for that i removed struts 2.0.11 jars and replaced them with 2.1 version files, and also copied struts-dojo-plugin-2.1.2.jar. still i couldn't trace the tree nod

Re: Struts 2.1 Tree Problem

2008-08-21 Thread Narayana S
Hello,,, Can any one please reply to this mail On Thu, Aug 21, 2008 at 7:05 PM, "Stephan Schröder" <[EMAIL PROTECTED]>wrote: > > some example i tried on struts-blank-2.1.2 it is working and recognizing > > events and responding. am i missing any imp" step in migration, is that >

Re: Struts 2.1 Tree Problem

2008-08-22 Thread Narayana S
Hi, Issue is solved and migration is successful with respect to tree control, i found solution in code pencil blog. Have a nice time. On Thu, Aug 21, 2008 at 6:44 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > >i was using struts 2.0.11 and we know tree co

Tree State Example

2008-09-04 Thread Narayana S
Hi, i am working with tree control, recently i have upgraded to version 2.1. tree control is working fine for me after up-gradation.but i want to retain the state of the tree between different requests. can any one give me some example code using version 2.1 to implement dojo functionality

Re: Tree State Example

2008-09-04 Thread Narayana S
Hi, Can any one please reply to this email ? On Thu, Sep 4, 2008 at 3:29 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > i am working with tree control, recently i have upgraded to version > 2.1. tree control is working fine for me after up-gradation.but i wa

Struts 2.1 Tree Problem

2008-09-10 Thread Narayana S
Hi, now i am working with tree control, when i load the tree i want to load it default extended and what ever the node id i pass that should be activated. how i can achieve this using struts 2.1 version. and one more thing is when i select a node in the jsp page itself i have to find out the pa

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
did any one see this email please help me On Thu, Sep 11, 2008 at 10:17 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > >now i am working with tree control, when i load the tree i want to load > it default extended and what ever the node id i pass that should be >

Re: Struts 2.1 Tree Problem

2008-09-11 Thread Narayana S
e most of us woke up. :-) > (I have no idea what the answer to your question is, I have not used the > tree control at all -- but what have you tried? Can you share your code > with > us so that we can help point you in the right direction?) > > jk > > On Thu, Sep 11, 2008 at 5:0

Re: Struts 2.1 Tree Problem

2008-09-12 Thread Narayana S
lient-side using javascript, > however. > On Fri, Sep 12, 2008 at 6:48 AM, Narayana S <[EMAIL PROTECTED]> > wrote: > > > Hi Jim, > > > >Thanks for your reply, tree control default shows only root > > node, but > > 1. i want it to be shown extended

Extending Struts 2 Tags

2008-09-18 Thread Narayana S
Hi, i have a requirement of extending the struts 2 control tags like text field, check box, select. i want to add a new attribute to the component, which will allows to identify certain properties like visibility, editability, label text from the database and render the component. to imple

Extending Struts Tags

2008-09-24 Thread Narayana S
Hi i missed my previous email about the same topic, one guy helped me to implement struts UI tag customization. i could extend the Bean and Tag classes to implement the required behavior. now based on some value from the database i want to stop rendering of the control itself. means for ex

Re: Extending Struts Tags

2008-09-25 Thread Narayana S
, doing a bunch of unneeded > comparison). But I think there's little you could do about that other than > possibly throwing you own exception which could arguably be better in > performance that those operations. > > Only a thought! > > > > Narayana S wrot

Tree default expanded ??

2008-09-26 Thread Narayana S
Hi Is it possible to display a tree expanded by default? I am using struts 2.1.2 dojo-plugin to create the tree structure. any one used tree...plz help me

Re: Tree default expanded ??

2008-09-30 Thread Narayana S
any one who worked on tree control plz give some helping hand On Fri, Sep 26, 2008 at 3:34 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi > Is it possible to display a tree expanded by default? > I am using struts 2.1.2 dojo-plugin to create the tree structure. any

Re: Tree default expanded ??

2008-09-30 Thread Narayana S
as I know, it is not possible to expand tree widget server-side. > Client-side, javascript can be used to open the tree, like so:var nodes = > dojo.widget.manager.getWidgetsByType('struts:StrutsTreeNode'); > for( var i=0; i < nodes.length; i++){ > nodes[i].expand(); >

Re: Tree default expanded ??

2008-10-07 Thread Narayana S
and(); >node.markSelected(); >document.DocumentListSelection.NodeID.value = <%= > request.getSession().getAttribute("PreselectedCategory") %>; >dojo.event.topic.publish('ListSelectionFilled'); > }); > Regards > Jan > > > > Von: Narayana S &

Re: Tree default expanded ??

2008-10-07 Thread Narayana S
; I don't know. One thing to try might be to run the expansion script after > you're sure the tree widget has been rendered. > Jukka > > On Wed, Oct 1, 2008 at 9:19 AM, Narayana S <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > Thanks for your rep

File Upload into database

2008-10-20 Thread Narayana S
Hi, i am new to struts 2, want to use file upload control. once the file is uploaded i want to store its content into the database, i didn't work on the file upload previously also. so any one can please tell me the best way to access the uploaded file and store that into database? any lin

Re: File Upload into database

2008-10-21 Thread Narayana S
Hi Thanks for your reply, but when i submit my form it is not setting value for the upload properties. this is how my code is ... -- in jsp -- in action private String uploadContentType; private String uploadFileName; private File upload; and getter setters for these properties. i am

Re: File Upload into database

2008-10-21 Thread Narayana S
yes this is the form tag... On Tue, Oct 21, 2008 at 4:25 PM, Ketil Holden <[EMAIL PROTECTED]>wrote: > Have you set enctype on the form element? > > Like this: > > ?? > > > -Original Message- > From: Narayana S [mailto:[EMAIL PROTECTED] > Sent:

Re: File Upload into database

2008-10-21 Thread Narayana S
-interceptor.html Thanks everyone. On Tue, Oct 21, 2008 at 4:25 PM, Narayana S <[EMAIL PROTECTED]> wrote: > yes > > enctype="multipart/form-data"> > > this is the form tag... > > > On Tue, Oct 21, 2008 at 4:25 PM, Ketil Holden <[EMAIL PROTECTED]>wro

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi Greg, Excellent work. i am looking for the same solution. i tried implementing your interceptor , but it is throwing exception ... "java.lang.UnsupportedOperationException: Don't use default servlet session". near session.setAttribute(ACTION_MESSAGES_KEY,actionMessages); can you h

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi, i am using apache Tomcat 6.0.3, struts 2.1.2, and jdk 1.6. can any one help me solving this issue? Thanks in advance. On Tue, Nov 4, 2008 at 7:06 PM, Greg Lindholm <[EMAIL PROTECTED]> wrote: > > > > Ganesh123 wrote: > > > > Excellent work. i am looking for the same solution.

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-05 Thread Narayana S
let > > session". > > Just use the session from ActionContext, don't use the servlet's. > > > > protected Map getSession() { > > return ActionContext.getContext().getSession();//from > > ActionContext > > here! > > } > > > >

Struts 2 - REST showcase

2008-11-12 Thread Narayana S
Hi, can any one please let me know where can i download struts 2 REST showcase examples zip? Thanks in advance.