Has this ever been solved?

I tried applying requiredif and validWhen but without any luck.  I have a
JavaScript hack that will sort of work, but it's really gross.

Waldo


On Mon, Oct 20, 2008 at 3:01 AM, John Vance <appfuse.t.jva...@xoxy.net>wrote:

>
> 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 <matt.barz...@gmail.com> 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 <matt.barz...@gmail.com> 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: users-unsubscr...@appfuse.dev.java.net
> >> >>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> --
> >> >> http://raibledesigns.com
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> >> >> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >>
> >> 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: users-unsubscr...@appfuse.dev.java.net
> >> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >
> >
> >
>
> --
> 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: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to