Cool stuff! Even the formatting is usefull if you need your very own formatting.
But we should have a look at the Formatter interface - maybe it's possible to bring
them together!
Best would be to get developer status!
Cheers,
Henner
>
> I have developed some new tags for dbforms as part of a
> project. I am submitting a description here for feedback
> before adding them to the code base.
>
> Usage:
> isError - execute the body if there is an error ( if
> value='false', then
> execute body is NO error )
> redirectURL - generates a redirect to a DbForms View.
> Setting the positionattribute will
> force DbForms to navigate to this position within
> the destination-table
>
> Example:
> <db:isError value="false">
> <db:isWebEvent event="insert" value="true" >
> <db:redirectURL href="/instructor_one.jsp"
> tableName="instructor">
> <db:position fieldName ="instructor_id"
> value="${InstructorName.instructor_id}"/>
> </db:redirectURL>"
> </db:isWebEvent>
> </db:isError>
>
> =============
>
> CustomFormatter, allows you register a class that will used
> to format a field for output. Usuful for displaying id
> numbers and such That are stored as numbers but need to be
> displayed specially.
> Class ICustomFormatter
> public interface ICustomFormatter {
> public String format(String s, Field f, Tag tag);
> public void init(Object arg);
> public void setReset(boolean b);
> public boolean getReset();
> }
>
> Usage:
> setCustomFormatter - register a customFormatter class for
> later use new attribute x added to DbBaseHandlerTag (parent
> of label,etc..)
>
>
> Example
> <db:setCustomFormatter name="ostid"
> className="com.nechsi.santipol.interceptors.IDCustomFormatter"
> arg="###-####" />
> <db:label customFormatter="ostid" fieldName="old_student_code"/>
>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
DbForms Mailing List
http://www.wap-force.net/dbforms