cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ivelin" <ive...@apache.org>
Subject Re: XMLForm radio buttons strange behavior
Date Fri, 25 Apr 2003 12:33:10 GMT
I am not sure this is a bug in the XMLForm classes.
The wizard has a page (Deployment) that relies on the auto-populate of
check-boxes.
It doesn't seem to exhibit the problem you describe.


-=Ivelin=-
----- Original Message -----
From: "Carmona Perez, David" <DPerezCar@fcc.es>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, April 24, 2003 7:39 AM
Subject: RE: XMLForm radio buttons strange behavior


Ivelin,

A solution I propose is to have available somehow the view that is sending
the request, and only populate the form when the requesting view is the same
than the output one.

------
David

-----Mensaje original-----
De: ivelin [mailto:ivelin@apache.org]
Enviado el: jueves, 24 de abril de 2003 5:05
Para: cocoon-users@xml.apache.org
Asunto: Re: XMLForm radio buttons strange behavior

I think I know what you are referring to.
Will take a look and respond with a possible solution.


-=Ivelin=-
----- Original Message -----
From: "Carmona Perez, David" <DPerezCar@fcc.es>
To: <cocoon-users@xml.apache.org>
Sent: Wednesday, April 23, 2003 11:24 AM
Subject: RE: XMLForm radio buttons strange behavior


Thanks,

But this is not the case.  I think, it's a problem related to the fact that
unchecked radio buttons and check boxes don't send a request parameter, and
Cocoon puts the default value.  This behavior is ok when the user re-submits
the form with entered data, but not when the form is revisited and no
request parameters are specified.

Am I OK?

------
David

-----Mensaje original-----
De: Sylvain.Thevoz@swisscom.com [mailto:Sylvain.Thevoz@swisscom.com]
Enviado el: miércoles, 23 de abril de 2003 18:19
Para: cocoon-users@xml.apache.org
Asunto: RE: XMLForm radio buttons strange behavior

Hi,

Check if the getter/setter methods of the Bean attribute you mention exist.
Check if the XPath is correct in the view.

Hope this help
Sylvain (T)

-----Message d'origine-----
De: Carmona Perez, David [mailto:DPerezCar@fcc.es]
Date: mercredi, 23. avril 2003 18:14
À: cocoon-users@xml.apache.org
Objet: XMLForm radio buttons strange behavior


Dear cocooners,

I have the following problem:

I have a form with radio buttons and text fields.
I fill-in all the parameters and click the Next buttoon, and then revisit it
again by clicking the Back button.
What happens is when trying to populate the page, Cocoon checks if some
request parameter is missing and assigns its default value.
In this way, the value I have inserted before is overwritten and lost!!!.
This occurs only for radio buttons and not for the text boxes!!

I think this behavior is useful, when the page has been edited by the user
and resubmitted, but not when revisiting it again, as the request parameters
are empty.

Can anyone please help me?

----------
David

-----Mensaje original-----
De: Carmona Perez, David
Enviado el: miércoles, 23 de abril de 2003 17:50
Para: cocoon-users@xml.apache.org
Asunto: RE: XMLForm tags

Well, I have one doubt about this:

      <xf:selectOne ref="os" selectUIType="radio">
        <xf:caption>OS</xf:caption>
        <xf:item id="unix">
          <xf:caption>Unix/Linux</xf:caption>
          <xf:value>Unix</xf:value>
        </xf:item>
        <xf:item id="mac">
          <xf:caption>Mac OS/X</xf:caption>
          <xf:value>Mac OS/X</xf:value>
        </xf:item>
        <xf:item id="win">
          <xf:caption>Windows 95/98/NT/2000/XP</xf:caption>
          <xf:value>Windows</xf:value>
        </xf:item>
        <xf:item id="other">
          <xf:caption>Other</xf:caption>
          <xf:value>Other</xf:value>
        </xf:item>
      </xf:selectOne>

Why do I have to specify twice the same value, as an id and as a value, i.e.
id="unix" and <xf:value>unix</xf:value>?

Maybe is just for having an id value for Javascript reference?

------------------------------------------------------

David

-----Mensaje original-----
De: g4 [mailto:jason@root10.net]
Enviado el: miércoles, 23 de abril de 2003 16:41
Para: cocoon-users@xml.apache.org
Asunto: Re: XMLForm tags

Brief  XMLForm Tag Ref.

OK this is most of what I can find, if anyone can add. I'll try to
refine this a little later on.


#Doc root:
        <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">

#Form element:
        <xf:form id="form-feedback" view="system" action="wizard"
method="GET"> <!-- form item(s) here --></xf:form>

#Caption element:
        Caption element can be the child of any form or form element.
        <xf:caption>System Information</xf:caption>

#Help element:
        <xf:help>Select one or more</xf:help>

#Violation element:
        Can be the child of any form element that requires validation.
        <xf:violations class="error"/>

#Value element:
        Can be the child or  of any form element.
        <xf:value>Geek</xf:value>

#Hidden element:
         <xf:hidden ref="hidden"><!-- value here --></xf:hidden>

#Itemset element:
        Child of <xf:selectMany/>.
         <xf:itemset nodeset="allHobbies">

#Text box element:
         <xf:textbox ref="/firstName"> <!-- values and captions here -->
</xf:textbox>


#Multiple select:

        <xf:selectMany ref="/role" selectUIType="listbox"><!-- list values
and
captions here --></xf:selectMany>

#Check box element
        <xf:selectMany ref="/hobby" selectUIType="checkbox"> <!-- list
values,
itemset and captions here --> </xf:selectMany>


#Submit element:
          <xf:submit id="next" class="button"><!-- caption, hint here -->
</xf:submit>

#Radio buttons, Select lists
        Child of form

        <xf:selectOne ref="os" > <!-- list values and captions here -->
</xf:selectOne>

        For a  select list it seems that the selectUIType=""is left out.
So...

        <xf:selectOne ref="os" selectUIType="radio"> <!-- list values and
captions here --> </xf:selectOne>



#On Wednesday, Apr 23, 2003, at 14:22 Europe/London, ivelin wrote:

>
> I am afraid at the moment there is no tag reference guide.
> The XMLform branch at http://www.xmlform.org supports most of the
> latest
> XForms UI Controls.
> Once it becomes a block, Cocoon will be synced up too.
>
> If someone is interested to write a brief tag reference I could help
> with
> any questions.
>
> -=Ivelin=-
>
> ----- Original Message -----
> From: "Josema Alonso" <josema@simbiosystems.com>
> To: <cocoon-users@xml.apache.org>
> Sent: Wednesday, April 23, 2003 7:38 AM
> Subject: Re: XMLForm tags
>
>
>> Hi, there.
>> I'm sorry to say I couldn't find them either, but the best thing you
>> could
>> do is to take a close look at the Wizard How-To as suggested, and
>> you'll
>> find most of them and how they can be used.
>>
>> Maybe Ivelin can enlighten us here if he has a list of them or
>> something
>> like that...Ivelin?
>>
>> Best.
>>
>> ps: nice to see more people from Spain around here :-)
>>
>> ----- Original Message -----
>> From: "Carmona Perez, David" <DPerezCar@fcc.es>
>> To: <cocoon-users@xml.apache.org>
>> Sent: Wednesday, April 23, 2003 1:12 PM
>> Subject: XMLForm tags
>>
>>
>> Dear community,
>>
>> Does anybody know where I can information about the available tags in
>> XMLForm, like <xf:ouput>, <xf:text> ?
>> For example, I need a combo (an HTML select tag), a table, ....
>>
>> Thanks in advance.
>>
>> ------------------------------------------------------
>>
>> David
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


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

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

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


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

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


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

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


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


Mime
View raw message