You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by sramay <ni...@gmail.com> on 2011/06/23 10:26:01 UTC

Xforms Controls within Wicket Application

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Xforms Controls within Wicket Application

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Aug 1, 2011 at 2:17 PM, Zilvinas Vilutis <ci...@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:   cikasfm@gmail.com
>
>
>
> On Mon, Aug 1, 2011 at 10:58 AM, sramay <ni...@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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



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

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


Re: Xforms Controls within Wicket Application

Posted by Zilvinas Vilutis <ci...@gmail.com>.
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:   cikasfm@gmail.com



On Mon, Aug 1, 2011 at 10:58 AM, sramay <ni...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: Xforms Controls within Wicket Application

Posted by sramay <ni...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Xforms Controls within Wicket Application

Posted by Alexandros Karypidis <ak...@yahoo.gr>.
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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org


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


Re: Xforms Controls within Wicket Application

Posted by sramay <ni...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Xforms Controls within Wicket Application

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <ni...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: Xforms Controls within Wicket Application

Posted by sramay <ni...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Xforms Controls within Wicket Application

Posted by Igor Vaynberg <ig...@gmail.com>.
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 <ni...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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