On Nov 14, 2008, at 8:06 AM, Paul Sandoz wrote:
>
> Part of the issue is that FormParam is not really a param in the
> sense of the other ones as it is really associated with the request
> or response entity. What i think WADL would require in this respect
> is a way to describe a form representation.
>
In WADL that is represented as a representation child of a request
element. The representation has param child elements to specify the
fields of the form. The correct style to use is "query" when the media
type is application/x-www-form-urlencoded.
Marc.
>
>
>
>> As we have the mapping of Param annotation classes to the
>> Parameter.Source equivalent both in the IntrospectionModeller and the
>> ResourceDocAccessor.ParameterAnnotationMapping, I think that it's
>> worth
>> creating a single mapping enum and use it in both cases. Or just make
>> the IntrospectionModeller.ANOT_HELPER_MAP public.
>> The latter sounds like a hack, the former needs some thoughts where
>> to
>> put this mapping, so I'd go for the former solution.
>> And perhaps it would be nice to also define the WADL param style in
>> this
>> mapping...
>>
>> What do you think?
>>
>
> I will defer to your superior knowledge in this area :-) but i think
> we should wait for the WADLing experts feedback as there may be
> better ways to manage forms.
>
> Paul.
>
>
>> Cheers,
>> Martin
>>
>>
>> [1] https://wadl.dev.java.net/wadl20061109.xsd
>>
>>
>> On Thu, 2008-11-13 at 17:50 +0100, Paul Sandoz wrote:
>>> Hi Luigi,
>>>
>>> Thanks for reporting this. Could you log an issue?
>>>
>>> Paul.
>>>
>>> On Nov 13, 2008, at 5:49 PM, Quattrocchi Luigi wrote:
>>>
>>>> Hi,
>>>> I'm using ver. 1.0 of Jersey and I've noticed that in the
>>>> automatically generated WADL the style attribute is missing for
>>>> parameters annotated with @FormParam. Actually, according to the
>>>> WADL schema, such attribute should be present (<xs:attribute
>>>> name="style" type="tns:ParamStyle" use="required"/>). This can be a
>>>> problem using some tools (e.g. soapUI ver. 2.5b2) that need to read
>>>> the WADL.
>>>> Kind regards,
>>>>
>>>> Luigi
>>>>
>>>>
>>>> CONFIDENTIALITY NOTICE
>>>>
>>>> This message and its attachments are addressed solely to the
>>>> persons
>>>> above and may contain confidential information. If you have
>>>> received
>>>> the message in error, be informed that any use of the content
>>>> hereof
>>>> is prohibited. Please return it immediately to the sender and
>>>> delete
>>>> the message. Should you have any questions, please contact us by
>>>> replying to webmaster_at_telecomitalia.it.
>>>>
>>>> Thank you
>>>>
>>>> www.telecomitalia.it
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>> --
>> Martin Grotzke
>> http://www.javakaffee.de/blog/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.