Checbox binding in Chiba

View: New views
5 Messages — Rating Filter:   Alert me  

Checbox binding in Chiba

by Christophe Grosjean :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

Can someone provide me with an example on how to define a checkbox and the associated binding in Xforms?

I’m using Chiba 0.9.5 (migration is not an option unfortunately).

 

Thanks for your help,

 

Christophe

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: Checbox binding in Chiba

by Lars Windauer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Christophe, 

I haven't worked with Chiba 0.9.5 but have you tried to deploy one of the current Chiba demo forms? For instance: https://chiba-project.org/svn/chiba/branches/web-3.0.0/src/main/xforms/reference/Input.xhtml contains a boolean input control.

In short something like this should work:

<xf:model>
<xf:instance xmlns="">
<data>
<boolean>false</boolean>
</data>
</xf:instance>
<xf:bind nodeset="instance()/boolean" type="boolean"/>
</xf:model>
...

<xf:input ref="boolean">
<xf:label>Boolean Input</xf:label>
</xf:input>

If type="boolean" does not work I would try xs:boolean. But as I wrote, I did never work with a Chiba version that old.

regards from Berlin 

Lars



Hi,
 
Can someone provide me with an example on how to define a checkbox and the associated binding in Xforms?
I’m using Chiba 0.9.5 (migration is not an option unfortunately).
 
Thanks for your help,
 

 
 
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: Checbox binding in Chiba

by Christophe Grosjean :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks for your answer, Lars.

 

Actually, I have a list of checkboxes. I was wondering if this is possible to bind it using the xf:select, just to avoid having to bind manually each checkbox to a different XML element.

Do you have an idea?

 

Christophe

 

 


From: Lars Windauer [mailto:lars.windauer@...]
Sent: mardi 4 août 2009 15:51
To: Christophe Grosjean
Cc: chiba-users@...
Subject: Re: [Chiba-users] Checbox binding in Chiba

 

Dear Christophe, 

 

I haven't worked with Chiba 0.9.5 but have you tried to deploy one of the current Chiba demo forms? For instance: https://chiba-project.org/svn/chiba/branches/web-3.0.0/src/main/xforms/reference/Input.xhtml contains a boolean input control.

 

In short something like this should work:

 

<xf:model>

            <xf:instance xmlns="">

                        <data>

                                    <boolean>false</boolean>

                        </data>

            </xf:instance>

           

            <xf:bind nodeset="instance()/boolean" type="boolean"/>

</xf:model>

...

 

<xf:input ref="boolean">

            <xf:label>Boolean Input</xf:label>

</xf:input>

 

If type="boolean" does not work I would try xs:boolean. But as I wrote, I did never work with a Chiba version that old.

 

regards from Berlin 

 

Lars

 

 

 

Hi,

 

Can someone provide me with an example on how to define a checkbox and the associated binding in Xforms?

I’m using Chiba 0.9.5 (migration is not an option unfortunately).

 

Thanks for your help,

 

 

 

 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

 

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: Checbox binding in Chiba

by Lars Windauer-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 Actually, I have a list of checkboxes. I was wondering if this is possible to bind it using the xf:select, just to avoid having to bind manually each checkbox to a different XML element.

Do you have an idea?


I would recommend a XForms Select with appearance='full', this works at least with the current Chiba version.
<xf:instance xmlns="">
   <data>
      <items selected="1 3">
         <item value="1">one</item>
         <item value="2">two</item>
         <item value="3">three</item>
      </items>         
<xf:select ref="items/@selected>
  <xf:itemset nodeset="items/item">
      <xf:label ref="."/>
      <xf:value ref="@value"/>
  </xf:itemset>
</xf:select>

Bgv  

 

Christophe

 

 


From: Lars Windauer [mailto:lars.windauer@...]
Sent: mardi 4 août 2009 15:51
To: Christophe Grosjean
Cc: chiba-users@...
Subject: Re: [Chiba-users] Checbox binding in Chiba

 

Dear Christophe, 

 

I haven't worked with Chiba 0.9.5 but have you tried to deploy one of the current Chiba demo forms? For instance: https://chiba-project.org/svn/chiba/branches/web-3.0.0/src/main/xforms/reference/Input.xhtml contains a boolean input control.

 

In short something like this should work:

 

<xf:model>

            <xf:instance xmlns="">

                        <data>

                                    <boolean>false</boolean>

                        </data>

            </xf:instance>

           

            <xf:bind nodeset="instance()/boolean" type="boolean"/>

</xf:model>

...

 

<xf:input ref="boolean">

            <xf:label>Boolean Input</xf:label>

</xf:input>

 

If type="boolean" does not work I would try xs:boolean. But as I wrote, I did never work with a Chiba version that old.

 

regards from Berlin 

 

Lars

 

 

 

Hi,

 

Can someone provide me with an example on how to define a checkbox and the associated binding in Xforms?

I’m using Chiba 0.9.5 (migration is not an option unfortunately).

 

Thanks for your help,

 

 

 

 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

 

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users

Re: Checbox binding in Chiba

by Harri T. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christophe

See the appearance table here: http://www.w3.org/TR/xforms/#ui-selectMany

See also "Select" tab here:
- demo: http://chiba-project.org:8080/chiba/forms/widgets.xhtml
- source: http://chiba-project.org:8080/chiba/forms/widgets.txt

-Harri

On 08/04/2009 09:50 AM Christophe Grosjean wrote:
> Hi,
>
> Can someone provide me with an example on how to define a checkbox and
> the associated binding in Xforms?
> I’m using Chiba 0.9.5 (migration is not an option unfortunately).
>
> Thanks for your help,
>
> Christophe


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Chiba-users mailing list
Chiba-users@...
https://lists.sourceforge.net/lists/listinfo/chiba-users