Re: 2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation

2016-06-29 Thread Emi



Hello,

Upgrade 2.3.28.1 to 2.5.1.

Tried to start tomcat7.0.70, and got the following msg. Can someone 
let me know which jar(s) are missing/wrong version please?



SEVERE: Exception starting filter struts2:
java.lang.NoSuchMethodError: 
ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z
at 
com.opensymphony.xwork2.ognl.OgnlUtil.isArithmeticExpression(OgnlUtil.java:322)

at com.opensymphony.xwork2.ognl.OgnlUtil.access$100(OgnlUtil.java:49)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:292)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:382)

at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:287)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:610)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:171)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:198)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:185)
at 
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:58)
at 
com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:43)
at 
com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207)
at 
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:71)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1137)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:969)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:982)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1005)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:536)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:311)


at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)
at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:187)
at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)


at 
org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:897)
at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:437)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478)
at 
org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75)
at 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63)


at 
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)


at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745) 


Sorry forgot to check ognl. Found ognl-3.1.8.jar.

Used the wrong version.



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



2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation

2016-06-29 Thread Emi

Hello,

Upgrade 2.3.28.1 to 2.5.1.

Tried to start tomcat7.0.70, and got the following msg. Can someone let 
me know which jar(s) are missing/wrong version please?



SEVERE: Exception starting filter struts2:
java.lang.NoSuchMethodError: 
ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z
at 
com.opensymphony.xwork2.ognl.OgnlUtil.isArithmeticExpression(OgnlUtil.java:322)

at com.opensymphony.xwork2.ognl.OgnlUtil.access$100(OgnlUtil.java:49)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:292)
at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:287)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:382)

at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:287)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:610)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:171)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:198)
at 
com.opensymphony.xwork2.ognl.OgnlUtil.setProperties(OgnlUtil.java:185)
at 
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperties(OgnlReflectionProvider.java:58)
at 
com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:43)
at 
com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:207)
at 
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:71)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.lookupInterceptorReference(XmlConfigurationProvider.java:1137)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStack(XmlConfigurationProvider.java:969)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptorStacks(XmlConfigurationProvider.java:982)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadInterceptors(XmlConfigurationProvider.java:1005)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:536)
at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:311)


at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)
at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:187)
at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)


at 
org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:897)
at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:437)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:478)
at 
org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:75)
at 
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:63)


at 
org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at 
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
at 
org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)


at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)


Use: jdk8, tomcat7, spring 4.2.1, tiles3.0.5.

Thanks a lot!



Re: struts2-rest-plugin issues getting non-restful urls to cooperate

2016-06-29 Thread Ken McWilliams
I have not forgotten about this but in setting up a project I like
everything to work well, the restful urls and non-restful urls are more
less happy. My issue was with POST and PUT requests. The Action uses
model-driven, and with POST which calls create() all is well, while PUT
which calls update() and has almost identical code did not (there are a few
questions on StackOverflow with several different answers). The put method
also sets an id, and then decides to use model driven. I'm not sure what I
did wrong, anyways it somehow was solved out of frustration when I
re-implemented org.apache.struts2.rest.handler.ContentTypeHandler to use
FlexJson.

So a couple observations as a first time user of the struts2-rest-plugin:
- I like the Idea of this extension of conventions, adding constraints can
make you think along certain tried and true methods and make work faster.
- It would be nice if somehow this plugin directly required the conventions
plugin such that it also was able to incorporate the convention
annotations; that is, while these restful conventions are good being able
to override the result with a tiles result (and all the other conventions
overrides afforded with the well though out annotations provided by the
conventions plugin) would be particularly interesting.
- Since I couldn't get such annotations working I need non-restful urls to
render the views, which then call the service provided by the rest-plugin,
that really isn't a big deal.
- Back to results, the rest-plugin seems to favor ContentTypeHandlers...
which I was not familiar with until I ran into an issue where I didn't like
what it was producing. I found that I could recycle the code of my
FlexJsonResult type, if I used ActionContext to get the action (I forget
why right now, but there is a difference in method arguments) then I had
enough information to render what was needed.
- In using the rest-plugin for crud operations, I felt the need to create
interfaces so I would be forced/reminded of what needs to be implemented,
Struts2 has ActionSupport, it would be nice if similar interfaces already
existed for the rest-result type as there are a lot more methods which
typically need to be implemented.
- The documentation shows model driven, so I assume that is the suggested
method of use: I really don't like how the models type is required to be
Object because we are to support the index() method, which returns List
while the rest of the methods return T. So there are more often than not a
ternary operator in the getModel() method.





On Mon, May 30, 2016 at 12:18 AM, Lukasz Lenart 
wrote:

> 2016-05-27 17:41 GMT+02:00 Ken McWilliams :
> > I got it working but I think the documentation could be made with more
> > "hand holding". I'll post a "How to set up struts2 with conventions and
> > both restful and non-restful urls". Then self-answer  the question this
> > weekend with all the configuration and project set-up steps and then post
> > the link here for review, in-case there are any
> differences/recommendations
> > in setup.
>
> Great! Looking forward :)
>
>
> Best
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Sent from my C64 using a 300 baud modem


RE: jQuery query

2016-06-29 Thread Martin Gainty



> From: anamika.chouras...@gmail.com
> Date: Wed, 29 Jun 2016 13:57:56 +0530
> Subject: Re: jQuery query
> To: user@struts.apache.org
> 
> You need to put both textboxes of each group in one div, give this div an
> id and than user JQUEry inbuild function to toggle it
> 
> something like this
> $("#fieldGroup1").toggle(); on click event of "Field Group 1" link.
> $("#fieldGroup2").toggle(); on click event of "Field Group 2" link.
> 
>  cssStyle="width: 100%" tooltipIconPath="/images/icons/tooltip.gif">
> 
> 
> 
> Field
> Group 1
> 
> 
> **
>  requiredLabel="true" tooltip="%{getText('theBean.field1.tooltip')}"/>
> 
>  requiredLabel="true" tooltip="%{getText('theBean.field2.tooltip')}"/>
> 
> 
> 
> Field
> Group 2
> 
> 
> * *
>  requiredLabel="true" tooltip="%{getText('theBean.field3.tooltip')}"/>
MG>provided theBean is defined as variable in Action which holds accessors and 
mutators for field3,field4 so in your actionpublic class PatrickAction {private 
 Bean theBean; //theBean holds value, mutator and accessor for field3 and 
field4...MG>
> 
>  requiredLabel="true" tooltip="%{getText('theBean.field4.tooltip')}"/>
> 
> 
MG>since you will implement DIV..flip javascriptTooltip attribute to true..the 
default is false and your JS generateTooltip wont work

https://struts.apache.org/docs/div.html
> 
> On Wed, Jun 29, 2016 at 1:25 PM, Patrick Kelly <
> patrick.ke...@riverdynamics.com> wrote:
> 
> > correct
> >
> >
> > Patrick Kelly
> >
> > PatrickKelly
> > PrincipalConsultant
> > *River**Dynamics*
> >
> > E: patrick.ke...@riverdynamics.com  > >
> > W: www.riverdynamics.com 
> >
> > On 29/06/2016 5:48 PM, Anamika Chourasiya wrote:
> >
> >> Hi
> >>
> >> As per my understanding about the requirement, if the user clicks on the
> >> "Field Group 1"  field 1 and field 2 textboxes should get visible and if
> >> he
> >> again click on the same link they should get disappear. Same functionality
> >> for "Field Group 2". Am I right?
> >>
> >> On Wed, Jun 29, 2016 at 12:39 PM, Patrick Kelly <
> >> patrick.ke...@riverdynamics.com> wrote:
> >>
> >> Hi - I have a struts2 system (version 2.3.16) that contains many forms
> >>> that look like kind of like the example below.
> >>>
> >>> I want to use jquery to add some interactively to the the forms so the
> >>> user can click a link to show/hide all the fields within a field grouping
> >>> so that the heading is still visible but not the fields so the user can
> >>> view/edit just the portion of the form they want.
> >>>
> >>> Has anyone done this type of thing and could you provide the syntax
> >>> including the jquery function and the links to the function from within
> >>> the
> >>> form.
> >>>
> >>> I assume that this will need to use native jquery code rather than
> >>> anything that comes with the jquery struts2 plugin. Let me know if I have
> >>> that wrong.
> >>>
> >>> Thanks in advance.
> >>>
> >>>  >>> cssStyle="width: 100%" tooltipIconPath="/images/icons/tooltip.gif">
> >>>
> >>> 
> >>>  
> >>>  Field
> >>> Group 1
> >>>  
> >>> 
> >>>
> >>>  >>> requiredLabel="true" tooltip="%{getText('theBean.field1.tooltip')}"/>
> >>>
> >>>  >>> requiredLabel="true" tooltip="%{getText('theBean.field2.tooltip')}"/>
> >>>
> >>> 
> >>>  
> >>>  Field
> >>> Group 2
> >>>  
> >>> 
> >>>
> >>>  >>> requiredLabel="true" tooltip="%{getText('theBean.field3.tooltip')}"/>
> >>>
> >>>  >>> requiredLabel="true" tooltip="%{getText('theBean.field4.tooltip')}"/>
> >>>
> >>> 
> >>>
> >>>
> >>> --
> >>> Patrick Kelly
> >>>
> >>> PatrickKelly
> >>> PrincipalConsultant
> >>> *River**Dynamics*
> >>>
> >>> E: patrick.ke...@riverdynamics.com  >>> patrick.ke...@riverdynamics.com
> >>> W: www.riverdynamics.com 
> >>>
> >>>
> >>>
> >>
> >
> 
> 
> -- 
> Anamika Chourasiya
  

Re: jQuery query

2016-06-29 Thread Anamika Chourasiya
You need to put both textboxes of each group in one div, give this div an
id and than user JQUEry inbuild function to toggle it

something like this
$("#fieldGroup1").toggle(); on click event of "Field Group 1" link.
$("#fieldGroup2").toggle(); on click event of "Field Group 2" link.





Field
Group 1


**






Field
Group 2


* *






On Wed, Jun 29, 2016 at 1:25 PM, Patrick Kelly <
patrick.ke...@riverdynamics.com> wrote:

> correct
>
>
> Patrick Kelly
>
> PatrickKelly
> PrincipalConsultant
> *River**Dynamics*
>
> E: patrick.ke...@riverdynamics.com  >
> W: www.riverdynamics.com 
>
> On 29/06/2016 5:48 PM, Anamika Chourasiya wrote:
>
>> Hi
>>
>> As per my understanding about the requirement, if the user clicks on the
>> "Field Group 1"  field 1 and field 2 textboxes should get visible and if
>> he
>> again click on the same link they should get disappear. Same functionality
>> for "Field Group 2". Am I right?
>>
>> On Wed, Jun 29, 2016 at 12:39 PM, Patrick Kelly <
>> patrick.ke...@riverdynamics.com> wrote:
>>
>> Hi - I have a struts2 system (version 2.3.16) that contains many forms
>>> that look like kind of like the example below.
>>>
>>> I want to use jquery to add some interactively to the the forms so the
>>> user can click a link to show/hide all the fields within a field grouping
>>> so that the heading is still visible but not the fields so the user can
>>> view/edit just the portion of the form they want.
>>>
>>> Has anyone done this type of thing and could you provide the syntax
>>> including the jquery function and the links to the function from within
>>> the
>>> form.
>>>
>>> I assume that this will need to use native jquery code rather than
>>> anything that comes with the jquery struts2 plugin. Let me know if I have
>>> that wrong.
>>>
>>> Thanks in advance.
>>>
>>> >> cssStyle="width: 100%" tooltipIconPath="/images/icons/tooltip.gif">
>>>
>>> 
>>>  
>>>  Field
>>> Group 1
>>>  
>>> 
>>>
>>> >> requiredLabel="true" tooltip="%{getText('theBean.field1.tooltip')}"/>
>>>
>>> >> requiredLabel="true" tooltip="%{getText('theBean.field2.tooltip')}"/>
>>>
>>> 
>>>  
>>>  Field
>>> Group 2
>>>  
>>> 
>>>
>>> >> requiredLabel="true" tooltip="%{getText('theBean.field3.tooltip')}"/>
>>>
>>> >> requiredLabel="true" tooltip="%{getText('theBean.field4.tooltip')}"/>
>>>
>>> 
>>>
>>>
>>> --
>>> Patrick Kelly
>>>
>>> PatrickKelly
>>> PrincipalConsultant
>>> *River**Dynamics*
>>>
>>> E: patrick.ke...@riverdynamics.com >> patrick.ke...@riverdynamics.com
>>> W: www.riverdynamics.com 
>>>
>>>
>>>
>>
>


-- 
Anamika Chourasiya


Re: tiles, sitemesh, velocity and other template engines

2016-06-29 Thread Christoph Nenning
> From: Adam Brin 
> To: Struts Users Mailing List , 
> Date: 29.06.2016 07:39
> Subject: tiles, sitemesh, velocity and other template engines
> 
> Hi All,
>   I've been reviewing our templating implementation (currently 
sitemesh2)
> and noticed that it seems  like the three main template engines that
> Struts2 supports are all effectively unsupported, and implementation of
> sitemesh 3 (which has been barely updated since it was released seems
> stalled). What templating engines are others using, and are there
> alternatives that are better supported?  I wonder / worry about security
> issues among other things.
> 
> *Velocity:*
> last updated 2010 --
> http://mvnrepository.com/artifact/org.apache.velocity/velocity/1.7
> 
> *Tiles:*
> last updated 2014 --
> http://mvnrepository.com/artifact/org.apache.tiles/tiles-core
> 
> *Sitemesh 2:*
> Last updated 2009 -- 
http://mvnrepository.com/artifact/opensymphony/sitemesh
> 
> *Sitemesh 3: *(stalled - https://issues.apache.org/jira/browse/WW-4356)
> last updated  2015 - 
http://mvnrepository.com/artifact/org.sitemesh/sitemesh
> 
> thanks,
> 
> adam
> 


We use mainly Tiles2 with JSPs. In newer projects we are using Tiles3. 
There are occasions when we use Freemarker instead of JSP but that is 
rare.

I really love the new tiles-annotations that struts provides. With that I 
can reduce the size of tiles.xml to a minimum and annotate actions instead 
:)


Regards,
Christoph

This Email was scanned by Sophos Anti Virus


Re: jQuery query

2016-06-29 Thread Patrick Kelly

correct


Patrick Kelly

PatrickKelly
PrincipalConsultant
*River**Dynamics*

E: patrick.ke...@riverdynamics.com 
W: www.riverdynamics.com 

On 29/06/2016 5:48 PM, Anamika Chourasiya wrote:

Hi

As per my understanding about the requirement, if the user clicks on the
"Field Group 1"  field 1 and field 2 textboxes should get visible and if he
again click on the same link they should get disappear. Same functionality
for "Field Group 2". Am I right?

On Wed, Jun 29, 2016 at 12:39 PM, Patrick Kelly <
patrick.ke...@riverdynamics.com> wrote:


Hi - I have a struts2 system (version 2.3.16) that contains many forms
that look like kind of like the example below.

I want to use jquery to add some interactively to the the forms so the
user can click a link to show/hide all the fields within a field grouping
so that the heading is still visible but not the fields so the user can
view/edit just the portion of the form they want.

Has anyone done this type of thing and could you provide the syntax
including the jquery function and the links to the function from within the
form.

I assume that this will need to use native jquery code rather than
anything that comes with the jquery struts2 plugin. Let me know if I have
that wrong.

Thanks in advance.




 
 Field
Group 1
 







 
 Field
Group 2
 









--
Patrick Kelly

PatrickKelly
PrincipalConsultant
*River**Dynamics*

E: patrick.ke...@riverdynamics.com 








Re: jQuery query

2016-06-29 Thread Anamika Chourasiya
Hi

As per my understanding about the requirement, if the user clicks on the
"Field Group 1"  field 1 and field 2 textboxes should get visible and if he
again click on the same link they should get disappear. Same functionality
for "Field Group 2". Am I right?

On Wed, Jun 29, 2016 at 12:39 PM, Patrick Kelly <
patrick.ke...@riverdynamics.com> wrote:

> Hi - I have a struts2 system (version 2.3.16) that contains many forms
> that look like kind of like the example below.
>
> I want to use jquery to add some interactively to the the forms so the
> user can click a link to show/hide all the fields within a field grouping
> so that the heading is still visible but not the fields so the user can
> view/edit just the portion of the form they want.
>
> Has anyone done this type of thing and could you provide the syntax
> including the jquery function and the links to the function from within the
> form.
>
> I assume that this will need to use native jquery code rather than
> anything that comes with the jquery struts2 plugin. Let me know if I have
> that wrong.
>
> Thanks in advance.
>
>  cssStyle="width: 100%" tooltipIconPath="/images/icons/tooltip.gif">
>
> 
> 
> Field
> Group 1
> 
> 
>
>  requiredLabel="true" tooltip="%{getText('theBean.field1.tooltip')}"/>
>
>  requiredLabel="true" tooltip="%{getText('theBean.field2.tooltip')}"/>
>
> 
> 
> Field
> Group 2
> 
> 
>
>  requiredLabel="true" tooltip="%{getText('theBean.field3.tooltip')}"/>
>
>  requiredLabel="true" tooltip="%{getText('theBean.field4.tooltip')}"/>
>
> 
>
>
> --
> Patrick Kelly
>
> PatrickKelly
> PrincipalConsultant
> *River**Dynamics*
>
> E: patrick.ke...@riverdynamics.com  >
> W: www.riverdynamics.com 
>
>


-- 
Anamika Chourasiya


jQuery query

2016-06-29 Thread Patrick Kelly
Hi - I have a struts2 system (version 2.3.16) that contains many forms 
that look like kind of like the example below.


I want to use jquery to add some interactively to the the forms so the 
user can click a link to show/hide all the fields within a field 
grouping so that the heading is still visible but not the fields so the 
user can view/edit just the portion of the form they want.


Has anyone done this type of thing and could you provide the syntax 
including the jquery function and the links to the function from within 
the form.


I assume that this will need to use native jquery code rather than 
anything that comes with the jquery struts2 plugin. Let me know if I 
have that wrong.


Thanks in advance.

cssStyle="width: 100%" tooltipIconPath="/images/icons/tooltip.gif">




Field 
Group 1




requiredLabel="true" tooltip="%{getText('theBean.field1.tooltip')}"/>


requiredLabel="true" tooltip="%{getText('theBean.field2.tooltip')}"/>




Field 
Group 2




requiredLabel="true" tooltip="%{getText('theBean.field3.tooltip')}"/>


requiredLabel="true" tooltip="%{getText('theBean.field4.tooltip')}"/>





--
Patrick Kelly

PatrickKelly
PrincipalConsultant
*River**Dynamics*

E: patrick.ke...@riverdynamics.com 
W: www.riverdynamics.com