开发者

Coldfusion, default ORM object?

so I have a form that I'm using for new items, and to edit items.

The input fields therefore may have a value or not. I'm using this code in the value field.

<input name="uuid" value="<cfif isNull(item.GetUuid())>#item.GetUuid()#</cfif>"/>

Is this the best way to do it? I would have thought the ORM returning a blank object or something maybe cleaner, but not sure of a tider way to开发者_Python百科 do it?


This might work

<cfproperty name="uuid" default="">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜