wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts2 - jquery Plugin - Fieldset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - jquery Plugin - Fieldset " Watch "Struts2 - jquery Plugin - Fieldset " New topic
Author

Struts2 - jquery Plugin - Fieldset

Vamshi Jampala
Ranch Hand

Joined: Feb 23, 2008
Posts: 40
Hi There!

I am very new to Struts2, having said that, we are using jqueryPlugin for the tabs in the main page.

When I click on a tab, an action is called and a jsp page is rendered.

The problem I have is with using fieldset.

The field set does not populate any of the <s:textfield> fields inside it(Fieldset is a widely used thing and why doesnt struts2 support it) but i can populate the normal input field.

What should I do to make use of field set and Struts2 tags.

I have tried all the different combination to make it work but its not.

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>
<html>
<head>
<sj:head jqueryui="true" jquerytheme="cupertino"/>
<title></title>
<sx:head/>
</head>

<body>
<s:form>

<fieldset id="one">
<legend>FieldSet Title</legend>
Family : <input type="text" maxlength="10">
<div>
<s:textfield required="true" requiredposition="right" label="Family" name="FamilyName"/>
</div>
<div>
<s:textfield required="true" requiredposition="right" label="Family" name="FamilyName"/>
</div>


<s:submit cssStyle="buttonlink ui-state-active ui-corner-all"/>
<s:reset cssStyle="buttonlink ui-state-active ui-corner-all" onclick="alert('Resetting form now... Press OK to continue!');" label="Reset The Form"/>
</fieldset>

</s:form>
</body>
</html>

Thank you soo much for your time, Appreciate It!
 
 
subject: Struts2 - jquery Plugin - Fieldset