I'm having the same problem.

I guess the solution is to not POST when deleting.  Do a GET with the item
ID as a parameter.

What would be the appropriate controller to use for this?  Just a separate
controller to handle the delete?  Oooh - I could be RESTful here and do a
DELETE!  I say that because it's late and I want to go to bed...



mraible wrote:
> 
> I believe you can ignore the warning you're seeing as that doesn't
> seem to cause issues. As far as programmatically disabling server-side
> validation on a delete, I don't know how to do this. If you find a
> solution, please let us know.
> 
> Matt
> 
> On 6/19/07, mbrz2477 <[EMAIL PROTECTED]> wrote:
>>
>> Here's what I see in the logs when I click 'Delete' after clearing out a
>> required field.
>>
>> WARNING: /myForm.xhtml @72,62 functionName="validateMyForm" Property
>> 'functionName' is not on type: com.corejsf.validator.UIValidatorScript
>>
>>
>>
>> mbrz2477 wrote:
>> >
>> > It looks like server-side.  I don't see any Javascript popups.  I'm
>> using
>> > Firefox 2.0.0.4.
>> >
>> >
>> > mraible wrote:
>> >>
>> >> Is client-side validation or server-side validation kicking in?
>> >>
>> >> Matt
>> >>
>> >> On 6/19/07, mbrz2477 <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> I'm using Appfuse 2.0-M5 with JSF and Hibernate and I'm trying to
>> >>> implement
>> >>> the validation as suggested in the tutorial.  The validation works
>> great
>> >>> except if I remove values from a required field and then try and
>> delete
>> >>> a
>> >>> record.  It says the field with no value is required.  Here are the
>> >>> things I
>> >>> have done to setup the validation:
>> >>>
>> >>> 1)  Added the onsubmit property to the form tag.  It reads like so:
>> >>>
>> >>> <h:form id="myForm" onsubmit="return validateMyForm(this)">
>> >>>
>> >>> 2) Added required="true" to the required fields.
>> >>>
>> >>> 3) Added v:commonsValidator to the required fields.  Example:
>> >>>
>> >>> <v:commonsValidator type="required"
>> arg="#{text['myForm.username']}"/>
>> >>>
>> >>> 4) Added bCancel property to my delete button.
>> >>>
>> >>> <c:if test="${not empty myForm.id}">
>> >>>     <h:commandButton value="#{text['button.delete']}"
>> >>> action="#{myForm.delete}"
>> >>>             id="delete" styleClass="button"
>> onclick="bCancel=true;return
>> >>> confirmDelete()" />
>> >>> </c:if>
>> >>>
>> >>> 5) Added v:validatorScript after the closing form tag.
>> >>>
>> >>> </h:form>
>> >>> <v:validatorScript functionName="validateMyForm"/>
>> >>>
>> >>> I do notice in the server logs that it says it doesn't recognize the
>> >>> attribute functionName for validatorScript.  Anyone have any idea
>> what
>> >>> I'm
>> >>> missing?
>> >>>
>> >>> Thanks in advance,
>> >>> Matt
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>>
>> http://www.nabble.com/Validation-on-deletes-tf3947355s2369.html#a11197917
>> >>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> http://raibledesigns.com
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >
>> >
>>
>> --
>>
>> View this message in context:
>> http://www.nabble.com/Validation-on-deletes-tf3947355s2369.html#a11198452
>>
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validation-on-deletes-tp11197917s2369p20064213.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to