On 7/6/07, Edi <[EMAIL PROTECTED]> wrote:
Hi,
I have 3 fields, field name, data type, cell name
If I enter the 3 fields, In the same page under the submit button, i want
to
show the given input data into XML. Is it possible,
Suppose my input data looks like, Speed, string, and A1.
it should show like
<fields>
<field name ="Speed" data type = "string" cellvalue="A1"/>
</field>
Is it possible at run time?
one would sincerely hope so.
class mypage extends webpage {
private string name, type, cell;
public string getxml() { return String.format("<fields><field name="%s",
data ty....", name, type, cell); }
mypage() {
final Form f=new Form(...);
f.add(new TextField("name", new PropertyModel(this, "name"));
f.add(new TextField("type", new PropertyModel(this, "type"));
f.add(new TextField("cell", new PropertyModel(this, "cell"));
add(new Label("xml", new PropertyModel(this, "xml") {
isvisible() { return f.issubmitted(); }});
-igor
Thanking You
Regards,
Edi
--
View this message in context:
http://www.nabble.com/Get-the-input-and-diplay-in-the-same-page-in-xml-format--tf4034497.html#a11461311
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
-------------------------------------------------------------------------
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