You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Srikanth Muthyala <sr...@iitc.com.au> on 2007/12/03 02:51:43 UTC
Struts tabbed panel
I am currently using Struts 2 with Ajax for Tabbed panel. I can create
and
load tabbedpanel showing a jsp page with a form for one of tabs. The form
action = "/some.action" is executed ok butthe issue is reload is shown in
its own new page rather than the as part of tab content.
How do I fix this? Please help.
Attached parts of codes....
<s:tabbedPanel id="rtb">
<s:div id="1" label="Administration" theme="ajax" labelposition="top">
<br>RTB Administration
</s:div>
<s:div id="admin" label="User" theme="ajax" href="setProfile.action"
refreshOnShow="true">
--->See here>>>> <jsp:include
page="/setProfileForm.do"></jsp:include>
</s:div>
<s:div id="prov" label="Provisioning" theme="ajax">
<jsp:include page="/pages/provisioningHome.jsp"></jsp:include>
</s:div>
</s:tabbedPanel>
<s:form action="/setProfile.do" method="POST">
<tr>
<td colspan="2">Set Profile</td>
</tr>
<tr>
<td colspan="2"><s:actionerror /><s:actionmessage/></td>
</tr>
<s:textfield name="userId" label="User Id" onfocus=""/>
<s:textfield name="name" label="User Name" />
<s:select list="profile" headerValue="Please Select" name="profile"
required="true" ></s:select>
<s:checkbox name="overWrite" label="Update (Please check this box if
you want to update existing profile)"></s:checkbox>
<s:submit value="Add or Update Profile" align="center" />
</s:form>
Regards,
Srikanth Muthyala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts tabbed panel
Posted by Srikanth Muthyala <sr...@iitc.com.au>.
Martin,
RefreshOnShow loads/refreshes the page when clicked on tab. I think its working fine for me. But if the page that is shown will contain a form with action, the result page is NOT shown in tab content that is the issue for me. It is loaded as individual jsp page.
Any suggestions for this????
Regards,
Srikanth Muthyala
----- Original Message -----
From: "Srikanth Muthyala" <sr...@iitc.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, 3 December 2007 01:21:28 PM (GMT+1000) Australia/Sydney
Subject: Re: Struts tabbed panel
Hi Martin,
I am using 2.0.9. IS that fixed in 2.0.9?
Regards,
Srikanth Muthyala
Snr Consultant
Innovative IT Consultants
Mobile: +61 401 544 199
Email: srikanth@iitc.com.au
www.iitc.com.au
----- Original Message -----
From: "Martin Gainty" <mg...@hotmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, 3 December 2007 01:17:11 PM (GMT+1000) Australia/Sydney
Subject: Re: Struts tabbed panel
tabbedPanel refreshOnShow has a bug in 2.0.5
which version are you implementing with?
M-
----- Original Message -----
From: "Srikanth Muthyala" <sr...@iitc.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, December 02, 2007 8:51 PM
Subject: Struts tabbed panel
I am currently using Struts 2 with Ajax for Tabbed panel. I can create
and
load tabbedpanel showing a jsp page with a form for one of tabs. The form
action = "/some.action" is executed ok butthe issue is reload is shown in
its own new page rather than the as part of tab content.
How do I fix this? Please help.
Attached parts of codes....
<s:tabbedPanel id="rtb">
<s:div id="1" label="Administration" theme="ajax" labelposition="top">
<br>RTB Administration
</s:div>
<s:div id="admin" label="User" theme="ajax" href="setProfile.action"
refreshOnShow="true">
--->See here>>>> <jsp:include
page="/setProfileForm.do"></jsp:include>
</s:div>
<s:div id="prov" label="Provisioning" theme="ajax">
<jsp:include page="/pages/provisioningHome.jsp"></jsp:include>
</s:div>
</s:tabbedPanel>
<s:form action="/setProfile.do" method="POST">
<tr>
<td colspan="2">Set Profile</td>
</tr>
<tr>
<td colspan="2"><s:actionerror /><s:actionmessage/></td>
</tr>
<s:textfield name="userId" label="User Id" onfocus=""/>
<s:textfield name="name" label="User Name" />
<s:select list="profile" headerValue="Please Select" name="profile"
required="true" ></s:select>
<s:checkbox name="overWrite" label="Update (Please check this box if
you want to update existing profile)"></s:checkbox>
<s:submit value="Add or Update Profile" align="center" />
</s:form>
Regards,
Srikanth Muthyala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts tabbed panel
Posted by Srikanth Muthyala <sr...@iitc.com.au>.
Hi Martin,
I am using 2.0.9. IS that fixed in 2.0.9?
Regards,
Srikanth Muthyala
Snr Consultant
Innovative IT Consultants
Mobile: +61 401 544 199
Email: srikanth@iitc.com.au
www.iitc.com.au
----- Original Message -----
From: "Martin Gainty" <mg...@hotmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, 3 December 2007 01:17:11 PM (GMT+1000) Australia/Sydney
Subject: Re: Struts tabbed panel
tabbedPanel refreshOnShow has a bug in 2.0.5
which version are you implementing with?
M-
----- Original Message -----
From: "Srikanth Muthyala" <sr...@iitc.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, December 02, 2007 8:51 PM
Subject: Struts tabbed panel
I am currently using Struts 2 with Ajax for Tabbed panel. I can create
and
load tabbedpanel showing a jsp page with a form for one of tabs. The form
action = "/some.action" is executed ok butthe issue is reload is shown in
its own new page rather than the as part of tab content.
How do I fix this? Please help.
Attached parts of codes....
<s:tabbedPanel id="rtb">
<s:div id="1" label="Administration" theme="ajax" labelposition="top">
<br>RTB Administration
</s:div>
<s:div id="admin" label="User" theme="ajax" href="setProfile.action"
refreshOnShow="true">
--->See here>>>> <jsp:include
page="/setProfileForm.do"></jsp:include>
</s:div>
<s:div id="prov" label="Provisioning" theme="ajax">
<jsp:include page="/pages/provisioningHome.jsp"></jsp:include>
</s:div>
</s:tabbedPanel>
<s:form action="/setProfile.do" method="POST">
<tr>
<td colspan="2">Set Profile</td>
</tr>
<tr>
<td colspan="2"><s:actionerror /><s:actionmessage/></td>
</tr>
<s:textfield name="userId" label="User Id" onfocus=""/>
<s:textfield name="name" label="User Name" />
<s:select list="profile" headerValue="Please Select" name="profile"
required="true" ></s:select>
<s:checkbox name="overWrite" label="Update (Please check this box if
you want to update existing profile)"></s:checkbox>
<s:submit value="Add or Update Profile" align="center" />
</s:form>
Regards,
Srikanth Muthyala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts tabbed panel
Posted by Martin Gainty <mg...@hotmail.com>.
tabbedPanel refreshOnShow has a bug in 2.0.5
which version are you implementing with?
M-
----- Original Message -----
From: "Srikanth Muthyala" <sr...@iitc.com.au>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, December 02, 2007 8:51 PM
Subject: Struts tabbed panel
I am currently using Struts 2 with Ajax for Tabbed panel. I can create
and
load tabbedpanel showing a jsp page with a form for one of tabs. The form
action = "/some.action" is executed ok butthe issue is reload is shown in
its own new page rather than the as part of tab content.
How do I fix this? Please help.
Attached parts of codes....
<s:tabbedPanel id="rtb">
<s:div id="1" label="Administration" theme="ajax" labelposition="top">
<br>RTB Administration
</s:div>
<s:div id="admin" label="User" theme="ajax" href="setProfile.action"
refreshOnShow="true">
--->See here>>>> <jsp:include
page="/setProfileForm.do"></jsp:include>
</s:div>
<s:div id="prov" label="Provisioning" theme="ajax">
<jsp:include page="/pages/provisioningHome.jsp"></jsp:include>
</s:div>
</s:tabbedPanel>
<s:form action="/setProfile.do" method="POST">
<tr>
<td colspan="2">Set Profile</td>
</tr>
<tr>
<td colspan="2"><s:actionerror /><s:actionmessage/></td>
</tr>
<s:textfield name="userId" label="User Id" onfocus=""/>
<s:textfield name="name" label="User Name" />
<s:select list="profile" headerValue="Please Select" name="profile"
required="true" ></s:select>
<s:checkbox name="overWrite" label="Update (Please check this box if
you want to update existing profile)"></s:checkbox>
<s:submit value="Add or Update Profile" align="center" />
</s:form>
Regards,
Srikanth Muthyala
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org