hi..
we have a homegrown java framework which uses custom taglibs which employs velociy templates to render ui tags to ther client, currently it's a mess and only works with ie 6.0.
my idea is maybe to use an external framework which should replace all calls to templates and javascript libraries.
here is an example of our template textbox:
<input id="$controller.id"
type="$controller.fieldType"
name="$controller.fieldName"
value="$controller.fieldValue"
class="$controller.fieldStyleSheetClass"
title="$controller.tooltip"
##if ($controller.htmlSize)
size="$controller.size"
##end
#if ($controller.maxSize == -1)
maxLength="$controller.size"
#else
maxLength="$controller.maxSize"
#end
#set($labelStyle="")
#if($controller.label)
#set($labelStyle = "border:0px;")
##set($labelStyle = "border:1px; background-color: transparent;border-color : #999999")
#end
style="text-align:$controller.textAlign;$labelStyle"
#if($controller.fieldReadOnly.length() == 0 && $controller.label)
readOnly
#end
$controller.fieldReadOnly
onmousedown="rightClickEvent(event,this);"
#if($controller.shouldSubmitOnEnter)
onkeydown="return blockActionButtonsExceptEnter(event,'$controller.blockActionKeywordButtonsMsg','$controller.submitAction','$controller.confirmMsgBeforeSubmit');"
#else
#if($controller.fieldReadOnly.length() > 0)
onkeydown="return blockActionButtons(event,'$controller.blockActionKeywordButtonsMsg',false);"
#else
onkeydown="return blockActionButtons(event,'$controller.blockActionKeywordButtonsMsg',true);"
#end
#end
#if($controller.submitOnFocusout)
onChange="submitForm('$controller.submitAction',false);"
#end
$controller.tabIndex/>
#if($controller.focus)
<script >
document.getElementById('$controller.id').focus() ;
</script>
#end
can smartclient be integrated in such a flexible manner?
we have a homegrown java framework which uses custom taglibs which employs velociy templates to render ui tags to ther client, currently it's a mess and only works with ie 6.0.
my idea is maybe to use an external framework which should replace all calls to templates and javascript libraries.
here is an example of our template textbox:
<input id="$controller.id"
type="$controller.fieldType"
name="$controller.fieldName"
value="$controller.fieldValue"
class="$controller.fieldStyleSheetClass"
title="$controller.tooltip"
##if ($controller.htmlSize)
size="$controller.size"
##end
#if ($controller.maxSize == -1)
maxLength="$controller.size"
#else
maxLength="$controller.maxSize"
#end
#set($labelStyle="")
#if($controller.label)
#set($labelStyle = "border:0px;")
##set($labelStyle = "border:1px; background-color: transparent;border-color : #999999")
#end
style="text-align:$controller.textAlign;$labelStyle"
#if($controller.fieldReadOnly.length() == 0 && $controller.label)
readOnly
#end
$controller.fieldReadOnly
onmousedown="rightClickEvent(event,this);"
#if($controller.shouldSubmitOnEnter)
onkeydown="return blockActionButtonsExceptEnter(event,'$controller.blockActionKeywordButtonsMsg','$controller.submitAction','$controller.confirmMsgBeforeSubmit');"
#else
#if($controller.fieldReadOnly.length() > 0)
onkeydown="return blockActionButtons(event,'$controller.blockActionKeywordButtonsMsg',false);"
#else
onkeydown="return blockActionButtons(event,'$controller.blockActionKeywordButtonsMsg',true);"
#end
#end
#if($controller.submitOnFocusout)
onChange="submitForm('$controller.submitAction',false);"
#end
$controller.tabIndex/>
#if($controller.focus)
<script >
document.getElementById('$controller.id').focus() ;
</script>
#end
can smartclient be integrated in such a flexible manner?
Comment