• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 - jquery Plugin - Fieldset

 
Vamshi Jampala
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic