Re: Xforms Controls within Wicket Application

2011-08-01 Thread sramay
Hi,

My request for integrating XFORMS within a Wicket Application is as follows:

I have a XForms (with XHTML as hosting language) with few controls, actions,
etc. for validation on client-side. This form uses XSLTForms as XForms
engine.
This form should be integrated with normal Wicket application with the
following requirements:
  i) This form should rendered to client from Wicket application, so that on
client-side only XForms tags (controls, actions, etc) will be rendered and
not Wicket's tags
  ii) Wicket application should take the inputs from the XForms and handle
on server side with necessary actions (like validation, storing/retrieving
data from database, etc.)
Any solution available for this XForms-Wicket integration?

Is the question clear?

Regards

Ramachandran 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3709083.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-08-01 Thread Zilvinas Vilutis
Hi,

I don't see any current integration between wicket  XForms available,
but you can always start one, e.g. in code.google.com :)

You may always extend the form component ( or any other ) and
override the getMarkup ( or whatever method Wicket provide - Igor
please correct me here ) to generate your required X(HT)ML markup for
the form, or any input.

When you submit the form make sure the fields have wicket IDs ( and
name ) attributes set correctly for server side validation. Not sure
about client side - you might need to write your own validators here -
but it should not be super complex.

Regards

Žilvinas Vilutis

Mobile:   (+1) 623 330 6048
E-mail:   cika...@gmail.com



On Mon, Aug 1, 2011 at 10:58 AM, sramay nic.sr...@gmail.com wrote:
 Hi,

 My request for integrating XFORMS within a Wicket Application is as follows:

 I have a XForms (with XHTML as hosting language) with few controls, actions,
 etc. for validation on client-side. This form uses XSLTForms as XForms
 engine.
 This form should be integrated with normal Wicket application with the
 following requirements:
  i) This form should rendered to client from Wicket application, so that on
 client-side only XForms tags (controls, actions, etc) will be rendered and
 not Wicket's tags
  ii) Wicket application should take the inputs from the XForms and handle
 on server side with necessary actions (like validation, storing/retrieving
 data from database, etc.)
 Any solution available for this XForms-Wicket integration?

 Is the question clear?

 Regards

 Ramachandran

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3709083.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-08-01 Thread Martin Grigorov
On Mon, Aug 1, 2011 at 2:17 PM, Zilvinas Vilutis cika...@gmail.com wrote:
 Hi,

 I don't see any current integration between wicket  XForms available,
 but you can always start one, e.g. in code.google.com :)

 You may always extend the form component ( or any other ) and
 override the getMarkup ( or whatever method Wicket provide - Igor
 please correct me here ) to generate your required X(HT)ML markup for
 the form, or any input.
It's #getMarkupType().

 When you submit the form make sure the fields have wicket IDs ( and
 name ) attributes set correctly for server side validation. Not sure
 about client side - you might need to write your own validators here -
 but it should not be super complex.

 Regards

 Žilvinas Vilutis

 Mobile:   (+1) 623 330 6048
 E-mail:   cika...@gmail.com



 On Mon, Aug 1, 2011 at 10:58 AM, sramay nic.sr...@gmail.com wrote:
 Hi,

 My request for integrating XFORMS within a Wicket Application is as follows:

 I have a XForms (with XHTML as hosting language) with few controls, actions,
 etc. for validation on client-side. This form uses XSLTForms as XForms
 engine.
 This form should be integrated with normal Wicket application with the
 following requirements:
  i) This form should rendered to client from Wicket application, so that on
 client-side only XForms tags (controls, actions, etc) will be rendered and
 not Wicket's tags
  ii) Wicket application should take the inputs from the XForms and handle
 on server side with necessary actions (like validation, storing/retrieving
 data from database, etc.)
 Any solution available for this XForms-Wicket integration?

 Is the question clear?

 Regards

 Ramachandran

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3709083.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-07-11 Thread Alexandros Karypidis

Hello,

First of all, there is ambiguity in your question. I'm not sure how the 
above would tie into a wicket-specific question, unless you want to 
create an XForm--XHTML renderer/processor using Wicket as the 
underlying technology (which is not a good idea IMHO). In any case:




1) Are you asking whether Wicket can be used to render XForms files (as 
in the the XForms specification at http://www.w3.org/TR/xforms11/).


In this case, the answer is NO, I'm not aware of such an XForm renderer. 
You could create a custom Wicket component that is given an XForm 
definition document and uses it to render an XHTML page, but that is a 
lot of work (and probably not a very efficient way to do it, as you 
would ideally use XSLT or something along those lines to do XML--XML 
transformation. There are available open-source tools like Orbeon (see 
http://www.orbeon.com/) which can give you this kind of functionality 
(including processing of the XForm submission).


Now, regarding the online/offline issue:

2) Do you have a rich client application that can render the XForms 
(e.g. using Swing) and allow the user to save such forms locally? In 
that case, you would need to write code that submits the forms when the 
rich client has network access. The submission should probably go to 
some servlet (e.g. an Orbeon-managed URL). Again, I don't think this 
would be wicket-related.


3) If you have a web-based application for this (e.g. a bundled Tomcat 
running on the user machine, which they access via the browser) then the 
principle is a combination of (1) and (2): You would need:


a) to render the forms using something like Orbeon to present HTML to 
the browser
b) to store the form submission to the local FS (or a locally running DB 
which could be something like Derby)
c) to implement an uploader where the user can send locally saved 
forms to a central server (same as what I talked about in (2) above)


On 11/7/2011 4:09 μμ, sramay wrote:

Hi,

   Rendering a document in the Xforms or storing it in a database is as you
have suggested
   ok.
   The issue is there when you have xform controls inside a wicket
application
instead of HTML document(form) and take the imput and stores them into a
database.

Am I explaining my position clearly ?

Regards


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3659485.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-07-10 Thread sramay
Hi,

   Our requirement is as follows:

   We are developing application both online/offline using Xforms 
   in combination with Rest Xquery, XML Validations.  The data forms
   which appear on the screen accepts data validate either offline/online
and stores the data accordingly.   

   My Query is can we have Wicket Application include same Xfrom
   controls in a Wicket Application get the data validated offline/online
   and store and retrieve from the database and render.   The offline
  data may be sent to a central location when network is available.

   If you can throw some light it will be of great help to us.

Regards

Ramachandran S

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3658741.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-07-10 Thread Igor Vaynberg
wicket pages can generate any xml, so if you can represent your XForms
using xml then the answer is yes.

-igor

On Sun, Jul 10, 2011 at 10:39 PM, sramay nic.sr...@gmail.com wrote:
 Hi,

   Our requirement is as follows:

   We are developing application both online/offline using Xforms
   in combination with Rest Xquery, XML Validations.  The data forms
   which appear on the screen accepts data validate either offline/online
    and stores the data accordingly.

   My Query is can we have Wicket Application include same Xfrom
   controls in a Wicket Application get the data validated offline/online
   and store and retrieve from the database and render.   The offline
  data may be sent to a central location when network is available.

   If you can throw some light it will be of great help to us.

 Regards

 Ramachandran S

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3658741.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Xforms Controls within Wicket Application

2011-06-23 Thread Igor Vaynberg
a concrete example would help here. i have no idea what you are talking about.

-igor

On Thu, Jun 23, 2011 at 1:26 AM, sramay nic.sr...@gmail.com wrote:
 Hi,

 Is there any means available for calling Xforms controls
 within wicket application for accepting and displaying
 the same.   For displaying the same there is a means.
 I am finding it difficult to embed a xml input form inside a wicket
 application.   If the question is childish please clarify
 how it can be done.

 Ramachandran S

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Xforms-Controls-within-Wicket-Application-tp3619253p3619253.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org