use radiogroup/radio components instead
-igor
On 6/19/07, Saad, Salma <[EMAIL PROTECTED]> wrote:
I have to show a textfield next to a radiochoice widget. Below is an
excerpt from a panel that I am doing this in
<span valign="top" wicket:id="radio">
<table border="0">
<tr>
<td>
<input type="radio">Accept </input>
<input maxlength="30" size="15" name="test" wicket:id="test"/>
</td>
<td>
<input type="radio">Deny </input>
</td>
</tr>
</table>
</span>
I get the following error
ERROR 2007-06-19 16:33:59,261 wicket.RequestCycle - Expected close tag
for '<span valign="top" wicket:id="radio">' Possible attempt to embed
component(s) '<input maxlength="30" size="15" name="test"
wicket:id="test"/>' in the body of this component which discards its body
[markup =
file:/C:/javaProjects/eclipse-workspace/automated_payments/WEB-INF/classes/com/mizuho/futures/wicket/WorkflowFrame$RadioPanel.html,
index = 4, current = '<input maxlength="30" size="15" name="test"
wicket:id="test"/>' (line 22, column 8)]
*wicket.markup.MarkupException*:
So it looks like I cannot have a textfield inside of a <span>. Is there
another way to get the textfield to show in that location? I also tried
passing HTML in the choice list code using something like the following
List options = Arrays.asList(new String[] { "Accept",
"Decline","Override:","Pay: <tr> <td> <input maxlength="30" size="15" name
="test" wicket:id="test"/> </td> </tr>","Collect:" });
choice.setEscapeModelStrings(*false*);
add(choice);
However, the HTML is still escaped despite the
setEscapeModelStrings(false), I added a label to the same panel as the
radioChoice and tested it with setEscapeModelStrings(false) and it worked.
Does setEscapeModelStrings(false) not work in radioChoice widgets? Perhaps I
am missing something......
------------------------------
CONFIDENTIAL: This e-mail, including its contents and attachments, if any,
are confidential. It is neither an offer to buy or sell, nor a solicitation
of an offer to buy or sell, any securities or any related financial
instruments mentioned in it. If you are not the named recipient please
notify the sender and immediately delete it. You may not disseminate,
distribute, or forward this e-mail message or disclose its contents to
anybody else. Unless otherwise indicated, copyright and any other
intellectual property rights in its contents are the sole property of Mizuho
Securities USA Inc.
E-mail transmission cannot be guaranteed to be secure or error-free. The
sender therefore does not accept liability for any errors or omissions in
the contents of this message which arise as a result of e-mail transmission.
If verification is required please request a hard-copy version.
Although we routinely screen for viruses, addressees should check this
e-mail and any attachments for viruses. We make no representation or
warranty as to the absence of viruses in this e-mail or any attachments.
Please note that to ensure regulatory compliance and for the protection of
our customers and business, we may monitor and read e-mails sent to and from
our server(s).
------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user