Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/test/java/org/xdoclet/plugin/tapestry/sample
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv856/xdoclet-plugins/plugin-tapestry/src/test/java/org/xdoclet/plugin/tapestry/sample
Modified Files:
SamplePage.java SamplePage.xml
Log Message:
Added tapestry.text-field tag for Tapestry's TextField component
Added ability to guess the name parameter for the tapestry.property tag
Index: SamplePage.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/test/java/org/xdoclet/plugin/tapestry/sample/SamplePage.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SamplePage.java 14 Oct 2005 10:03:57 -0000 1.7
--- SamplePage.java 14 Oct 2005 15:49:10 -0000 1.8
***************
*** 66,69 ****
--- 66,72 ----
* @tapestry.page-link id="myLink2" page="MyPage" namespace="ns"
disabled="true" anchor="anch" target="_blank" renderer="myRenderer"
*
+ * @tapestry.text-field id="my1tf" value="myValue"
+ * @tapestry.text-field id="my2tf" value="myValue2" disabled="true"
display-name="my second text fieldòà" hidden="true" translator="myTranslator"
validators="myValidators"
+ *
* @author p.dona
*/
***************
*** 75,101 ****
}
! /**
! * @tapestry.inject-page object="SamplePage"
! */
public abstract SamplePage getMyPropertyForSamplePage();
! /**
! * @tapestry.inject-object object="spring:mySpringBean"
! */
public abstract Object getSpringBean();
! /**
! * @tapestry.inject-meta object="page.size"
! */
public abstract int getPageSize();
! /**
! * @tapestry.inject-script object="Palette.script"
! */
public abstract IScript getScript();
! /**
! * @tapestry.inject-state object="visit"
! */
public abstract Object getVisit();
}
\ No newline at end of file
--- 78,100 ----
}
! /** @tapestry.inject-page object="SamplePage" */
public abstract SamplePage getMyPropertyForSamplePage();
! /** @tapestry.inject-object object="spring:mySpringBean" */
public abstract Object getSpringBean();
! /** @tapestry.inject-meta object="page.size" */
public abstract int getPageSize();
! /** @tapestry.inject-script object="Palette.script" */
public abstract IScript getScript();
! /** @tapestry.inject-state object="visit" */
public abstract Object getVisit();
+
+ /** @tapestry.property */
+ public abstract String getProperty1();
+
+ /** @tapestry.property persist="session" initial-value="propValue2" */
+ public abstract String getProperty2();
}
\ No newline at end of file
Index: SamplePage.xml
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-tapestry/src/test/java/org/xdoclet/plugin/tapestry/sample/SamplePage.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SamplePage.xml 14 Oct 2005 10:03:57 -0000 1.7
--- SamplePage.xml 14 Oct 2005 15:49:10 -0000 1.8
***************
*** 74,78 ****
<binding name="class" value="CSS_CLASS"/>
</component>
! <component type="PageLink" id="myLink">
<binding name="page" value="MyPage"/>
</component>
--- 74,78 ----
<binding name="class" value="CSS_CLASS"/>
</component>
! <component type="PageLink" id="myLink">
<binding name="page" value="MyPage"/>
</component>
***************
*** 85,92 ****
--- 85,106 ----
<binding name="renderer" value="myRenderer"/>
</component>
+ <component type="TextField" id="my1tf">
+ <binding name="value" value="myValue"/>
+ </component>
+ <component type="TextField" id="my2tf">
+ <binding name="value" value="myValue2"/>
+ <binding name="disabled" value="true"/>
+ <binding name="displayName" value="my second text fieldòà"/>
+ <binding name="hidden" value="true"/>
+ <binding name="translator" value="myTranslator"/>
+ <binding name="validators" value="myValidators"/>
+ </component>
+ <!-- fine framework components -->
<asset name="image1" path="context:/images/image1"/>
<asset name="image2" property="image2" path="context:/images/image2"/>
<property initial-value="4" name="counter" persist="session"/>
<property initial-value="6" name="counter2" persist="session"/>
+ <property initial-value="propValue2" name="property2" persist="session"/>
+ <property name="property1"/>
<inject object="ResultPage" type="page" property="resultPage"/>
<inject property="visit" type="state" object="visit"/>
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits