On 20-Mar-07, at 12:56 PM, Martijn wrote:

A proper question this time. A simple one with, hopefully, a simple
answer. Why does the following block of xsp-code:

<td>
 <f:textfield name="foo">
   <xsp:attribute name="default">bar</xsp:attribute>
 </f:textfield>
</td>

result in the following html:

<td default="bar">
 <input type="text" name="foo" />
</td>

Because PerForm isn't set up right to make that work (or rather - the way XSP is parsed means it doesn't work).

And, of course, how does one solve this?

Try this:

<td>
  <xsp:logic>$cgi->param(foo => "bar")</xsp:logic>
  <f:textfield name="foo"/>
</td>

Matt.



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to