Results 1 to 12 of 12
Thread: Generate Applet from XML file
- 03-01-2011, 06:47 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
Generate Applet from XML file
Hi,
I want to generate applet from the xml file. XML file will contain the field type and its validation, which will be parsed while loading the applet and accordingly the applet will be generated.
Anybody have any idea of framework that does this.For your reference I have specified the xml sample which is parsed to generate applet.
<applet name="ABC">
<Field1 type="dropdown" required="1" readonly="0" options="Array" defaultvalue="">
<label> Option Type
<option name="Val1">Val1</option>
<option name="Val2">Val2</option>
</label>
</Field1>
<Field2 type="dropdown" required="1" readonly="0" options="Array" defaultvalue="">
<label> Field2
<option name="Val1">Val1</option>
<option name="Val2">Val2</option>
</label>
</Field2>
<Field3 type="text" maxlength="15" validate="Int" required="1" readonly="0" size="15" >
<label>Field3</label>
</Field3>
<ExpiryDate type="date" required="1" readonly="0" showtime="0" defaultvalue_sel="today" defaultvalue="today" size="15">
<label>Expiry Date</label>
</ExpiryDate>
</applet>
So above xml file will be parsed and the desired applet should be genrated.
- 03-02-2011, 02:12 AM #2
I have used the SwiXML library in the past for creating XML designed Swing UI components. such as a dialog box, where I wanted its look and behavior to be entirely data driven. I remember at the time the swixml being very easy to extend, such as to add custom tags for things that I wanted to be displayed that it at the time did not support. So it should be possible to build an applet. You might need to create a wrapper stub applet class though that boots up as an an applet and then url fetches the XML file. e.g. it might be more practical to create a generic player kind of applet, where your XML driven UI generates a Panel that is the main content and function of this applet.
- 03-02-2011, 02:20 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
This topic is a new one for me. Last night I saw this and search on Google and I found this. travishein, have you seen that before?
- 03-02-2011, 04:14 AM #4
No, I hadn't seen that. looks neat. Thanks!
- 03-02-2011, 04:17 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yeah. Sounds good. But I've never use it. I want to test with a real application and see. :)
- 03-02-2011, 06:52 AM #6
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
SWIXML rocks
Hi,
Thanks for letting me know about swixml. I think xul has some issues with IE and chrome, moreover the XForms do not run on Internet explorer. Initially I thought to go with XUL but as I said it has lots of issues as far as browser compatibility is concerned. Thats what I think. Anyway, thanks for the help.
Regards
- 03-02-2011, 09:16 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I'm not sure about the chrome. But with IE 7 I've some issues with rendering. I try to add some CSS files but styles are not properly added there.
- 03-02-2011, 09:16 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I'll go through it later, and I want to test with IE 8.
- 03-02-2011, 10:03 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
One more thing I want to pointed, and forget it before.
If you have red only the article I've posted earlier, may confuse that how to deal with IE. Read the following, then you can have much better understanding.
Mark Finkle’s Weblog » XUL/E – What If
- 03-02-2011, 10:04 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
One more thing I want to pointed, and forget it before.
If you have red only the article I've posted earlier, may confuse that how to deal with IE. Read the following, then you can have much better understanding.
Mark Finkle’s Weblog » XUL/E – What If
- 03-07-2011, 08:30 PM #11
Member
- Join Date
- Mar 2011
- Posts
- 64
- Rep Power
- 0
FireFox 4.0 beta does not support Remote XUL by default. Hope the add it in the final release.
- 03-08-2011, 03:31 PM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
It could be, FF4 still in it's initial state. Most of the addons are not working properly.
Similar Threads
-
How to generate excel file from a JSP
By malarkal in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 04-07-2010, 01:06 PM -
Automatically Generate an XML file
By svpriyan in forum XMLReplies: 2Last Post: 06-25-2009, 05:46 AM -
Generate a Class file
By Daniel in forum New To JavaReplies: 6Last Post: 04-20-2009, 05:37 AM -
generate XML file from GUI Swing
By ninja in forum AWT / SwingReplies: 1Last Post: 03-26-2009, 10:26 PM -
Generate an executable file
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:30 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks