File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 - jquery Plugin - Fieldset " Watch "Struts2 - jquery Plugin - Fieldset " New topic

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" %>
<sj:head jqueryui="true" jquerytheme="cupertino"/>


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

<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"/>


Thank you soo much for your time, Appreciate It!
I agree. Here's the link:
subject: Struts2 - jquery Plugin - Fieldset
It's not a secret anymore!