Re: [Wicket-user] Textfield inside RadioChoice

2007-06-20 Thread Timo Rantalaiho
On Tue, 19 Jun 2007, Saad, Salma wrote:
 So it looks like I cannot have a textfield inside of a span.

I think that in HTML, span isn't supposed to contain any 
tags.

- Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
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


Re: [Wicket-user] Textfield inside RadioChoice

2007-06-20 Thread Martijn Dashorst
I just looked up the spec, and the span tag is really allowed to
contain other elements, specifically formcontrols:

http://www.w3.org/TR/html401/sgml/dtd.html#inline

The span definition is a couple of lines below the provided anchor.

Martijn

On 6/20/07, Timo Rantalaiho [EMAIL PROTECTED] wrote:
 On Tue, 19 Jun 2007, Saad, Salma wrote:
  So it looks like I cannot have a textfield inside of a span.

 I think that in HTML, span isn't supposed to contain any
 tags.

 - Timo

 --
 Timo Rantalaiho
 Reaktor Innovations OyURL: http://www.ri.fi/ 

 -
 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



-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-
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


Re: [Wicket-user] Textfield inside RadioChoice

2007-06-20 Thread salmas

Thanks, Igor, I switched to radiogroup/radio, however I still have issues
because I want to add the textfield to just a few of the options, my options
should look like

tr wicket:id=options
td
input type=radio wicket:id=workflowoption /input
/td 
td
option name
/td
/tr

for some of the options but then others might look like

tr wicket:id=options
td
input type=radio wicket:id=workflowoption /input
/td 
td
option name
/td
td
input maxlength=30 size=15 name=amount 
wicket:id=amount /
/td
/tr

 It looks like the radiogroup assumes that the markup is a template, if I
add the textfield to one
item then I must add it to the rest. I suppose I could use different panels
for each item but that seems so long winded for what I am trying to do. Any
suggestions?


igor.vaynberg wrote:
 
 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



 

 table border=0

 tr

   td

   input type=radioAccept /input

 input maxlength=30 size=15 name=test wicket:id=test/

   /td

   td

   input type=radioDeny  /input

   /td

   /tr

 /table

   

  I get the following error



 ERROR 2007-06-19 16:33:59,261 wicket.RequestCycle  - Expected close tag
 for '' 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 . 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
 

Re: [Wicket-user] Textfield inside RadioChoice

2007-06-20 Thread salmas

I solved my issue by using setEscapeModelStrings(false) which works now and
sending extra html to the label in the option. Thanks so much for your help.


igor.vaynberg wrote:
 
 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



 

 table border=0

 tr

   td

   input type=radioAccept /input

 input maxlength=30 size=15 name=test wicket:id=test/

   /td

   td

   input type=radioDeny  /input

   /td

   /tr

 /table

   

  I get the following error



 ERROR 2007-06-19 16:33:59,261 wicket.RequestCycle  - Expected close tag
 for '' 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 . 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
 
 

-- 
View this message in context: 
http://www.nabble.com/Textfield-inside-RadioChoice-tf3949153.html#a11216266
Sent from the Wicket - User mailing list archive at Nabble.com.


-
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


[Wicket-user] Textfield inside RadioChoice

2007-06-19 Thread Saad, Salma
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=radioAccept /input

input maxlength=30 size=15 name=test wicket:id=test/

  /td 

  td

  input type=radioDeny  /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/co
m/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


Re: [Wicket-user] Textfield inside RadioChoice

2007-06-19 Thread Igor Vaynberg

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=radioAccept /input

input maxlength=30 size=15 name=test wicket:id=test/

  /td

  td

  input type=radioDeny  /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