-Igor
On 3/28/06, Ali Zaid <
[EMAIL PROTECTED]> wrote:
Igor;
if you mean this:
protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, "input");
final String type = tag.getAttributes().getString("type");
if (!"button".equals(type) && !"image".equals(type)&&!"submit".equals(type))
{
findMarkupStream().throwMarkupException(
"Component " + getId() + " must be applied to a tag with 'type'"
+ " attribute matching 'submit', 'button' or 'image', not '" +
type + "'");
}
super.onComponentTag(tag);
}
I did test it, and it still submit in a normal way (not ajax), is
there any other class/file that was updated with this one? is there
anything that I should include in the markup?
mine looks like this
<input type="image" name="imageField"
src="">wicket:id="submitAjaxSubmitButton"/>
Regards,
Ali
On 3/28/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> you wrote that email w/out testing eh :)
>
> update and try again
>
> -Igor
>
>
>
> On 3/28/06, Ali Zaid < [EMAIL PROTECTED] > wrote:
> >
> Igor;
>
> I did give it a try, and it works as I said, it submit the form in a
> normal way not though Ajax, so page do refresh.
>
> Regards, Ali
>
> On 3/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > i tweaked it and it now should work with button/image/submit
> >
> > give it a try.
> >
> > -Igor
> >
> >
> >
> > On 3/28/06, Ali Zaid < [EMAIL PROTECTED]> wrote:
> > >
> > Igor;
> >
> > My mistake, I just checked it again, and I made a fast judgment,
> > Sorry, it seems image doesn't work with Ajax :(, it submit the form in
> > a normal way, unless you have found work around.
> >
> > I'm really sorry for this mistake. I will recheck again and update
> > you. again, Really sorry.
> >
> > Regards, Ali
> >
> > On 3/28/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > done.
> > >
> > > -Igor
> > >
> > >
> > >
> > > On 3/28/06, Ali Zaid < [EMAIL PROTECTED]> wrote:
> > > >
> > > Hay Guys;
> > >
> > > Wonderful work!
> > >
> > > I wanted to have the AjaxSubmitButton to be as an image, and then I
> > > found out that AjaxSubmitButton check for the attibute type and throw
> > > and exception if it's not a button, I modifed it and checked it with
> > > an image, and it works :), can you please have AjaxSubmitButton accept
> > > images too in the final release :), if this is not in the plan, I can
> > > submit a request.
> > >
> > > Thanks a million!
> > >
> > > --
> > > Regards, Ali
> > > -----
> > > Fight back spam! Download the Blue Frog.
> > >
> >
> http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language
> > > that extends applications into web and mobile media. Attend the live
> > webcast
> > > and join the prime developer group breaking into this new coding
> > territory!
> > >
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > --
> > Regards, Ali
> > -----
> > Fight back spam! Download the Blue Frog.
> >
> http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
> >
> >
> > -------------------------------------------------------
> >
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> >
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> --
> Regards, Ali
> -----
> Fight back spam! Download the Blue Frog.
> http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
>
>
> -------------------------------------------------------
>
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
Regards, Ali
-----
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=YWxsb2NoaTI5Nzk%3D
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
